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

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, reloc.MFC42u.dll_CDialogTemplate::CDialogTemplate
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov r15d, r8d
mov rsi, rcx
xor edi, edi
lea r10d, [rdi + 2]
test rdx, rdx
je 0x14005a7f8
mov rax, qword [rcx + 0x48]
mov r9, rdx
sub r9, rax
movzx ecx, word [rax]
movzx r8d, word [rax + r9]
sub ecx, r8d
jne 0x14005a7e6
add rax, r10
test r8d, r8d
jne 0x14005a7d1
test ecx, ecx
jne 0x14005a7f8
mov rax, qword [rsi + reloc.MFC42u.dll_CProperty::CProperty]
test rax, rax
cmovne rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop dword [rax + rax]
nop
mov r14d, dword [rsi + 0x1c0]
mov dword [rbp + 0x98], r14d
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0xc0]
call qword [str._E_t_]
mov r13d, eax
mov dword [rbp + 0xa8], eax
call fcn.14003f410
mov r12d, edi
mov ebx, edi
mov ecx, 1
mov rax, qword [rsp + 0x30]
cmp dword [rax - 8], edi
je 0x14005a90b
cmp dword [rsi + 0x1d8], edi
jne 0x14005a90b
movsxd rax, dword [rsi + 0x1c0]
lea rcx, [rax + rax*4]
add rcx, rcx
lea rax, [0x1400fdadc]
cmp dword [rax + rcx*8], edi
jne 0x14005a90e
cmp dword [0x1400ff400], edi
jne 0x14005a8ff
xor r8d, r8d
mov edx, 0x1b5b
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_CDocument::CDocument]
nop dword [rax + rax]
lea rax, vtable.UnsupportedSaveFormatDialog.0
mov qword [rsp + 0x70], rax
mov dword [rbp + 0x30], edi
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_COleUpdateDialog::DoModal]
nop dword [rax + rax]
mov ecx, 1
cmp rax, rcx
je 0x14005a8dc
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_COleVariant::operator_1]
nop dword [rax + rax]
jmp 0x14005b05d
mov eax, dword [0x1400ff400]
cmp dword [rbp + 0x30], edi
cmovne eax, ecx
mov dword [0x1400ff400], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_COleVariant::operator_1]
nop dword [rax + rax]
mov dword [rsi + 0x1c0], 5
jmp 0x14005a90e
mov r12d, ecx
cmp qword [rsi + 0xe8], rdi
jne 0x14005a967
mov eax, dword [rsi + 0x1c0]
add eax, 0xfffffff8
cmp eax, 2
ja 0x14005a967
test r12d, r12d
jne 0x14005aae7
mov rcx, rsi
call fcn.14005b53c
mov rcx, rax
call fcn.14005caa0
test eax, eax
jne 0x14005a970
or r8d, 0xffffffff
lea edx, [rax + 4]
lea ecx, [rax + 0x70]
call qword [sym.imp.MFC42u.dll_Ordinal_1498]
nop dword [rax + rax]
cmp eax, 6
je 0x14005a970
lea ecx, [r12 + 1]
mov r12d, ecx
mov ebx, ecx
test r12d, r12d
jne 0x14005aae7
cmp byte [rsi + 0x1f0], dil
je 0x14005aae7
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
xor edx, edx
mov r8d, SHCreateDirectory
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x70], SHCreateDirectory
call qword [sym.imp.MFC42u.dll_Ordinal_1463]
nop dword [rax + rax]
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x7c], rcx
mov dword [rbp - 0x7c], 0x1010
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rcx, rax
test rax, rax
je 0x14005a9fd
mov rax, qword [rax]
mov rax, qword [rax + 0xf8]
call qword [str._E_t_]
jmp 0x14005aa00
mov rax, rdi
test rax, rax
jne 0x14005aa0c
mov qword [rsp + 0x74], rdi
jmp 0x14005aa15
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x74], rax
mov dword [rbp - 0x78], 8
mov qword [rbp - 0x6c], 0xffff
mov qword [rbp - 0x74], 0xe000
mov dword [rbp - 0x54], 2
lea rax, [0x1400ce3f8]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], 7
mov edx, 0xec
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
nop dword [rax + rax]
mov edx, 0xee
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
nop dword [rax + rax]
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x64], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x5c], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x70]
call qword [sym.imp.COMCTL32.dll_Ordinal_345]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x90]
test eax, eax
mov eax, 2
cmovs ecx, eax
mov dword [rbp + 0x90], ecx
cmp ecx, 7
jne 0x14005ab54
lea r12d, [rax - 1]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14005b53c
mov rcx, rax
call qword [sym.imp.MFC42u.dll_CMemFile::GetRuntimeClass]
nop dword [rax + rax]
mov rcx, rax
mov rax, qword [rax]
mov edx, 1
mov rax, qword [rax + 0x1a0]
call qword [str._E_t_]
test r12d, r12d
je 0x14005af2f
mov byte [0x1400ff51c], 1
lea r13, [rsi + 0x48]
mov rdx, r13
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop dword [rax + rax]
test ebx, ebx
je 0x14005ab84
mov eax, 5
mov ebx, eax
mov dword [rbp + 0x90], eax
mov r14d, eax
jmp 0x14005aba7
cmp ecx, eax
jne 0x14005aac4
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
jmp 0x14005b05d
mov ebx, dword [rsi + 0x1c4]
mov dword [rbp + 0x90], ebx
mov r14d, ebx
cmp ebx, 0xffffffff
jne 0x14005aba7
mov ebx, dword [rsi + 0x1c0]
mov dword [rbp + 0x90], ebx
mov r14d, ebx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400597cc
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.14003f050
cmp r14d, eax
je 0x14005abdc
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
nop dword [rax + rax]
test r15d, r15d
je 0x14005ad1f
mov rax, qword [rsp + 0x30]
cmp dword [rax - 8], edi
jne 0x14005ad1f
lea rdx, [rsi + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop dword [rax + rax]
lea rdx, str.____:___
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_COleDataSource::FlushClipboard]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14005ac38
mov edx, eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CCmdUI::SetCheck]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
nop dword [rax + rax]
mov r14, rax
lea rdx, str..rtf
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14005ac6e
mov r8d, 4
jmp 0x14005acd0
lea rdx, str..txt
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x14005ac66
lea rdx, str..docx
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14005aca8
lea r8d, [rax + 5]
jmp 0x14005acd0
lea rdx, str..odt
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
mov ecx, eax
neg eax
sbb r8d, r8d
not r8d
and r8d, 4
test ecx, ecx
jne 0x14005acec
mov rax, qword [rsp + 0x30]
mov edx, dword [rax - 8]
sub edx, r8d
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CCmdUI::SetCheck]
nop dword [rax + rax]
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14003f53c
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_Ordinal_1284]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov eax, r15d
neg eax
sbb r15d, r15d
and r15d, 0xfffffffd
jmp 0x14005ae5d
mov r14d, dword [rbp + 0x90]
mov edx, r14d
lea rcx, [rsp + 0x38]
call fcn.14003f53c
mov rbx, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
nop dword [rax + rax]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
mov ebx, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
test ebx, ebx
je 0x14005ae06
mov r14d, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
nop dword [rax + rax]
mov rbx, rax
cmp word [rax], 0x2e
jne 0x14005ae06
lea rdx, str..rtf
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14005adc5
lea r14d, [rax + 5]
jmp 0x14005ae06
lea rdx, str..docx
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14005ade5
lea r14d, [rax + 6]
jmp 0x14005ae06
lea rdx, str..odt
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
mov eax, 7
cmove r14d, eax
lea eax, [r14 - 8]
mov ebx, 2
cmp eax, ebx
ja 0x14005aeb1
cmp qword [rsi + 0xe8], rdi
jne 0x14005aeb1
mov rcx, rsi
call fcn.14005b53c
mov rcx, rax
call fcn.14005caa0
test eax, eax
jne 0x14005aeb1
or r8d, 0xffffffff
lea edx, [rbx + 2]
lea ecx, [rbx + 0x6e]
call qword [sym.imp.MFC42u.dll_Ordinal_1498]
nop dword [rax + rax]
cmp eax, 6
je 0x14005aeb1
mov dword [rbp + 0x90], 5
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r15 + 0xf004]
lea rdx, [rsp + 0x30]
lea rcx, [0x1400ff1d0]
call fcn.1400583b8
test eax, eax
jne 0x14005ad30
mov edx, dword [rbp + 0x98]
mov rcx, rsi
call fcn.14005b500
nop
lea rax, vtable.CFileException.0
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x60]
jmp 0x14005ab73
mov edx, r14d
mov rcx, rsi
call fcn.14005b500
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14005aefb
bt eax, 0xe
jae 0x14005aefb
mov qword [rsp + 0x20], rdi
mov r9d, 0x80
mov r8d, ebx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_DuplicateEncryptionInfoFile]
nop dword [rax + rax]
nop
lea rax, vtable.CFileException.0
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov r14d, dword [rbp + 0x98]
mov r15d, dword [rbp + 0xa0]
mov r13d, dword [rbp + 0xa8]
jmp 0x14005af34
mov ebx, 2
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_CWnd::BindProperty]
nop dword [rax + rax]
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
mov rax, qword [rax + 0x100]
call qword [str._E_t_]
test eax, eax
jne 0x14005af7b
mov edx, r14d
mov rcx, rsi
call fcn.14005b500
call qword [sym.imp.MFC42u.dll_CDC::Escape]
nop dword [rax + rax]
jmp 0x14005b05d
mov dword [rsi + 0x1d8], edi
mov eax, dword [rsi + 0x1c0]
add eax, 0xfffffff8
cmp eax, ebx
jbe 0x14005afb7
mov rcx, rsi
call fcn.14005b53c
xor r9d, r9d
lea ebx, [r9 + 1]
mov r8d, ebx
mov edx, 0x45b
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
jmp 0x14005afbc
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_CDC::Escape]
nop dword [rax + rax]
mov edx, r14d
mov rcx, rsi
test r15d, r15d
je 0x14005b040
mov r10d, dword [rsi + 0x1c0]
call fcn.14005b500
mov edx, r10d
call fcn.14005b500
mov rdx, qword [rsi + reloc.MFC42u.dll_CProperty::CProperty]
test rdx, rdx
je 0x14005b00b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14005b05b
mov rax, qword [rsi]
mov r8d, ebx
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
mov rax, qword [rax + 0xb8]
call qword [str._E_t_]
test r12d, r12d
je 0x14005b05b
mov rcx, qword [rsi + reloc.MFC42u.dll_CProperty::CProperty]
call sub.msvcrt.dll_free
mov qword [rsi + reloc.MFC42u.dll_CProperty::CProperty], rdi
jmp 0x14005b05b
call fcn.14005b500
mov rcx, qword [rsi]
mov rax, qword [rcx + 0xc8]
mov edx, r13d
mov rcx, rsi
call qword [str._E_t_]
mov edi, ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov eax, edi
add rsp, reloc.MFC42u.dll_CDialogTemplate::CDialogTemplate
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret