Topic awaiting preservation: Assembler help needed (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 06-14-2005 11:43
For a project of mine, I need to figure out what another guy was doing... unfortunatly, I've only disassembled code to help. code: :00403687 8D442408 lea eax, dword[esp+08] ; //load the rect (see below) address into eax :0040368B 50 push eax ;pass that as second parameter :0040368C 57 push edi ;window handle is the first parameter :0040368D FF1570114000 call dword[00401170 ->000064B4 GetWindowRect] ;call windows function :00403693 8B4C2410 mov ecx, dword[esp+10] ; ret one of the rects 4 dwords out :00403697 8B442408 mov eax, dword[esp+08]; get the next one, :0040369B 3BC8 cmp ecx, eax ; compare :0040369D 740C je 004036AB ; jump if zero, ie. they're equal :0040369F 8B542414 mov edx, dword[esp+14] ; get a third dword :004036A3 8B44240C mov eax, dword[esp+0C]; get the fourth :004036A7 3BD0 cmp edx, eax; compare :004036A9 7509 jne 004036B4 ; jump to the same place if they're equal . code: typedef struct tagRECT { LONG left; LONG top; LONG right; LONG bottom;} RECT,*PRECT,*LPRECT; (straight from the windows header files) (long is 32 bits). |
Bipolar (III) Inmate From: Gainesboro, TN, USA |
posted 06-16-2005 17:56
Yeah, we all know you're smarter. |
Paranoid (IV) Inmate From: Madison, Indiana, USA |
posted 06-16-2005 18:21
Tyberius Prime, |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 06-17-2005 14:26
hyperbole: |