Function at 0x678848d0
Capabilities:
Inspect section memory permissions

Disassembly:
push 0xffffffffffffffff
push 0x67986f47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x38]
mov dword [esp + 0x10], ebx
test eax, eax
je 0x6788528f
mov ecx, dword [esi + 0x48]
mov edi, dword [esp + 0x48]
test ecx, ecx
jne 0x67884946
mov eax, dword [esi + 8]
test eax, eax
je 0x67884946
cmp edi, 0x7c
je 0x6788492d
cmp edi, 0x7d
je 0x6788492d
cmp edi, 0x47
je 0x6788492d
cmp edi, 0x46
je 0x67884932
cmp edi, 0x85
jne 0x67884946
cmp edi, 0x46
jne 0x6788493c
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
and dword [eax + 0x18], 0xffffffdf
mov eax, 1
jmp 0x67885291
cmp edi, 0x46
jne 0x67884991
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov bl, byte [eax + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
test bl, 1
jne 0x6788528f
cmp dword [esi + 0x20], ecx
jne 0x67884971
cmp dword [esi + 0x24], edx
je 0x6788528f
push 0
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPOffice2007FrameHook::GetSiteStyle_int_const
test eax, 0x40000000
jne 0x6788528f
mov dword [esi + 0x3c], 1
jmp 0x6788528f
cmp edi, dword [sym.MfcHlpr520.dll_unsigned_int_CMHPOffice2007FrameHook::m_nMsgQueryFrameHook]
jne 0x678849a9
mov edx, dword [esp + 0x54]
mov eax, 1
mov dword [edx], esi
jmp 0x67885291
cmp edi, 0x47
jne 0x678849d5
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
test byte [ecx + 0x18], 0x20
je 0x6788528f
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x6788528f
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::UpdateFrameRegion_void_
jmp 0x6788528f
cmp edi, 5
je 0x6788523d
cmp edi, 0x7d
je 0x6788523d
mov ebp, dword [esp + 0x50]
cmp edi, 0xa5
jne 0x67884a5c
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
je 0x67884b41
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x67884b41
mov eax, dword [esi + 0x30]
test eax, eax
je 0x67884a22
mov ecx, esi
mov dword [esi + 0x30], 0
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007FrameHook::RedrawFrame_void_
mov edx, dword [esp + 0x50]
mov esi, dword [esi + 0xc]
mov eax, dword [edx]
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
push eax
push esi
push 0x313
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
jmp 0x67885291
cmp edi, 0xa1
jne 0x67884ac9
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
je 0x67884b41
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x67884b41
mov eax, dword [ebp]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::ScreenToFrame_struct_tagPOINT__
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_class_CMHPControl____thiscall_CMHPOffice2007FrameHook::HitTestCaptionButton_class_CPoint_
test eax, eax
je 0x67884b41
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::TrackCaptionButton_class_CMHPControl__
mov eax, 1
jmp 0x67885291
cmp edi, 0xa0
jne 0x67884b6f
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
je 0x67884b41
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x67884b41
mov eax, dword [ebp]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::ScreenToFrame_struct_tagPOINT__
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_class_CMHPControl____thiscall_CMHPOffice2007FrameHook::HitTestCaptionButton_class_CPoint_
cmp eax, dword [esi + 0x30]
je 0x67884b41
mov ecx, esi
mov dword [esi + 0x30], eax
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007FrameHook::RedrawFrame_void_
mov eax, dword [esi + 0x30]
test eax, eax
je 0x67884b5e
mov eax, dword [esi + 0xc]
push 0
push 0x32
push 0xacb1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
cmp edi, dword [esi + 0x50]
jne 0x6788514b
mov eax, dword [esp + 0x54]
mov dword [eax], 1
mov eax, 1
jmp 0x67885291
mov ecx, dword [esi + 0xc]
push 0xacb1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x67884b41
cmp edi, 0x113
jne 0x67884c21
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
cmp eax, 0xacd1
jne 0x67884ba8
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::RefreshFrameStyle_void_
mov eax, dword [esi + 0xc]
push 0xacd1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, 1
jmp 0x67885291
cmp eax, 0xacb1
jne 0x67884b41
test ecx, ecx
jne 0x67884b41
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x67884bc7
mov eax, 1
jmp 0x67885291
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::ScreenToFrame_struct_tagPOINT__
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_class_CMHPControl____thiscall_CMHPOffice2007FrameHook::HitTestCaptionButton_class_CPoint_
test eax, eax
jne 0x67884c17
mov eax, dword [esi + 0x30]
test eax, eax
je 0x67884c08
mov ecx, esi
mov dword [esi + 0x30], 0
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007FrameHook::RedrawFrame_void_
mov edx, dword [esi + 0xc]
push 0xacb1
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, 1
jmp 0x67885291
cmp edi, 0x84
jne 0x67884e8c
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
jne 0x67884ccb
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x67884ccb
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::ScreenToFrame_struct_tagPOINT__
call sym.MfcHlpr520.dll_class_CMHPHookManager____cdecl_MHPHookManager_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_long_int___thiscall_CMHPHookManager::Default_void_
mov edi, dword [esp + 0x54]
push 1
mov ecx, esi
mov dword [edi], eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPOffice2007FrameHook::GetSiteStyle_int_const
test ah, 2
je 0x67884cc1
push 0
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPOffice2007FrameHook::GetSiteStyle_int_const
test eax, 0x40000
je 0x67884cc1
push 0
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPOffice2007FrameHook::GetSiteStyle_int_const
test eax, 0x20000000
jne 0x67884cc1
mov ecx, dword [esi + 0x24]
mov eax, dword [esp + 0x14]
dec ecx
cmp eax, ecx
jne 0x67884cc1
cmp dword [edi], 0x12
jne 0x67884cc1
mov dword [edi], 0xf
mov eax, 1
jmp 0x67885291
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
jne 0x67884d6e
mov eax, dword [esi + 0x48]
test eax, eax
je 0x67884d6e
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov eax, dword [edi]
movsx edx, ax
shr eax, 0x10
movsx eax, ax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::ScreenToFrame_struct_tagPOINT__
call sym.MfcHlpr520.dll_class_CMHPHookManager____cdecl_MHPHookManager_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_long_int___thiscall_CMHPHookManager::Default_void_
mov ebx, dword [esp + 0x54]
mov ecx, esi
mov dword [ebx], eax
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::GetCaptionHeight_void_const
cmp dword [esp + 0x14], eax
jge 0x67884d64
lea ecx, [esp + 0x50]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPWinDwmWrapper::constructor_void_
mov edx, dword [edi]
mov ecx, dword [esp + 0x4c]
push ebx
push edx
mov edx, dword [ecx]
mov ecx, dword [esi + 0xc]
push edx
push 0x84
push ecx
mov ecx, eax
mov dword [esp + 0x50], 0
call sym.MfcHlpr520.dll_public:_long_int___thiscall_CMHPWinDwmWrapper::DefWindowProcA_struct_HWND_____unsigned_int__unsigned_int__long_int__long_int__
lea ecx, [esp + 0x50]
mov dword [esp + 0x3c], 0xffffffff
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPShellSettings::destructor_void_
mov eax, 1
jmp 0x67885291
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
je 0x67884b41
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x67884b41
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::ScreenToFrame_struct_tagPOINT__
call sym.MfcHlpr520.dll_class_CMHPHookManager____cdecl_MHPHookManager_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_long_int___thiscall_CMHPHookManager::Default_void_
mov edi, dword [esp + 0x54]
cmp eax, 0x14
mov dword [edi], eax
je 0x67884dd1
cmp eax, 8
je 0x67884dd1
cmp eax, 9
je 0x67884dd1
cmp eax, 0x15
jne 0x67884dd7
mov dword [edi], 2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
call sym.MfcHlpr520.dll_public:_class_CMHPControl____thiscall_CMHPControls::HitTest_class_CPoint_const
test eax, eax
je 0x67884e37
mov ecx, dword [eax + 0x90]
test ecx, ecx
jle 0x67884e05
mov eax, ecx
mov dword [edi], eax
mov eax, 1
jmp 0x67885291
mov ecx, dword [eax + 0x164]
test ecx, ecx
je 0x67884e25
mov eax, dword [ecx + 0x30]
test eax, eax
jg 0x67884e2b
mov eax, dword [ecx + 0x28]
mov dword [edi], eax
mov eax, 1
jmp 0x67885291
mov eax, dword [eax + 0x88]
mov dword [edi], eax
mov eax, 1
jmp 0x67885291
cmp dword [edi], 0
jne 0x67884e82
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::GetCaptionHeight_void_const
cmp dword [esp + 0x14], eax
jge 0x67884e82
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x10]
add eax, 7
cmp ecx, eax
jge 0x67884e7c
push 0
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPOffice2007FrameHook::GetSiteStyle_int_const
test eax, 0x80000
je 0x67884e7c
mov dword [edi], 3
mov eax, 1
jmp 0x67885291
mov dword [edi], 2
mov eax, 1
jmp 0x67885291
cmp edi, 0xc
jne 0x67884ed7
call sym.MfcHlpr520.dll_class_CMHPHookManager____cdecl_MHPHookManager_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_long_int___thiscall_CMHPHookManager::Default_void_
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
je 0x67884ebf
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007FrameHook::RedrawFrame_void_
mov eax, 1
jmp 0x67885291
mov eax, dword [esi + 0x10]
test eax, eax
je 0x67884ecd
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007FrameHook::RecalcFrameLayout_void_
mov eax, 1
jmp 0x67885291
cmp edi, 0x86
jne 0x67884fa8
test ecx, ecx
jne 0x67884b41
mov edx, dword [esp + 0x4c]
mov eax, dword [esi + 0xc]
push eax
mov ebx, dword [edx]
call sub.MFC42.DLL_CWnd::FromHandle
test byte [eax + 0x28], 0x20
je 0x67884f05
mov ebx, 1
mov ecx, eax
call sub.MFC42.DLL_CWnd::IsWindowEnabled
test eax, eax
jne 0x67884f12
xor ebx, ebx
push 0
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPOffice2007FrameHook::GetSiteStyle_int_const
test eax, 0x10000000
je 0x67884fa0
mov edi, eax
mov dword [esi + 8], 1
and edi, 0x40000
je 0x67884f45
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0x40000
push ecx
call sub.MFC42.DLL_CWnd::ModifyStyle_1
push 0
push ebx
call sym.MfcHlpr520.dll_class_CMHPHookManager____cdecl_MHPHookManager_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_long_int___thiscall_CMHPHookManager::Default_unsigned_int__long_int_
mov edx, dword [esp + 0x54]
test edi, edi
mov dword [edx], eax
je 0x67884f70
mov eax, dword [esi + 0xc]
push 0
push 0x40000
push 0
push eax
call sub.MFC42.DLL_CWnd::ModifyStyle_1
mov eax, dword [esi + 0x1c]
mov dword [esi + 8], 0
cmp eax, ebx
je 0x67884f96
mov ecx, esi
mov dword [esi + 0x1c], ebx
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::RepositionCaptionButtons_void_
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007FrameHook::RedrawFrame_void_
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007FrameHook::RedrawRibbonBar_void_
mov eax, 1
jmp 0x67885291
mov dword [esi + 0x1c], ebx
jmp 0x6788528f
cmp edi, 0x31e
jne 0x67885040
push 0
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPOffice2007FrameHook::GetSiteStyle_int_const
test eax, 0x40000000
je 0x67884fc8
xor edi, edi
jmp 0x67884fe7
lea ecx, [esp + 0x50]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPWinDwmWrapper::constructor_void_
mov ebx, 1
mov dword [esp + 0x10], ebx
mov ecx, eax
mov dword [esp + 0x3c], ebx
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPWinDwmWrapper::IsCompositionEnabled_void_
mov edi, eax
test bl, 1
mov dword [esp + 0x3c], 0xffffffff
je 0x67884ffd
lea ecx, [esp + 0x50]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPShellSettings::destructor_void_
cmp edi, dword [esi + 0x48]
je 0x6788528f
mov ecx, dword [esi + 0xc]
push 1
push 0
push ecx
mov dword [esi + 0x48], edi
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x67885025
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::RefreshFrameStyle_void_
mov edx, dword [esi + 0xc]
push 0x37
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x6788528f
cmp edi, 0x83
jne 0x67884b41
mov eax, dword [esi + 8]
test eax, eax
jne 0x67884b41
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x10]
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x67885084
call sym.MfcHlpr520.dll_class_CMHPHookManager____cdecl_MHPHookManager_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_long_int___thiscall_CMHPHookManager::Default_void_
mov edx, dword [esp + 0x54]
mov dword [edx], eax
jmp 0x678850ae
mov eax, dword [esi + 0x44]
mov ecx, dword [edi]
mov ebp, dword [edi + 4]
add ecx, eax
mov ebx, dword [edi + 8]
mov dword [edi], ecx
mov ecx, dword [esi + 0x44]
add ebp, ecx
mov ecx, dword [edi + 0xc]
mov dword [edi + 4], ebp
mov edx, dword [esi + 0x44]
sub ebx, edx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x44]
sub ecx, eax
mov dword [edi + 0xc], ecx
push 0
mov ecx, esi
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPOffice2007FrameHook::GetSiteStyle_int_const
mov ebx, eax
mov eax, dword [esi + 0x48]
test eax, eax
mov ecx, esi
je 0x678850d4
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
jne 0x67885125
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], ecx
jmp 0x67885125
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsCaptionVisible_void_const
test eax, eax
je 0x678850e9
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::GetCaptionHeight_void_const
sub eax, dword [esi + 0x44]
jmp 0x678850eb
xor eax, eax
mov ebp, dword [edi + 4]
push 0
add ebp, eax
mov ecx, esi
mov dword [edi + 4], ebp
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsFrameHasStatusBar_int__const
test eax, eax
je 0x67885125
test ebx, 0x1000000
jne 0x67885125
mov eax, dword [esp + 0x1c]
mov ebp, dword [edi + 0xc]
mov edx, eax
sub edx, ebp
lea ecx, [edx - 3]
cmp ecx, 1
jg 0x67885120
mov ecx, 1
sub eax, ecx
mov dword [edi + 0xc], eax
and ebx, 0x41000000
cmp ebx, 0x1000000
jne 0x67885141
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPOffice2007FrameHook::GetAutoHideBar_void_const
test eax, eax
je 0x67885141
dec dword [edi + 0xc]
mov eax, 1
jmp 0x67885291
cmp edi, 0x85
jne 0x678851d2
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x6788528f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x67885173
dec eax
mov dword [esi + 0x3c], eax
mov eax, 1
jmp 0x67885291
mov ecx, esi
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007FrameHook::IsMDIMaximized_void_const
test eax, eax
jne 0x678851c8
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::RepositionCaptionButtons_void_
mov ecx, dword [esi + 0xc]
push ecx
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x24]
call fcn.6797d9ac
mov ecx, esi
mov dword [esp + 0x3c], 2
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Theme____thiscall_CMHPOffice2007FrameHook::GetPaintManager_void_const
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push esi
push ecx
mov ecx, eax
call dword [edx + 0x148]
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CWindowDC::CWindowDC
mov eax, 1
jmp 0x67885291
cmp edi, 0x317
jne 0x67885225
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x6788528f
call sym.MfcHlpr520.dll_class_CMHPHookManager____cdecl_MHPHookManager_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_long_int___thiscall_CMHPHookManager::Default_void_
mov edx, dword [esp + 0x54]
mov dword [edx], eax
mov al, byte [ebp]
test al, 2
je 0x6788528f
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
push ecx
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, esi
mov edi, eax
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Theme____thiscall_CMHPOffice2007FrameHook::GetPaintManager_void_const
mov edx, dword [eax]
push esi
push edi
mov ecx, eax
call dword [edx + 0x148]
jmp 0x6788528f
cmp edi, 0x363
jne 0x6788528f
mov eax, dword [esi + 0x28]
test eax, eax
je 0x6788528f
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007FrameHook::RecalcFrameLayout_void_
jmp 0x6788528f
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push eax
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPWindowRect::constructor_struct_HWND____
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
sub eax, ebp
sub ecx, ebx
cmp edx, eax
jne 0x6788526f
cmp dword [esi + 0x24], ecx
jne 0x6788526f
cmp edi, 0x7d
jne 0x6788528f
xor edx, edx
cmp edi, 0x7d
sete dl
push edx
push ecx
push eax
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::UpdateFrameRegion_class_CSize__int_
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPOffice2007FrameHook::RepositionCaptionButtons_void_
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007FrameHook::RedrawFrame_void_
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x14