Function at 0x140063d20
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 r15d, r8d
mov rsi, rcx
xor edi, edi
lea r10d, [rdi + 2]
test rdx, rdx
je 0x140063d7f
mov rax, qword [rcx + 0x48]
mov r9, rdx
sub r9, rax
movzx ecx, word [rax]
movzx r8d, word [rax + r9]
sub ecx, r8d
jne 0x140063d6d
add rax, r10
test r8d, r8d
jne 0x140063d58
test ecx, ecx
jne 0x140063d7f
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]
movabs r10, 0xef41b6467e517970
mov rcx, rsi
mov rax, qword [rax + 0xc0]
call qword [case.0x140063541.0]
mov r13d, eax
mov dword [rbp + 0xa8], eax
call fcn.14004a39c
mov r12d, edi
mov ebx, edi
mov ecx, 1
mov rax, qword [rsp + 0x30]
cmp dword [rax - 8], edi
je 0x140063eb4
cmp dword [rsi + 0x1d8], edi
jne 0x140063eb4
movsxd rax, dword [rsi + 0x1c0]
lea rcx, [rax + rax*4]
add rcx, rcx
lea rax, [0x1400fca9c]
cmp dword [rax + rcx*8], edi
jne 0x140063eb7
cmp dword [0x1400fe200], edi
jne 0x140063ea8
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 0x140063e85
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_COleVariant::operator_1]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
xor eax, eax
jmp 0x14006468a
mov eax, dword [0x1400fe200]
cmp dword [rbp + 0x30], edi
cmovne eax, ecx
mov dword [0x1400fe200], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_COleVariant::operator_1]
nop dword [rax + rax]
mov dword [rsi + 0x1c0], 5
jmp 0x140063eb7
mov r12d, ecx
cmp qword [rsi + 0xe8], rdi
jne 0x140063f15
mov eax, dword [rsi + 0x1c0]
add eax, 0xfffffff8
cmp eax, 2
ja 0x140063f15
test r12d, r12d
jne 0x140064099
mov rcx, rsi
call fcn.140064950
mov rcx, rax
call fcn.1400675fc
test eax, eax
jne 0x140063f20
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 0x140063f20
lea eax, [r12 + 1]
mov r12d, eax
mov ebx, eax
jmp 0x140064099
mov ebx, edi
test r12d, r12d
jne 0x140064099
mov ebx, edi
cmp byte [rsi + 0x1f0], dil
je 0x140064099
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
lea r8d, [rdx + 0x54]
lea rcx, [rbp - 0x44]
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 0x140063fc4
mov rax, qword [rax]
movabs r10, 0xf3c91e0a32d41970
mov rax, qword [rax + 0xf8]
call qword [case.0x140063541.0]
test rax, rax
je 0x140063fc4
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x74], rax
jmp 0x140063fc9
mov qword [rsp + 0x74], rdi
mov dword [rbp - 0x78], 8
mov qword [rbp - 0x6c], 0xffff
mov qword [rbp - 0x74], 0xe000
mov ebx, 2
mov dword [rbp - 0x54], ebx
lea rax, [0x1400d5ca8]
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
cmovs ecx, ebx
mov dword [rbp + 0x90], ecx
cmp ecx, 7
jne 0x140064109
lea r12d, [rbx - 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 ebx, edi
mov rcx, rsi
call fcn.140064950
mov rcx, rax
call qword [sym.imp.MFC42u.dll_CMemFile::GetRuntimeClass]
nop dword [rax + rax]
mov rcx, rax
mov rax, qword [rax]
movabs r10, 0xef70ae1b5451c970
mov edx, 1
mov rax, qword [rax + 0x1a0]
call qword [case.0x140063541.0]
test r12d, r12d
je 0x140064524
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 0x140064139
mov eax, 5
mov ebx, eax
mov dword [rbp + 0x90], eax
mov r14d, eax
jmp 0x14006415c
cmp ecx, ebx
jne 0x140064074
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 0x140063e6d
mov ebx, dword [rsi + 0x1c4]
mov dword [rbp + 0x90], ebx
mov r14d, ebx
cmp ebx, 0xffffffff
jne 0x14006415c
mov ebx, dword [rsi + 0x1c0]
mov dword [rbp + 0x90], ebx
mov r14d, ebx
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_CFtpConnection::CFtpConnection]
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_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
mov dword [rsp + 0x58], edi
or dword [rsp + 0x5c], 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.140049cb0
cmp r14d, eax
je 0x1400641d1
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
nop dword [rax + rax]
test r15d, r15d
je 0x140064301
mov rax, qword [rsp + 0x30]
cmp dword [rax - 8], edi
jne 0x140064301
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 0x14006422d
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
je 0x1400642ae
lea rdx, str..txt
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x1400642ae
lea rdx, str..docx
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x140064294
lea ecx, [rax + 5]
jmp 0x1400642b3
lea rdx, str..odt
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x1400642ce
mov ecx, 4
mov rax, qword [rsp + 0x30]
mov edx, dword [rax - 8]
sub edx, ecx
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.14004a0d0
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
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r15 + 0xf004]
lea rdx, [rsp + 0x30]
lea rcx, [0x1400fdfd0]
call fcn.140062e38
test eax, eax
je 0x1400644e7
mov r14d, dword [rbp + 0x90]
mov edx, r14d
lea rcx, [rsp + 0x38]
call fcn.14004a0d0
mov rbx, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
nop dword [rax + rax]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
setne bl
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
test bl, bl
je 0x140064415
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 0x140064415
lea rdx, str..rtf
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x1400643d4
lea r14d, [rax + 5]
jmp 0x140064415
lea rdx, str..docx
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x1400643f4
lea r14d, [rax + 6]
jmp 0x140064415
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 0x140064469
cmp qword [rsi + 0xe8], rdi
jne 0x140064469
mov rcx, rsi
call fcn.140064950
mov rcx, rax
call fcn.1400675fc
test eax, eax
jne 0x140064469
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 0x140064469
mov dword [rbp + 0x90], 5
jmp 0x14006430d
mov edx, r14d
mov rcx, rsi
call fcn.140065e10
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400644b3
bt eax, 0xe
jae 0x1400644b3
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 0x140064529
mov edx, dword [rbp + 0x98]
mov rcx, rsi
call fcn.140065e10
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]
lea rax, vtable.CObject.0
mov qword [rsp + 0x48], rax
jmp 0x140063e6d
mov ebx, 2
mov rcx, rsi
call qword [sym.imp.MFC42u.dll_CWnd::BindProperty]
nop dword [rax + rax]
mov rax, qword [rsi]
movabs r10, 0xf26d0f531054a170
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
mov rax, qword [rax + 0x100]
call qword [case.0x140063541.0]
test eax, eax
jne 0x14006457a
mov edx, r14d
mov rcx, rsi
call fcn.140065e10
call qword [sym.imp.MFC42u.dll_CDC::Escape]
nop dword [rax + rax]
jmp 0x140064677
mov dword [rsi + 0x1d8], edi
mov eax, dword [rsi + 0x1c0]
add eax, 0xfffffff8
cmp eax, ebx
jbe 0x1400645b6
mov rcx, rsi
call fcn.140064950
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 0x1400645bb
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 0x140064650
mov r10d, dword [rsi + 0x1c0]
call fcn.140065e10
mov edx, r10d
call fcn.140065e10
mov rdx, qword [rsi + reloc.MFC42u.dll_CProperty::CProperty]
test rdx, rdx
je 0x14006460a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140064675
mov rax, qword [rsi]
movabs r10, 0xb5b9a7fd74db3070
mov r8d, ebx
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
mov rax, qword [rax + 0xb8]
call qword [case.0x140063541.0]
test r12d, r12d
je 0x140064675
mov rcx, qword [rsi + reloc.MFC42u.dll_CProperty::CProperty]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsi + reloc.MFC42u.dll_CProperty::CProperty], rdi
jmp 0x140064675
call fcn.140065e10
mov rcx, qword [rsi]
mov rax, qword [rcx + 0xc8]
movabs r10, 0xd118b61534d64870
mov edx, r13d
mov rcx, rsi
call qword [case.0x140063541.0]
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