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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54a06e
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.004f8d30
mov eax, dword [esp + 0xb8]
xor edi, edi
cmp eax, edi
je 0x4f5508
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.0042e170
mov dword [esp + 0xc], vtable.CRgn.0
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.00522545
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.00521aa7
mov ebx, eax
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.00521fc6
lea ecx, [esp + 0x5c]
call fcn.004f7af0
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 0x4f56d9
push ebp
jmp 0x4f55c3
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.004d2340
mov ebp, eax
lea edi, [ebp + 0x18]
push edi
call fcn.00474090
add edi, eax
push edi
call fcn.00474090
add edi, eax
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x4f56c3
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x4f56c3
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.005221bc
lea edx, [esp + 0x50]
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.004f4d70
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
call fcn.00534894
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x4f5691
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 0x4f56c3
mov ecx, dword [esi + 0x4c]
push ebp
add ecx, 0x14
call fcn.004ecd00
mov ecx, dword [eax]
lea edi, [eax + ecx + 4]
push edi
call fcn.00474090
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.004d8330
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4f55c1
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.0053464b
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov dword [esp + 0xb0], 2
call fcn.0052259c
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4