Function at 0x14002a790
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 ebx, dword [rsp + 0xb8]
xor edi, edi
mov rsi, rdx
mov r15, rcx
test ebx, 0xffffffe0
je 0x14002a7db
lea ecx, [rdi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14002a9f4
mov ecx, ebx
mov eax, ebx
and ecx, 1
and eax, 8
mov r14d, ecx
bts r14d, 0xc
test al, al
cmove r14d, ecx
xor edx, edx
mov rcx, r15
call fcn.14002bad0
mov qword [rsp + 0xb0], rax
mov r13, rax
test rax, rax
je 0x14002a9f2
xor edx, edx
mov rcx, rsi
call fcn.14002bad0
mov qword [rsp + 0x40], rax
mov rbp, rax
test rax, rax
je 0x14002a9ad
mov rbp, qword [rsp + 0xa8]
xor r12d, r12d
mov r8, qword [rsp + 0xa0]
mov r9, rbp
and dword [rsp + 0xb8], 0
mov rdx, rsi
mov dword [rsp + 0x28], r14d
mov rcx, r15
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14002a8e9
mov ecx, ebx
and ecx, 2
test cl, cl
je 0x14002a8e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
inc r12d
lea r8, [rsp + 0xb8]
mov edx, eax
mov ecx, r12d
mov r13d, eax
call fcn.14002ada0
test eax, eax
je 0x14002a8e9
mov edi, dword [rsp + 0xb8]
lea r8, str.WdsCopyFileEx:_Failed_to_copy___s__to___s___GLE__0x_x__will_retry_in__u_ms
mov dword [rsp + 0x30], edi
lea rcx, [0x1400c8aa0]
mov dword [rsp + 0x28], r13d
mov r9, r15
mov edx, 0x4000000
mov qword [rsp + 0x20], rsi
call fcn.14002a5d8
test edi, edi
je 0x14002a837
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
jmp 0x14002a837
mov rbp, qword [rsp + 0x40]
test edi, edi
je 0x14002a9a5
and ebx, 4
test bl, bl
je 0x14002a9a5
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14002a9a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r15d, [rdi + 0x1f]
mov r14d, 0x2000000
test eax, eax
lea r8, str.WdsCopyFileEx:_Failed_to_strip_file_attributes_for__s__will_delete._GLE__0x_x
mov ebx, eax
lea rcx, [0x1400c8aa0]
cmove ebx, r15d
mov r9, rsi
mov edx, r14d
mov dword [rsp + 0x20], ebx
call fcn.14002a5d8
xor edx, edx
mov rcx, rsi
call fcn.14002ae08
test eax, eax
jne 0x14002a997
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, [0x1400c8aa0]
mov edx, r14d
cmove eax, r15d
mov dword [rsp + 0x20], eax
call fcn.14002a5d8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov r13, qword [rsp + 0xb0]
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 0x14002a9f2
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, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret