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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x549936
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4c72b6
mov eax, 0x80004003
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 8]
test eax, eax
jne 0x4c72da
mov eax, 0x80070057
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 4], 0
je 0x4c72bd
push eax
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov dword [esp + 0xa0], 0
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
mov edi, ebx
call fcn.004b4ab0
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc dword [ebx + 0x44]
test edi, edi
jne 0x4c736c
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov dword [esp + 0xa0], 1
push 1
lea edx, [esp + 0x24]
push edx
push ebx
xor ecx, ecx
call fcn.004c5920
mov dword [esp + 0x14], eax
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
call fcn.0050b3c0
mov dword [esp + 0xa0], 2
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx + 0x44]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x54], ecx
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x28]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov edx, dword [esi + 4]
push edx
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x5c], edx
test eax, eax
je 0x4c743d
cmp dword [ebx + 0x48], 0
push eax
lea ecx, [esp + 0x1c]
je 0x4c740e
call dword [0x55a504]
mov byte [esp + 0xa0], 3
lea eax, [esp + 0x18]
call fcn.004b9d00
jmp 0x4c7425
call dword [0x55a504]
mov byte [esp + 0xa0], 4
lea eax, [esp + 0x18]
call fcn.004b9cb0
mov dword [esp + 0x4c], eax
mov byte [esp + 0xa0], 2
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x4c7445
mov dword [esp + 0x4c], 0
lea eax, [edi + 0x10]
lea edi, [esp + 0x34]
mov dword [esp + 0x18], eax
call fcn.004f1330
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0
je 0x4c77d1
mov ebx, dword [esp + 0x18]
lea edi, [esp + 0x24]
call fcn.0042e9d0
lea esi, [esp + 0x2c]
mov edi, eax
call fcn.00419580
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
push 0x4c50f0
call fcn.004c9cd0
mov edi, dword [esp + 0x28]
mov ebx, dword [edi + 8]
add esp, 0x14
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x4c760e
xor esi, esi
mov dword [esp + 0x14], 0xffffffff
cmp dword [edi + 0x2c], esi
jbe 0x4c74df
jmp 0x4c74c0
mov eax, dword [esp + 0x18]
push esi
call fcn.00487e90
mov eax, dword [eax + 0x10]
cmp eax, dword [esp + 0x44]
je 0x4c74db
inc esi
cmp esi, dword [edi + 0x2c]
jb 0x4c74c0
jmp 0x4c74df
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
cmp dword [edi + 0x2c], ecx
jae 0x4c74f0
mov dword [esp + 0x14], 0xffffffff
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x14]
test cl, 1
je 0x4c7677
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [ebx + 0x20], esi
jbe 0x4c7540
add ebx, 4
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x10]
push esi
mov eax, ebx
call fcn.00487e90
push edi
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 0x4c7532
mov ecx, dword [ebp + 8]
inc esi
cmp esi, dword [ecx + 0x20]
jb 0x4c750c
jmp 0x4c7540
push esi
mov eax, ebx
call fcn.00487e90
mov esi, eax
test esi, esi
jne 0x4c7572
mov dword [esp + 0xa0], 0xffffffff
lea edx, [esp + 0x34]
push edx
call fcn.004ec1a0
mov eax, 0x80004005
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x2c
lea eax, [esp + 0x6c]
push 0
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp dword [ecx + 0x48], 0
mov dword [esp + 0x64], 0x30
mov dword [esp + 0x68], 0x146
je 0x4c75b1
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x68], 0x1c6
mov dword [esp + 0x90], edx
jmp 0x4c75d3
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4c75d3
mov dword [esp + 0x68], 0x1e6
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], 0
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x78], edx
lea edx, [esp + 0x64]
push edx
push 1
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x94], ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edx, dword [esi + 8]
push edx
lea ecx, [esp + 0x24]
call dword [0x55a504]
mov byte [esp + 0xa0], 5
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.004c6fc0
mov byte [esp + 0xa0], 2
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x34]
push ecx
call fcn.004ec1a0
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 0x10
jne 0x4c77b4
mov eax, 0x400
test cl, 4
je 0x4c768f
mov eax, 0x403
test cl, 2
je 0x4c7697
or eax, 8
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x18]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x48], 0
mov esi, dword [sym.imp.USER32.dll_SetMenuItemInfoW]
je 0x4c76f6
push 0x2c
lea edx, [esp + 0x6c]
push 0
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x64]
push ecx
push 0
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 4]
push edx
mov dword [esp + 0x74], 0x80
push eax
jmp 0x4c7739
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x4c7743
push 0x2c
lea ecx, [esp + 0x6c]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x50]
mov ecx, dword [ebx + 4]
add esp, 0xc
or dword [esp + 0x68], 0xa0
lea edx, [esp + 0x64]
push edx
push 0
push eax
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0x90], edi
push ecx
mov dword [esp + 0x74], 0x30
call esi
mov edi, dword [ebp + 0xc]
test byte [edi + 0x14], 0x40
je 0x4c7792
push 0x2c
lea edx, [esp + 0x6c]
push 0
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x64]
push ecx
push 0
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 4]
push edx
push eax
mov dword [esp + 0x74], 0x30
mov dword [esp + 0x78], 0x10
mov dword [esp + 0x7c], 0x200
call esi
test byte [edi + 0x14], 0x20
je 0x4c760e
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx + 4]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov esi, edi
jmp 0x4c7611
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
push 0
push 0
push 0xc00
push eax
push ecx
call dword [sym.imp.USER32.dll_InsertMenuW]
jmp 0x4c760e
push ebx
call fcn.004c77e0
jmp 0x4c7614