Function at 0x140059630
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbp, rdx
mov rdi, rcx
and dword [rax + 0x18], 0
test byte [0x140100d00], 4
je 0x14005966a
lea rdx, [0x1400b3418]
call fcn.1400177d0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call fcn.1400591b0
test eax, eax
je 0x1400596db
mov rcx, qword [rdi + reloc.MFC42u.dll_CProperty::CProperty]
call sub.msvcrt.dll_free
and qword [rdi + reloc.MFC42u.dll_CProperty::CProperty], 0
test byte [0x140100d00], 4
je 0x1400596ba
lea rdx, [0x1400b33b8]
call fcn.1400177d0
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
nop dword [rax + rax]
mov rcx, rax
call fcn.1400742c8
mov eax, 1
jmp 0x1400598f3
cmp dword [rsp + 0x90], 0
je 0x140059703
test byte [0x140100d00], 4
je 0x1400598f1
lea rdx, [0x1400b33b8]
call fcn.1400177d0
jmp 0x1400598f1
mov ecx, CSocketFile::CSocketFile
call fcn.140093320
mov rsi, rax
test rax, rax
jne 0x140059737
test byte [0x140100d00], 4
je 0x14005972a
lea rdx, [0x1400b33b8]
call fcn.1400177d0
call qword [sym.imp.MFC42u.dll_AfxUnlockGlobals]
nop dword [rax + rax]
int3
mov ebx, 0x104
mov r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
nop dword [rax + rax]
test eax, eax
je 0x140059832
cmp eax, ebx
jg 0x140059832
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
nop dword [rax + rax]
mov r14, rax
mov dword [rsp + 0x20], 1
or r9d, 0xffffffff
lea r8, str..odt
or edx, r9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x20], 1
or r9d, 0xffffffff
lea r8, str..docx
or edx, r9d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
nop dword [rax + rax]
xor ecx, ecx
cmp eax, 2
sete cl
cmp ebx, 2
je 0x1400597d5
test ecx, ecx
jne 0x1400597d5
xor r9d, r9d
jmp 0x1400597d8
mov r9b, 1
and qword [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.1400591b0
test eax, eax
je 0x140059825
mov rcx, qword [rdi + reloc.MFC42u.dll_CProperty::CProperty]
call sub.msvcrt.dll_free
mov qword [rdi + reloc.MFC42u.dll_CProperty::CProperty], rsi
test byte [0x140100d00], 4
je 0x14005981d
lea rdx, [0x1400b33b8]
call fcn.1400177d0
mov rcx, r14
jmp 0x1400596cc
mov rcx, rsi
call sub.msvcrt.dll_free
jmp 0x1400596e5
mov rcx, rsi
call sub.msvcrt.dll_free
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140059888
cmp eax, 0x43
je 0x140059888
test byte [0x140100d00], 4
je 0x140059865
lea rdx, [0x1400b33b8]
call fcn.1400177d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov r8, rbp
mov ecx, 1
call qword [sym.imp.MFC42u.dll_AfxTlsRelease]
nop dword [rax + rax]
int3
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140058a8c
nop
mov rax, qword [rdi]
mov dword [rsp + 0x20], 0xf101
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rdx, rbp
mov rcx, rdi
mov rax, qword [rax + 0x110]
call qword [str._S_t_]
test byte [0x140100d00], 4
je 0x1400598d4
lea rdx, [0x1400b33b8]
call fcn.1400177d0
nop
lea rax, vtable.CFileException.0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret