Function at 0x140173860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x58
mov rdi, rcx
mov edx, 1
call sub.mfc140u.dll_CWnd::SetWindowPlacement
call fcn.14016b0a0
test al, al
jne 0x1401738a2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, qword [rdi + 0xc98]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.140171670
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, qword [rdi + 0x9e0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.14016f650
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, qword [rdi + 0xac8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.14016f620
lea rcx, [rdi + 0x8b0]
call fcn.140232e70
mov ecx, eax
call fcn.140170640
lea rcx, [rdi + 0x7c0]
call fcn.140232e70
mov ecx, eax
call fcn.140170170
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rdi + 0xf18]
lea rdx, [rbp + 0x38]
call sub.mfc140u.dll_CMFCOutlookBarToolBar::GetMessageMap
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rcx, rax
call fcn.14016f7e0
lea rcx, [rdi + 0x1000]
lea rdx, [rbp + 0x38]
call sub.mfc140u.dll_CMFCOutlookBarToolBar::GetMessageMap
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rcx, rax
call fcn.14016f780
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rdi + 0x288]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x1401739c7
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rdi + 0x288]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
lea r8, [rbp + 0x30]
lea rcx, [rdi + 0x248]
call sub.mfc140u.dll_CMFCMenuBar::GetHelpCombobox
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rcx, rax
call fcn.140170350
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::HitTest]
test al, al
jne 0x140173a47
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rdx, rax
lea rcx, [0x1403c4780]
call fcn.14015ca60
test al, al
jne 0x140173a47
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r9, qword [0x1403c4788]
mov r8, qword [rbp + 0x30]
lea rdx, str.Error_loading_language_file____s____n_n_s
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rax
xor r9d, r9d
lea r8, [0x1402ac728]
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonStatusBar::LoadState
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rdx, [rbp - 0x30]
lea rcx, [rdi + 0x6d8]
call sub.mfc140u.dll_CMFCOutlookBarToolBar::GetMessageMap
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.14016f170
nop
xor sil, sil
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::HitTest]
test al, al
jne 0x140173be4
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rbp + 0x40]
cmp eax, 0xffffffff
jne 0x140173bae
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r8, qword [rbp + 0x28]
lea rdx, str.The_database__s_does_not_exist._n_nCreate_a_new_database_
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rax
mov r9d, 4
lea r8, [0x1402ac728]
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonStatusBar::LoadState
cmp eax, 6
jne 0x140173b9d
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rcx, rax
call fcn.140145c80
test eax, eax
je 0x140173b18
mov sil, 1
jmp 0x140173b2e
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Error_Creating_Database
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonStatusBar::LoadState
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test sil, sil
je 0x140173be4
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x40]
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, [rbp + 0x28]
lea rcx, [rbp + 0x40]
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
test eax, eax
jne 0x140173bd6
lea rdx, str.Error_Opening_new_database
xor r9d, r9d
lea r8, [0x1402ac728]
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonStatusBar::LoadState
lea rcx, [rdi + 0x6d8]
call sub.mfc140u.dll_CMFCRibbonSlider::SetACCData
xor ebx, ebx
jmp 0x140173d41
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor ebx, ebx
jmp 0x140173d41
lea rdx, [rbp + 0x28]
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
jne 0x140173b41
lea rdx, str.Invalid_Database
jmp 0x140173b78
xor edx, edx
lea rcx, [0x1403c4350]
call fcn.14010c130
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rdi + 0x1fb8]
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd r8, eax
xor r9d, r9d
mov edx, 0x150
mov rcx, qword [rdi + 0x1fb8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.1401712a0
cmp dword [rdi + 0x1c58], 0
je 0x140173c31
lea rcx, [rdi + 0x1c48]
call fcn.140170290
lea rcx, [rbp - 0x28]
call fcn.14016e100
nop
lea rdx, [0x1402ac320]
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
nop
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rdi + 0x1d00]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x140173cda
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rdi + 0x1d00]
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd r8, eax
xor r9d, r9d
mov edx, 0x150
mov rcx, qword [rdi + 0x1d00]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 1
jne 0x140173cda
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rdi + 0x1d00]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
lea r8, [rbp - 0x38]
lea rcx, [rdi + 0x1cc0]
call sub.mfc140u.dll_CMFCMenuBar::GetHelpCombobox
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
jmp 0x140173ceb
lea rdx, [0x1402b04e8]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rcx, rax
call fcn.140171de0
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc140u.dll_Ordinal_2903]
nop
test eax, eax
je 0x140173d21
mov rax, qword [rdi + 0x1c28]
mov dword [rax + 0x190], 1
mov rcx, rdi
call sub.mfc140u.dll_CMFCAutoHideButton::m_nTextMargin
mov ebx, eax
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, ebx
add rsp, 0x58
pop rdi
pop rsi
pop rbx
pop rbp
ret