Function at 0x14001ce14
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov edi, dword [rsp + 0xb8]
xor ebx, ebx
mov rsi, rdx
mov r12, rcx
test edi, 0xffffffe0
je 0x14001ce5f
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14001d0a0
mov ecx, edi
mov eax, edi
and ecx, 1
and eax, 8
mov r15d, ecx
bts r15d, 0xc
test al, al
cmove r15d, ecx
xor edx, edx
mov rcx, r12
call fcn.14001f070
mov qword [rsp + 0x48], rax
mov r13, rax
test rax, rax
je 0x14001d09e
xor edx, edx
mov rcx, rsi
call fcn.14001f070
mov qword [rsp + 0x40], rax
mov rbp, rax
test rax, rax
je 0x14001d059
mov r13, qword [rsp + 0xa8]
xor r14d, r14d
mov rbp, qword [rsp + 0xa0]
mov dword [rsp + 0x28], r15d
mov r9, r13
and qword [rsp + 0x20], 0
mov r8, rbp
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14001cf97
mov ecx, edi
and ecx, 2
test cl, cl
je 0x14001cf97
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
and dword [rsp + 0xb8], ebx
lea r8, [rsp + 0xb0]
and dword [rsp + 0xb0], ebx
lea rdx, [rsp + 0xb8]
mov ecx, eax
mov r11d, eax
inc r14d
call fcn.14001d0c0
test eax, eax
je 0x14001cf48
cmp r14d, dword [rsp + 0xb8]
jae 0x14001cf97
mov ebx, dword [rsp + 0xb0]
jmp 0x14001cf53
cmp r14d, 2
jae 0x14001cf97
mov ebx, 0xbb8
mov dword [rsp + 0x30], ebx
lea r8, str.WdsCopyFileEx:_Failed_to_copy___s__to___s___GLE__0x_x__will_retry_in__u_ms
mov dword [rsp + 0x28], r11d
lea rcx, [0x14003c1d0]
mov r9, r12
mov qword [rsp + 0x20], rsi
mov edx, 0x4000000
call fcn.14001cc5c
test ebx, ebx
je 0x14001cec0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
jmp 0x14001cec0
mov rbp, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
test ebx, ebx
je 0x14001d059
and edi, 4
test dil, dil
je 0x14001d059
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14001d059
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r15d, [rbx + 0x1f]
mov r14d, 0x2000000
test eax, eax
lea r8, str.WdsCopyFileEx:_Failed_to_strip_file_attributes_for__s__will_delete._GLE__0x_x
mov edi, eax
lea rcx, [0x14003c1d0]
cmove edi, r15d
mov r9, rsi
mov edx, r14d
mov dword [rsp + 0x20], edi
call fcn.14001cc5c
xor edx, edx
mov rcx, rsi
call fcn.14001d44c
test eax, eax
jne 0x14001d04b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rsi
lea r8, str.WdsCopyFileEx:_Failed_to_delete__s._GLE__0x_x
test eax, eax
lea rcx, [0x14003c1d0]
mov edx, r14d
cmove eax, r15d
mov dword [rsp + 0x20], eax
call fcn.14001cc5c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rbp, rbp
je 0x14001d09e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret