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

Disassembly:
push 0xffffffffffffffff
push 0x5eba40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], 0x846c
call fcn.005bc8d7
lea ecx, [esp + 0x40]
mov dword [esp + 0x5c], 0
call fcn.005bbce6
mov eax, dword [0x1cd3de8]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov byte [esp + 0x5c], 3
mov ecx, dword [eax + 8]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], eax
jle 0x4e6ed7
push ebx
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
push ebp
push edi
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x78]
call fcn.004a5c09
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 4
call fcn.005bd91d
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 3
call fcn.005bd7e4
push 0x1cd89b4
lea ecx, [esp + 0x14]
call fcn.005b971d
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e6c10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.005bd91d
jmp 0x4e6c3c
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.005b9683
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 5
call fcn.005bd91d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 3
call fcn.005bd7e4
lea ecx, [esp + 0x14]
call fcn.005b9aff
mov ecx, dword [esp + 0x14]
push str.BEGIN_MENU
push ecx
call fcn.004a6d74
add esp, 8
test eax, eax
jne 0x4e6cba
push 8
call fcn.005bd525
add esp, 4
test eax, eax
je 0x4e6c7a
mov dword [eax], vtable.CMenu.0
mov dword [eax + 4], 0
mov esi, eax
jmp 0x4e6c7c
xor esi, esi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, esi
call fcn.005c3b7c
mov edx, dword [esp + 0x40]
push esi
push edx
lea ecx, [esp + 0x40]
call fcn.005bc65d
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x4e6ebf
push 0x1c6f9c0
push 0
lea ecx, [esp + 0x54]
call fcn.005bbf22
jmp 0x4e6ebf
mov eax, dword [esp + 0x14]
push str.END_MENU
push eax
call fcn.004a6d74
add esp, 8
test eax, eax
jne 0x4e6d37
mov esi, dword [esp + 0x40]
cmp esi, 1
jle 0x4e6ebf
cmp dword [esp + 0x54], esi
jne 0x4e6ebf
mov eax, dword [esp + 0x3c]
dec esi
lea ecx, [esp + 0x30]
push esi
mov edi, dword [eax + esi*4 - 4]
mov ebp, dword [eax + esi*4]
push ecx
lea ecx, [esp + 0x54]
call fcn.004a5c09
mov eax, dword [eax]
mov ebp, dword [ebp + 4]
mov edx, dword [edi + 4]
push eax
push ebp
push 0x10
push edx
call ebx
lea ecx, [esp + 0x30]
call fcn.005bd7e4
push 1
push esi
lea ecx, [esp + 0x40]
call fcn.005bc1e4
push 1
push esi
lea ecx, [esp + 0x54]
call fcn.005bbf7a
jmp 0x4e6ebf
mov eax, dword [esp + 0x14]
push str.POPUP
push eax
call fcn.004a6d74
add esp, 8
test eax, eax
jne 0x4e6d9d
push 0x1c6f9c0
push str.POPUP
lea ecx, [esp + 0x18]
call fcn.005b93eb
push 0x1c6f9c0
push 0x1cd89b4
lea ecx, [esp + 0x18]
call fcn.005b93eb
lea ecx, [esp + 0x10]
call fcn.005b9b4b
lea ecx, [esp + 0x10]
call fcn.005b9aff
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.005bbf4e
jmp 0x4e6ebf
mov eax, dword [esp + 0x14]
push str.MENUITEM_SEPARATOR
push eax
call fcn.004a6d74
add esp, 8
test eax, eax
jne 0x4e6ddb
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x4e6ebf
mov ecx, dword [esp + 0x3c]
push 0
push 0
push 0x800
mov eax, dword [ecx + eax*4 - 4]
mov edx, dword [eax + 4]
push edx
call ebx
jmp 0x4e6ebf
mov eax, dword [esp + 0x14]
push str.MENUITEM
push eax
call fcn.004a6d74
add esp, 8
test eax, eax
jne 0x4e6ebf
mov ebp, dword [esp + 0x40]
push eax
push 0x1cd8970
lea ecx, [esp + 0x18]
call fcn.005b972b
cmp esi, 0xffffffff
mov edi, eax
je 0x4e6ebf
cmp edi, 0xffffffff
je 0x4e6ebf
test ebp, ebp
jle 0x4e6ebf
mov ecx, edi
lea edx, [esp + 0x20]
sub ecx, esi
dec ecx
inc esi
push ecx
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.005b9571
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 6
mov eax, dword [eax - 8]
sub eax, edi
sub eax, 2
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005b9607
push 0x1c6f9c0
push 0x1cd89b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 7
call fcn.005b93eb
lea ecx, [esp + 0x18]
call fcn.005b9b4b
lea ecx, [esp + 0x18]
call fcn.005b9aff
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push ecx
mov eax, dword [edx + ebp*4 - 4]
push esi
push 0
mov edx, dword [eax + 4]
push edx
call ebx
inc esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x68], 6
call fcn.005bd7e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 3
call fcn.005bd7e4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4e6bbf
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4e6f32
mov eax, dword [esp + 0x30]
lea ecx, [esp + 8]
mov byte [esp + 0x5c], 2
mov esi, dword [eax]
call fcn.005bd7e4
lea ecx, [esp + 4]
mov byte [esp + 0x5c], 1
call fcn.005bd7e4
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 0
call fcn.005bbd19
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005bc90a
mov eax, esi
pop esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
lea ecx, [esp + 8]
mov byte [esp + 0x5c], 2
call fcn.005bd7e4
lea ecx, [esp + 4]
mov byte [esp + 0x5c], 1
call fcn.005bd7e4
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 0
call fcn.005bbd19
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005bc90a
mov ecx, dword [esp + 0x54]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x5c
ret