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

Disassembly:
push 0xffffffffffffffff
push 0x6e61e4
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xe4]
lea eax, [esp + 0x34]
push 0x30
push 0
push eax
mov dword [esp + 0x24], esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x38], 0x30
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4988f0
mov ebx, dword [sym.imp.MSVCR120.dll_wcschr]
mov ebp, dword [sym.imp.MSVCR120.dll_free]
jmp 0x498640
lea eax, [esp + 0x34]
mov dword [esp + 0x5c], 0
push eax
push 1
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4986f0
cmp dword [esp + 0x3c], 0x100
jne 0x4988e5
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x64]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp dword [esp + 0x78], 8
lea eax, [esp + 0x64]
push 0x26
cmovae eax, dword [esp + 0x68]
push eax
call ebx
add esp, 8
test eax, eax
je 0x4986c9
cmp word [eax + 2], 0x26
jne 0x4986ad
add eax, 4
push 0x26
push eax
call ebx
add esp, 8
test eax, eax
jne 0x498695
jmp 0x4986c9
movzx eax, word [eax + 2]
push eax
call dword [sym.imp.MSVCR120.dll_towupper]
add esp, 4
cmp ax, word [esp + 0xe0]
je 0x49891d
push dword [esp + 0x7c]
call ebp
add esp, 4
cmp dword [esp + 0x78], 8
jb 0x4988e5
push dword [esp + 0x64]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4988e5
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 6
call fcn.00439d10
add esp, 0x24
test al, al
je 0x4988e5
call fcn.005c92f0
mov dword [esp + 0x20], eax
mov dword [esp + 0xd8], 0
call fcn.005c92f0
mov dword [esp + 0x24], eax
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
mov byte [esp + 0xdc], 1
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.00439000
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
push 0
mov dword [esp + 0xe8], 2
mov dword [esp + 0x94], 6
mov dword [esp + 0x9c], str....._srcmswwindow.cpp
mov dword [esp + 0xa4], str.wxWindow::HandleMenuChar
mov dword [esp + 0xa0], 0x175c
mov dword [esp + 0xa8], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0xb4], eax
xor eax, eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], 0
mov word [esp + 0xbc], ax
mov dword [esp + 0xd4], eax
mov byte [esp + 0xe8], 3
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.005e5210
add esp, 0x14
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push str.GetMenuItemInfo
push 0x175c
push str....._srcmswwindow.cpp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x9c]
call fcn.00479740
push dword [esp + 0xc4]
call ebp
add esp, 4
cmp dword [esp + 0xc0], 8
jb 0x49884f
push dword [esp + 0xac]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0xa8]
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4988cd
push 0x4294d0
push dword [esi + 0x10]
mov byte [esp + 0xe0], 4
push dword [esi + 0x14]
call fcn.005f0870
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call ebp
push 0x439bf0
push dword [esi]
mov byte [esp + 0xf0], 2
push dword [esi + 4]
call fcn.005f0870
push dword [esi]
mov dword [esi + 8], 0
call ebp
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 0x24
lea ecx, [esp + 0x20]
mov dword [esp + 0xd8], 0xffffffff
call fcn.00420020
mov esi, dword [esp + 0x18]
inc edi
cmp edi, dword [esp + 0x14]
jl 0x498640
or eax, 0xffffffff
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.006d1ba7
add esp, 0xc8
ret 8
push dword [esp + 0x7c]
call ebp
add esp, 4
cmp dword [esp + 0x78], 8
jb 0x498939
push dword [esp + 0x64]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
jmp 0x4988f3