Function at 0x4c39b0
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 0x4c39d7
cmp eax, dword [esi + 0x17bbc]
jl 0x4c4322
cmp eax, dword [esi + 0x17bc0]
jg 0x4c4322
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.004cbb90
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 + 0x12cc]
mov ecx, dword [esi + 0x1574]
or eax, 0x820
mov dword [esi + 0x12b0], eax
mov edx, dword [ecx + 0x50]
test edx, edx
jne 0x4c3a9a
or eax, 0x40000
mov dword [esi + 0x12b0], eax
lea edx, [esp + 0x64]
mov ecx, esi
push edx
push ebp
call fcn.004c63b0
mov eax, dword [esi + 0x17bb4]
test eax, eax
je 0x4c41eb
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 + 0x1574]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4c3ae7
mov edx, dword [esi + 0x1280]
mov ecx, dword [esp + 0x5c]
sub ecx, edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4c3afe
mov eax, dword [esi + 0x1568]
mov ecx, dword [esp + 0x54]
add ecx, eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x14f0]
test ecx, ecx
je 0x4c3b39
call fcn.0047c420
test eax, eax
je 0x4c3b39
mov ecx, dword [esi + 0x14f0]
call fcn.0047c440
mov eax, dword [eax]
mov ecx, dword [esi + 0x1564]
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.004c7500
mov eax, dword [esi + 0x1284]
mov edx, dword [esp + 0x5c]
sub edx, eax
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x1574]
mov ecx, dword [edx + 0x28]
test ecx, ecx
jne 0x4c3b61
add dword [esp + 0x54], eax
mov eax, dword [esi + 0x1288]
mov ecx, dword [esp + 0x54]
add ecx, eax
xor edi, edi
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x14dc]
test ecx, ecx
je 0x4c3b85
call fcn.0047c440
mov edi, dword [eax + 4]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x44]
push ecx
push edx
call ebx
mov eax, dword [esi + 0x1580]
test eax, eax
je 0x4c3ba7
mov eax, dword [esp + 0x50]
sub eax, edi
mov dword [esp + 0x48], eax
jmp 0x4c3bb1
mov ecx, dword [esp + 0x48]
add ecx, edi
mov dword [esp + 0x50], ecx
lea edx, [esp + 0x44]
lea edi, [esi + 0x17d3c]
push edx
push edi
call ebx
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 0x1574]
sub ebx, eax
mov dword [esp + 0x14], 0
mov eax, dword [ecx + 0x44]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4c3c26
mov edx, dword [esi + 0x1558]
mov eax, dword [esi + 0x17d44]
sub eax, edx
mov edx, dword [edi]
sub eax, edx
mov edi, dword [esi + 0x1558]
cdq
idiv dword [esi + 0x17bb4]
mov edx, dword [ecx + 0x3c]
add eax, edi
cmp eax, edx
jae 0x4c3c14
mov dword [esp + 0x18], 1
jmp 0x4c3c26
lea eax, [esp + 0x44]
mov ecx, esi
push eax
push ebx
push ebp
call fcn.004c7a20
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
mov dword [esi + 0x17d6c], edi
mov dword [esi + 0x17d70], edi
je 0x4c3ed7
mov edi, dword [esi + 0x1558]
mov ecx, dword [esi + 0x17bb4]
mov ebp, ebx
sub ebp, edi
mov eax, ebp
cdq
idiv ecx
mov edx, dword [esi + 0x1574]
mov edx, dword [edx + 0x38]
add eax, edi
cmp eax, edx
jl 0x4c3c66
mov eax, edx
mov edx, dword [esi + 0x1574]
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x3c]
cmp eax, edx
jg 0x4c3c79
mov eax, edx
cmp dword [esp + 0x14], edx
jge 0x4c3c96
mov eax, ebp
mov dword [esi + 0x17c08], 1
cdq
idiv dword [esi + 0x17bd0]
add eax, edi
jmp 0x4c3ca0
mov dword [esi + 0x17c08], 0
mov ebp, dword [esi + 0x17bbc]
sub eax, edi
sub ecx, ebp
xor edx, edx
imul ecx, eax
add ecx, edi
cmp ebx, ecx
setl dl
xor eax, eax
mov ecx, edx
test ebp, ebp
setne al
test eax, eax
mov dword [esi + 0x17d70], ecx
mov dword [esi + 0x17d6c], eax
je 0x4c3cdf
mov eax, dword [esi + 0x156c]
mov edx, dword [esp + 0x54]
add edx, eax
mov dword [esp + 0x54], edx
test ecx, ecx
je 0x4c3cfb
mov ecx, dword [esi + 0x156c]
mov edx, dword [esi + 0x1564]
mov eax, dword [esp + 0x5c]
add ecx, edx
sub eax, ecx
mov dword [esp + 0x5c], eax
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea edx, [esp + 0x54]
lea eax, [esp + 0x44]
push edx
push eax
call edi
lea ecx, [esp + 0x54]
lea eax, [esi + 0x17d3c]
push ecx
push eax
call edi
mov eax, dword [esi + 0x17d6c]
test eax, eax
je 0x4c3d9c
mov eax, dword [esi + 0x156c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esi + 0x1558]
sub ecx, eax
add eax, edx
lea edx, [esp + 0x44]
add eax, ecx
push edx
mov dword [esp + 0x50], eax
lea eax, [esi + 0x17d4c]
push eax
mov dword [esp + 0x4c], ecx
call edi
mov eax, dword [esi + 0x17be8]
mov ebx, 1
test eax, eax
jne 0x4c3d88
mov eax, dword [esi + 0x17be0]
test eax, eax
jne 0x4c3d88
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 0x4c3d88
mov ebx, 4
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x48]
push ebx
push ecx
push edx
mov ecx, esi
call fcn.004c4c10
mov eax, dword [esi + 0x17d70]
test eax, eax
je 0x4c3e1d
mov ecx, dword [esi + 0x156c]
mov eax, dword [esp + 0x5c]
mov ebx, dword [esi + 0x1558]
add eax, ecx
mov dword [esp + 0x4c], eax
sub eax, ecx
lea ecx, [esp + 0x44]
lea edx, [esi + 0x17d5c]
sub eax, ebx
push ecx
push edx
mov dword [esp + 0x4c], eax
call edi
mov eax, dword [esi + 0x17be8]
mov edi, 1
test eax, eax
jne 0x4c3e09
mov eax, dword [esi + 0x17be0]
test eax, eax
jne 0x4c3e09
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 0x4c3e09
mov edi, 4
mov ecx, dword [esp + 0x10]
push 1
lea eax, [esp + 0x48]
push edi
push eax
push ecx
mov ecx, esi
call fcn.004c4c10
lea edx, [esp + 0x54]
lea eax, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ecx, dword [esi + 0x1558]
sub ebx, edi
mov edi, dword [esi + 0x17bb4]
mov ebp, ebx
sub ebp, ecx
mov eax, ebp
cdq
idiv edi
mov edi, eax
mov eax, dword [esi + 0x1574]
add edi, ecx
mov edx, dword [eax + 0x38]
cmp edi, edx
jl 0x4c3e5f
mov edi, edx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x14], edi
cmp edi, eax
mov dword [esp + 0x1c], eax
jg 0x4c3e70
mov edi, eax
mov eax, edi
mov edx, dword [esp + 0x1c]
sub eax, ecx
imul eax, dword [esi + 0x17bb4]
add eax, ecx
cmp dword [esp + 0x14], edx
jge 0x4c3ebd
mov edi, dword [esi + 0x17bd0]
mov eax, ebp
cdq
idiv edi
mov ebp, dword [esp + 0x10]
mov dword [esi + 0x17c08], 1
mov edi, eax
add edi, ecx
mov eax, edi
sub eax, ecx
imul eax, dword [esi + 0x17bd0]
add eax, ecx
mov ecx, dword [esp + 0x44]
sub ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x4c3edb
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x10]
sub ebx, eax
mov dword [esi + 0x17c08], 0
mov dword [esp + 0x14], ebx
jmp 0x4c3edb
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x17bb4]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
lea edx, [eax - 1]
mov dword [esi + 0x17bc0], edx
mov edx, dword [esi + 0x17bb8]
mov edx, dword [esi + edx*4 + 0x1759c]
mov dword [esp + 0x20], edx
jle 0x4c4066
lea eax, [esi + 0x1759c]
mov dword [esp + 0x10], eax
cmp ebx, dword [esi + 0x17bbc]
jl 0x4c4002
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c3f2c
lea eax, [ecx + edi]
jmp 0x4c3f44
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 + 0x16b8]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
test ecx, ecx
jle 0x4c3f5a
inc eax
dec ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x5c]
jg 0x4c401e
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 + 0x16a8]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17bb8], ebx
jne 0x4c3fa8
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 0x4c3ff2
mov eax, dword [esp + 0x90]
cmp eax, 0xffffffff
jne 0x4c3fc4
mov eax, dword [esp + 0x10]
push 1
lea edx, [esp + 0x48]
mov ecx, dword [eax]
push ecx
push edx
jmp 0x4c3fea
cmp ebx, eax
je 0x4c3fdc
lea ecx, [eax - 1]
cmp ebx, ecx
je 0x4c3fdc
inc eax
cmp ebx, eax
je 0x4c3fdc
cmp ebx, dword [esi + 0x17bc0]
jne 0x4c3ff2
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.004c4610
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x1558]
sub ecx, eax
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x17bb4]
inc ebx
add edx, 4
cmp ebx, eax
mov dword [esp + 0x10], edx
jl 0x4c3f13
jmp 0x4c404a
lea edx, [ebx - 1]
lea eax, [esp + 0x44]
mov dword [esi + 0x17bc0], edx
mov ebx, dword [esi + ebx*4 + 0x1759c]
push eax
lea ecx, [ebx + ebx*4]
lea edx, [ebx + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x16a8]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c4066
mov ecx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x78]
push ecx
push edx
push ebp
mov ecx, esi
call fcn.004c4610
mov ecx, dword [esi + 0x14f0]
test ecx, ecx
je 0x4c4188
call fcn.0047c420
test eax, eax
je 0x4c4188
mov ecx, dword [esi + 0x14f0]
xor ebx, ebx
call fcn.0047c440
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x1284]
mov dword [esp + 0x24], edx
cdq
and edx, 3
add eax, edx
mov edx, dword [esi + 0x1574]
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 0x4c40c7
sub eax, dword [esi + 0x1280]
mov edx, dword [esi + 0x17d70]
test edx, edx
je 0x4c40dd
mov dword [esp + 0x4c], eax
sub eax, edi
mov dword [esp + 0x44], eax
jmp 0x4c410f
mov edx, dword [esi + 0x1558]
sub edx, dword [esi + 0x1564]
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 0x4c410f
sub eax, ecx
push 0
push eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x17bc4]
mov dword [esi + 0x17be8], 0
cmp eax, 0xffffffff
jne 0x4c4156
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 0x4c4156
mov eax, dword [esi + 0x17be4]
mov dword [esi + 0x17be8], 1
test eax, eax
lea ebx, [edi + edi]
jne 0x4c4156
mov ebx, edi
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x14f0]
push edi
push 0
push ebx
lea edx, [esp + 0x5c]
push 0
push edx
push ebp
call fcn.0047ba10
lea eax, [esp + 0x44]
lea ecx, [esi + 0x1510]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x14f4]
test eax, eax
je 0x4c41eb
cmp dword [esi + 0x17d74], 0xffffffff
je 0x4c41eb
lea edx, [esp + 0x44]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esi + 0x17d74]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x14f4]
call fcn.0047c440
mov edx, dword [eax]
mov ebx, dword [esp + 0x20]
push 0
mov ecx, dword [esi + 0x14f4]
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.0047ba10
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x4c42c3
cmp dword [esp + 0x90], 0xffffffff
jne 0x4c423b
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 0x4c42c3
mov ecx, dword [esp + 0x90]
push 0xcc0020
mov eax, dword [esi + ecx*4 + 0x1759c]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 5
add eax, esi
mov ecx, dword [eax + 0x16ac]
mov edx, dword [eax + 0x16a8]
mov edi, dword [eax + 0x16b4]
mov eax, dword [eax + 0x16b0]
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 + 0x1518]
cmp eax, 0xffffffff
je 0x4c42c3
mov ecx, dword [esi + 0x1514]
mov edx, dword [esi + 0x1510]
mov ebx, dword [esi + 0x151c]
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 + 0x17bb4]
mov edx, dword [esi + 0x17bc0]
dec eax
xor ecx, ecx
cmp edx, eax
mov eax, dword [esi + 0x17bbc]
setne cl
xor edx, edx
mov dword [esi + 0x17d70], ecx
test eax, eax
setne dl
mov ecx, esi
mov dword [esi + 0x17d6c], edx
call fcn.004c8f60
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x74
ret 0x10