Ok, as I promised earlier.
Code:
CHANGE
.0044AD03: F3A5 repe movsd
.0044AD05: FF249518AE4400 jmp d,[0044AE18][edx]*4
to
.0044AD03: E9AA390100 jmp .00045E6B2 ---↓ (6)
.0044AD08: 90 nop
.0044AD09: 90 nop
.0044AD0A: 90 nop
.0044AD0B: 90 nop
Dun worry, hiew sometimes gives some error, specifficaly when trying to asm repe & jmp d,[0044AE18][edx]*4 - just hex it in.
And what do we have at 00045E6B2
Code:
.0045E6B2: 807E0204 cmp b,[esi][02],004 ;"♦"
.0045E6B6: 90 nop
.0045E6B7: 90 nop
.0045E6B8: 90 nop
.0045E6B9: 7409 je .00045E6C4 ---↓ (1)
.0045E6BB: F3A5 repe movsd
.0045E6BD: FF249518AE4400 jmp d,[0044AE18][edx]*4
.0045E6C4: 6649 dec cx
.0045E6C6: 668BC1 mov ax,cx
.0045E6C9: B505 mov ch,005 ;"♣"
.0045E6CB: F6F5 div ch
.0045E6CD: 0006 add [esi],al
.0045E6CF: A4 movsb
.0045E6D0: A5 movsd
.0045E6D1: 66B90500 mov cx,00005 ;" ♣"
.0045E6D5: F3A5 repe movsd
.0045E6D7: C60700 mov b,[edi],000
.0045E6DA: 47 inc edi
.0045E6DB: FEC8 dec al
.0045E6DD: 3C00 cmp al,000
.0045E6DF: 7FF0 jg .00045E6D1 ---↑ (2)
.0045E6E1: FF249518AE4400 jmp d,[0044AE18][edx]*4
this nops
.0045E6B6: 90 nop
.0045E6B7: 90 nop
.0045E6B8: 90 nop
are certainly not needed, remove them if you wish. I'm gonna change
.0045E6B2: 807E0204 cmp b,[esi][02],004 ;"♦"
a little later, so I need some extra space.
I think that's all. I changed some other things a bit, but it has no link to this code.
And, one more. I recommend you to take AuthD311 as a base. If you follow this recomendation, you will also need to change following:
Code:
.00438E11: B003 mov al,003 ;"♥"
.00438E13: 8885C0F7FFFF mov [ebp][-00000840],al
.00438E19: 0FBE85C0F7FFFF movsx eax,b,[ebp][-00000840]
.00438E20: 90 nop
.00438E21: 90 nop
.00438E22: 90 nop
Compare to original and you will understand what does it mean (I hope)