Function at 0x140003c04
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 0x140003c4f
lea ecx, [rdi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140003e68
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.140005448
mov qword [rsp + 0xb0], rax
mov r13, rax
test rax, rax
je 0x140003e66
xor edx, edx
mov rcx, rsi
call fcn.140005448
mov qword [rsp + 0x40], rax
mov rbp, rax
test rax, rax
je 0x140003e21
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 0x140003d5d
mov ecx, ebx
and ecx, 2
test cl, cl
je 0x140003d5d
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.140004214
test eax, eax
je 0x140003d5d
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, [0x1400356a8]
mov dword [rsp + 0x28], r13d
mov r9, r15
mov edx, 0x4000000
mov qword [rsp + 0x20], rsi
call fcn.140003040
test edi, edi
je 0x140003cab
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
jmp 0x140003cab
mov rbp, qword [rsp + 0x40]
test edi, edi
je 0x140003e19
and ebx, 4
test bl, bl
je 0x140003e19
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140003e19
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, [0x1400356a8]
cmove ebx, r15d
mov r9, rsi
mov edx, r14d
mov dword [rsp + 0x20], ebx
call fcn.140003040
xor edx, edx
mov rcx, rsi
call fcn.14000427c
test eax, eax
jne 0x140003e0b
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, [0x1400356a8]
mov edx, r14d
cmove eax, r15d
mov dword [rsp + 0x20], eax
call fcn.140003040
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 0x140003e66
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