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

Disassembly:
push 0xffffffffffffffff
push 0x5499ce
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0xd4]
push esi
mov edi, ecx
call fcn.004c6a90
test eax, eax
jne 0x4c6a6a
lea eax, [esp + 0x2c]
push eax
call fcn.00480490
mov dword [esp + 0xcc], 0
xor eax, eax
mov ecx, 0x24
mov dword [esp + 0x98], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x74]
lea eax, [esp + 0x44]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x9c], edx
call fcn.00499d60
mov ecx, dword [eax]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xac], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xb0], edx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0xd8]
mov ecx, dword [eax]
mov dword [esp + 0xb8], edx
mov edx, dword [esi]
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0xe0]
mov esi, dword [eax + 0x10]
sub esi, dword [eax + 0xc]
sar esi, 2
test esi, esi
je 0x4c635b
xor ecx, ecx
mov eax, esi
mov edx, 0x20
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
mov byte [esp + 0xcc], 1
test edi, edi
je 0x4c6259
push 0x20
mov ebx, fcn.00411bc0
mov eax, esi
mov ecx, edi
call section..text
jmp 0x4c625b
xor edi, edi
mov byte [esp + 0xcc], 0
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0xe0]
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0xc]
mov ecx, eax
sub ecx, esi
sar ecx, 2
mov dword [esp + 0x88], ecx
cmp esi, esi
ja 0x4c628d
cmp esi, eax
jbe 0x4c6297
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call ebx
jmp 0x4c629d
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
test eax, eax
jne 0x4c6402
call ebx
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4c62b2
call ebx
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
mov eax, dword [esp + 0x8c]
sar edx, 2
shl edx, 5
push edx
push 0
push eax
mov dword [esp + 0x9c], esi
call sub.MSVCR90.dll_memset
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add esp, 0xc
sar eax, 2
xor ebx, ebx
test eax, eax
jbe 0x4c635b
xor ebp, ebp
cmp ebx, eax
jb 0x4c62f3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0xc]
lea esi, [ebx*4]
cmp dword [esi + eax], 0
je 0x4c634a
mov ecx, dword [edi + 0x10]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x4c6315
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0xe0]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + esi]
add eax, esi
add ecx, 0x48
lea eax, [esp + 0x44]
call fcn.004bb950
mov ecx, dword [esp + 0x8c]
lea edi, [ecx + ebp]
mov ecx, 8
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xe0]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
inc ebx
sar eax, 2
add ebp, 0x20
cmp ebx, eax
jb 0x4c62f3
lea edx, [esp + 0x98]
push edx
push str.WTW_OnMenuRebuild
xor ebx, ebx
call fcn.004add50
mov edi, dword [esp + 0x20]
mov esi, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
add eax, esi
cmp esi, eax
jbe 0x4c6385
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [edi + 4]
mov ebp, dword [esp + 0xd4]
mov dword [esp + 0x14], edi
mov ebx, esi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x20]
add esi, eax
mov dword [esp + 0x18], ebx
cmp eax, esi
jbe 0x4c63b3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
test edi, edi
je 0x4c63be
cmp edi, eax
je 0x4c63c4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, esi
je 0x4c6420
lea eax, [esp + 0x14]
call fcn.00413720
mov ecx, dword [ebp]
push ecx
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x4c640f
test edi, edi
jne 0x4c6409
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp ebx, ecx
jb 0x4c63ff
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
inc ebx
jmp 0x4c6395
mov eax, dword [eax]
jmp 0x4c62ab
mov eax, dword [edi]
mov ecx, eax
jmp 0x4c63ef
lea eax, [esp + 0x14]
call fcn.00413720
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4c6499
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4c6434
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esp + 0xcc], 2
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4c646c
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x4c6463
nop
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
add esi, 4
cmp esi, edi
jne 0x4c6450
mov esi, dword [esp + 0x38]
push esi
call sub.mfc90u.dll_delete
add esp, 4
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0xcc], 0xffffffff
mov edx, dword [esp + 0x2c]
push edx
call sub.mfc90u.dll_delete
add esp, 4
xor eax, eax
jmp 0x4c6a6a
mov edi, dword [esp + 0xe4]
test edi, edi
jne 0x4c64ee
push 0xc
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov byte [esp + 0xcc], 4
test esi, esi
je 0x4c64d0
mov ecx, esi
call dword [sym.imp.libUI.module_public:_void___thiscall_CUIMenu::constructor_void_]
mov dword [esi], vtable.CUIMenu.0
jmp 0x4c64d2
xor esi, esi
mov byte [esp + 0xcc], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
mov ecx, esi
call sub.mfc90u.dll_CMenu::Attach
jmp 0x4c64f2
mov dword [esp + 0x1c], edi
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x24], ebp
cmp edi, ebp
je 0x4c6503
mov ebp, 0x3e8
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add eax, esi
cmp esi, eax
jbe 0x4c651b
call edi
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
lea ebx, [ebx]
mov eax, dword [ecx + 0x28]
mov esi, dword [ecx + 0x2c]
add esi, eax
cmp eax, esi
jbe 0x4c6542
call edi
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4c6551
cmp ecx, eax
je 0x4c6553
call edi
cmp dword [esp + 0x18], esi
je 0x4c68ab
lea eax, [esp + 0x14]
inc ebp
call fcn.00413720
mov eax, dword [eax + 0xc]
and eax, 1
jne 0x4c65d8
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
xor esi, esi
sar ecx, 2
test ecx, ecx
jbe 0x4c65c5
lea eax, [esp + 0x14]
call fcn.00413720
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x38]
mov edi, eax
sar edx, 2
cmp esi, edx
jb 0x4c65a0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
lea ecx, [eax + esi*4]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x4c65d8
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x4c6580
lea eax, [esp + 0x14]
call fcn.00413720
test byte [eax + 0xc], 0x80
je 0x4c670b
lea eax, [esp + 0x14]
call fcn.00413720
mov eax, dword [eax + 0x14]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
jle 0x4c661f
lea eax, [esp + 0x14]
call fcn.00413720
test byte [eax + 0xc], 0x10
jne 0x4c661f
test ebx, ebx
je 0x4c661f
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 4]
push 0
push 0
push 0x800
push ebp
push edx
call dword [sym.imp.USER32.dll_InsertMenuW]
jmp 0x4c6623
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
call fcn.00413720
test byte [eax + 0xc], 1
lea eax, [esp + 0x14]
je 0x4c673e
call fcn.00413720
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
mov ebx, dword [esp + 0x20]
push 0
push ecx
mov ecx, dword [esp + 0xe0]
push edx
push ecx
add eax, 4
push eax
mov ecx, ebx
call fcn.004c60a0
mov esi, eax
test esi, esi
je 0x4c66ff
push 0x2c
lea edx, [esp + 0x4c]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebx + 0x48], 0
mov dword [esp + 0x44], 0x30
lea eax, [esp + 0x14]
je 0x4c66ab
mov dword [esp + 0x48], 0x1c6
call fcn.00413720
mov eax, dword [eax + 0x18]
mov dword [esp + 0x70], eax
jmp 0x4c66c7
mov dword [esp + 0x48], 0x1e6
mov dword [esp + 0x70], 0xffffffff
call fcn.00413720
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x64], ecx
mov edx, dword [esi + 4]
lea eax, [esp + 0x14]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], edx
call fcn.00413720
mov eax, dword [eax]
mov dword [esp + 0x68], eax
mov edx, dword [edi + 4]
lea ecx, [esp + 0x44]
push ecx
push 1
push ebp
push edx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
inc dword [esp + 0x24]
lea eax, [esp + 0x14]
call fcn.00413720
mov ebx, dword [eax + 0x14]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c689c
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call edi
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp dword [esp + 0x18], ecx
jb 0x4c6731
call edi
inc dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
jmp 0x4c6530
call fcn.00413720
test byte [eax + 0xc], 0x10
je 0x4c675f
mov eax, dword [edi + 4]
push 0
push 0
push 0x800
push ebp
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
jmp 0x4c66ff
push 0x2c
lea ecx, [esp + 0x4c]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x44], 0x30
mov dword [esp + 0x48], 0x143
call fcn.00413720
mov edx, dword [eax + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x54], edx
call fcn.00413720
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
lea eax, [esp + 0x14]
mov dword [esp + 0x6c], ecx
call fcn.00413720
mov edx, dword [eax]
lea eax, [esp + 0x14]
mov dword [esp + 0x68], edx
call fcn.00413720
test byte [eax + 0xc], 2
je 0x4c67c5
or dword [esp + 0x50], 8
lea eax, [esp + 0x14]
call fcn.00413720
test byte [eax + 0xc], 0x20
je 0x4c67dc
or dword [esp + 0x50], 0x1000
lea eax, [esp + 0x14]
call fcn.00413720
test byte [eax + 0xc], 0x40
je 0x4c67f3
or dword [esp + 0x4c], 0x200
lea eax, [esp + 0x14]
call fcn.00413720
test byte [eax + 0xc], 4
je 0x4c6807
or dword [esp + 0x50], 3
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x48], 0
je 0x4c683a
lea eax, [esp + 0x14]
call fcn.00413720
cmp dword [eax + 0x18], 0
je 0x4c683a
or dword [esp + 0x48], 0x80
lea eax, [esp + 0x14]
call fcn.00413720
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x70], ecx
jmp 0x4c6869
lea eax, [esp + 0x14]
call fcn.00413720
cmp dword [eax + 0x18], 0
je 0x4c6869
or dword [esp + 0x48], 0xa0
lea eax, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
call fcn.00413720
mov edx, dword [eax + 0x18]
mov dword [esp + 0x64], edx
lea eax, [esp + 0x14]
call fcn.00413720
test dword [eax + 0xc], 0x100
je 0x4c66e9
lea eax, [esp + 0x14]
call fcn.00413720
mov edx, dword [eax + 0x14]
mov eax, dword [edi + 4]
lea ecx, [esp + 0x44]
push ecx
push 0
push edx
push eax
jmp 0x4c66f5
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, eax
jmp 0x4c6723
cmp dword [esp + 0x24], 0
jne 0x4c694c
cmp dword [esp + 0xe4], 0
jne 0x4c68d4
cmp dword [esp + 0x1c], 0
je 0x4c68d4
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4c68e8
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esp + 0xcc], 5
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4c691f
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x4c6916
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
add esi, 4
cmp esi, edi
jne 0x4c6903
mov esi, dword [esp + 0x38]
push esi
call sub.mfc90u.dll_delete
add esp, 4
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0xcc], 0xffffffff
mov ecx, dword [esp + 0x2c]
push ecx
call sub.mfc90u.dll_delete
add esp, 4
xor eax, eax
jmp 0x4c6a6a
cmp dword [esp + 0xe4], 0
jne 0x4c6967
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
add eax, 0x24
call fcn.004c8c40
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x98]
push eax
push str.WTW_OnMenuCompleted
call fcn.004add50
mov ebp, dword [esp + 0xe0]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edx, ecx
sub edx, esi
and edx, 0xfffffffc
xor ebx, ebx
cmp edx, 4
jne 0x4c69f7
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], 0x1c
mov dword [esp + 0x48], 8
cmp esi, ecx
jbe 0x4c69c8
call edi
mov eax, dword [ebp]
cmp eax, ebx
jne 0x4c6a86
call edi
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4c69de
call edi
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetMenuInfo]
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x4c6a0b
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esp + 0xcc], 7
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x4c6a42
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x4c6a39
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
add esi, 4
cmp esi, edi
jne 0x4c6a26
mov esi, dword [esp + 0x38]
push esi
call sub.mfc90u.dll_delete
add esp, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0xcc], 0xffffffff
mov ecx, dword [esp + 0x2c]
push ecx
call sub.mfc90u.dll_delete
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 0x14
mov eax, dword [eax]
jmp 0x4c69d7