Created
June 5, 2018 16:16
-
-
Save H4niz/98b42fd17c949b71b98b7029721cd4ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
.text:08048B3B checkout proc near ; CODE XREF: handler:loc_8048C4F↓p | |
.text:08048B3B | |
.text:08048B3B var_28 = dword ptr -28h | |
.text:08048B3B var_24 = dword ptr -24h | |
.text:08048B3B Iphone8_chunk = dword ptr -20h | |
.text:08048B3B var_1C = dword ptr -1Ch | |
.text:08048B3B var_C = dword ptr -0Ch | |
.text:08048B3B | |
.text:08048B3B ; __unwind { | |
.text:08048B3B push ebp | |
.text:08048B3C mov ebp, esp | |
.text:08048B3E sub esp, 38h | |
.text:08048B41 mov eax, large gs:14h | |
.text:08048B47 mov [ebp+var_C], eax | |
.text:08048B4A xor eax, eax | |
.text:08048B4C mov [ebp+var_24], 1 | |
.text:08048B53 call cart | |
.text:08048B58 mov [ebp+var_28], eax | |
.text:08048B5B cmp [ebp+var_28], 7174 ; insert stack address | |
.text:08048B62 jnz short loc_8048BA1 | |
.text:08048B64 mov dword ptr [esp], offset aIphone81 ; "*: iPhone 8 - $1" | |
.text:08048B6B call _puts | |
.text:08048B70 mov dword ptr [esp+8], offset aIphone8 ; "iPhone 8" | |
.text:08048B78 mov dword ptr [esp+4], offset aS ; "%s" | |
.text:08048B80 lea eax, [ebp+Iphone8_chunk] | |
.text:08048B83 mov [esp], eax ; char ** | |
.text:08048B86 call _asprintf | |
.text:08048B8B mov [ebp+var_1C], 1 | |
.text:08048B92 lea eax, [ebp+Iphone8_chunk] | |
.text:08048B95 mov [esp], eax | |
.text:08048B98 call insert | |
.text:08048B9D add [ebp+var_28], 1 | |
.text:08048BA1 | |
.text:08048BA1 loc_8048BA1: ; CODE XREF: checkout+27↑j | |
.text:08048BA1 mov eax, [ebp+var_28] | |
.text:08048BA4 mov [esp+4], eax | |
.text:08048BA8 mov dword ptr [esp], offset aTotalD ; "Total: $%d\n" | |
.text:08048BAF call _printf | |
.text:08048BB4 mov dword ptr [esp], offset aWantToCheckout ; "Want to checkout? Maybe next time!" | |
.text:08048BBB call _puts | |
.text:08048BC0 mov eax, [ebp+var_C] | |
.text:08048BC3 xor eax, large gs:14h | |
.text:08048BCA jz short locret_8048BD1 | |
.text:08048BCC call ___stack_chk_fail | |
.text:08048BD1 ; --------------------------------------------------------------------------- | |
.text:08048BD1 | |
.text:08048BD1 locret_8048BD1: ; CODE XREF: checkout+8F↑j | |
.text:08048BD1 leave | |
.text:08048BD2 retn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment