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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x544c4e
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.004f66c0
mov eax, dword [esp + 0xb8]
xor edi, edi
cmp eax, edi
je 0x4f2e98
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.0042c0b0
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.0051d265
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.0051c7c7
mov ebx, eax
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.0051cce6
lea ecx, [esp + 0x5c]
call fcn.004f5480
mov dword [esp + 0x5c], 0x54da44
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 0x4f3069
push ebp
jmp 0x4f2f53
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.004cfd40
mov ebp, eax
lea edi, [ebp + 0x18]
push edi
call fcn.00471ab0
add edi, eax
push edi
call fcn.00471ab0
add edi, eax
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x4f3053
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x4f3053
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.0051cedc
lea edx, [esp + 0x50]
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.004f2700
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
call fcn.0052f64d
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x4f3021
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 0x4f3053
mov ecx, dword [esi + 0x4c]
push ebp
add ecx, 0x14
call fcn.004ea6b0
mov ecx, dword [eax]
lea edi, [eax + ecx + 4]
push edi
call fcn.00471ab0
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.004d5d30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4f2f51
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], 0x54da44
call fcn.0052f404
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov dword [esp + 0xb0], 2
call fcn.0051d2bc
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4