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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52a03b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3e8
xor eax, eax
push ebx
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
movzx eax, word [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push eax
mov ebx, edi
mov dword [esp + 0x14], esi
call fcn.004306d0
add esp, 4
test eax, eax
jge 0x42f930
mov eax, esi
call fcn.00430180
mov ecx, dword [esp + 0x3f4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemRect]
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push 0
call ebx
test eax, eax
je 0x42f912
xor eax, eax
lea esi, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.00430710
test al, al
jne 0x42f984
mov eax, dword [esp + 0x10]
call fcn.00430180
mov ecx, dword [esp + 0x3f4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x58]
xor eax, eax
lea esi, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00430710
test al, al
je 0x42f964
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov esi, dword [ebp + 0x10]
add ecx, 0xa
push ecx
add eax, 0xa
push eax
push esi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_MenuItemFromPoint]
cmp eax, edi
je 0x42fa13
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x50]
push ecx
push eax
push esi
push edi
mov dword [esp + 0x60], edi
call ebx
lea edx, [esp + 0x60]
push edx
push edi
xor eax, eax
push esi
push edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
call ebx
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x64]
sub dword [esp + 0x1c], eax
sub dword [esp + 0x24], eax
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x390], 0
mov ecx, dword [ebx + 0x4bc]
mov dword [esp + 0x38], ecx
lea eax, [ebx + 0x280]
jne 0x42fa35
mov eax, dword [ebx + 0x27c]
add eax, 4
mov dword [esp + 0x3c], eax
cmp ecx, 2
je 0x42fa5b
mov esi, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edi, [esp + 0x4c]
lea ecx, [esp + 0x34]
call fcn.0042fd90
jmp 0x42facb
lea ecx, [esp + 0x70]
mov byte [esp + 0x14], 0
call fcn.004114e0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3fc], edi
mov edi, dword [eax + 0x4c]
mov eax, dword [ebp + 8]
lea edx, [esp + 0x70]
push edx
lea ebx, [esp + 0x18]
call fcn.00430d30
add esp, 4
test al, al
je 0x42fab4
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x78]
call fcn.00411da0
mov esi, dword [esp + 0x18]
push eax
lea edi, [esp + 0x4c]
lea ecx, [esp + 0x34]
call fcn.0042fd90
lea ecx, [esp + 0x70]
mov dword [esp + 0x3fc], 0xffffffff
call fcn.00411680
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x4b4], 0
je 0x42fadc
add ebx, 0x3a4
jmp 0x42fae2
mov ebx, dword [ebx + 0x3a0]
lea edx, [ebx + 4]
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42faf0
sub eax, esi
sar eax, 1
jne 0x42fb0e
mov edi, dword [esp + 0x10]
mov esi, edi
call fcn.0042fd60
jmp 0x42fb1f
mov ebx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0042fbc0
mov edi, ebx
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
mov byte [esp + 0x10], 0
mov byte [esp + 0x14], 0
mov bl, 1
test cl, 8
je 0x42fb3a
mov byte [esp + 0x10], bl
lea esi, [esp + 0x198]
call fcn.0042df70
mov eax, dword [esp + 0x3c]
mov ecx, esi
call fcn.00494340
test al, al
je 0x42fb59
mov byte [esp + 0x14], bl
lea eax, [esp + 0x198]
call fcn.00441010
cmp dword [esp + 0x38], 2
je 0x42fba2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, edi
call fcn.00430080
mov ecx, dword [esp + 0x3f4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
call fcn.00430160
mov ecx, dword [esp + 0x3f4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc