Function at 0x140065260
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rbp - 0x40], ebx
lea r13d, [rbx + 1]
mov r12b, 4
test byte [0x1400fdac0], r12b
je 0x1400652ba
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea rdx, [0x1400b9c98]
call fcn.14001b510
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], bl
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call fcn.140064d20
test eax, eax
je 0x140065336
mov rcx, qword [rdi + reloc.MFC42u.dll_CProperty::CProperty]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rdi + reloc.MFC42u.dll_CProperty::CProperty], rbx
test byte [0x1400fdac0], r12b
je 0x140065317
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], rcx
mov r9d, r13d
lea rdx, [0x1400b9c38]
call fcn.14001b510
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
nop dword [rax + rax]
mov rcx, rax
call fcn.14007dbc0
mov eax, r13d
jmp 0x1400655c0
cmp dword [rbp - 0x40], ebx
je 0x140065365
test byte [0x1400fdac0], r12b
je 0x1400655be
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea rdx, [0x1400b9c38]
call fcn.14001b510
jmp 0x1400655be
mov ecx, CSocketFile::CSocketFile
call fcn.14000b9b8
mov rsi, rax
test rax, rax
jne 0x140065399
test byte [0x1400fdac0], r12b
je 0x14006538c
lea rdx, [0x1400b9c38]
call fcn.14001b574
call qword [sym.imp.MFC42u.dll_AfxUnlockGlobals]
nop dword [rax + rax]
int3
mov r8d, 0x104
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
nop dword [rax + rax]
test eax, eax
je 0x1400654b3
cmp eax, 0x104
jg 0x1400654b3
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
nop dword [rax + rax]
mov r12, rax
mov dword [rsp + 0x20], r13d
or r9d, 0xffffffff
lea r8, str..odt
or edx, r9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop dword [rax + rax]
cmp eax, 2
sete bl
mov dword [rsp + 0x20], r13d
or r9d, 0xffffffff
lea r8, str..docx
or edx, r9d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop dword [rax + rax]
xor ecx, ecx
cmp eax, 2
sete cl
test ebx, ebx
jne 0x140065435
test ecx, ecx
jne 0x140065435
xor r9d, r9d
jmp 0x140065438
mov r9b, r13b
and qword [rsp + 0x28], 0
mov byte [rsp + 0x20], r13b
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.140064d20
test eax, eax
je 0x140065498
mov rcx, qword [rdi + reloc.MFC42u.dll_CProperty::CProperty]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rdi + reloc.MFC42u.dll_CProperty::CProperty], rsi
test byte [0x1400fdac0], 4
je 0x140065490
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea rdx, [0x1400b9c38]
call fcn.14001b510
mov rcx, r12
jmp 0x140065329
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
test byte [0x1400fdac0], 4
jmp 0x140065342
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14006550e
cmp eax, 0x43
je 0x14006550e
test byte [0x1400fdac0], r12b
je 0x1400654ed
lea rdx, [0x1400b9c38]
call fcn.14001b574
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov r8, r14
mov ecx, r13d
call qword [sym.imp.MFC42u.dll_AfxTlsRelease]
nop dword [rax + rax]
int3
lea rcx, [rbp - 0x38]
call qword [sym.imp.MFC42u.dll_CFtpConnection::CFtpConnection]
nop dword [rax + rax]
nop
lea rbx, vtable.CFileException.0
mov qword [rbp - 0x38], rbx
lea rcx, [rbp - 0x20]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
mov dword [rbp - 0x28], 2
or dword [rbp - 0x24], 0xffffffff
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
nop
mov rax, qword [rdi]
movabs r10, 0xfc39b6d0705bd970
mov dword [rsp + 0x20], 0xf101
xor r9d, r9d
lea r8, [rbp - 0x38]
mov rdx, r14
mov rcx, rdi
mov rax, qword [rax + 0x110]
call qword [case.0x140063541.0]
test byte [0x1400fdac0], r12b
je 0x1400655aa
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea rdx, [0x1400b9c38]
call fcn.14001b510
nop
mov qword [rbp - 0x38], rbx
lea rcx, [rbp - 0x20]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000bdb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret