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

Disassembly:
push 0xffffffffffffffff
push 0x4e553e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
lea eax, [esp + 0x4c]
push edi
mov esi, ecx
push eax
call fcn.004d0b16
mov ecx, dword [0x52790c]
call fcn.00455190
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetSubMenu]
push 5
push ecx
call edi
push eax
call fcn.004c677c
mov edx, dword [eax + 4]
push 8
push edx
call edi
push eax
call fcn.004c677c
mov ebx, eax
push 5
mov dword [esp + 0x28], ebx
mov eax, dword [ebx + 4]
push eax
call fcn.004a3a40
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
add esp, 8
push 0x400
push 5
push ecx
call edi
test eax, eax
je 0x46f424
mov edx, dword [ebx + 4]
push 0x400
push 5
push edx
call edi
test eax, eax
jne 0x46f413
mov eax, dword [esi + 0x13e0]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x418
push eax
call edi
test eax, eax
jle 0x46f457
mov ebp, eax
mov ecx, dword [esi + 0x13e0]
push 0
push 0
push 0x416
push ecx
call edi
dec ebp
jne 0x46f442
mov eax, dword [esi + 0x1154]
xor ebp, ebp
cmp eax, ebp
je 0x46f470
push eax
push ebp
lea ecx, [esi + 0x13c4]
call fcn.004d6cb6
mov eax, dword [0x52251c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xac], ebp
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0x1154]
mov byte [esp + 0xac], 1
dec edx
js 0x46f75f
mov ebx, 0xe00
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x1150]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx + eax]
test ebp, ebp
je 0x46f73a
lea edx, [esp + 0x34]
push 2
lea ecx, [ebp + 8]
push edx
call fcn.004bd709
mov eax, dword [eax]
mov edi, 0x51c574
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x46f4f1
test cl, cl
je 0x46f4ed
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x46f4f1
add eax, 2
add edi, 2
test cl, cl
jne 0x46f4cd
xor eax, eax
jmp 0x46f4f6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x34]
sete byte [esp + 0x17]
call fcn.004c5787
mov al, byte [esp + 0x17]
test al, al
je 0x46f537
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.00468b20
push 0
push 1
lea ecx, [ebx - 0xe00]
push 0
push ecx
lea ecx, [esi + 0x13c4]
call fcn.004cbfe2
jmp 0x46f734
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004c54fc
mov edi, dword [esp + 0x28]
push ebx
push 0
push edi
mov ecx, esi
call fcn.004689b0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x46f56a
mov edx, dword [edi + 4]
push 8
push ebx
push edx
call dword [sym.imp.USER32.dll_CheckMenuItem]
lea eax, [ebp + 4]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x30], eax
call fcn.004c58c0
lea eax, [esp + 0x10]
push eax
call fcn.00416d40
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov dword [esp + 0x30], 0
call fcn.004c54fc
call fcn.00414c50
add esp, 4
test eax, eax
je 0x46f637
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov dword [esp + 0x30], 1
call fcn.004c54fc
lea ecx, [esp + 0x34]
push ecx
call fcn.00415150
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 2
call fcn.004c58c0
lea ecx, [esp + 0x30]
mov byte [esp + 0xac], 1
call fcn.004c5787
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004c54fc
lea eax, [esp + 0x40]
push eax
call fcn.00414f40
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 3
call fcn.004c58c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 1
call fcn.004c5787
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004c54fc
call fcn.0041b890
add esp, 4
lea edi, [esi + 0x13c4]
mov ecx, edi
push eax
push 0
lea eax, [ebx - 0xe00]
push ebx
push eax
call fcn.004cbfe2
lea eax, [ebp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.004c58c0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x46f6b3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push ecx
push 0x520e98
push edx
call fcn.004c5a90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 4
call fcn.004c58c0
lea ecx, [esp + 0x38]
mov byte [esp + 0xac], 1
call fcn.004c5787
mov eax, dword [esp + 0x28]
test eax, eax
je 0x46f6ee
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46f70a
push 0x51c8ac
lea ecx, [esp + 0x14]
call fcn.004c5b63
push 0x51c3b0
push 0x51c8b0
lea ecx, [esp + 0x20]
call fcn.004bd420
lea ecx, [esp + 0x18]
push ecx
jmp 0x46f701
push 0x51c8ac
lea ecx, [esp + 0x14]
call fcn.004c5b63
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
call fcn.004c5b9f
mov eax, dword [esi + 0x13e0]
push 0
push 0
push 0x423
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.004c1de6
mov ecx, dword [esp + 0x10]
push ebx
push edi
push ecx
mov ecx, eax
call fcn.004bf4b9
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x1154]
add ecx, 4
inc ebx
dec eax
mov dword [esp + 0x1c], ecx
lea edx, [ebx - 0xe00]
cmp edx, eax
jle 0x46f4a2
mov ebx, dword [esp + 0x24]
mov edx, dword [esi + 0x13c4]
lea ecx, [esi + 0x13c4]
lea eax, [esp + 0x40]
push eax
push 0
call dword [edx + 0xe0]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
sub eax, edx
mov dword [esp + 0x54], 0x50
cmp eax, 0x16
mov dword [esp + 0x58], 0x320
mov dword [esp + 0x88], 0x80bf
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x16
jl 0x46f7b6
mov dword [esp + 0x7c], eax
mov ecx, dword [esi + 0x13e0]
push 0
push 0
push 0x418
push ecx
call edi
test eax, eax
jle 0x46f7ee
lea edx, [esp + 0x40]
dec eax
push edx
push eax
mov eax, dword [esi + 0x13e0]
push 0x41d
push eax
call edi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x98], ecx
jmp 0x46f7f9
mov dword [esp + 0x98], 2
mov edx, dword [esi + 0xbd8]
push 0
push 0x80bf
push 0x410
push edx
call edi
mov edx, dword [esi + 0xbd8]
lea ecx, [esp + 0x54]
push ecx
push eax
push 0x406
push edx
call edi
test byte [0x527940], 0x10
jne 0x46f835
push 0
push ebx
mov ecx, esi
call fcn.0044e3c0
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 0
call fcn.004c5787
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], 0xffffffff
call fcn.004c5787
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa0
ret