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

Disassembly:
push 0xffffffffffffffff
push 0x5e423c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x38]
cmp dword [edi + 0x28], 0
jne 0x5461a1
mov ecx, dword [ebx + 0x1c4]
call fcn.00539390
test eax, eax
jle 0x5461a1
mov eax, dword [ebx + 0x1bc]
mov edx, dword [ebx]
push 0
push eax
mov eax, dword [edx + 0x220]
mov ecx, ebx
call eax
mov dword [ebx + 0x1c8], 1
push edi
mov ecx, ebx
call fcn.00546080
push 0
lea ecx, [ebx + 0x1bc]
push ecx
push str.ResourceId
push edi
call fcn.00541170
add esp, 0x10
cmp dword [edi + 0x28], 0
jne 0x5462fd
mov ecx, dword [ebx + 0x1c4]
xor esi, esi
call fcn.0058b8e0
mov dword [esp + 0x38], eax
test eax, eax
je 0x546207
nop
mov ecx, dword [ebx + 0x1c4]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0058b8f0
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x34], 0
je 0x546200
inc esi
cmp dword [esp + 0x38], 0
jne 0x5461e0
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
push esi
mov ecx, edi
xor ebp, ebp
call eax
mov ecx, dword [ebx + 0x1c4]
call fcn.0058b8e0
mov dword [esp + 0x38], eax
test eax, eax
je 0x546431
lea ebx, [ebx]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0x1c4]
lea edx, [esp + 0x3c]
push edx
call fcn.0058b8f0
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x34], 0
je 0x5462ed
mov eax, dword [eax + 0x30]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push ebp
push str.MDIMenu
lea ecx, [esp + 0x20]
push 0x69c670
push ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov esi, dword [edi]
add esp, 0x10
lea ecx, [esp + 0x18]
inc ebp
add esi, 0x70
call dword [sym.imp.mfc90u.dll_]
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov esi, eax
mov dword [esp + 0x1c], esi
push 0
lea eax, [esp + 0x28]
push eax
push 0x69ab48
push esi
mov byte [esp + 0x40], 1
call fcn.00541170
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
add esp, 0x10
push esi
call eax
mov byte [esp + 0x30], 0
test esi, esi
je 0x5462db
mov ecx, esi
call sub.mfc90u.dll_CCmdTarget::InternalRelease
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [esp + 0x38], 0
jne 0x546230
jmp 0x546431
mov eax, dword [edi + 0x2c]
cmp eax, 4
jbe 0x546431
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
mov ecx, edi
call eax
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], esi
test eax, eax
jbe 0x546431
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push esi
push str.MDIMenu
lea ecx, [esp + 0x24]
push 0x69c670
push ecx
mov dword [esp + 0x40], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov esi, dword [edi]
add esp, 0x10
lea ecx, [esp + 0x1c]
add esi, 0x70
call dword [sym.imp.mfc90u.dll_]
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov esi, eax
mov dword [esp + 0x20], esi
push 0
lea eax, [esp + 0x18]
push eax
push 0x69ab48
push esi
mov byte [esp + 0x40], 3
call fcn.00541170
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
mov ecx, dword [ebx + 0x1c4]
call fcn.0058ce50
test eax, eax
jne 0x5463fc
push 0x38
call sub.mfc90u.dll_new_1
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
mov byte [esp + 0x30], 4
test ebp, ebp
je 0x5463d2
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
call fcn.00538eb0
push eax
mov ecx, ebp
call fcn.0058b750
mov ebp, eax
jmp 0x5463d4
xor ebp, ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x1c4]
push ebp
push eax
mov byte [esp + 0x38], 3
call fcn.0058cfe0
test ebp, ebp
je 0x5463fc
mov ebp, dword [ebp + 0x20]
mov edx, dword [ebp]
mov eax, dword [edx + 0x60]
push esi
mov ecx, ebp
call eax
mov byte [esp + 0x30], 2
test esi, esi
je 0x54640c
mov ecx, esi
call sub.mfc90u.dll_CCmdTarget::InternalRelease
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
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 esi, dword [esp + 0x38]
inc esi
mov dword [esp + 0x38], esi
cmp esi, dword [esp + 0x24]
jb 0x546324
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4