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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
sub esp, 0x80
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], 0xffffffff
push ecx
mov dword [eax], 0xffffffff
call dword [sym.imp.user32.dll_SetRectEmpty]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push 0
push edx
push eax
mov ecx, esi
call fcn.0056dd68
test eax, eax
mov dword [ebx], eax
jl 0x4c2b4a
xor edi, edi
push edi
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x74], 2
call fcn.0056dd48
mov eax, dword [ebx]
push 2
lea edx, [esp + 0x3c]
push edx
push eax
mov ecx, esi
call fcn.0056dd48
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
push edi
push 2
push 0x1002
push ecx
mov dword [esp + 0x1c], eax
call ebx
push eax
call fcn.0056e5b1
test eax, eax
mov dword [esp + 0x10], eax
je 0x4c2a46
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push 0xf000
push eax
mov eax, dword [esi + 0x20]
push 0x102c
push eax
call ebx
test eax, 0xf000
jne 0x4c2a46
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
lea edx, [esp + 0x48]
push edx
push edi
push eax
call fcn.005702dd
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00479650
mov ecx, dword [esp + 0x60]
sub dword [esp + 0xc], ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push 0
push 0
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x3c]
push 0x101d
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call ebx
mov ecx, dword [esp + 0x28]
add eax, ecx
cmp dword [esi + 0x7c], edi
mov dword [esp + 0x20], eax
jne 0x4c2a8c
mov edx, dword [esp + 0xc]
add dword [esp + 0x18], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4c2b1a
cmp dword [esp + 0x14], 0
je 0x4c2b13
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x68]
push eax
add edi, 1
push edi
push 0x1019
push ecx
call ebx
test eax, eax
mov dword [esp + 0x14], eax
je 0x4c2b0a
mov edx, dword [esi + 0x20]
push 0
push edi
push 0x101d
push edx
call ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
add ecx, eax
cmp dword [esi + 0x7c], edi
mov dword [esp + 0x20], ecx
jne 0x4c2af3
mov eax, dword [esp + 0xc]
add dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.user32.dll_PtInRect]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x4c2aa7
jmp 0x4c2b1a
cmp dword [esp + 0x10], 0
je 0x4c2b4a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [ecx], edi
mov ecx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14