Function at 0x678d7ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6798ac68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xf
lea eax, [esi + 0x9c]
mov ecx, dword [esi + 0x9c]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x40], edx
call sym.MfcHlpr520.dll_private:_static_class_CMHPColorManager____cdecl_CMHPColorManager::Instance_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
mov ebx, dword [esp + 0x70]
push eax
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CDC::FillSolidRect_1
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPExcelTabCtrl::GetTotalArrowWidth_void_const
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
lea edx, [eax + ecx - 1]
mov al, byte [esi + 0x94]
test al, 1
mov dword [esp + 0x58], edx
je 0x678d7d69
mov edi, dword [esp + 0x34]
jmp 0x678d7d70
mov eax, dword [esp + 0x3c]
lea edi, [eax - 1]
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPButtonTheme____thiscall_CMHPButton::GetTheme_void_const
mov ecx, dword [eax + 0x94]
add eax, 0x8c
cmp ecx, 0xffffffff
jne 0x678d7d8c
mov eax, dword [eax + 4]
jmp 0x678d7d8e
mov eax, ecx
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
push eax
sub ecx, ebp
push 1
push ecx
xor ebp, ebp
push edi
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CDC::FillSolidRect
lea edi, [esi + 0x180]
mov dword [esp + 0x10], 4
lea edx, [edi + 8]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x678d7dde
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CMHPButtonTheme____thiscall_CMHPButton::GetTheme_void_const
mov edx, dword [eax]
push edi
push esi
push ebx
mov ecx, eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
add edi, 0x1c
dec eax
mov dword [esp + 0x10], eax
jne 0x678d7db5
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jl 0x678d7fe7
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPExcelTabCtrl::GetTotalTabWidth_void_const
lea ecx, [esp + 0x40]
mov edi, eax
call fcn.6797d946
cmp ebx, ebp
mov dword [esp + 0x68], ebp
jne 0x678d7e1a
xor eax, eax
jmp 0x678d7e1d
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CDC::Attach
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0x67995a04
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebx + 4]
push eax
push edi
push ecx
mov byte [esp + 0x74], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x44]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x5c]
push 0xf
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], eax
call sym.MfcHlpr520.dll_private:_static_class_CMHPColorManager____cdecl_CMHPColorManager::Instance_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CDC::FillSolidRect_1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x104]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov ecx, esi
xor edi, edi
mov dword [esp + 0x10], ebp
call dword [eax + 0xe4]
mov ebx, eax
test ebx, ebx
jle 0x678d7f1a
cmp ebp, dword [esi + 0x60]
je 0x678d7f01
mov ecx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
call sym.MfcHlpr520.dll_public:_class_CMHPButtonTheme____thiscall_CMHPButton::GetTheme_void_const
mov ecx, dword [esi + 0x1f4]
mov edx, dword [eax]
mov ecx, dword [ecx + ebp*4]
push ecx
lea ecx, [esp + 0x2c]
push 0
push ecx
lea ecx, [esp + 0x4c]
push esi
push ecx
mov ecx, eax
call dword [edx + 0x10]
jmp 0x678d7f0d
push ebp
mov ecx, esi
mov dword [esp + 0x14], edi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPExcelTabCtrl::GetTabWidth_int_const
mov edx, dword [esp + 0x14]
add edi, eax
sub edi, edx
inc ebp
cmp ebp, ebx
jl 0x678d7ec9
mov eax, dword [esi + 0x60]
test eax, eax
jl 0x678d7f5d
test ebx, ebx
jle 0x678d7f5d
mov edx, dword [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
call sym.MfcHlpr520.dll_public:_class_CMHPButtonTheme____thiscall_CMHPButton::GetTheme_void_const
mov ecx, dword [esi + 0x60]
mov edi, dword [esi + 0x1f4]
mov edx, dword [eax]
mov ecx, dword [edi + ecx*4]
push ecx
lea ecx, [esp + 0x2c]
push 1
push ecx
lea ecx, [esp + 0x4c]
push esi
push ecx
mov ecx, eax
call dword [edx + 0x10]
mov edi, dword [esi + 0x6c]
mov ebx, dword [esi + 0x5c]
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPExcelTabCtrl::GetTotalTabAreaWidth_void_const
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x40]
neg ecx
sbb ecx, ecx
push 0xcc0020
and ecx, edx
mov edx, dword [esp + 0x38]
push 0
push edi
push ecx
mov ecx, dword [esp + 0x80]
push ebx
push eax
mov eax, dword [esp + 0x30]
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x678d7fa9
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x48]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov dword [esp + 0x20], 0x67995a18
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], 0x67995a40
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ebx, dword [esp + 0x70]
test byte [esi + 0x94], 0x10
je 0x678d8019
lea ecx, [esi + 0xcc]
sub esp, 0x10
mov edx, esp
mov eax, dword [ecx]
push ebx
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPExcelTabCtrl::DrawGripper_class_CDC___class_CRect_const
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 4