Function at 0x1400599f0
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 0x140059a58
mov rax, qword [rcx + 0x48]
mov r9, rdx
sub r9, rax
movzx ecx, word [rax]
movzx r8d, word [rax + r9]
sub ecx, r8d
jne 0x140059a46
add rax, r10
test r8d, r8d
jne 0x140059a31
test ecx, ecx
jne 0x140059a58
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._S_t_]
mov r13d, eax
mov dword [rbp + 0xa8], eax
call fcn.14003fc70
mov r12d, edi
mov ebx, edi
mov ecx, 1
mov rax, qword [rsp + 0x30]
cmp dword [rax - 8], edi
je 0x140059b6b
cmp dword [rsi + 0x1d8], edi
jne 0x140059b6b
movsxd rax, dword [rsi + 0x1c0]
lea rcx, [rax + rax*4]
add rcx, rcx
lea rax, [0x1400ffb0c]
cmp dword [rax + rcx*8], edi
jne 0x140059b6e
cmp dword [0x140101440], edi
jne 0x140059b5f
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 0x140059b3c
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_COleVariant::operator_1]
nop dword [rax + rax]
jmp 0x14005a2b6
mov eax, dword [0x140101440]
cmp dword [rbp + 0x30], edi
cmovne eax, ecx
mov dword [0x140101440], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.MFC42u.dll_COleVariant::operator_1]
nop dword [rax + rax]
mov dword [rsi + 0x1c0], 5
jmp 0x140059b6e
mov r12d, ecx
cmp qword [rsi + 0xe8], rdi
jne 0x140059bc7
mov eax, dword [rsi + 0x1c0]
add eax, 0xfffffff8
cmp eax, 2
ja 0x140059bc7
test r12d, r12d
jne 0x140059d47
mov rcx, rsi
call fcn.14005a62c
mov rcx, rax
call fcn.14005bb20
test eax, eax
jne 0x140059bd0
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 0x140059bd0
lea ecx, [r12 + 1]
mov r12d, ecx
mov ebx, ecx
test r12d, r12d
jne 0x140059d47
cmp byte [rsi + 0x1f0], dil
je 0x140059d47
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 0x140059c5d
mov rax, qword [rax]
mov rax, qword [rax + 0xf8]
call qword [str._S_t_]
jmp 0x140059c60
mov rax, rdi
test rax, rax
jne 0x140059c6c
mov qword [rsp + 0x74], rdi
jmp 0x140059c75
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, [0x1400cf408]
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 0x140059dad
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.14005a62c
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._S_t_]
test r12d, r12d
je 0x14005a188
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 0x140059ddd
mov eax, 5
mov ebx, eax
mov dword [rbp + 0x90], eax
mov r14d, eax
jmp 0x140059e00
cmp ecx, eax
jne 0x140059d24
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 0x14005a2b6
mov ebx, dword [rsi + 0x1c4]
mov dword [rbp + 0x90], ebx
mov r14d, ebx
cmp ebx, 0xffffffff
jne 0x140059e00
mov ebx, dword [rsi + 0x1c0]
mov dword [rbp + 0x90], ebx
mov r14d, ebx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140058a8c
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.14003f8b0
cmp r14d, eax
je 0x140059e35
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CPropertySheet::EnableStackedTabs]
nop dword [rax + rax]
test r15d, r15d
je 0x140059f78
mov rax, qword [rsp + 0x30]
cmp dword [rax - 8], edi
jne 0x140059f78
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 0x140059e91
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 0x140059ec7
mov r8d, 4
jmp 0x140059f29
lea rdx, str..txt
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
je 0x140059ebf
lea rdx, str..docx
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x140059f01
lea r8d, [rax + 5]
jmp 0x140059f29
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 0x140059f45
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.14003fd9c
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 0x14005a0b6
mov r14d, dword [rbp + 0x90]
mov edx, r14d
lea rcx, [rsp + 0x38]
call fcn.14003fd9c
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 0x14005a05f
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 0x14005a05f
lea rdx, str..rtf
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14005a01e
lea r14d, [rax + 5]
jmp 0x14005a05f
lea rdx, str..docx
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
nop dword [rax + rax]
test eax, eax
jne 0x14005a03e
lea r14d, [rax + 6]
jmp 0x14005a05f
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 0x14005a10a
cmp qword [rsi + 0xe8], rdi
jne 0x14005a10a
mov rcx, rsi
call fcn.14005a62c
mov rcx, rax
call fcn.14005bb20
test eax, eax
jne 0x14005a10a
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 0x14005a10a
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, [0x140101210]
call fcn.1400576a8
test eax, eax
jne 0x140059f89
mov edx, dword [rbp + 0x98]
mov rcx, rsi
call fcn.14005a5f0
nop
lea rax, vtable.CFileException.0
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x60]
jmp 0x140059dcc
mov edx, r14d
mov rcx, rsi
call fcn.14005a5f0
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14005a154
bt eax, 0xe
jae 0x14005a154
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 0x14005a18d
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._S_t_]
test eax, eax
jne 0x14005a1d4
mov edx, r14d
mov rcx, rsi
call fcn.14005a5f0
call qword [sym.imp.MFC42u.dll_CDC::Escape]
nop dword [rax + rax]
jmp 0x14005a2b6
mov dword [rsi + 0x1d8], edi
mov eax, dword [rsi + 0x1c0]
add eax, 0xfffffff8
cmp eax, ebx
jbe 0x14005a210
mov rcx, rsi
call fcn.14005a62c
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 0x14005a215
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 0x14005a299
mov r10d, dword [rsi + 0x1c0]
call fcn.14005a5f0
mov edx, r10d
call fcn.14005a5f0
mov rdx, qword [rsi + reloc.MFC42u.dll_CProperty::CProperty]
test rdx, rdx
je 0x14005a264
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14005a2b4
mov rax, qword [rsi]
mov r8d, ebx
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
mov rax, qword [rax + 0xb8]
call qword [str._S_t_]
test r12d, r12d
je 0x14005a2b4
mov rcx, qword [rsi + reloc.MFC42u.dll_CProperty::CProperty]
call sub.msvcrt.dll_free
mov qword [rsi + reloc.MFC42u.dll_CProperty::CProperty], rdi
jmp 0x14005a2b4
call fcn.14005a5f0
mov rcx, qword [rsi]
mov rax, qword [rcx + 0xc8]
mov edx, r13d
mov rcx, rsi
call qword [str._S_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