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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x78
cmp eax, 0xffffffff
push esi
mov esi, ecx
je 0x4ba0e7
cmp eax, dword [esi + 0x17d70]
jl 0x4ba9f0
cmp eax, dword [esi + 0x17d74]
jg 0x4ba9f0
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 + 0x30], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x30]
mov dword [esp + 0x34], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x58]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [esp + 0x8c]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ebp, eax
mov eax, dword [esp + 0x58]
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 + 0x34], eax
call edi
push 0
lea ecx, [esi + 0x24]
mov dword [esp + 0x2c], eax
call fcn.004c20a0
push eax
push ebp
call edi
push 1
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x13cc]
mov ecx, dword [esi + 0x1728]
or eax, 0x820
mov dword [esi + 0x13b0], eax
mov edx, dword [ecx + 0x50]
test edx, edx
jne 0x4ba1aa
or eax, 0x40000
mov dword [esi + 0x13b0], eax
lea edx, [esp + 0x58]
mov ecx, esi
push edx
push ebp
call fcn.004bc980
mov eax, dword [esi + 0x17d68]
test eax, eax
je 0x4ba8bb
mov eax, dword [esp + 0x90]
mov ebx, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x48]
push eax
push ecx
call ebx
mov eax, dword [esi + 0x1728]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4ba1f7
mov edx, dword [esi + 0x1380]
mov ecx, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4ba20e
mov eax, dword [esi + 0x171c]
mov ecx, dword [esp + 0x48]
add ecx, eax
mov dword [esp + 0x48], ecx
lea ecx, [esi + 0x1668]
call fcn.00475ac0
test eax, eax
je 0x4ba23e
mov eax, dword [esi + 0x166c]
mov ecx, dword [esi + 0x1718]
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.004bdab0
mov eax, dword [esi + 0x1384]
mov edx, dword [esp + 0x50]
sub edx, eax
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x1728]
mov ecx, dword [edx + 0x28]
test ecx, ecx
jne 0x4ba266
add dword [esp + 0x48], eax
mov eax, dword [esi + 0x1388]
mov edi, dword [esp + 0x48]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
add edi, eax
push ecx
push edx
mov dword [esp + 0x50], edi
call ebx
mov eax, dword [esi + 0x1734]
test eax, eax
je 0x4ba29e
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x15f8]
sub eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x4ba2ae
mov ecx, dword [esi + 0x15f8]
mov eax, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x38]
lea edi, [esi + 0x17ef0]
push edx
push edi
call ebx
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x1728]
sub ebx, eax
mov dword [esp + 0x14], 0
mov eax, dword [ecx + 0x44]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4ba323
mov edx, dword [esi + 0x170c]
mov eax, dword [esi + 0x17ef8]
sub eax, edx
mov edx, dword [edi]
sub eax, edx
mov edi, dword [esi + 0x170c]
cdq
idiv dword [esi + 0x17d68]
mov edx, dword [ecx + 0x3c]
add eax, edi
cmp eax, edx
jae 0x4ba311
mov dword [esp + 0x18], 1
jmp 0x4ba323
lea eax, [esp + 0x38]
mov ecx, esi
push eax
push ebx
push ebp
call fcn.004bdfd0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
xor edx, edx
xor edi, edi
cmp eax, edx
mov dword [esi + 0x17f20], edx
mov dword [esi + 0x17f24], edx
je 0x4ba5c9
mov ecx, dword [esi + 0x170c]
mov edi, dword [esi + 0x17d68]
mov ebp, ebx
sub ebp, ecx
mov eax, ebp
cdq
idiv edi
mov edx, dword [esi + 0x1728]
mov edx, dword [edx + 0x38]
add eax, ecx
cmp eax, edx
jl 0x4ba365
mov eax, edx
mov edx, dword [esi + 0x1728]
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x3c]
cmp eax, edx
jg 0x4ba378
mov eax, edx
cmp dword [esp + 0x14], edx
jge 0x4ba395
mov eax, ebp
mov dword [esi + 0x17dbc], 1
cdq
idiv dword [esi + 0x17d84]
add eax, ecx
jmp 0x4ba39f
mov dword [esi + 0x17dbc], 0
mov ebp, dword [esi + 0x17d70]
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 + 0x17f24], ecx
test ebp, ebp
setne al
test eax, eax
mov dword [esi + 0x17f20], eax
je 0x4ba3dc
mov edx, dword [esi + 0x1720]
mov eax, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x4ba3f8
mov eax, dword [esi + 0x1720]
mov edx, dword [esi + 0x1718]
mov ecx, dword [esp + 0x50]
add eax, edx
sub ecx, eax
mov dword [esp + 0x50], ecx
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
push ecx
push edx
call edi
lea eax, [esp + 0x48]
push eax
lea eax, [esi + 0x17ef0]
push eax
call edi
mov eax, dword [esi + 0x17f20]
test eax, eax
je 0x4ba499
mov eax, dword [esi + 0x1720]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esi + 0x170c]
sub ecx, eax
add eax, ebp
mov dword [esp + 0x38], ecx
add eax, ecx
lea ecx, [esp + 0x38]
lea edx, [esi + 0x17f00]
push ecx
push edx
mov dword [esp + 0x48], eax
call edi
mov eax, dword [esi + 0x17d9c]
mov ebx, 1
test eax, eax
jne 0x4ba485
mov eax, dword [esi + 0x17d94]
test eax, eax
jne 0x4ba485
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ba485
mov ebx, 4
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x3c]
push ebx
push eax
push ecx
mov ecx, esi
call fcn.004bb220
mov eax, dword [esi + 0x17f24]
test eax, eax
je 0x4ba51b
mov ecx, dword [esi + 0x1720]
mov edx, dword [esp + 0x50]
mov ebp, dword [esi + 0x170c]
lea eax, [ecx + edx]
mov dword [esp + 0x40], eax
sub eax, ecx
sub eax, ebp
lea ecx, [esi + 0x17f10]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push ecx
call edi
mov eax, dword [esi + 0x17d9c]
mov edi, 1
test eax, eax
jne 0x4ba507
mov eax, dword [esi + 0x17d94]
test eax, eax
jne 0x4ba507
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ba507
mov edi, 4
mov eax, dword [esp + 0x10]
push 1
lea edx, [esp + 0x3c]
push edi
push edx
push eax
mov ecx, esi
call fcn.004bb220
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0x170c]
sub ebx, edi
mov edi, dword [esi + 0x17d68]
mov ebp, ebx
sub ebp, ecx
mov eax, ebp
cdq
idiv edi
mov edi, eax
mov eax, dword [esi + 0x1728]
add edi, ecx
mov edx, dword [eax + 0x38]
cmp edi, edx
jl 0x4ba55d
mov edi, edx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x14], edi
cmp edi, eax
mov dword [esp + 0x1c], eax
jg 0x4ba56e
mov edi, eax
mov eax, edi
mov edx, dword [esp + 0x1c]
sub eax, ecx
imul eax, dword [esi + 0x17d68]
add eax, ecx
cmp dword [esp + 0x14], edx
jge 0x4ba5ad
mov edi, dword [esi + 0x17d84]
mov eax, ebp
cdq
idiv edi
mov dword [esi + 0x17dbc], 1
mov edi, eax
add edi, ecx
mov eax, edi
sub eax, ecx
imul eax, dword [esi + 0x17d84]
add eax, ecx
jmp 0x4ba5b7
mov dword [esi + 0x17dbc], 0
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
sub ebx, eax
xor edx, edx
mov dword [esp + 0x14], ebx
jmp 0x4ba5cd
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x17d68]
mov dword [esp + 0x1c], edx
lea ebx, [eax - 1]
mov dword [esi + 0x17d74], ebx
mov ebx, dword [esi + 0x17d6c]
mov ebx, dword [esi + ebx*4 + 0x17750]
mov dword [esp + 0x20], ebx
xor ebx, ebx
cmp eax, edx
jle 0x4ba758
lea eax, [esi + 0x17750]
mov dword [esp + 0x10], eax
cmp ebx, dword [esi + 0x17d70]
jl 0x4ba6f4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ba61e
lea eax, [ecx + edi]
jmp 0x4ba636
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 + 0x186c]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x4ba64c
inc eax
dec ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x50]
jg 0x4ba710
mov edx, dword [esp + 0x10]
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 + 0x185c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17d6c], ebx
jne 0x4ba69a
lea ecx, [esp + 0x38]
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [esp + 0x1c], 1
jmp 0x4ba6e4
mov eax, dword [esp + 0x94]
cmp eax, 0xffffffff
jne 0x4ba6b6
mov eax, dword [esp + 0x10]
push 1
lea edx, [esp + 0x3c]
mov ecx, dword [eax]
push ecx
push edx
jmp 0x4ba6dc
cmp ebx, eax
je 0x4ba6ce
lea ecx, [eax - 1]
cmp ebx, ecx
je 0x4ba6ce
inc eax
cmp ebx, eax
je 0x4ba6ce
cmp ebx, dword [esi + 0x17d74]
jne 0x4ba6e4
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x3c]
mov eax, dword [edx]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.004bac80
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x170c]
sub ecx, eax
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x17d68]
inc ebx
add edx, 4
cmp ebx, eax
mov dword [esp + 0x10], edx
jl 0x4ba605
jmp 0x4ba73c
lea edx, [ebx - 1]
lea eax, [esp + 0x38]
mov dword [esi + 0x17d74], edx
mov ebx, dword [esi + ebx*4 + 0x17750]
push eax
lea ecx, [ebx + ebx*4]
lea edx, [ebx + ecx*2]
shl edx, 5
lea eax, [edx + esi + 0x185c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ba758
mov ecx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x7c]
push ecx
push edx
push ebp
mov ecx, esi
call fcn.004bac80
lea ecx, [esi + 0x1668]
call fcn.00475ac0
test eax, eax
je 0x4ba864
mov eax, dword [esi + 0x166c]
mov ecx, dword [esi + 0x1384]
cdq
and edx, 3
xor ebx, ebx
add eax, edx
mov edx, dword [esi + 0x1728]
mov edi, eax
mov eax, dword [esp + 0x90]
sar edi, 2
mov eax, dword [eax + 8]
sub eax, ecx
cmp dword [edx + 0x24], ebx
je 0x4ba7a1
sub eax, dword [esi + 0x1380]
mov edx, dword [esi + 0x17f24]
test edx, edx
je 0x4ba7b7
mov dword [esp + 0x40], eax
sub eax, edi
mov dword [esp + 0x38], eax
jmp 0x4ba7e9
mov edx, dword [esi + 0x170c]
sub edx, dword [esi + 0x1718]
add edx, ecx
mov ecx, dword [esp + 0x38]
add ecx, edx
mov dword [esp + 0x38], ecx
add ecx, edi
cmp ecx, eax
mov dword [esp + 0x40], ecx
jle 0x4ba7e9
sub eax, ecx
push 0
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x17d78]
mov dword [esi + 0x17d9c], 0
cmp eax, 0xffffffff
jne 0x4ba830
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ba830
mov eax, dword [esi + 0x17d98]
mov dword [esi + 0x17d9c], 1
test eax, eax
lea ebx, [edi + edi]
jne 0x4ba830
mov ebx, edi
mov ecx, dword [esi + 0x1670]
push 0
push 0
push ecx
push edi
push 0
push ebx
lea edx, [esp + 0x50]
push 0
push edx
push ebp
lea ecx, [esi + 0x1668]
call fcn.00475110
lea eax, [esp + 0x38]
lea ecx, [esi + 0x16c4]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [esi + 0x17f28], 0xffffffff
je 0x4ba8bb
lea edx, [esp + 0x38]
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x17f28]
mov ecx, dword [esi + 0x1684]
push 0
push 0
push 0
push 0
push 0
add ecx, eax
push 0
lea edx, [esp + 0x80]
push 0
mov dword [esp + 0x8c], ecx
push edx
push ebp
lea ecx, [esi + 0x1680]
mov dword [esp + 0x8c], eax
call fcn.00475110
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x4ba991
mov eax, dword [esp + 0x94]
cmp eax, 0xffffffff
jne 0x4ba90d
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x58]
push 0xcc0020
push 0
push 0
sub eax, edx
mov edx, dword [esp + 0x98]
push ebp
sub ecx, ebx
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4ba991
mov eax, dword [esi + eax*4 + 0x17750]
push 0xcc0020
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
mov ecx, dword [edx + esi + 0x1860]
mov edi, dword [edx + esi + 0x1868]
lea eax, [edx + esi]
push ecx
sub edi, ecx
mov edx, dword [eax + 0x185c]
mov eax, dword [eax + 0x1864]
push edx
push ebp
sub eax, edx
push edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
push eax
push ecx
mov ecx, dword [esp + 0xa8]
push edx
push ecx
call edi
mov eax, dword [esi + 0x16cc]
cmp eax, 0xffffffff
je 0x4ba991
mov ecx, dword [esi + 0x16c8]
mov edx, dword [esi + 0x16c4]
mov ebx, dword [esi + 0x16d0]
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 + 0xac]
push edx
call edi
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebp
call edi
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call edi
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x17d68]
mov edx, dword [esi + 0x17d74]
dec eax
xor ecx, ecx
cmp edx, eax
mov eax, dword [esi + 0x17d70]
setne cl
xor edx, edx
mov dword [esi + 0x17f24], ecx
test eax, eax
setne dl
mov ecx, esi
mov dword [esi + 0x17f20], edx
call fcn.004bf4f0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x78
ret 0x10