Function at 0x140001ca0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x180
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x14000b0f8]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rdi, rdx
mov rbp, rcx
cmp qword [rcx + 0x18], 0
jne 0x140001ce2
xor al, al
jmp 0x140002041
lea rcx, [rsp + 0x20]
call fcn.1400037b0
nop
lea rdx, str.SOFTWAREVMware__Inc.VMware_ToolsHostOpen
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
mov r9d, 1
lea r8, [rsp + 0x28]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x20]
call fcn.1400037c0
test eax, eax
setne bl
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
test bl, bl
je 0x140001d41
lea rcx, [rsp + 0x20]
call fcn.1400038e0
xor al, al
jmp 0x140002041
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void____ptr64]
nop
lea rdx, str.OutlookTempHgfsPath
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140003dd0
test eax, eax
setne bl
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
test bl, bl
je 0x140001dae
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.1400038e0
xor al, al
jmp 0x140002041
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
mov rax, qword [sym.imp.MSVCP90.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov rbx, qword [rax]
mov edx, 0x5c
mov r8, rbx
mov rcx, rbp
call qword [sym.imp.MSVCP90.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_long_long_unsigned___int64__const___ptr64]
mov r9, rbx
lea r8, [rax + 1]
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
mov rbx, rax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP90.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64_]
mov rcx, rax
lea rdx, [0x140006ce8]
call fcn.1400016e0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP90.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64_]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
cmp qword [rdi + 0x20], 8
jb 0x140001e69
lea rbx, [rdi + 8]
mov rcx, qword [rbx]
jmp 0x140001e70
lea rbx, [rdi + 8]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140001f90
cmp qword [rdi + 0x20], 8
jb 0x140001e8a
mov rcx, qword [rbx]
jmp 0x140001e8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140001f01
cmp qword [rdi + 0x20], 8
jb 0x140001ea2
mov rbx, qword [rbx]
mov r8, rbx
lea rdx, str.CopyFileToHgfsShare
lea rcx, str._s:_Failed_to_get_attributes_for_file___s_._n
call entry0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CopyFileToHgfsShare
lea rcx, str._s:_GetFileAttributes_error_0x_lx._n
call entry0
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
nop
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.1400038e0
xor al, al
jmp 0x140002041
test al, 1
je 0x140001f90
and eax, 0xfffffffe
cmp qword [rdi + 0x20], 8
jb 0x140001f18
mov rcx, qword [rbx]
jmp 0x140001f1b
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140001f90
cmp qword [rdi + 0x20], 8
jb 0x140001f31
mov rbx, qword [rbx]
mov r8, rbx
lea rdx, str.CopyFileToHgfsShare
lea rcx, str._s:_Failed_to_unset_read_only_attribute_on_file___s_._n
call entry0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CopyFileToHgfsShare
lea rcx, str._s:_SetFileAttributes_error_0x_lx._n
call entry0
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
nop
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.1400038e0
xor al, al
jmp 0x140002041
cmp qword [rdi + 0x20], 8
jb 0x140001f9c
mov rdx, qword [rbx]
jmp 0x140001f9f
mov rdx, rbx
cmp qword [rbp + 0x20], 8
jb 0x140001faf
lea rsi, [rbp + 8]
mov rcx, qword [rsi]
jmp 0x140001fb6
lea rsi, [rbp + 8]
mov rcx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000201a
cmp qword [rdi + 0x20], 8
jb 0x140001fcd
mov rbx, qword [rbx]
cmp qword [rbp + 0x20], 8
jb 0x140001fd7
mov rsi, qword [rsi]
mov r9, rbx
mov r8, rsi
lea rdx, str.CopyFileToHgfsShare
lea rcx, str._s:_Failed_to_copy_file___s__to___s_._n
call entry0
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
nop
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.1400038e0
xor al, al
jmp 0x140002041
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
nop
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.1400038e0
mov al, 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400047a0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret