Function at 0x664590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0xfc
mov dword [esp + 0x88], eax
lea eax, [esp + 0xc0]
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_InitDTEMessage]
imul edx, edi, 0x78
mov eax, dword [edx + 0x75ea80]
test eax, eax
je 0x665043
mov eax, 0x64
mov dword [esp + 0xd8], eax
lea eax, [esp + 0xa8]
mov dword [esp + 4], eax
lea eax, [esp + 0xa4]
mov dword [esp], eax
mov eax, dword [sym.imp.libpcaewin.dll_Inquire_Prop_Sheet_Displacement]
mov dword [esp + 0x8c], eax
call eax
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
imul eax, dword [esp + 0x88], 0x78
mov esi, dword [eax + 0x75ea40]
mov ebp, dword [eax + 0x75ea44]
lea ebx, [eax + 0x75ea40]
add esi, ecx
add ebp, edx
add ecx, dword [eax + 0x75ea48]
add edx, dword [eax + 0x75ea4c]
lea eax, [esp + 0xa0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 8], eax
lea eax, [esp + 0x9c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_Inquire_Scrollable_Area_PS]
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x664fa2
mov eax, dword [ebx + 0x48]
mov ecx, dword [esp + 0x9c]
mov edx, dword [ebx + 0x4c]
add eax, esi
sub eax, ecx
add edx, ebp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xa0]
sub edx, eax
mov dword [esp + 0x84], edx
mov edx, dword [ebx + 0x50]
add edx, esi
sub edx, ecx
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x54]
add edx, ebp
sub edx, eax
mov dword [esp + 0x80], edx
imul edi, dword [esp + 0x88], 0x78
mov eax, dword [0x8dd068]
mov dword [esp + 0x58], ebp
or eax, dword [0x8dd064]
or eax, dword [0x8dd060]
or eax, dword [0x8dd05c]
or eax, dword [edi + 0x75ea78]
lea ebx, [edi + 0x75ea40]
mov edi, dword [edi + 0x75ea7c]
cmp eax, 1
mov dword [esp + 0x4c], ebx
sbb ebx, ebx
xor bx, bx
add ebx, 0x94022
cmp eax, 1
sbb ecx, ecx
xor cx, cx
add ecx, 0x40094022
cmp eax, 1
sbb edx, edx
xor dx, dx
add edx, 0x9402a
cmp eax, 1
sbb eax, eax
xor ax, ax
add eax, 0x4009402a
test edi, edi
mov edi, ecx
cmove edx, ebx
mov ebx, dword [esp + 0x4c]
cmovne edi, eax
mov eax, dword [ebx + 0x40]
mov ebx, esi
test eax, eax
cmovne edx, edi
mov dword [esp + 0x60], edx
test eax, eax
je 0x66473a
mov ebp, dword [eax]
test ebp, ebp
jne 0x664acf
lea eax, [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [sym.imp.libpcaewin.dll_GetDTEMessage]
mov dword [esp + 0x68], eax
call eax
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov edi, dword [esp + 0x78]
mov edx, dword [eax]
mov eax, dword [sym.imp.libpcaewin.dll_M_XPOS]
mov eax, dword [eax]
cmp eax, edi
jg 0x664acf
mov edi, dword [esp + 0x7c]
cmp eax, edi
jl 0x664acf
mov eax, dword [sym.imp.libpcaewin.dll_M_YPOS]
mov edi, dword [esp + 0x80]
mov eax, dword [eax]
cmp eax, edi
jg 0x664acf
mov edi, dword [esp + 0x84]
cmp eax, edi
jl 0x664acf
mov eax, dword [sym.imp.libpcaewin.dll_M_SCROLL]
or edx, dword [eax]
jne 0x664acf
mov eax, dword [sym.imp.libpcaewin.dll_getkeymask]
mov dword [esp + 0x64], eax
call eax
cmp eax, 1
je 0x664acf
mov eax, dword [esp + 0x4c]
mov edi, dword [eax + 0x38]
test edi, edi
jne 0x664f08
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 0x3c]
test esi, esi
je 0x6647ec
mov eax, dword [sym.imp.libpcaewin.dll_M_RIGHT]
mov ecx, dword [eax]
test ecx, ecx
jne 0x664acf
mov eax, dword [0x8dd068]
or eax, dword [0x8dd064]
or eax, dword [0x8dd060]
or eax, dword [0x8dd05c]
jne 0x664f20
mov eax, dword [esp + 0x4c]
mov ebp, dword [eax + 0x70]
test ebp, ebp
je 0x664b0c
mov dword [esp + 0x48], ebx
mov ebx, ebp
jmp 0x664834
cmp eax, 0xc
je 0x664ae0
mov ebx, dword [ebx + 0x4c]
test ebx, ebx
je 0x664b08
mov eax, dword [ebx]
cmp eax, 0x12
jne 0x664820
mov edx, dword [ebx + 0x28]
mov esi, dword [edx]
test esi, esi
je 0x664829
mov edi, dword [ebx + 0x10]
mov edx, dword [sym.imp.libpcaewin.dll_M_XPOS]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x9c]
mov edx, dword [edx]
lea esi, [edi + ebp]
sub esi, ecx
cmp esi, edx
jg 0x664829
mov ebp, dword [esp + 0xa0]
mov esi, dword [ebx + 0x14]
mov dword [esp + 0x50], ebp
mov ebp, dword [sym.imp.libpcaewin.dll_M_YPOS]
mov dword [esp + 0x5c], esi
mov ebp, dword [ebp]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x58]
add esi, ebp
mov ebp, dword [esp + 0x50]
sub esi, ebp
mov ebp, dword [esp + 0x54]
cmp esi, ebp
jg 0x664829
mov esi, dword [ebx + 0x18]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x74], esi
add esi, ebp
sub esi, ecx
cmp edx, esi
jg 0x664829
mov ecx, dword [ebx + 0x1c]
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
add edx, ecx
sub edx, ebp
cmp dword [esp + 0x54], edx
jg 0x664829
cmp eax, 0x12
je 0x664b34
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x664f78
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x664d01
mov edx, 1
call fcn.00661c90
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x66490c
mov eax, dword [eax]
test eax, eax
jne 0x664a70
lea eax, [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
call eax
mov eax, dword [sym.imp.libpcaewin.dll_M_LEFT]
mov eax, dword [eax]
test eax, eax
jne 0x664a70
mov eax, dword [sym.imp.libpcaewin.dll_M_XPOS]
mov edx, dword [ebx + 0x10]
mov esi, dword [esp + 0x9c]
add edx, ebp
mov eax, dword [eax]
sub edx, esi
cmp edx, eax
jg 0x664a70
mov ecx, dword [sym.imp.libpcaewin.dll_M_YPOS]
mov edx, dword [esp + 0xa0]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x48]
add ecx, dword [ebx + 0x14]
sub ecx, edx
cmp ecx, edi
jg 0x664a70
mov ecx, dword [ebx + 0x18]
add ecx, ebp
sub ecx, esi
cmp eax, ecx
jg 0x664a70
mov ecx, dword [esp + 0x48]
add ecx, dword [ebx + 0x1c]
sub ecx, edx
mov edx, dword [esp + 0x6c]
cmp edi, ecx
setg cl
cmp eax, ebp
mov esi, ecx
setl cl
or ecx, esi
cmp eax, edx
setg al
or ecx, eax
mov eax, dword [esp + 0x48]
cmp edi, eax
setl al
or al, cl
jne 0x664a70
cmp dword [esp + 0x70], edi
jl 0x664a70
mov eax, dword [sym.imp.libpcaewin.dll_M_SCROLL]
mov eax, dword [eax]
test eax, eax
jne 0x664a70
mov eax, dword [esp + 0x64]
call eax
cmp eax, 1
je 0x664a70
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x664b20
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x6649ff
mov eax, dword [sym.imp.libpcaewin.dll_M_RIGHT]
mov edi, dword [eax]
test edi, edi
jne 0x664a70
mov eax, dword [0x8dd068]
or eax, dword [0x8dd064]
or eax, dword [0x8dd060]
or eax, dword [0x8dd05c]
je 0x6648f7
mov edi, dword [esp + 0x48]
call dword [sym.imp.libpcaewin.dll_hitkey]
cmp eax, 0xffffffff
je 0x6648f3
mov esi, dword [0x8dd068]
test esi, esi
je 0x664a3e
cmp eax, 0x1b
je 0x664a70
mov ecx, dword [0x8dd064]
test ecx, ecx
je 0x664a4d
cmp eax, 0xd
je 0x664a70
mov edx, dword [0x8dd060]
test edx, edx
je 0x6648f3
cmp eax, 0x13b
jne 0x6648f3
lea esi, [esi]
lea esi, [esi]
cmp dword [ebx], 0x12
mov dword [esp + 0x48], ebp
je 0x664d10
mov edi, dword [ebx + 0xc]
test edi, edi
jne 0x664f90
mov esi, dword [ebx + 0x30]
test esi, esi
je 0x664ab5
mov ecx, dword [0x8dd024]
test ecx, ecx
je 0x664fc5
mov edx, dword [0x8dd01c]
test edx, edx
jne 0x665015
mov dword [0x8dd01c], 0
mov eax, dword [sym.imp.libpcaewin.dll_M_SCROLL]
mov eax, dword [eax]
test eax, eax
jne 0x664acf
mov eax, dword [esp + 0x64]
call eax
cmp eax, 1
jne 0x664829
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x664844
mov edx, dword [ebx + 0x30]
test edx, edx
jne 0x664844
mov ebx, dword [ebx + 0x4c]
test ebx, ebx
jne 0x664834
lea esi, [esi]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x40]
jmp 0x66472c
call dword [sym.imp.libpcaewin.dll_hitkey]
cmp eax, 0xffffffff
je 0x6649e9
jmp 0x664a70
mov eax, dword [esp + 0x74]
sub eax, edi
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x5c]
sub ecx, eax
lea eax, [esp + 0xb4]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xb0]
mov dword [esp + 8], eax
lea eax, [esp + 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xa8], ecx
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_pxQCR]
lea eax, [esp + 0xbc]
mov dword [esp + 4], eax
lea eax, [esp + 0xb8]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
call eax
mov ecx, dword [esp + 0xb8]
imul edx, dword [esp + 0x88], 0x78
mov dword [esp + 0xc], 0x8dd04c
mov eax, dword [esp + 0xbc]
mov dword [esp + 8], 0x8dd050
mov dword [esp + 4], 0x8dd054
mov ebp, dword [edx + 0x75ea40]
mov esi, dword [edx + 0x75ea44]
mov dword [esp], 0x8dd058
add ebp, ecx
add esi, eax
add ecx, dword [edx + 0x75ea48]
add eax, dword [edx + 0x75ea4c]
mov edi, eax
mov dword [esp + 0x50], ecx
call dword [sym.imp.libpcaewin.dll_pxQVwp]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov esi, dword [sym.imp.libpcaewin.dll_pxView]
mov dword [esp + 8], ecx
mov dword [esp], ebp
call esi
mov eax, dword [esp + 0xb4]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x24], 0xc9
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x1c]
add eax, ebp
sub eax, ecx
sub eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
add eax, dword [ebx + 0x18]
sub eax, dword [esp + 0x9c]
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x14]
add eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
add eax, dword [ebx + 0x10]
sub eax, dword [esp + 0x9c]
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
add eax, edx
sub eax, 1
mov dword [esp + 0x10], eax
lea eax, [edi + edi]
lea ecx, [edi + eax - 1]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_pxDrawPartialTransparentDIB]
mov eax, dword [0x8dd04c]
mov dword [esp + 0xc], eax
mov eax, dword [0x8dd050]
mov dword [esp + 8], eax
mov eax, dword [0x8dd054]
mov dword [esp + 4], eax
mov eax, dword [0x8dd058]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 4]
test eax, eax
jne 0x66504f
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x6648e1
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x58]
jmp 0x6648f3
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x664d3b
mov eax, dword [0x8dd024]
test eax, eax
je 0x66505d
mov eax, dword [0x8dd01c]
test eax, eax
jne 0x6650ac
mov dword [0x8dd01c], 0
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x10]
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x14]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xb4]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xb0]
mov dword [esp + 8], eax
lea eax, [esp + 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_pxQCR]
lea eax, [esp + 0xbc]
mov dword [esp + 4], eax
lea eax, [esp + 0xb8]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
call eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0xb8]
mov esi, dword [esp + 0xbc]
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
add edi, eax
add edx, esi
add eax, dword [ecx + 8]
add esi, dword [ecx + 0xc]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0xc], 0x8dd04c
mov dword [esp + 8], 0x8dd050
mov dword [esp + 4], 0x8dd054
mov dword [esp], 0x8dd058
call dword [sym.imp.libpcaewin.dll_pxQVwp]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp], edi
mov dword [esp + 0xc], esi
mov esi, dword [sym.imp.libpcaewin.dll_pxView]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call esi
mov eax, dword [esp + 0xb4]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x24], 0xc9
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x1c]
add eax, ebp
sub eax, ecx
sub eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
add eax, dword [ebx + 0x18]
sub eax, dword [esp + 0x9c]
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x14]
add eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
add eax, dword [ebx + 0x10]
sub eax, dword [esp + 0x9c]
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], edi
add eax, edx
sub eax, 1
mov dword [esp + 0x10], eax
lea eax, [edi + edi - 1]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_pxDrawPartialTransparentDIB]
mov eax, dword [0x8dd04c]
mov dword [esp + 0xc], eax
mov eax, dword [0x8dd050]
mov dword [esp + 8], eax
mov eax, dword [0x8dd054]
mov dword [esp + 4], eax
mov eax, dword [0x8dd058]
mov dword [esp], eax
call esi
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x664ab5
mov dword [esp], 0
call dword [sym.imp.libpcaewin.dll_setMouseCursor]
jmp 0x664ab5
call dword [sym.imp.libpcaewin.dll_hitkey]
cmp eax, 0xffffffff
je 0x6647d2
jmp 0x664acf
call dword [sym.imp.libpcaewin.dll_hitkey]
cmp eax, 0xffffffff
je 0x664809
mov edx, dword [0x8dd068]
test edx, edx
je 0x664f42
cmp eax, 0x1b
je 0x664acf
mov ebp, dword [0x8dd064]
test ebp, ebp
je 0x664f55
cmp eax, 0xd
je 0x664acf
mov edi, dword [0x8dd060]
test edi, edi
je 0x664809
cmp eax, 0x13b
jne 0x664809
jmp 0x664acf
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_setMouseCursor]
jmp 0x6648d6
mov dword [esp], 0
call dword [sym.imp.libpcaewin.dll_setMouseCursor]
jmp 0x664a88
mov eax, dword [esp + 0x70]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x78], eax
jmp 0x6646a0
mov esi, dword [sym.imp.libpcaewin.dll_Nearest_RGB_Color]
mov dword [esp + 8], 0xff
mov dword [esp + 4], 0xff
mov dword [esp], 0xff
call esi
mov dword [esp + 8], 0
mov dword [0x8dd024], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
mov edx, dword [0x8dd01c]
mov dword [0x8dd020], eax
test edx, edx
je 0x664aab
mov eax, dword [0x8dd018]
mov dword [esp + 0xc], eax
mov eax, dword [0x8dd014]
mov dword [esp + 8], eax
mov eax, dword [0x8dd010]
mov dword [esp + 4], eax
mov eax, dword [0x8dd00c]
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_Restore_Screen_Rectangle]
jmp 0x664aab
mov eax, dword [esp + 0xd8]
jmp 0x6645c9
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_setMouseCursor]
jmp 0x664cf6
mov esi, dword [sym.imp.libpcaewin.dll_Nearest_RGB_Color]
mov dword [esp + 8], 0xff
mov dword [esp + 4], 0xff
mov dword [esp], 0xff
call esi
mov dword [esp + 8], 0
mov dword [0x8dd024], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
mov dword [0x8dd020], eax
mov eax, dword [0x8dd01c]
test eax, eax
je 0x664d31
mov eax, dword [0x8dd018]
mov dword [esp + 0xc], eax
mov eax, dword [0x8dd014]
mov dword [esp + 8], eax
mov eax, dword [0x8dd010]
mov dword [esp + 4], eax
mov eax, dword [0x8dd00c]
mov dword [esp], eax
call dword [sym.imp.libpcaewin.dll_Restore_Screen_Rectangle]
jmp 0x664d31