Function at 0x14001c650
Capabilities:
Copy file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14006b020]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, r8
mov rsi, rdx
lea r15, vtable.CTracePie.0
mov qword [rsp + 0x70], r15
xor r14d, r14d
mov qword [rbp + 0x18], r14
mov word [rbp + 0x20], r14w
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x18], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x1c], eax
lea r9d, [r14 + 0x32]
lea r8, str.CFiles::ReplaceFileInUse
lea edx, [r14 + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400133b0
lea r9d, [r14 + 0x22]
lea r8, str.PIE_Common_Files
lea edx, [r14 + 0x28]
lea rcx, [rbp - 0x10]
call fcn.1400133b0
cmp byte [rbp + 0x21], 1
jne 0x14001c6f2
lea r8, [0x14005a24c]
lea edx, [r14 + 5]
lea rcx, [rsp + 0x70]
call fcn.1400134a0
lea rax, vtable.CTracePieCommonFiles.0
mov qword [rsp + 0x70], rax
mov edi, 1
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x14001c723
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140009ed0
nop
mov r8d, 4
lea rdx, str..old
lea rcx, [rsp + 0x30]
call fcn.140008330
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14001c7c5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c7c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c92a
call fcn.140022904
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14001c822
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14001c848
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rsi
lea r8, str.Failed_to_copy___ws___error_code:__d
jmp 0x14001c832
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea r8, str.Failed_to_rename___ws___error_code:__d
mov dword [rsp + 0x20], eax
mov edx, 2
lea rcx, [rsp + 0x70]
call fcn.1400134a0
mov edi, r14d
lea rcx, str.TRUE
lea rax, str.FALSE
test edi, edi
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.result
lea r8, str.____returned__s___s
mov edx, 4
lea rcx, [rsp + 0x70]
call fcn.1400134a0
mov al, 1
mov byte [rbp + 0x20], al
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14001c8c5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c8bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c924
call fcn.140022904
movzx eax, byte [rbp + 0x20]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
mov qword [rsp + 0x70], r15
cmp byte [rbp + 0x21], 1
jne 0x14001c8ff
test al, al
jne 0x14001c8ff
lea r8, [0x14005a254]
mov edx, 5
lea rcx, [rsp + 0x70]
call fcn.1400134a0
nop
mov eax, edi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400223c0
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14002c5b4
nop
call fcn.14002c5b4
int3