Function at 0x14001ce14
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rdi, rdx
mov r14, rcx
xor r13d, r13d
mov dword [rsp + 0xc0], r13d
lea r12, str._b0_n_
mov rcx, qword [str._b0_n_]
cmp rcx, r12
je 0x14001ce7d
test dword [rcx + 0x1c], 0x100
je 0x14001ce7d
cmp byte [rcx + 0x19], 4
jb 0x14001ce7d
lea edx, [r13 + 0x43]
lea r8, [0x1400867c0]
mov rcx, qword [rcx + 0x10]
call fcn.1400043e4
test rdi, rdi
je 0x14001ce8d
mov rax, qword [r14 + 0xbf8]
mov qword [rdi + 0x40], rax
mov rcx, r14
call fcn.14001cc28
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14001d2b7
test rdi, rdi
je 0x14001d197
cmp dword [rdi + 0x18], r13d
jbe 0x14001d197
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoIndexInfo::CDaoIndexInfo]
nop dword [rax + rax]
nop
xor r15d, r15d
cmp dword [rdi + 0x18], r15d
jbe 0x14001cf31
xor esi, esi
mov rcx, qword [rdi + 0x10]
mov rcx, qword [rsi + rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x14001cf06
mov rcx, qword [rdi + 0x10]
mov rcx, qword [rsi + rcx]
call fcn.14006b3fc
test eax, eax
jne 0x14001cf24
mov rax, qword [rdi + 0x10]
mov r8, qword [rsi + rax]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDockContext::StartResize]
nop dword [rax + rax]
inc r15d
add rsi, 8
cmp r15d, dword [rdi + 0x18]
jb 0x14001cedd
mov rax, qword [rsp + 0x50]
test rax, rax
jle 0x14001d16e
cmp rax, 1
jne 0x14001d014
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
mov ebx, 0xef68
mov edx, ebx
lea rcx, [rsp + 0xc0]
call fcn.140016218
test eax, eax
jne 0x14001d007
cmp qword [rsp + 0x50], 0
jg 0x14001cf8e
call qword [sym.imp.MFC42u.dll_CTreeCtrl::SetCheck]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MFC42u.dll_CControlBar::CControlBar]
nop dword [rax + rax]
nop
mov r8, qword [rsp + 0xc8]
mov edx, ebx
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MFC42u.dll_Ordinal_1442]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov edx, InitCommonControls
mov rcx, qword [rsp + 0xc0]
call fcn.1400172c8
nop
jmp 0x14001d007
lea rcx, [rsp + 0xc0]
jmp 0x14001d15d
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
mov r15d, 0xef69
mov edx, r15d
lea rcx, [rsp + 0xc8]
call fcn.140016218
test eax, eax
jne 0x14001d155
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
xor esi, esi
movsxd rbx, esi
cmp rbx, qword [rsp + 0x50]
jge 0x14001d0f5
test esi, esi
js 0x14001d0e9
mov rax, qword [rsp + 0x48]
lea rdx, [rax + rbx*8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CControlBar::CControlBar]
nop dword [rax + rax]
or r13d, 2
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MFC42u.dll_Ordinal_1284]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov rax, qword [rsp + 0x50]
sub rax, rbx
cmp rax, 1
jle 0x14001d0e2
lea rdx, [0x14008635c]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MFC42u.dll_Ordinal_1287]
nop dword [rax + rax]
inc esi
jmp 0x14001d05e
call qword [sym.imp.MFC42u.dll_CTreeCtrl::SetCheck]
nop dword [rax + rax]
mov r8, qword [rsp + 0xc0]
mov edx, r15d
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MFC42u.dll_Ordinal_1442]
nop dword [rax + rax]
mov edx, InitCommonControls
mov rcx, qword [rsp + 0xc8]
call fcn.1400172c8
nop
lea rcx, [rsp + 0xc0]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
nop
jmp 0x14001d155
lea rcx, [rsp + 0xc8]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov ebx, 0x80004005
or r8, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CArchive::operator__]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocumentView::AddRef]
nop dword [rax + rax]
test ebx, ebx
js 0x14001d2a9
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x188]
call qword [case.0x14000c28f.0]
mov rcx, qword [rax + 0xa0]
test rcx, rcx
je 0x14001d1df
cmp dword [rcx + 0xc0], 0
jne 0x14001d22f
mov rcx, r14
call fcn.14001d31c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14001d22f
mov ebx, 0x80004005
mov rcx, qword [str._b0_n_]
cmp rcx, r12
je 0x14001d2a9
test dword [rcx + 0x1c], 0x100
je 0x14001d2a9
cmp byte [rcx + 0x19], 2
jb 0x14001d2a9
mov edx, 0x46
mov dword [rsp + 0x20], 0x4005
lea r9, str.LaunchComposeForm::_GetActiveDocument_____GetFaxDocument
lea r8, [0x1400867c0]
mov rcx, qword [rcx + 0x10]
call fcn.140004454
test ebx, ebx
js 0x14001d2a9
call qword [sym.imp.MFC42u.dll_Ordinal_1463]
nop dword [rax + rax]
mov rbx, qword [rax + 8]
mov rcx, r14
call fcn.14001e27c
mov rdx, rax
mov rcx, qword [rbx + 0x40]
mov r8, rdi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.FxsCompose.dll_HrNewFaxComposeUI]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001d2a9
mov rcx, qword [str._b0_n_]
cmp rcx, r12
je 0x14001d2a9
test dword [rcx + 0x1c], 0x100
je 0x14001d2a9
cmp byte [rcx + 0x19], 2
jb 0x14001d2a9
movzx eax, ax
mov edx, 0x47
mov dword [rsp + 0x20], eax
lea r9, str.LaunchComposeForm::HrNewFaxComposeUI
lea r8, [0x1400867c0]
mov rcx, qword [rcx + 0x10]
call fcn.140004454
call qword [sym.imp.ole32.dll_OleUninitialize]
nop dword [rax + rax]
jmp 0x14001d2f5
mov rcx, qword [str._b0_n_]
cmp rcx, r12
je 0x14001d2f5
test dword [rcx + 0x1c], 0x100
je 0x14001d2f5
cmp byte [rcx + 0x19], 2
jb 0x14001d2f5
movzx eax, ax
mov edx, 0x48
mov dword [rsp + 0x20], eax
lea r9, str.LaunchComposeForm::OleInitialize
lea r8, [0x1400867c0]
mov rcx, qword [rcx + 0x10]
call fcn.140004454
mov rcx, r14
call fcn.14001cc84
not ebx
shr ebx, 0x1f
mov eax, ebx
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret