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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x68
cmp eax, 0xffffffff
push esi
mov esi, ecx
je 0x489e67
cmp eax, dword [esi + 0x1755c]
jl 0x48a4ce
cmp eax, dword [esi + 0x17560]
jg 0x48a4ce
mov eax, dword [esi + 0x17554]
test eax, eax
jne 0x489e89
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.0048c270
pop esi
add esp, 0x68
ret 0xc
mov edx, dword [esi + 0x1318]
push ebx
mov ebx, dword [esp + 0x78]
push ebp
mov eax, dword [edx + 0x44]
push edi
lea ecx, [esp + 0x58]
push ebx
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ebp, dword [esp + 0x7c]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
sub edx, ecx
mov edi, eax
mov eax, dword [esp + 0x60]
push edx
sub eax, dword [esp + 0x5c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [esp + 0x3c], eax
call ebp
push 0
lea ecx, [esi + 0x24]
mov dword [esp + 0x34], eax
call fcn.004862a0
push eax
push edi
call ebp
push 1
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0xfc4]
mov ecx, dword [esi + 0x1318]
or eax, 0x820
mov dword [esi + 0xfa8], eax
mov edx, dword [ecx + 0x50]
test edx, edx
jne 0x489f27
or eax, 0x40000
mov dword [esi + 0xfa8], eax
lea edx, [esp + 0x58]
mov ecx, esi
push edx
push edi
call fcn.0048c270
lea eax, [esp + 0x48]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CopyRect]
push eax
call ebx
mov eax, dword [esi + 0x1318]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x489f5f
mov ecx, dword [esi + 0xf78]
mov edx, dword [esp + 0x50]
sub edx, ecx
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x489f78
mov edx, dword [esi + 0x1310]
mov eax, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x48], eax
jmp 0x489f99
mov eax, dword [esi + 0x1260]
mov ecx, dword [esi + 0x130c]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
mov eax, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x50], eax
mov ecx, esi
call fcn.0048d1a0
mov eax, dword [esi + 0xf7c]
mov edx, dword [esp + 0x50]
sub edx, eax
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x1318]
mov ecx, dword [edx + 0x28]
test ecx, ecx
jne 0x489fc1
add dword [esp + 0x48], eax
mov eax, dword [esi + 0xf80]
mov ebp, dword [esp + 0x48]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
add ebp, eax
push ecx
push edx
mov dword [esp + 0x50], ebp
call ebx
mov eax, dword [esi + 0x1324]
test eax, eax
je 0x489ff9
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x11ec]
sub eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x48a009
mov ecx, dword [esi + 0x11ec]
mov eax, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x38]
lea ebp, [esi + 0x176dc]
push edx
push ebp
call ebx
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
sub ebx, ecx
test eax, eax
mov dword [esp + 0x10], 0
jne 0x48a074
mov ecx, dword [esi + 0x1300]
mov eax, dword [esi + 0x176e4]
mov edx, dword [ebp]
sub eax, ecx
sub eax, edx
cdq
idiv dword [esi + 0x17554]
add eax, ecx
mov ecx, dword [esi + 0x1318]
cmp eax, dword [ecx + 0x3c]
jae 0x48a062
mov dword [esp + 0x14], 1
jmp 0x48a074
lea edx, [esp + 0x38]
mov ecx, esi
push edx
push ebx
push edi
call fcn.0048d670
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x80], 0
test eax, eax
je 0x48a11b
mov ecx, dword [esi + 0x1300]
mov ebp, dword [esi + 0x17554]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x18], eax
cdq
idiv ebp
mov edx, dword [esi + 0x1318]
mov ebp, dword [edx + 0x38]
add eax, ecx
cmp eax, ebp
mov dword [esp + 0x80], eax
jl 0x48a0c1
mov eax, ebp
mov dword [esp + 0x80], eax
mov edx, dword [edx + 0x3c]
mov ebp, eax
cmp eax, edx
jg 0x48a0d3
mov eax, edx
mov dword [esp + 0x80], eax
sub eax, ecx
imul eax, dword [esi + 0x17554]
add eax, ecx
cmp ebp, edx
jge 0x48a10b
mov eax, dword [esp + 0x18]
mov ebp, dword [esi + 0x17570]
cdq
idiv ebp
mov dword [esi + 0x175a8], 1
add eax, ecx
mov dword [esp + 0x80], eax
sub eax, ecx
imul eax, ebp
add eax, ecx
jmp 0x48a115
mov dword [esi + 0x175a8], 0
sub ebx, eax
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x17554]
mov edx, dword [esi + 0x17558]
xor ebx, ebx
lea ecx, [eax - 1]
cmp eax, ebx
mov dword [esi + 0x17560], ecx
mov ecx, dword [esi + edx*4 + 0x16f3c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
jle 0x48a2ab
mov ecx, dword [esp + 0x38]
lea ebp, [esi + 0x16f3c]
cmp ebx, dword [esi + 0x1755c]
jl 0x48a249
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48a173
mov edx, dword [esp + 0x80]
lea eax, [ecx + edx]
jmp 0x48a18e
mov eax, dword [ebp]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
lea eax, [eax + eax*2]
mov eax, dword [esi + eax*4 + 0x1458]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x48a1a4
inc eax
dec ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [esp + 0x50]
jg 0x48a25d
mov eax, dword [ebp]
lea ecx, [esp + 0x38]
push ecx
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
lea eax, [eax + eax*2]
lea ecx, [esi + eax*4 + 0x1448]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17558], ebx
jne 0x48a1f5
lea edx, [esp + 0x38]
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [esp + 0x18], 1
jmp 0x48a239
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x48a20e
mov ecx, dword [ebp]
push 1
lea edx, [esp + 0x3c]
push ecx
push edx
jmp 0x48a231
cmp ebx, eax
je 0x48a226
lea ecx, [eax - 1]
cmp ebx, ecx
je 0x48a226
inc eax
cmp ebx, eax
je 0x48a226
cmp ebx, dword [esi + 0x17560]
jne 0x48a239
mov edx, dword [ebp]
push 1
lea eax, [esp + 0x3c]
push edx
push eax
push edi
mov ecx, esi
call fcn.0048a780
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x1300]
sub ecx, eax
mov dword [esp + 0x38], ecx
mov eax, dword [esi + 0x17554]
inc ebx
add ebp, 4
cmp ebx, eax
jl 0x48a153
jmp 0x48a28f
lea ecx, [ebx - 1]
lea edx, [esp + 0x38]
mov dword [esi + 0x17560], ecx
mov ebx, dword [esi + ebx*4 + 0x16f3c]
push edx
lea eax, [ebx*8]
sub eax, ebx
lea ebx, [ebx + eax*4]
lea ecx, [ebx + ebx*2]
lea edx, [esi + ecx*4 + 0x1448]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48a2ab
mov eax, dword [esp + 0x1c]
push 1
lea ecx, [esp + 0x6c]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0048a780
mov edx, dword [esi + 0x1318]
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x48a39d
lea ecx, [esi + 0x125c]
call fcn.004523c0
test eax, eax
je 0x48a39d
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0x1260]
xor ebp, ebp
cdq
and edx, 3
mov dword [esi + 0x17588], ebp
add eax, edx
mov edx, dword [esi + 0x1300]
mov ebx, eax
mov eax, dword [esi + 0x130c]
sub edx, eax
mov eax, dword [esp + 0x38]
add eax, edx
sar ebx, 2
mov dword [esp + 0x38], eax
add eax, ebx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x17564]
cmp eax, 0xffffffff
jne 0x48a369
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x48a369
mov eax, dword [esi + 0x17584]
mov dword [esi + 0x17588], 1
test eax, eax
lea ebp, [ebx + ebx]
jne 0x48a369
mov ebp, ebx
mov ecx, dword [esi + 0x1264]
push 0
push 0
push ecx
push ebx
push 0
push ebp
lea edx, [esp + 0x50]
push 0
push edx
push edi
lea ecx, [esi + 0x125c]
call fcn.004519e0
lea eax, [esp + 0x38]
lea ecx, [esi + 0x12b8]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x176ec], 0xffffffff
je 0x48a3eb
lea edx, [esp + 0x38]
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x176ec]
mov ecx, dword [esi + 0x1278]
push 0
push 0
push 0
push 0
push 0
add ecx, eax
push 0
lea edx, [esp + 0x34]
push 0
mov dword [esp + 0x40], ecx
push edx
push edi
lea ecx, [esi + 0x1274]
mov dword [esp + 0x40], eax
call fcn.004519e0
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x48a428
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x7c]
push 0xcc0020
sub eax, ecx
mov ecx, dword [esp + 0x64]
push 0
push 0
push edi
sub ecx, ebx
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x48a4a3
mov eax, dword [esi + eax*4 + 0x16f3c]
mov ebp, dword [esp + 0x7c]
push 0xcc0020
lea ecx, [eax*8]
sub ecx, eax
lea eax, [eax + ecx*4]
lea edx, [eax + eax*2]
mov ecx, dword [esi + edx*4 + 0x144c]
mov ebx, dword [esi + edx*4 + 0x1454]
lea eax, [esi + edx*4]
push ecx
sub ebx, ecx
mov edx, dword [eax + 0x1448]
mov eax, dword [eax + 0x1450]
push edx
push edi
sub eax, edx
push ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push eax
push ecx
push edx
push ebp
call ebx
mov eax, dword [esi + 0x12bc]
mov ecx, dword [esi + 0x12b8]
mov edx, dword [esi + 0x12c4]
push 0xcc0020
push eax
push ecx
sub edx, eax
push edi
push edx
mov edx, dword [esi + 0x12c0]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
mov ecx, dword [esp + 0x30]
push ecx
push edi
call esi
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x68
ret 0xc