Function at 0x1401115b0
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xdd8]
sub rsp, 0xed8
mov rax, qword [0x1401f7030]
xor rax, rsp
mov qword [rbp + 0xdc0], rax
mov r13, r9
mov r12, r8
mov r15, rdx
mov rdi, rcx
xor r14d, r14d
test byte [0x1401fca80], 2
je 0x140111628
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.1400c020c
mov r8, qword [rax]
lea rdx, [0x1401c9fa8]
mov rcx, qword [0x1401fb8f0]
call fcn.1400c1c54
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140111628
call qword [sym.imp.tbbmalloc.dll_scalable_free]
cmp qword [0x1401fa508], r14
je 0x140111a09
mov qword [rsp + 0x50], r14
lea r9, str.LINK_REPRO_NAME
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
cmp qword [rsp + 0x50], r14
seta byte [0x14020c574]
mov qword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rbp + 0x180]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x10a
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x1401116a4
mov esi, 1
mov r8d, 0x104
mov rdx, rdi
lea rcx, [rbp + 0x590]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
lea rdx, [0x14020c580]
lea rcx, [rbp + 0x590]
call fcn.1400fda74
test rax, rax
je 0x140111725
mov qword [rsp + 0x40], pe_nt_image_headers64
lea rcx, [rbp + 0x180]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0x10a
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
and qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax + 0x10]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
jmp 0x14011193d
mov r8, qword [0x1401fa508]
mov edx, 0x30f
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [0x1401a1908]
mov edx, 0x30f
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x60]
mov edx, 0x30f
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp + 0x180]
mov edx, 0x30f
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
and qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14011180c
cmp byte [0x14020c574], r14b
jne 0x140111938
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x1401117f6
inc esi
mov edx, 0x10a
sub rdx, rbx
lea rcx, [rsp + 0x60]
lea rcx, [rcx + rbx*2]
mov r9d, esi
lea r8, [0x1401c9aa0]
call fcn.140005090
jmp 0x140111725
mov r9d, 0x7b
mov r8, rdi
mov edx, 0x55a
xor ecx, ecx
call fcn.14005e3e8
int3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbp + 0xe48], r14b
je 0x140111882
lea r8, [0x1401c9aa8]
mov ebx, 0x104
mov edx, ebx
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x60]
mov edx, ebx
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp + 0x180]
mov edx, ebx
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp + 0x380]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
movzx r14d, r14b
test eax, eax
mov eax, 1
cmovne r14d, eax
xor r8d, r8d
lea rdx, [rbp + 0x7a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
lea rdx, [0x1401a3214]
mov al, byte [rbp + 0xe40]
mov r8d, 1
test al, al
je 0x1401118c0
test ebx, ebx
je 0x1401118c0
cmp esi, r8d
jbe 0x1401118c0
lea rcx, [rbp + 0x7a0]
jmp 0x1401118d0
mov rcx, rdx
test al, al
je 0x1401118d9
test ebx, ebx
je 0x1401118d9
cmp esi, r8d
jbe 0x1401118d9
lea r9, str._to:
jmp 0x1401118e0
mov r9, rdx
test ebx, ebx
je 0x1401118e5
mov r8, rdx
jmp 0x1401118ec
lea r8, str.___FAILED
mov qword [rsp + 0x20], rcx
mov rdx, rdi
lea rcx, str.Copying:__s_s_s_s_n
call fcn.1400084a0
test ebx, ebx
je 0x140111938
lea rcx, [rbp + 0x7a0]
call fcn.1400492f0
mov rbx, rax
lea rcx, [rbp + 0x590]
call fcn.1400492f0
mov byte [rsp + 0x20], 0
mov r9, rbx
mov r8, rax
lea rdx, [0x14020c580]
xor ecx, ecx
call fcn.14004fe7c
call fcn.140007740
lea rbx, [0x1401fb268]
mov qword [rsp + 0x58], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
test r15, r15
je 0x1401119d6
mov r8, r15
lea rdx, [0x1401c9b00]
mov rcx, qword [0x1401fa988]
call fcn.1400ebc1c
test r12, r12
je 0x140111989
mov r8, r12
lea rdx, [0x1401c9b08]
mov rcx, qword [0x1401fa988]
call fcn.1400ebc1c
lea r9, [rbp + 0x180]
lea r8, [rsp + 0x60]
lea rdx, str.._s_s
mov rcx, qword [0x1401fa988]
call fcn.1400ebc1c
test r13, r13
je 0x1401119c3
mov r8, r13
lea rdx, [0x1401c9b20]
mov rcx, qword [0x1401fa988]
call fcn.1400ebc1c
lea rdx, [0x1401c9b28]
mov rcx, qword [0x1401fa988]
call fcn.1400ebc1c
test r14b, r14b
je 0x140111a00
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x180]
lea r8, [rsp + 0x60]
lea rdx, str.__objmap:._s_s_s__r_n
mov rcx, qword [0x1401fa988]
call fcn.1400ebc1c
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0xdc0]
xor rcx, rsp
call fcn.14005a600
add rsp, 0xed8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret