Created
June 5, 2018 16:12
-
-
Save H4niz/aabefb91e7ef44812f23e9f3b6f081aa 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:08048835 insert proc near ; CODE XREF: add+F5↓p | |
.text:08048835 ; checkout+5D↓p | |
.text:08048835 | |
.text:08048835 MyCart = dword ptr -4 | |
.text:08048835 heap_space = dword ptr 8 | |
.text:08048835 | |
.text:08048835 ; __unwind { | |
.text:08048835 push ebp | |
.text:08048836 mov ebp, esp | |
.text:08048838 sub esp, 10h | |
.text:0804883B mov [ebp+MyCart], offset myCart | |
.text:08048842 jmp short loc_804884D | |
.text:08048844 ; --------------------------------------------------------------------------- | |
.text:08048844 | |
.text:08048844 loc_8048844: ; CODE XREF: insert+20↓j | |
.text:08048844 mov eax, [ebp+MyCart] | |
.text:08048847 mov eax, [eax+8] ; MyCart+8 = Cart | |
.text:0804884A mov [ebp+MyCart], eax | |
.text:0804884D | |
.text:0804884D loc_804884D: ; CODE XREF: insert+D↑j | |
.text:0804884D mov eax, [ebp+MyCart] | |
.text:08048850 mov eax, [eax+8] | |
.text:08048853 test eax, eax | |
.text:08048855 jnz short loc_8048844 | |
.text:08048857 mov eax, [ebp+MyCart] | |
.text:0804885A mov edx, [ebp+heap_space] | |
.text:0804885D mov [eax+8], edx | |
.text:08048860 mov eax, [ebp+heap_space] | |
.text:08048863 mov edx, [ebp+MyCart] | |
.text:08048866 mov [eax+0Ch], edx | |
.text:08048869 leave | |
.text:0804886A retn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment