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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6798759a
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x54
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x6788f405
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jmp 0x6788f426
push esi
lea ecx, [esp + 0x58]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPWindowRect::constructor_class_CWnd_const__
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 4]
mov edx, dword [eax + 8]
mov edi, dword [eax]
sub ecx, ebx
sub edx, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov ebx, dword [sym.imp.USER32.dll_SetRectEmpty]
lea ebp, [esi + 0x234]
push ebp
call ebx
lea eax, [esi + 0x218]
push eax
call ebx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPCommandBar::GetControlCount_void_const
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x134]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPBarPaintManager____thiscall_CMHPCommandBar::GetPaintManager_void_const
mov edx, dword [eax]
push 0
push 0
push esi
lea ecx, [esp + 0x48]
push 0
push ecx
mov ecx, eax
call dword [edx + 0x8c]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x1a4]
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], 0
je 0x6788f4d6
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPBarPaintManager____thiscall_CMHPCommandBar::GetPaintManager_void_const
push 0
push 0
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [esp + 0x8c], esp
mov ebx, dword [edi]
push 0
call fcn.67831af0
lea eax, [esp + 0x4c]
push 0
push eax
mov ecx, edi
call dword [ebx + 0xc8]
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x48]
mov eax, dword [eax + 4]
add ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ecx
mov eax, dword [esi + 0x1c8]
test eax, eax
je 0x6788f4f8
mov edx, dword [esi + 0x1c4]
mov ecx, dword [esi + 0x1bc]
mov eax, dword [esp + 0x50]
sub edx, ecx
add eax, edx
mov dword [esp + 0x50], eax
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]
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 0
je 0x6788f5e0
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPBarPaintManager____thiscall_CMHPCommandBar::GetPaintManager_void_const
mov edx, dword [eax]
push 0
push 0
push esi
push 0
push 1
lea ecx, [esp + 0x30]
push 0
push ecx
mov ecx, eax
call dword [edx + 0xc0]
mov edx, dword [eax]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 4]
add ecx, eax
mov dword [esp + 0x38], eax
test edi, edi
mov dword [esp + 0x50], ecx
jne 0x6788f5d2
push 0x17c
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x74], ebx
test ebx, ebx
mov dword [esp + 0x6c], edi
je 0x6788f5a5
mov ecx, ebx
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPControlButton::constructor_void_
mov dword [ebx], sym.MfcHlpr520.dll_public_virtual:_struct_CRuntimeClass____thiscall_CMHPControlButton::GetRuntimeClass_void_const
mov dword [ebx + 0x20], 0x679a1670
mov dword [ebx + 0x104], 1
mov dword [ebx + 0xd8], 0x5a
jmp 0x6788f5a7
xor ebx, ebx
mov ecx, dword [esi + 0xe8]
push 1
push 0xffffffffffffffff
push sym.MfcHlpr520.dll____C__00A___AA_
push 0x23be
push ebx
mov dword [esp + 0x80], 0xffffffff
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPControls::Add_class_CMHPControl___int__char_const___int__int_
mov dword [esp + 0x14], eax
mov edi, eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x98]
jmp 0x6788f5f0
test edi, edi
je 0x6788f5f0
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x98]
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x6788f7c9
cmp dword [esi + 0x210], 1
jne 0x6788f60f
mov dword [esi + 0x210], 0
mov ecx, dword [esi + 0x210]
mov eax, dword [esp + 0x48]
test ecx, ecx
mov ebx, eax
je 0x6788f63b
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
lea ebx, [eax + 0x10]
sub ecx, edx
mov edx, dword [esp + 0x44]
push ebx
push ecx
push eax
push edx
push ebp
call dword [sym.imp.USER32.dll_SetRect]
mov ebp, dword [esi + 0x210]
mov eax, dword [esp + 0x10]
cmp ebp, eax
mov dword [esp + 0x78], 1
mov dword [esp + 0x74], ebp
jge 0x6788f7c0
push ebp
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPCommandBar::GetControl_int_const
mov edi, eax
mov ecx, dword [edi + 0xd4]
mov eax, dword [edi]
and ecx, 0xfffffff7
push ecx
mov ecx, edi
call dword [eax + 0x98]
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x84]
test eax, eax
je 0x6788f724
lea eax, [edi + 0xc4]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [esp + 0x24], edx
mov ebp, dword [ecx + 0xc]
mov ecx, edi
sub ebp, eax
mov eax, dword [edi]
call dword [eax + 0x68]
test eax, eax
je 0x6788f6b7
add ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
sub ecx, ebp
sub ecx, ebx
lea edx, [eax + 0x10]
cmp ecx, edx
jge 0x6788f6e2
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x6788f7b7
mov ebp, dword [esp + 0x30]
sub ebp, eax
mov eax, dword [esp + 0x48]
sub ebp, eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
add ebp, ebx
sub esp, 0x10
mov dword [esp + 0x2c], ebp
mov ebp, esp
sub eax, edx
mov edx, dword [edi]
mov dword [esp + 0x88], 0
mov dword [ebp], ecx
mov ecx, edi
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
call dword [edx + 0x80]
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
mov dword [esp + 0x74], ebp
jl 0x6788f659
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, ebp
cmp ebp, ecx
jge 0x6788f770
push ebx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPCommandBar::GetControl_int_const
mov ecx, dword [eax + 0xd4]
mov edx, dword [eax]
or ecx, 8
push ecx
mov ecx, eax
call dword [edx + 0x98]
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x6788f747
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x30]
cmp ebp, ecx
mov dword [esi + 0x214], ebp
je 0x6788f93c
mov ebp, dword [esp + 0x2c]
mov edx, ebx
sub edx, eax
mov ecx, ebp
push edx
mov edx, dword [esp + 0x50]
sub ecx, edx
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x48]
sub edx, 0x10
push ecx
push edx
push eax
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x6788f940
mov ebp, dword [esp + 0x74]
jmp 0x6788f739
mov eax, dword [esp + 0x50]
jmp 0x6788f73d
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x214]
lea ecx, [eax - 1]
cmp edx, ecx
jne 0x6788f7e0
mov dword [esi + 0x214], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov ebx, dword [esi + 0x214]
sub eax, ecx
cmp ebx, edx
mov ebp, eax
je 0x6788f825
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebx
sub edx, ecx
push eax
mov eax, dword [esp + 0x4c]
sub edx, 0x10
sub ebp, 0x10
push edx
push eax
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [esi + 0x214]
dec ebx
mov dword [esp + 0x74], ebx
js 0x6788f8df
push ebx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPCommandBar::GetControl_int_const
mov edi, eax
mov ecx, edi
mov eax, dword [edi + 0xd4]
mov edx, dword [edi]
and al, 0xf7
push eax
call dword [edx + 0x98]
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x84]
test eax, eax
je 0x6788f8d0
lea eax, [edi + 0xc4]
mov ebx, ebp
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0xc]
sub eax, ecx
sub ebx, eax
cmp ebx, 0x10
jl 0x6788fa20
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
sub esp, 0x10
sub eax, edx
mov edx, esp
mov dword [esp + 0x6c], eax
mov eax, dword [edi]
mov dword [edx], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 4], ebx
mov dword [edx + 8], ecx
mov ecx, edi
mov dword [edx + 0xc], ebp
call dword [eax + 0x80]
mov edx, dword [edi]
mov ecx, edi
mov ebp, ebx
call dword [edx + 0x68]
test eax, eax
je 0x6788f8cc
sub ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x74]
dec ebx
mov dword [esp + 0x74], ebx
jns 0x6788f836
mov edi, dword [esp + 0x14]
test ebx, ebx
mov ebp, ebx
jl 0x6788f904
push ebp
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPCommandBar::GetControl_int_const
mov ecx, dword [eax + 0xd4]
mov edx, dword [eax]
or ecx, 8
push ecx
mov ecx, eax
call dword [edx + 0x98]
dec ebp
jns 0x6788f8e5
lea edx, [ebx + 1]
cmp ebx, 0xffffffff
mov dword [esi + 0x210], edx
je 0x6788f938
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x50]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
lea eax, [esi + 0x234]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esi + 0x198]
test eax, eax
je 0x6788f995
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x98]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
mov eax, ebx
mov ebx, dword [esp + 0x4c]
sub eax, ecx
sub esp, 0x10
mov ecx, ebp
mov ebp, esp
mov edi, dword [edi]
sub ecx, ebx
mov ebx, dword [esp + 0x48]
mov dword [ebp], edx
add ebx, eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0xc], ebx
call dword [edi + 0x80]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, ebp
mov edi, dword [sym.imp.USER32.dll_SetRect]
sub ecx, edx
mov edx, dword [esp + 0x40]
push eax
sub eax, edx
mov edx, dword [esp + 0x48]
push ecx
push eax
lea eax, [esi + 0x1a8]
push edx
push eax
call edi
mov eax, dword [esi + 0x1c8]
test eax, eax
je 0x6788f9f5
mov edx, dword [esi + 0x1c4]
mov ecx, dword [esi + 0x1bc]
lea eax, [esi + 0x1b8]
sub edx, ecx
mov ecx, dword [esp + 0x50]
sub edx, ecx
add edx, ebx
sub ebx, ecx
mov ecx, dword [esp + 0x44]
push edx
sub ebp, dword [esp + 0x50]
push ebp
push ebx
push ecx
push eax
call edi
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x6788fa0b
mov edx, dword [esi]
push 1
push 0
mov ecx, esi
call dword [edx + 0x128]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0xc
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x74]
jmp 0x6788f8df