Function at 0x140146d70
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x420
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + CMFCRibbonInfo::XRibbonInfoParserRoot::XRibbonInfoParserRoot], rax
mov r15, rcx
mov qword [rsp + 0x80], rcx
xor edi, edi
lea rcx, [rsp + 0xe0]
call fcn.140158500
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r9, rax
mov r8d, dword [rsp + 0xec]
add r8d, 0xffffff9c
mov edx, dword [rsp + 0xe8]
add edx, 0xfffffe0c
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x180]
call fcn.14012f020
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rdx, str.Restoring_database
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
lea rdx, str.RestoreDbMsg
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
nop
mov r9, rbx
mov r8, rax
lea rdx, [rsp + 0x88]
lea rcx, [0x1403c4780]
call fcn.14015c950
nop
mov r9, qword [r15]
mov r8, qword [rsp + 0x88]
lea rdx, str.Ditto____s____s
lea rcx, [rsp + 0x48]
call fcn.14015b330
mov rdx, rax
lea rcx, [rsp + 0x180]
call fcn.14012f5f0
mov dword [rsp + 0x60], edi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildDatabaseUtilities.cpp
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov r8, qword [r15]
lea rdx, str.Start_restoring_db__from:__s
lea rcx, [rsp + 0x30]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, 0x246
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rdx, [0x1402ac320]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
nop
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.1401787d0
nop
lea edx, [rdi + 0xc]
lea rcx, [rsp + 0x68]
call fcn.14016bf30
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140179c20
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_Ordinal_1667]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
lea rcx, [rsp + 0xf8]
mov qword [rsp + 0xf0], rcx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.1400f8f90
nop
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char__1]
nop
lea rax, [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
cmp rcx, rax
je 0x140146f94
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___2]
mov rcx, rax
lea rdx, reloc.OLEAUT32.dll_VarBstrFromDisp
call fcn.140254670
mov r14, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XImage::XImage]
test r14, r14
je 0x140147311
lea rcx, [rsp + 0xb8]
call sub.mfc140u.dll_CEnumArray::CEnumArray
nop
lea rcx, [rsp + 0x90]
call sub.mfc140u.dll_CDrawingManager::CDrawingManager
lea r12, vtable.CFileException.0
mov qword [rsp + 0x90], r12
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov dword [rsp + 0xa0], edi
mov dword [rsp + 0xa4], 0xffffffff
xor edx, edx
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rax
lea r9, [rsp + 0x90]
mov r8d, 0x1001
lea rcx, [rsp + 0xb8]
call sub.mfc140u.dll_COleControl::OnSysKeyDown
test eax, eax
je 0x14014710c
mov ecx, 0x10000
call sub.mfc140u.dll_operator_2
mov rdi, rax
nop dword [rax + rax]
mov r8d, 0x10000
mov rdx, rdi
mov rcx, r14
call fcn.1402531e0
mov ebx, eax
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0xb8]
call sub.mfc140u.dll_CMFCToolBarsCustomizeDialog::ShowToolBar
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildDatabaseUtilities.cpp
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rsi, rax
mov r8d, ebx
lea rdx, str.restoring_db_uncompressed_bytes_read:__d
lea rcx, [rsp + 0x30]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, CMFCDropDownListBox::CMFCDropDownListBox
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
cmp ebx, 0x10000
jge 0x140147070
lea rcx, [rsp + 0xb8]
call sub.mfc140u.dll_CWinAppEx::CleanState
mov rcx, r14
call fcn.140253f60
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov edx, 1
mov rcx, rax
call fcn.140147560
test eax, eax
je 0x1401472d8
lea rcx, [rsp + 0x40]
call fcn.140146150
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1401787d0
nop
mov r8b, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call fcn.140179cc0
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rdx, [0x1402d1b34]
lea rcx, [rsp + 0x78]
call fcn.14017a9c0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.140179c20
nop
mov r8, rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140145040
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov ebx, 1
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140147227
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.14017a0e0
nop
mov dword [rsp + 0x20], ebx
mov r9, qword [rax]
mov r8, qword [rsp + 0x48]
lea rdx, str._s_s__d.db
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
inc ebx
jmp 0x1401471d0
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rbx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14014728a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rcx, rax
call fcn.14016fa30
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rcx, rax
call fcn.140146340
mov dword [rsp + 0x60], 1
jmp 0x1401472a7
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x68]
lea rdx, str.Failed_to_copy_file__s_to__s
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x1401472eb
lea rdx, str.Unpacked_database_is_not_a_valid_Ditto_database
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
nop
mov qword [rsp + 0x90], r12
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0xb8]
call sub.mfc140u.dll_CDockingManager::CDockingManager
jmp 0x140147329
mov r8, qword [rsp + 0x68]
lea rdx, str.Failed_to_open_file__s
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
nop
jmp 0x140147333
lea rdx, [0x1402ac320]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_2903]
nop
test eax, eax
je 0x1401473b9
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r8, qword [rsp + 0x58]
lea rdx, str.Restore_ERROR:__s
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov edx, eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
xor r9d, r9d
mov r8, rax
mov edx, 0x4e5
mov rcx, qword [0x1403c4508]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildDatabaseUtilities.cpp
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov r9, qword [rsp + 0x58]
mov r8, qword [r15]
lea rdx, str.Done_restoring_db__from:__s__error:__s
lea rcx, [rsp + 0x38]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, 0x2ad
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor edx, edx
lea rcx, [0x1403c4350]
call fcn.14010c130
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x180]
call fcn.14012f0d0
nop
mov rcx, r15
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.1402654f0
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret