Function at 0x47f930
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 0x47f95d
mov dword [esp + 8], 0xffffffff
mov ebp, dword [esp + 8]
cmp esi, 0x7530
jle 0x47f971
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 [0x645324]
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 0x47fa6a
mov eax, dword [0x645324]
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 0x47fa76
mov edx, dword [esp + 0x14]
push edx
push ebp
push esi
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
push esi
je 0x47fa70
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 0x47fb06
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 0x47faf6
mov dword [esp + 0x78], 0
mov ebp, dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp ebp, 0xffffffff
jne 0x47fc8b
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 0x47fb8a
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 0x47fb7a
mov dword [esp + 0x78], 1
mov ebp, dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp ebp, 0xffffffff
jne 0x47fc8b
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 0x47fc0c
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 0x47fc00
mov dword [esp + 0x78], 2
mov ebp, dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp ebp, 0xffffffff
jne 0x47fc8b
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 0x47fc87
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 0x47fc80
mov dword [esp + 0x78], 3
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x78]
mov edx, dword [0x64354c]
mov ecx, dword [esp + 0x74]
mov edi, dword [0x644760]
mov esi, dword [0x643ed8]
or eax, 0xffffffff
cmp ecx, edx
jne 0x47fcaf
mov eax, dword [0x60a118]
jmp 0x47fcc3
cmp ecx, esi
jne 0x47fcba
mov eax, dword [0x60a1f4]
jmp 0x47fcc3
cmp ecx, edi
jne 0x47fcc3
mov eax, dword [0x60a274]
cmp ebp, eax
je 0x47fa68
cmp ebp, 0xffffffff
je 0x47fa68
cmp ecx, edx
jne 0x47fcea
pop edi
pop ebx
pop esi
mov dword [0x60a118], ebp
pop ebp
add esp, 0x60
jmp fcn.004f9370
cmp ecx, esi
jne 0x47fd00
pop edi
pop ebx
pop esi
mov dword [0x60a1f4], ebp
pop ebp
add esp, 0x60
jmp fcn.004f9370
cmp ecx, edi
jne 0x47fd0a
mov dword [0x60a274], ebp
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x60
jmp fcn.004f9370