Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- | 0x080485e3 50 push eax
- | 0x080485e4 6875870408 push str.32s ; 0x8048775 ; "%32s" ; const char *format
- | 0x080485e9 e822feffff call sym.imp.__isoc99_scanf ; int scanf(const char *format)
- | 0x080485ee 83c410 add esp, 0x10
- | 0x080485f1 83ec04 sub esp, 4
- | 0x080485f4 6a0a push 0xa ; 10 ; int base
- | 0x080485f6 6a00 push 0 ; char * *endptr
- | 0x080485f8 8d45d4 lea eax, dword [str]
- | 0x080485fb 50 push eax ; const char *str
- | 0x080485fc e81ffeffff call sym.imp.strtol ; long strtol(const char *str, char * *endptr, int base)
- | 0x08048601 83c410 add esp, 0x10
- | 0x08048604 8945f4 mov dword [local_ch], eax
- | 0x08048607 83ec08 sub esp, 8
- | 0x0804860a ff75f4 push dword [local_ch]
- | 0x0804860d 687c870408 push str.You_entered__d._Let_s_see_if_it_was_right... ; 0x804877c ; "You entered %d. Let's see if it was right...\n" ; const char *format
- | 0x08048612 e8a9fdffff call sym.imp.printf ; int printf(const char *format)
- | 0x08048617 83c410 add esp, 0x10
- | 0x0804861a c16df404 shr dword [local_ch], 4
- | 0x0804861e 8b45f4 mov eax, dword [local_ch]
- | 0x08048621 ffd0 call eax
- | 0x08048623 8b4dfc mov ecx, dword [local_4h]
- | 0x08048626 c9 leave
- | 0x08048627 8d61fc lea esp, dword [ecx - 4]
- \ 0x0804862a c3 ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement