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

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x68]
push ebp
movzx ebp, ax
shr eax, 0x10
cmp ebp, 0x7530
push esi
mov esi, eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
jle 0x480d1d
mov dword [esp + 8], 0xffffffff
mov ebp, dword [esp + 8]
cmp esi, 0x7530
jle 0x480d31
mov dword [esp + 0xc], 0xffffffff
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x6a0f40]
push 2
lea edx, [esp + 0x14]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push esi
push ebp
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x480e2a
mov eax, dword [0x6a0f40]
push ebx
push edi
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
sub ecx, ebx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
sub esi, dword [esp + 0x1c]
mov edi, edx
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
add ecx, ecx
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], edx
lea ecx, [esi + esi]
mov eax, 0x55555556
imul ecx
mov eax, edx
push 2
shr eax, 0x1f
add edx, eax
push 5
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], edi
mov edi, dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], ebx
call edi
mov esi, eax
test esi, esi
je 0x480e36
mov edx, dword [esp + 0x14]
push edx
push ebp
push esi
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
push esi
je 0x480e30
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x60
ret
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x38], eax
mov eax, esi
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
push 2
mov dword [esp + 0x40], eax
push 4
lea eax, [esp + 0x30]
or ebp, 0xffffffff
push eax
mov dword [esp + 0x84], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
call edi
mov esi, eax
test esi, esi
je 0x480ec6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
je 0x480eb6
mov dword [esp + 0x78], 0
mov ebp, dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp ebp, 0xffffffff
jne 0x48104b
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push 2
mov dword [esp + 0x40], eax
push 4
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
call edi
mov esi, eax
test esi, esi
je 0x480f4a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
je 0x480f3a
mov dword [esp + 0x78], 1
mov ebp, dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp ebp, 0xffffffff
jne 0x48104b
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x38], eax
mov eax, ebx
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
push 2
mov dword [esp + 0x40], eax
push 4
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
call edi
mov esi, eax
test esi, esi
je 0x480fcc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
je 0x480fc0
mov dword [esp + 0x78], 2
mov ebp, dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp ebp, 0xffffffff
jne 0x48104b
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov eax, ecx
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
add eax, ebp
mov dword [esp + 0x38], eax
mov eax, ebx
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
push 2
mov dword [esp + 0x40], eax
push 4
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
call edi
mov esi, eax
test esi, esi
je 0x481047
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
je 0x481040
mov dword [esp + 0x78], 3
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x78]
mov edx, dword [0x694c7c]
mov ecx, dword [esp + 0x74]
mov edi, dword [0x698920]
mov esi, dword [0x696a88]
or eax, 0xffffffff
cmp ecx, edx
jne 0x48106f
mov eax, dword [0x61aa08]
jmp 0x481083
cmp ecx, esi
jne 0x48107a
mov eax, dword [0x61ab54]
jmp 0x481083
cmp ecx, edi
jne 0x481083
mov eax, dword [0x61af44]
cmp ebp, eax
je 0x480e28
cmp ebp, 0xffffffff
je 0x480e28
cmp ecx, edx
jne 0x4810aa
pop edi
pop ebx
pop esi
mov dword [0x61aa08], ebp
pop ebp
add esp, 0x60
jmp fcn.004fee80
cmp ecx, esi
jne 0x4810c0
pop edi
pop ebx
pop esi
mov dword [0x61ab54], ebp
pop ebp
add esp, 0x60
jmp fcn.004fee80
cmp ecx, edi
jne 0x4810ca
mov dword [0x61af44], ebp
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x60
jmp fcn.004fee80