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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54a4de
push eax
mov dword fs:[0], esp
sub esp, 0x9c
lea eax, [esp + 0x10]
push ebx
push esi
push edi
mov esi, ecx
push eax
call fcn.004f9140
mov eax, dword [esp + 0xb8]
xor edi, edi
cmp eax, edi
je 0x4f5918
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
lea ecx, [esp + 0xc]
call fcn.0042e6b0
mov dword [esp + 0xc], 0x55406c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov dword [esp + 0xc0], edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x10]
call fcn.00522935
mov ecx, dword [esi + 0x90]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push 0x22
mov ecx, dword [ecx + 0x1c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDCEx]
push eax
call fcn.00521e97
mov ebx, eax
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.005223b6
lea ecx, [esp + 0x5c]
call fcn.004f7f00
mov dword [esp + 0x5c], 0x553acc
mov dword [esp + 0xa4], 0xff
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov eax, dword [esi + 0x8c]
mov byte [esp + 0xb0], 1
shr eax, 2
cmp eax, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jle 0x4f5ae9
push ebp
jmp 0x4f59d3
xor edi, edi
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x18]
push edi
push edi
mov edx, dword [eax + ecx*4]
mov ecx, dword [esi + 0x4c]
push edx
add ecx, 0x14
call fcn.004d2760
mov ebp, eax
lea edi, [ebp + 0x18]
push edi
call fcn.00474320
add edi, eax
push edi
call fcn.00474320
add edi, eax
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x4f5ad3
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x4f5ad3
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esi + 0x90]
call fcn.005225ac
lea edx, [esp + 0x50]
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.004f5180
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
call fcn.00534c81
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x4f5aa1
push eax
lea edx, [esp + 0x54]
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x40]
mov dword [esp + 0x48], eax
push edx
mov dword [esp + 0x50], ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4f5ad3
mov ecx, dword [esi + 0x4c]
push ebp
add ecx, 0x14
call fcn.004ed100
mov ecx, dword [eax]
lea edi, [eax + ecx + 4]
push edi
call fcn.00474320
mov eax, dword [eax + edi + 4]
add esp, 4
shr eax, 4
and eax, 1
lea ecx, [esp + 0x60]
push eax
push 0
push ebx
call fcn.004d8750
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4f59d1
pop ebp
mov esi, dword [esi + 0x90]
mov edx, dword [ebx + 4]
push edx
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb0], 0
mov dword [esp + 0x5c], 0x553acc
call fcn.00534a38
mov dword [esp + 0xc], 0x55405c
lea ecx, [esp + 0xc]
mov dword [esp + 0xb0], 2
call fcn.0052298c
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4