Function at 0x67870020
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67985e74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
push ebx
mov dword [ebp - 0x1c], esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPCommandBars::OnSetPreviewMode_int_
lea ecx, [ebp - 0xe0]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPDockState::constructor_void_
lea eax, [ebp - 0xe0]
mov ecx, esi
push eax
mov dword [ebp - 4], ebx
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPCommandBars::GetDockState_class_CMHPDockState__
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xe0]
push edi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPDockState::SaveState_char_const__
push edi
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPCommandBars::SaveDockBarsState_char_const__
mov ecx, dword [ebp + 0xc]
mov eax, 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x54], ebx
cmp eax, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x50], ecx
je 0x678703c4
lea ecx, [ebp - 0xb4]
call fcn.6797d7b4
mov dword [ebp - 0x90], 0x679973a4
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0xb4], sym.MfcHlpr520.dll_const_CMHPCommandBarList::vftable
mov dword [ebp - 0x94], esi
mov edx, dword [esi]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0xb4]
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call dword [edx + 0x94]
push 0x400
lea ecx, [ebp - 0x7c]
call fcn.6797dba4
mov dword [ebp - 0x7c], 0x6799f144
push ebx
push 0x1000
lea edx, [ebp - 0x7c]
push ebx
push edx
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call fcn.6797db9e
push edi
lea eax, [ebp - 0x26c]
push str._s_Controls
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x16c]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPPropExchangeArchive::constructor_class_CArchive__
mov eax, dword [esi]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x14c], edx
lea ecx, [ebp - 0xb4]
lea edx, [ebp - 0x16c]
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], 4
call dword [eax + 0x8c]
test eax, eax
je 0x6787036c
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CArchive::Flush
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
call dword [eax + 0x14]
lea ecx, [ebp - 0x7c]
mov edi, eax
call sub.MFC42.DLL_CMemFile::Detach
cmp edi, 0x14
mov dword [ebp + 0xc], eax
jb 0x67870211
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x6787020f
mov edx, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebx + 8]
push eax
push ecx
mov dword [ebp - 0x18], edi
call fcn.6796ba80
add esp, 0x10
test eax, eax
je 0x678701f0
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x6787020f
mov edx, dword [ebp + 0xc]
mov dword [ebx], 0x2150495a
push edx
mov dword [ebx + 4], edi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 0xc], ebx
lea edi, [eax + 8]
xor ebx, ebx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x3e80
mov byte [ebp - 4], 5
cmp ecx, edi
sbb edx, edx
neg edx
mov dword [ebp - 0x18], edx
je 0x67870302
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
push ecx
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPCommandBars::GetControlsFileName_class_CString___char_const__
cmp eax, ebx
je 0x67870302
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp - 0x14]
push ebx
push 0x1001
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CFile::Open
cmp eax, ebx
je 0x678702d1
mov ecx, dword [ebp + 0xc]
push edi
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Write
call sub.MFC42.DLL_AfxGetModuleState
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push edx
lea eax, [ebp - 0x26c]
push 0x6799f108
push eax
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
push 1
lea edx, [ebp - 0x26c]
push str.LoadFromFile
push edx
call sub.MFC42.DLL_CWinApp::WriteProfileInt
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [ebp - 0x14]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.6797dd48
mov dword [ebp - 4], 5
jmp 0x6787033e
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push edi
push ecx
lea edx, [ebp - 0x26c]
push 0x6799f108
push edx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::WriteProfileBinary
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push ebx
lea ecx, [ebp - 0x26c]
push str.LoadFromFile
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::WriteProfileInt
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CArchive::Abort
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CMemFile::Close
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
jmp 0x67870384
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push ebx
lea ecx, [ebp - 0x26c]
push ebx
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 3
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPPropExchange::destructor_void_
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CArchive::CArchive
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], 0x6799f144
call sub.MFC42.DLL_CMemFile::CMemFile
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPCommandBarList::destructor_void_
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x58]
test eax, eax
je 0x678703ec
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
cmp dword [eax + 0x1b4], ebx
je 0x678703ec
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x58]
mov ecx, eax
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPMenuBar::SwitchActiveMenu_void_
mov eax, dword [esi + 0x74]
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0x4c], ebx
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPDockState::destructor_void_
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8