Colin
Task 4 Continued
Mon Dec 28 07:43:13 1998


:00403C53 5A pop edx
:00403C54 83E203 and edx, 00000003 ;makes edx 01
:00403C57 7422 jz 00403C7B
:00403C59 8B0E mov ecx, dword ptr [esi] ;Load last byte of input serial
:00403C5B 8B1F mov ebx, dword ptr [edi] ;Load last byte of real serial
:00403C5D 38D9 cmp cl, bl ;compare lo bytes of last bytes
:00403C5F 7541 jnz 00403CA2 ;zero continue
:00403C61 4A dec edx ;01 to 00
:00403C62 7417 jz 00403C7B

:00403C7B 01C0 add eax, eax
:00403C7D EB23 jmp 00403CA2 ;Conditional Jmp to nag routine

:00403C8D 5A pop edx
:00403C8E 38D9 cmp cl, bl ;Compare 1st bytes of both serials
:00403C90 7510 jnz 00403CA2 ;zero continue
:00403C92 38FD cmp ch, bh ;Compare 2nd bytes of both serials
:00403C94 750C jnz 00403CA2 ;zero continue
:00403C96 C1E910 shr ecx, 10 ;Shift right to compare 3rd byte
:00403C99 C1EB10 shr ebx, 10 ;Shift right to compare 3rd byte
:00403C9C 38D9 cmp cl, bl ;Compare 3rd bytes of both serials
:00403C9E 7502 jnz 00403CA2 ;zero continue
:00403CA0 38FD cmp ch, bh ;Compare 4th bytes of both serials

:00403CA2 5F pop edi
:00403CA3 5E pop esi
:00403CA4 5B pop ebx
:00403CA5 C3 ret ;Return to nag routine

:0043FA09 752E jne 0043FA39
:0043FA0B A1209B4400 mov eax, dword ptr [00449B20]
:0043FA10 8B00 mov eax, dword ptr [eax]
:0043FA12 E8D5AFFEFF call 0042A9EC ;Routine to show good and bad nag
:0043FA17 A1109D4400 mov eax, dword ptr [00449D10]
:0043FA1C 803800 cmp byte ptr [eax], 00
:0043FA1F 750C jne 0043FA2D
:0043FA21 A1089D4400 mov eax, dword ptr [00449D08]
:0043FA26 8B00 mov eax, dword ptr [eax]
:0043FA28 E863ADFEFF call 0042A790

I hope you can follow and I also hope it's right
The End

Cop U Later
Colin