Function at 0x14004e800
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 0x14004e868
mov rax, qword [rcx + 0x48]
mov r9, rdx
sub r9, rax
movzx ecx, word [rax]
movzx r8d, word [rax + r9]
sub ecx, r8d
jne 0x14004e856
add rax, r10
test r8d, r8d
jne 0x14004e841
test ecx, ecx
jne 0x14004e868
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._N_b_]
mov r13d, eax
mov dword [rbp + 0xa8], eax
call fcn.14003f440
mov r12d, edi
mov ebx, edi
mov ecx, 1
mov rax, qword [rsp + 0x30]
cmp dword [rax - 8], edi
je 0x14004e97b
cmp dword [rsi + 0x1d8], edi
jne 0x14004e97b
movsxd rax, dword [rsi + 0x1c0]
lea rcx, [rax + rax*4]
add rcx, rcx
lea rax, [0x1400ec58c]
cmp dword [rax + rcx*8], edi
jne 0x14004e97e
cmp dword [0x1400ede00], edi
jne 0x14004e96f
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 0x14004e94c
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_COleVariant::operator_1]
nop dword [rax + rax]
jmp 0x14004f0c3
mov eax, dword [0x1400ede00]
cmp dword [rbp + 0x30], edi
cmovne eax, ecx
mov dword [0x1400ede00], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_COleVariant::operator_1]
nop dword [rax + rax]
mov dword [rsi + 0x1c0], 5
jmp 0x14004e97e
mov r12d, ecx
cmp qword [rsi + 0xe8], rdi
jne 0x14004e9d7
mov eax, dword [rsi + 0x1c0]
add eax, 0xfffffff8
cmp eax, 2
ja 0x14004e9d7
test r12d, r12d
jne 0x14004eb54
mov rcx, rsi
call fcn.14004f42c
mov rcx, rax
call fcn.140050960
test eax, eax
jne 0x14004e9e0
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 0x14004e9e0
lea ecx, [r12 + 1]
mov r12d, ecx
mov ebx, ecx
test r12d, r12d
jne 0x14004eb54
cmp byte [rsi + 0x1f0], dil
je 0x14004eb54
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 0x14004ea6a
mov rax, qword [rax]
mov rax, qword [rax + 0xf8]
call qword [str._N_b_]
jmp 0x14004ea6d
mov rax, rdi
test rax, rax
jne 0x14004ea79
mov qword [rsp + 0x74], rdi
jmp 0x14004ea82
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, [0x1400bf278]
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 0x14004ebba
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.14004f42c
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._N_b_]
test r12d, r12d
je 0x14004ef95
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 0x14004ebea
mov eax, 5
mov ebx, eax
mov dword [rbp + 0x90], eax
mov r14d, eax
jmp 0x14004ec0d
cmp ecx, eax
jne 0x14004eb31
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 0x14004f0c3
mov ebx, dword [rsi + 0x1c4]
mov dword [rbp + 0x90], ebx
mov r14d, ebx
cmp ebx, 0xffffffff
jne 0x14004ec0d
mov ebx, dword [rsi + 0x1c0]
mov dword [rbp + 0x90], ebx
mov r14d, ebx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.14004d81c
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.14003f030
cmp r14d, eax
je 0x14004ec42
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
nop dword [rax + rax]
test r15d, r15d
je 0x14004ed85
mov rax, qword [rsp + 0x30]
cmp dword [rax - 8], edi
jne 0x14004ed85
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 0x14004ec9e
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 0x14004ecd4
mov r8d, 4
jmp 0x14004ed36
lea rdx, str..txt
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x14004eccc
lea rdx, str..docx
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14004ed0e
lea r8d, [rax + 5]
jmp 0x14004ed36
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 0x14004ed52
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.14003f570
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 0x14004eec3
mov r14d, dword [rbp + 0x90]
mov edx, r14d
lea rcx, [rsp + 0x38]
call fcn.14003f570
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 0x14004ee6c
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 0x14004ee6c
lea rdx, str..rtf
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14004ee2b
lea r14d, [rax + 5]
jmp 0x14004ee6c
lea rdx, str..docx
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14004ee4b
lea r14d, [rax + 6]
jmp 0x14004ee6c
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 0x14004ef17
cmp qword [rsi + 0xe8], rdi
jne 0x14004ef17
mov rcx, rsi
call fcn.14004f42c
mov rcx, rax
call fcn.140050960
test eax, eax
jne 0x14004ef17
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 0x14004ef17
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, [0x1400edbd0]
call fcn.14004c428
test eax, eax
jne 0x14004ed96
mov edx, dword [rbp + 0x98]
mov rcx, rsi
call fcn.14004f3f0
nop
lea rax, vtable.CFileException.0
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x60]
jmp 0x14004ebd9
mov edx, r14d
mov rcx, rsi
call fcn.14004f3f0
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14004ef61
bt eax, 0xe
jae 0x14004ef61
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 0x14004ef9a
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._N_b_]
test eax, eax
jne 0x14004efe1
mov edx, r14d
mov rcx, rsi
call fcn.14004f3f0
call qword [sym.imp.MFC42u.dll_CDC::Escape]
nop dword [rax + rax]
jmp 0x14004f0c3
mov dword [rsi + 0x1d8], edi
mov eax, dword [rsi + 0x1c0]
add eax, 0xfffffff8
cmp eax, ebx
jbe 0x14004f01d
mov rcx, rsi
call fcn.14004f42c
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 0x14004f022
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 0x14004f0a6
mov r10d, dword [rsi + 0x1c0]
call fcn.14004f3f0
mov edx, r10d
call fcn.14004f3f0
mov rdx, qword [rsi + reloc.MFC42u.dll_CProperty::CProperty]
test rdx, rdx
je 0x14004f071
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14004f0c1
mov rax, qword [rsi]
mov r8d, ebx
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
mov rax, qword [rax + 0xb8]
call qword [str._N_b_]
test r12d, r12d
je 0x14004f0c1
mov rcx, qword [rsi + reloc.MFC42u.dll_CProperty::CProperty]
call sub.msvcrt.dll_free
mov qword [rsi + reloc.MFC42u.dll_CProperty::CProperty], rdi
jmp 0x14004f0c1
call fcn.14004f3f0
mov rcx, qword [rsi]
mov rax, qword [rcx + 0xc8]
mov edx, r13d
mov rcx, rsi
call qword [str._N_b_]
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