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

Disassembly:
push 0xffffffffffffffff
push 0x5a004f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x28], ebp
lea ecx, [ebp + 0xfc]
call fcn.0054c0a0
mov edi, dword [esp + 0x160]
test edi, edi
je 0x54b299
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 1
push 0
push 0x5f3670
lea ecx, [ebp + 0xa0]
push 0x23
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov dword [ebp + 0xe0], eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ebx, ebx
mov dword [esp + 0x88], eax
test eax, eax
mov dword [esp + 0x48], ebx
jle 0x54b299
jmp 0x54aaa3
mov edi, dword [esp + 0x160]
mov ecx, dword [edi + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], esi
call sub.MFC42.DLL_CString::CString_5
push 0x400
push pe_nt_image_headers32
push pe_nt_image_headers32
lea ecx, [esp + 0x24]
mov dword [esp + 0x164], 0
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [edi + 4]
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x5fd02c
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x158], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x54], 0
push ecx
push 0x5fd02c
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov dword [esp + 0x68], 1
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 2
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
test esi, esi
jne 0x54ab9d
mov ecx, dword [esp + 0x160]
push ebx
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemID]
lea ecx, [ebp + 0x120]
push eax
mov dword [esp + 0x58], eax
call fcn.005497b0
jmp 0x54abb9
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp + 0x120]
call fcn.00549880
mov ecx, dword [esp + 0x18]
push 0x5fd02c
push ecx
mov dword [esp + 0x70], eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x54ac09
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x54ac09
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x15c], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x18]
mov dword [esp + 0x158], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x54b285
mov eax, dword [ebp + 0xe0]
mov edx, dword [esp + 0x18]
push 0xffff0002
push eax
push 0
push 0
push 0
push 0
push 0
lea ebx, [ebp + 0xa0]
push edx
push 1
mov ecx, ebx
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov edi, eax
mov eax, dword [esp + 0x68]
push eax
push edi
mov ecx, ebx
mov dword [esp + 0x8c], edi
call sub.MFC42.DLL_CTreeCtrl::SetCheck
lea ecx, [esp + 0x54]
mov dword [esp + 0xc8], edi
push ecx
lea ecx, [esp + 0xd0]
call fcn.0054b2c0
mov edx, dword [esp + 0xc8]
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x124]
mov byte [esp + 0x15c], 3
mov dword [esp + 0x120], edx
call fcn.0054b2c0
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x138]
push ecx
push edx
lea ecx, [ebp + 0xfc]
mov byte [esp + 0x160], 4
call fcn.0054be40
push 1
lea ecx, [esp + 0x128]
mov byte [esp + 0x15c], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xd4]
mov byte [esp + 0x15c], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor edi, edi
cmp esi, edi
je 0x54b23c
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], edi
jle 0x54b23c
jmp 0x54ad06
mov edi, dword [esp + 0x20]
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
lea ecx, [esp + 0x14]
mov ebx, eax
call sub.MFC42.DLL_CString::CString_5
push 0x400
push pe_nt_image_headers32
push pe_nt_image_headers32
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 5
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 4]
push eax
push edi
push edx
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x74]
mov byte [esp + 0x74], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x5fd02c
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x158], 6
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x6c], 0
push ecx
push 0x5fd02c
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov dword [esp + 0x80], 1
test ebx, ebx
mov byte [esp + 0x158], 7
jne 0x54add4
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetMenuItemID]
push eax
lea ecx, [ebp + 0x120]
mov dword [esp + 0x70], eax
call fcn.005497b0
jmp 0x54adf0
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp + 0x120]
call fcn.00549880
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, dword [esp + 0x14]
push 0x5fd02c
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x54ae54
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x54ae54
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x15c], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x54b214
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x14]
push 0xffff0002
push edx
push 0
push 0
push 0
push 0
push 0
push eax
push 1
lea ecx, [ebp + 0xa0]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esp + 0x80]
mov edi, eax
push ecx
push edi
lea ecx, [ebp + 0xa0]
mov dword [esp + 0x94], edi
call sub.MFC42.DLL_CTreeCtrl::SetCheck
lea edx, [esp + 0x6c]
lea ecx, [esp + 0xe8]
push edx
mov dword [esp + 0xe8], edi
call fcn.0054b2c0
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0x108]
mov byte [esp + 0x15c], 8
mov dword [esp + 0x104], eax
call fcn.0054b2c0
lea edx, [esp + 0x100]
lea eax, [esp + 0x140]
push edx
push eax
lea ecx, [ebp + 0xfc]
mov byte [esp + 0x160], 9
call fcn.0054be40
push 1
lea ecx, [esp + 0x10c]
mov byte [esp + 0x15c], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xf0]
mov byte [esp + 0x15c], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test ebx, ebx
je 0x54b1e1
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor esi, esi
mov dword [esp + 0x4c], eax
test eax, eax
mov dword [esp + 0x24], esi
jle 0x54b1dd
jmp 0x54af5b
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_5
push 0x400
push pe_nt_image_headers32
push pe_nt_image_headers32
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 0xa
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [ebx + 4]
push eax
push esi
push edx
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x5fd02c
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x158], 0xb
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x2c], 0
push ecx
push 0x5fd02c
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov dword [esp + 0x40], 1
mov ecx, dword [ebx + 4]
push esi
push ecx
mov byte [esp + 0x160], 0xc
call dword [sym.imp.USER32.dll_GetMenuItemID]
push eax
lea ecx, [ebp + 0x120]
mov dword [esp + 0x30], eax
call fcn.005497b0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x54b058
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x1c]
push 0x5fd02c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x54b07b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x54b180
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
push 0xffff0002
push ecx
push 0
push 0
push 0
push 0
push 0
lea edi, [ebp + 0xa0]
push edx
push 1
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov esi, eax
mov eax, dword [esp + 0x40]
push eax
push esi
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::SetCheck
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30]
mov dword [esp + 0x94], ecx
push edx
lea ecx, [esp + 0x9c]
mov dword [esp + 0x94], esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [esp + 0x40]
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x98]
mov dword [esp + 0xac], ecx
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x15c], 0xd
mov dword [esp + 0xb4], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xc4], ecx
lea edx, [esp + 0xac]
lea eax, [esp + 0x148]
push edx
push eax
lea ecx, [ebp + 0xfc]
mov byte [esp + 0x160], 0xe
call fcn.0054be40
push 1
lea ecx, [esp + 0xb8]
mov byte [esp + 0x15c], 0xd
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x15c], 0xc
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x54b1a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x54b19e
cmp al, 0xff
je 0x54b19e
dec al
mov byte [ecx], al
jmp 0x54b1a7
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov byte [esp + 0x158], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x54af53
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x74]
xor edi, edi
cmp eax, edi
je 0x54b208
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x54b1ff
cmp al, 0xff
je 0x54b1ff
dec al
mov byte [ecx], al
jmp 0x54b208
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x54ad02
xor edi, edi
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x54b261
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x54b258
cmp al, 0xff
je 0x54b258
dec al
mov byte [ecx], al
jmp 0x54b261
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x158], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x88]
inc ebx
cmp ebx, eax
mov dword [esp + 0x48], ebx
jl 0x54aa9c
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14c
ret 4