This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x: ; void __cdecl x(void *, unsigned int, void *, unsigned int); | |
| push ebp | |
| mov ebp, esp | |
| push edi | |
| push esi | |
| mov ecx, [ebp+12] ; | |
| mov eax, [ebp+20] ; | |
| cmp eax, ecx | |
| jg .donejg ; | |
| sub ecx, eax ; | |
| xor eax, eax | |
| .for: | |
| push eax | |
| push ecx | |
| mov eax, [ebp+20] ; 1 | |
| mov ecx, [ebp+16] ; 2 | |
| mov edx, [ebp+8] ; 3 | |
| push eax | |
| push ecx | |
| push edx | |
| call mycmp | |
| add esp, 12 | |
| cmp eax, 1 | |
| jne .nada | |
| mov eax, [ebp+8] | |
| jmp .done | |
| .nada: | |
| inc dword [ebp+8] | |
| pop ecx | |
| pop eax | |
| inc eax | |
| cmp eax, ecx | |
| jne .for | |
| .donejg: ; | |
| xor eax, eax ; | |
| .done: | |
| pop esi | |
| pop edi | |
| mov esp, ebp | |
| pop ebp | |
| ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment