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

Disassembly:
push 0xffffffffffffffff
push 0x6798757a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x6c]
mov dword [esi + 0x194], 1
call fcn.6797db38
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x84], ebx
call sym.MfcHlpr520.dll_public:_class_CMHPBarPaintManager____thiscall_CMHPCommandBar::GetPaintManager_void_const
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0xf4]
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x50]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPFontDC::constructor_class_CDC___class_CFont__
lea ecx, [esp + 0x58]
push ebx
push ecx
push ebx
push 0x30
mov byte [esp + 0x94], 1
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [esi]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call dword [edx + 0x134]
mov eax, dword [esi + 0x1a4]
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x6788ea98
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPBarPaintManager____thiscall_CMHPCommandBar::GetPaintManager_void_const
push ebx
push ebx
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [esp + 0x28], esp
mov ebp, dword [edi]
push ebx
call fcn.67831af0
lea ecx, [esp + 0x80]
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, edi
call dword [ebp + 0xc8]
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
add ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ecx
cmp dword [esi + 0xe4], 1
jne 0x6788eb2e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x160]
lea eax, [esp + 0x38]
push ebx
push eax
push 0x142
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPShortcutManager____thiscall_CMHPCommandBars::GetShortcutManager_void_const
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0xe8]
push edx
call sym.MfcHlpr520.dll_public:_class_CSize___thiscall_CMHPControls::CalcDynamicSize_class_CDC___int__unsigned_long_int__class_CRect_const___int_
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
sub eax, ecx
mov ecx, edx
sub ecx, ebp
push edx
push eax
mov eax, dword [esp + 0x40]
push ecx
lea ecx, [esi + 0x1a8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esi + 0x1b8]
push edx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x194], ebx
mov esi, dword [esp + 0x8c]
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x6788eda9
mov ecx, dword [esi + 0xe8]
push ebx
push 1
push 0xffffffffffffffff
push 0xa
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPControls::FindControl_enum_MHPControlType__int__int__int_const
cmp eax, ebx
je 0x6788eb50
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x11c]
jmp 0x6788eb52
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x1c8], eax
mov dword [esp + 0x2c], ebx
je 0x6788eb7b
sub eax, 2
mov ecx, dword [esp + 0x44]
neg eax
sbb eax, eax
and eax, 3
add eax, 8
add ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ecx
cmp dword [esp + 0x90], ebx
jne 0x6788ebcd
mov ecx, esi
xor edi, edi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPCommandBar::GetControlCount_void_const
test eax, eax
jle 0x6788ebbc
push edi
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPCommandBar::GetControl_int_const
cmp eax, ebx
je 0x6788ebb0
cmp dword [eax + 0x108], esi
jne 0x6788ebb0
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0xa8]
mov ecx, esi
inc edi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPCommandBar::GetControlCount_void_const
cmp edi, eax
jl 0x6788eb91
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPPopupBar::UpdateExpandingState_void_
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
mov ecx, dword [esi + 0xe8]
push 0x23be
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPControls::FindControl_int_const
mov edi, eax
mov eax, dword [esi + 0x198]
xor ebp, ebp
cmp eax, ebx
je 0x6788eca4
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPBarPaintManager____thiscall_CMHPCommandBar::GetPaintManager_void_const
mov edx, dword [eax]
push ebx
push ebx
push esi
push ebx
lea ecx, [esp + 0x78]
push 1
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call dword [edx + 0xc0]
mov edx, dword [eax]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], edx
mov ebp, dword [eax + 4]
add ecx, ebp
cmp edi, ebx
mov dword [esp + 0x44], ecx
jne 0x6788ec96
push 0x17c
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x84], 2
je 0x6788ec70
mov ecx, edi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPControlButton::constructor_void_
mov dword [edi], sym.MfcHlpr520.dll_public_virtual:_struct_CRuntimeClass____thiscall_CMHPControlButton::GetRuntimeClass_void_const
mov dword [edi + 0x20], 0x679a1670
mov dword [edi + 0x104], 1
mov dword [edi + 0xd8], 0x5a
jmp 0x6788ec72
xor edi, edi
mov ecx, dword [esi + 0xe8]
push 1
push 0xffffffffffffffff
push sym.MfcHlpr520.dll____C__00A___AA_
push 0x23be
push edi
mov byte [esp + 0x98], 1
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPControls::Add_class_CMHPControl___int__char_const___int__int_
mov edi, eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x98]
jmp 0x6788ecb4
cmp edi, ebx
je 0x6788ecb4
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x98]
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call sym.MfcHlpr520.dll_public:_class_CMHPShortcutManager____thiscall_CMHPCommandBars::GetShortcutManager_void_const
mov ecx, dword [esp + 0x94]
push eax
lea edx, [esp + 0x70]
push ecx
mov ecx, dword [esi + 0xe8]
lea eax, [esp + 0x24]
push edx
push eax
call sym.MfcHlpr520.dll_public:_class_CSize___thiscall_CMHPControls::CalcPopupSize_class_CDC___int__int__class_CRect_const__
cmp dword [esi + 0x198], ebx
je 0x6788ed37
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0x98]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
sub eax, ebx
sub esp, 0x10
mov ebx, dword [edi]
lea ecx, [eax + ebp]
mov ebp, esp
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x48]
mov dword [ebp], edx
mov edx, dword [esp + 0xa0]
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov ecx, edi
mov dword [ebp + 0xc], edx
call dword [ebx + 0x80]
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
sub eax, ecx
mov edi, dword [sym.imp.USER32.dll_SetRect]
mov ecx, edx
push edx
sub ecx, ebp
push eax
mov eax, dword [esp + 0x40]
push ecx
lea ecx, [esi + 0x1a8]
push eax
push ecx
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x40]
sub eax, ecx
mov ecx, dword [esp + 0x18]
add edx, eax
sub ecx, ebp
push edx
push ecx
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esi + 0x1b8]
push eax
push ecx
call edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x194], ebx
mov esi, dword [esp + 0x8c]
mov dword [esi], edx
mov dword [esi + 4], eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], bl
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPFontDC::destructor_void_
lea ecx, [esp + 0x68]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret 0xc