Function at 0x48fe00
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 0x48fe27
cmp eax, dword [esi + 0x17978]
jl 0x49049a
cmp eax, dword [esi + 0x1797c]
jg 0x49049a
mov eax, dword [esi + 0x17970]
test eax, eax
jne 0x48fe49
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.00492220
pop esi
add esp, 0x68
ret 0xc
mov edx, dword [esi + 0x1334]
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.0048c250
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 + 0xfe0]
mov ecx, dword [esi + 0x1334]
or eax, 0x820
mov dword [esi + 0xfc4], eax
mov edx, dword [ecx + 0x50]
test edx, edx
jne 0x48fee7
or eax, 0x40000
mov dword [esi + 0xfc4], eax
lea edx, [esp + 0x58]
mov ecx, esi
push edx
push edi
call fcn.00492220
lea eax, [esp + 0x48]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CopyRect]
push eax
call ebx
mov eax, dword [esi + 0x1334]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x48ff1f
mov ecx, dword [esi + 0xf94]
mov edx, dword [esp + 0x50]
sub edx, ecx
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x48ff38
mov edx, dword [esi + 0x132c]
mov eax, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x48], eax
jmp 0x48ff59
mov eax, dword [esi + 0x127c]
mov ecx, dword [esi + 0x1328]
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.00493180
mov eax, dword [esi + 0xf98]
mov edx, dword [esp + 0x50]
sub edx, eax
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x1334]
mov ecx, dword [edx + 0x28]
test ecx, ecx
jne 0x48ff81
add dword [esp + 0x48], eax
mov eax, dword [esi + 0xf9c]
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 + 0x1340]
test eax, eax
je 0x48ffb9
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x1208]
sub eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x48ffc9
mov ecx, dword [esi + 0x1208]
mov eax, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x38]
lea ebx, [esi + 0x17af8]
push edx
push ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
sub ebp, ecx
test eax, eax
mov dword [esp + 0x10], 0
jne 0x490037
mov ecx, dword [esi + 0x131c]
mov eax, dword [esi + 0x17b00]
mov edx, dword [ebx]
sub eax, ecx
sub eax, edx
cdq
idiv dword [esi + 0x17970]
add eax, ecx
mov ecx, dword [esi + 0x1334]
cmp eax, dword [ecx + 0x3c]
jae 0x490025
mov dword [esp + 0x14], 1
jmp 0x490037
lea edx, [esp + 0x38]
mov ecx, esi
push edx
push ebp
push edi
call fcn.00493630
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
je 0x4900d7
mov ecx, dword [esi + 0x131c]
mov ebx, dword [esi + 0x17970]
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x10], eax
cdq
idiv ebx
mov ebx, eax
mov eax, dword [esi + 0x1334]
add ebx, ecx
mov edx, dword [eax + 0x38]
cmp ebx, edx
jl 0x49006f
mov ebx, edx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x18], ebx
cmp ebx, eax
mov dword [esp + 0x80], eax
jg 0x490083
mov ebx, eax
mov eax, ebx
mov edx, dword [esp + 0x80]
sub eax, ecx
imul eax, dword [esi + 0x17970]
add eax, ecx
cmp dword [esp + 0x18], edx
jge 0x4900c7
mov eax, dword [esp + 0x10]
mov ebx, dword [esi + 0x1798c]
cdq
idiv ebx
mov dword [esi + 0x179c4], 1
mov ebx, eax
add ebx, ecx
mov eax, ebx
sub eax, ecx
imul eax, dword [esi + 0x1798c]
add eax, ecx
jmp 0x4900d1
mov dword [esi + 0x179c4], 0
sub ebp, eax
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x17970]
mov edx, dword [esi + 0x17974]
xor ebp, ebp
lea ecx, [eax - 1]
cmp eax, ebp
mov dword [esi + 0x1797c], ecx
mov ecx, dword [esi + edx*4 + 0x17358]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebp
jle 0x49027d
mov ecx, dword [esp + 0x38]
lea edx, [esi + 0x17358]
mov dword [esp + 0x80], edx
cmp ebp, dword [esi + 0x17978]
jl 0x490211
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49012f
lea eax, [ecx + ebx]
jmp 0x49014a
mov eax, dword [esp + 0x80]
mov eax, dword [eax]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 5
mov eax, dword [eax + esi + 0x1474]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x490160
inc eax
dec ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [esp + 0x50]
jg 0x490233
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x38]
push ecx
mov eax, dword [edx]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x1464]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17974], ebp
jne 0x4901b1
lea ecx, [esp + 0x38]
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [esp + 0x18], 1
jmp 0x490201
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x4901d0
mov eax, dword [esp + 0x80]
push 1
lea edx, [esp + 0x3c]
mov ecx, dword [eax]
push ecx
push edx
jmp 0x4901f9
cmp ebp, eax
je 0x4901e8
lea ecx, [eax - 1]
cmp ebp, ecx
je 0x4901e8
inc eax
cmp ebp, eax
je 0x4901e8
cmp ebp, dword [esi + 0x1797c]
jne 0x490201
mov edx, dword [esp + 0x80]
push 1
lea ecx, [esp + 0x3c]
mov eax, dword [edx]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00490740
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x131c]
sub ecx, eax
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x80]
mov eax, dword [esi + 0x17970]
inc ebp
add edx, 4
cmp ebp, eax
mov dword [esp + 0x80], edx
jl 0x490116
jmp 0x490261
lea edx, [ebp - 1]
lea eax, [esp + 0x38]
mov dword [esi + 0x1797c], edx
mov ebp, dword [esi + ebp*4 + 0x17358]
push eax
lea ecx, [ebp + ebp*4]
lea edx, [ebp + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x1464]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49027d
mov ecx, dword [esp + 0x1c]
push 1
lea edx, [esp + 0x6c]
push ecx
push edx
push edi
mov ecx, esi
call fcn.00490740
mov eax, dword [esi + 0x1334]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jne 0x49036f
lea ecx, [esi + 0x1278]
call fcn.00457bc0
test eax, eax
je 0x49036f
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 + 0x127c]
xor ebp, ebp
cdq
and edx, 3
mov dword [esi + 0x179a4], ebp
add eax, edx
mov edx, dword [esi + 0x131c]
mov ebx, eax
mov eax, dword [esi + 0x1328]
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 + 0x17980]
cmp eax, 0xffffffff
jne 0x49033b
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 0x49033b
mov eax, dword [esi + 0x179a0]
mov dword [esi + 0x179a4], 1
test eax, eax
lea ebp, [ebx + ebx]
jne 0x49033b
mov ebp, ebx
mov ecx, dword [esi + 0x1280]
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 + 0x1278]
call fcn.004571e0
lea eax, [esp + 0x38]
lea ecx, [esi + 0x12d4]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17b08], 0xffffffff
je 0x4903bd
lea edx, [esp + 0x38]
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x17b08]
mov ecx, dword [esi + 0x1294]
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 + 0x1290]
mov dword [esp + 0x40], eax
call fcn.004571e0
mov eax, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x4903fa
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 0x49046f
mov eax, dword [esi + eax*4 + 0x17358]
mov ebp, dword [esp + 0x7c]
push 0xcc0020
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
mov ecx, dword [edx + esi + 0x1468]
mov ebx, dword [edx + esi + 0x1470]
lea eax, [edx + esi]
push ecx
sub ebx, ecx
mov edx, dword [eax + 0x1464]
mov eax, dword [eax + 0x146c]
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 + 0x12d8]
mov ecx, dword [esi + 0x12d4]
mov edx, dword [esi + 0x12e0]
push 0xcc0020
push eax
push ecx
sub edx, eax
push edi
push edx
mov edx, dword [esi + 0x12dc]
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