Function at 0x140013f00
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x318
mov qword [rsp + 0x2f8], 0xfffffffffffffffe
mov rax, qword [0x140038020]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x330]
add rcx, 8
lea r8, [rsp + 0x338]
lea rdx, [rsp + 0x2e8]
call fcn.140015760
mov rdi, rax
mov rcx, qword [rsp + 0x330]
add rcx, 8
lea rdx, [rsp + 0x2d8]
call fcn.140015730
mov rdx, rdi
mov rcx, rax
call fcn.140011470
movzx eax, al
test eax, eax
je 0x140014001
mov dword [rsp + 0x40], 0x21f9009
xor eax, eax
cmp eax, 1
je 0x140013ffc
call fcn.140004430
mov qword [rsp + 0x2c0], rax
cmp qword [rsp + 0x2c0], 0
je 0x140013ffc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x2c0]
mov rdi, qword [rdi]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x21f9009
mov dword [rsp + 0x28], 0x21
lea rax, [0x1400288f0]
mov qword [rsp + 0x20], rax
lea r9, [0x140028930]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x2c0]
call qword [rdi + 0x30]
jmp 0x1400142cc
mov rcx, qword [rsp + 0x330]
add rcx, 8
lea rdx, [rsp + 0x338]
call fcn.140015560
mov qword [rsp + 0xa8], rax
xor eax, eax
mov word [rsp + 0xb0], ax
lea rdi, [rsp + 0xb2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dx, 0x5c
lea rcx, [rsp + 0xb0]
call fcn.140013b40
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400140eb
mov dword [rsp + 0x40], 0x29f9001
xor eax, eax
cmp eax, 1
je 0x1400140e6
call fcn.140004430
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x1400140e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x2c8]
mov rdi, qword [rdi]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x29f9001
mov dword [rsp + 0x28], 0x29
lea rax, [0x140028998]
mov qword [rsp + 0x20], rax
lea r9, [0x1400289e0]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x2c8]
call qword [rdi + 0x30]
jmp 0x1400142cc
xor ecx, ecx
mov rax, qword [rsp + 0x78]
mov word [rax + 2], cx
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x50]
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 rdx, [0x140028a48]
lea rcx, [rsp + 0x50]
call qword [reloc.MSVCP90.dll___Y__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x50]
call qword [reloc.MSVCP90.dll___Y__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
lea rdx, [0x140028624]
lea rcx, [rsp + 0x50]
call qword [reloc.MSVCP90.dll___Y__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x80]
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 rdx, [0x140028a60]
lea rcx, [rsp + 0x80]
call qword [reloc.MSVCP90.dll___Y__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x330]
call fcn.140015050
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x50]
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_wchar_t_const____ptr64____ptr64]
lea rdx, [0x140028a68]
lea rcx, [rsp + 0x50]
call qword [reloc.MSVCP90.dll___Y__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x50]
call qword [reloc.MSVCP90.dll___Y__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
lea rdx, [0x140028a80]
lea rcx, [rsp + 0x50]
call qword [reloc.MSVCP90.dll___Y__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x80]
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_wchar_t_const____ptr64____ptr64]
lea rdx, str.DsBackupConfig.ini
lea rcx, [rsp + 0x80]
call qword [reloc.MSVCP90.dll___Y__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP90.dll_public:_wchar_t_const____ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const___ptr64]
mov rdi, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_wchar_t_const____ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const___ptr64]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400142a8
xor eax, eax
cmp eax, 1
je 0x1400142a8
call fcn.140004430
mov qword [rsp + 0x2d0], rax
cmp qword [rsp + 0x2d0], 0
je 0x1400142a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP90.dll_public:_wchar_t_const____ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const___ptr64]
mov rdi, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP90.dll_public:_wchar_t_const____ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const___ptr64]
mov rdx, rax
mov rax, qword [rsp + 0x2d0]
mov rax, qword [rax]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdx
lea r9, str.copy_file_failed._from_s__to_s__sys0x_X_n
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x2d0]
call qword [rax + 0x30]
nop
lea rcx, [rsp + 0x80]
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 + 0x50]
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]
xor eax, eax
test eax, eax
jne 0x140013f38
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1400239c0
add rsp, 0x318
pop rdi
pop rbx
ret