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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x74
cmp eax, 0xffffffff
push esi
mov esi, ecx
je 0x4c49d7
cmp eax, dword [esi + 0x18c24]
jl 0x4c5321
cmp eax, dword [esi + 0x18c28]
jg 0x4c5321
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x8c]
lea eax, [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [esp + 0x88]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov ebp, eax
mov eax, dword [esp + 0x64]
sub ecx, ebx
sub edx, eax
push ecx
push edx
push edi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
mov dword [esp + 0x40], eax
call edi
push 0
lea ecx, [esi + 0x24]
mov dword [esp + 0x38], eax
call fcn.004ccc60
push eax
push ebp
call edi
push 1
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x2334]
mov ecx, dword [esi + 0x25dc]
or eax, 0x820
mov dword [esi + 0x2318], eax
mov edx, dword [ecx + 0x50]
test edx, edx
jne 0x4c4a9a
or eax, 0x40000
mov dword [esi + 0x2318], eax
lea edx, [esp + 0x64]
mov ecx, esi
push edx
push ebp
call fcn.004c73b0
mov eax, dword [esi + 0x18c1c]
test eax, eax
je 0x4c51ea
mov eax, dword [esp + 0x8c]
mov ebx, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x54]
push eax
push ecx
call ebx
mov eax, dword [esi + 0x25dc]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4c4ae7
mov edx, dword [esi + 0x22e8]
mov ecx, dword [esp + 0x5c]
sub ecx, edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4c4afe
mov eax, dword [esi + 0x25d0]
mov ecx, dword [esp + 0x54]
add ecx, eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x2558]
test ecx, ecx
je 0x4c4b39
call fcn.0047e2b0
test eax, eax
je 0x4c4b39
mov ecx, dword [esi + 0x2558]
call fcn.0047e2d0
mov eax, dword [eax]
mov ecx, dword [esi + 0x25cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
mov eax, dword [esp + 0x5c]
add eax, ecx
mov dword [esp + 0x5c], eax
mov ecx, esi
call fcn.004c8500
mov eax, dword [esi + 0x22ec]
mov edx, dword [esp + 0x5c]
sub edx, eax
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x25dc]
mov ecx, dword [edx + 0x28]
test ecx, ecx
jne 0x4c4b61
add dword [esp + 0x54], eax
mov eax, dword [esi + 0x22f0]
mov ecx, dword [esp + 0x54]
add ecx, eax
xor edi, edi
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x2544]
test ecx, ecx
je 0x4c4b85
call fcn.0047e2d0
mov edi, dword [eax + 4]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x44]
push ecx
push edx
call ebx
mov eax, dword [esi + 0x25e8]
test eax, eax
je 0x4c4ba7
mov eax, dword [esp + 0x50]
sub eax, edi
mov dword [esp + 0x48], eax
jmp 0x4c4bb1
mov ecx, dword [esp + 0x48]
add ecx, edi
mov dword [esp + 0x50], ecx
lea edx, [esp + 0x44]
lea edi, [esi + 0x18da4]
push edx
push edi
call ebx
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 0x25dc]
sub ebx, eax
mov dword [esp + 0x14], 0
mov eax, dword [ecx + 0x44]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4c4c26
mov edx, dword [esi + 0x25c0]
mov eax, dword [esi + 0x18dac]
sub eax, edx
mov edx, dword [edi]
sub eax, edx
mov edi, dword [esi + 0x25c0]
cdq
idiv dword [esi + 0x18c1c]
mov edx, dword [ecx + 0x3c]
add eax, edi
cmp eax, edx
jae 0x4c4c14
mov dword [esp + 0x18], 1
jmp 0x4c4c26
lea eax, [esp + 0x44]
mov ecx, esi
push eax
push ebx
push ebp
call fcn.004c8a20
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
mov dword [esi + 0x18dd4], edi
mov dword [esi + 0x18dd8], edi
je 0x4c4ed6
mov ecx, dword [esi + 0x25c0]
mov edi, dword [esi + 0x18c1c]
mov ebp, ebx
sub ebp, ecx
mov eax, ebp
cdq
idiv edi
mov edx, dword [esi + 0x25dc]
mov edx, dword [edx + 0x38]
add eax, ecx
cmp eax, edx
jl 0x4c4c66
mov eax, edx
mov edx, dword [esi + 0x25dc]
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x3c]
cmp eax, edx
jg 0x4c4c79
mov eax, edx
cmp dword [esp + 0x14], edx
jge 0x4c4c96
mov eax, ebp
mov dword [esi + 0x18c70], 1
cdq
idiv dword [esi + 0x18c38]
add eax, ecx
jmp 0x4c4ca0
mov dword [esi + 0x18c70], 0
mov ebp, dword [esi + 0x18c24]
sub eax, ecx
sub edi, ebp
imul eax, edi
add eax, ecx
xor ecx, ecx
cmp ebx, eax
setl cl
xor eax, eax
mov dword [esi + 0x18dd8], ecx
test ebp, ebp
setne al
test eax, eax
mov dword [esi + 0x18dd4], eax
je 0x4c4cdd
mov edx, dword [esi + 0x25d4]
mov eax, dword [esp + 0x54]
add eax, edx
mov dword [esp + 0x54], eax
test ecx, ecx
je 0x4c4cf9
mov eax, dword [esi + 0x25d4]
mov edx, dword [esi + 0x25cc]
mov ecx, dword [esp + 0x5c]
add eax, edx
sub ecx, eax
mov dword [esp + 0x5c], ecx
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x44]
push ecx
push edx
call edi
lea eax, [esp + 0x54]
push eax
lea eax, [esi + 0x18da4]
push eax
call edi
mov eax, dword [esi + 0x18dd4]
test eax, eax
je 0x4c4d9a
mov eax, dword [esi + 0x25d4]
mov ecx, dword [esp + 0x54]
mov ebp, dword [esi + 0x25c0]
sub ecx, eax
add eax, ebp
mov dword [esp + 0x44], ecx
add eax, ecx
lea ecx, [esp + 0x44]
lea edx, [esi + 0x18db4]
push ecx
push edx
mov dword [esp + 0x54], eax
call edi
mov eax, dword [esi + 0x18c50]
mov ebx, 1
test eax, eax
jne 0x4c4d86
mov eax, dword [esi + 0x18c48]
test eax, eax
jne 0x4c4d86
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4c4d86
mov ebx, 4
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x48]
push ebx
push eax
push ecx
mov ecx, esi
call fcn.004c5c10
mov eax, dword [esi + 0x18dd8]
test eax, eax
je 0x4c4e1c
mov ecx, dword [esi + 0x25d4]
mov edx, dword [esp + 0x5c]
mov ebp, dword [esi + 0x25c0]
lea eax, [ecx + edx]
mov dword [esp + 0x4c], eax
sub eax, ecx
sub eax, ebp
lea ecx, [esi + 0x18dc4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
push ecx
call edi
mov eax, dword [esi + 0x18c50]
mov edi, 1
test eax, eax
jne 0x4c4e08
mov eax, dword [esi + 0x18c48]
test eax, eax
jne 0x4c4e08
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4c4e08
mov edi, 4
mov eax, dword [esp + 0x10]
push 1
lea edx, [esp + 0x48]
push edi
push edx
push eax
mov ecx, esi
call fcn.004c5c10
lea ecx, [esp + 0x54]
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ecx, dword [esi + 0x25c0]
sub ebx, edi
mov edi, dword [esi + 0x18c1c]
mov ebp, ebx
sub ebp, ecx
mov eax, ebp
cdq
idiv edi
mov edi, eax
mov eax, dword [esi + 0x25dc]
add edi, ecx
mov edx, dword [eax + 0x38]
cmp edi, edx
jl 0x4c4e5e
mov edi, edx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x14], edi
cmp edi, eax
mov dword [esp + 0x1c], eax
jg 0x4c4e6f
mov edi, eax
mov eax, edi
mov edx, dword [esp + 0x1c]
sub eax, ecx
imul eax, dword [esi + 0x18c1c]
add eax, ecx
cmp dword [esp + 0x14], edx
jge 0x4c4ebc
mov edi, dword [esi + 0x18c38]
mov eax, ebp
cdq
idiv edi
mov ebp, dword [esp + 0x10]
mov dword [esi + 0x18c70], 1
mov edi, eax
add edi, ecx
mov eax, edi
sub eax, ecx
imul eax, dword [esi + 0x18c38]
add eax, ecx
mov ecx, dword [esp + 0x44]
sub ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x4c4eda
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x10]
sub ebx, eax
mov dword [esi + 0x18c70], 0
mov dword [esp + 0x14], ebx
jmp 0x4c4eda
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x18c1c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
lea edx, [eax - 1]
mov dword [esi + 0x18c28], edx
mov edx, dword [esi + 0x18c20]
mov edx, dword [esi + edx*4 + 0x18604]
mov dword [esp + 0x20], edx
jle 0x4c5065
lea eax, [esi + 0x18604]
mov dword [esp + 0x10], eax
cmp ebx, dword [esi + 0x18c24]
jl 0x4c5001
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c4f2b
lea eax, [ecx + edi]
jmp 0x4c4f43
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 5
mov eax, dword [eax + esi + 0x2720]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
test ecx, ecx
jle 0x4c4f59
inc eax
dec ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x5c]
jg 0x4c501d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
mov eax, dword [edx]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x2710]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x18c20], ebx
jne 0x4c4fa7
lea ecx, [esp + 0x44]
lea edx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [esp + 0x1c], 1
jmp 0x4c4ff1
mov eax, dword [esp + 0x90]
cmp eax, 0xffffffff
jne 0x4c4fc3
mov eax, dword [esp + 0x10]
push 1
lea edx, [esp + 0x48]
mov ecx, dword [eax]
push ecx
push edx
jmp 0x4c4fe9
cmp ebx, eax
je 0x4c4fdb
lea ecx, [eax - 1]
cmp ebx, ecx
je 0x4c4fdb
inc eax
cmp ebx, eax
je 0x4c4fdb
cmp ebx, dword [esi + 0x18c28]
jne 0x4c4ff1
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x48]
mov eax, dword [edx]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.004c5610
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x25c0]
sub ecx, eax
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x18c1c]
inc ebx
add edx, 4
cmp ebx, eax
mov dword [esp + 0x10], edx
jl 0x4c4f12
jmp 0x4c5049
lea edx, [ebx - 1]
lea eax, [esp + 0x44]
mov dword [esi + 0x18c28], edx
mov ebx, dword [esi + ebx*4 + 0x18604]
push eax
lea ecx, [ebx + ebx*4]
lea edx, [ebx + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x2710]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c5065
mov ecx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x78]
push ecx
push edx
push ebp
mov ecx, esi
call fcn.004c5610
mov ecx, dword [esi + 0x2558]
test ecx, ecx
je 0x4c5187
call fcn.0047e2b0
test eax, eax
je 0x4c5187
mov ecx, dword [esi + 0x2558]
xor ebx, ebx
call fcn.0047e2d0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x22ec]
mov dword [esp + 0x24], edx
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x25dc]
mov edi, eax
mov eax, dword [esp + 0x8c]
sar edi, 2
mov eax, dword [eax + 8]
sub eax, ecx
cmp dword [edx + 0x24], ebx
je 0x4c50c6
sub eax, dword [esi + 0x22e8]
mov edx, dword [esi + 0x18dd8]
test edx, edx
je 0x4c50dc
mov dword [esp + 0x4c], eax
sub eax, edi
mov dword [esp + 0x44], eax
jmp 0x4c510e
mov edx, dword [esi + 0x25c0]
sub edx, dword [esi + 0x25cc]
add edx, ecx
mov ecx, dword [esp + 0x44]
add ecx, edx
mov dword [esp + 0x44], ecx
add ecx, edi
cmp ecx, eax
mov dword [esp + 0x4c], ecx
jle 0x4c510e
sub eax, ecx
push 0
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x18c2c]
mov dword [esi + 0x18c50], 0
cmp eax, 0xffffffff
jne 0x4c5155
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4c5155
mov eax, dword [esi + 0x18c4c]
mov dword [esi + 0x18c50], 1
test eax, eax
lea ebx, [edi + edi]
jne 0x4c5155
mov ebx, edi
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x2558]
push edi
push 0
push ebx
lea edx, [esp + 0x5c]
push 0
push edx
push ebp
call fcn.0047d8a0
lea eax, [esp + 0x44]
lea ecx, [esi + 0x2578]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x255c]
test eax, eax
je 0x4c51ea
cmp dword [esi + 0x18ddc], 0xffffffff
je 0x4c51ea
lea edx, [esp + 0x44]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esi + 0x18ddc]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x255c]
call fcn.0047e2d0
mov edx, dword [eax]
mov ebx, dword [esp + 0x20]
push 0
mov ecx, dword [esi + 0x255c]
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push 0
add edx, ebx
push eax
push ebp
mov dword [esp + 0x4c], edx
call fcn.0047d8a0
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x4c52c2
cmp dword [esp + 0x90], 0xffffffff
jne 0x4c523a
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
push 0xcc0020
push 0
push 0
sub ecx, edi
push ebp
sub edx, eax
mov eax, dword [esp + 0x98]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4c52c2
mov ecx, dword [esp + 0x90]
push 0xcc0020
mov eax, dword [esi + ecx*4 + 0x18604]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 5
add eax, esi
mov ecx, dword [eax + 0x2714]
mov edx, dword [eax + 0x2710]
mov edi, dword [eax + 0x271c]
mov eax, dword [eax + 0x2718]
push ecx
push edx
sub edi, ecx
push ebp
sub eax, edx
push edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
push eax
push ecx
mov ecx, dword [esp + 0xa4]
push edx
push ecx
call edi
mov eax, dword [esi + 0x2580]
cmp eax, 0xffffffff
je 0x4c52c2
mov ecx, dword [esi + 0x257c]
mov edx, dword [esi + 0x2578]
mov ebx, dword [esi + 0x2584]
push 0xcc0020
push ecx
push edx
sub ebx, ecx
push ebp
sub eax, edx
push ebx
push eax
push ecx
push edx
mov edx, dword [esp + 0xa8]
push edx
call edi
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call edi
mov ecx, dword [esp + 0x34]
push ecx
push ebp
call edi
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x18c1c]
mov edx, dword [esi + 0x18c28]
dec eax
xor ecx, ecx
cmp edx, eax
mov eax, dword [esi + 0x18c24]
setne cl
xor edx, edx
mov dword [esi + 0x18dd8], ecx
test eax, eax
setne dl
mov ecx, esi
mov dword [esi + 0x18dd4], edx
call fcn.004c9f60
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x74
ret 0x10