Function at 0x18003f060
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x18], 7
xor r12d, r12d
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x30]
call fcn.180004cc0
nop
lea r8d, [r12 + 4]
lea rdx, str._Tmp
lea rcx, [rbp - 0x30]
call fcn.180006db0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x18003f13d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, [0x1800acc30]
lea rcx, [0x1800d7100]
call fcn.180006a50
nop
cmp qword [rbp - 0x18], 8
jb 0x18003f136
mov rcx, qword [rbp - 0x30]
call fcn.18007a7a4
xor eax, eax
jmp 0x18003f2c5
lea rcx, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x18]
cmp rax, 8
cmovae rcx, rdx
lea rdi, [rbp - 0x30]
cmovae rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
mov edx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov rax, qword [rsi]
lea r8, [rbp - 0x40]
mov rcx, rsi
call qword [rax + 0x28]
test eax, eax
jne 0x18003f1d6
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9d, dword [rbp - 0x40]
mov r8, rbx
lea rdx, [0x1800acc68]
lea rcx, [0x1800d7100]
call fcn.180006a50
nop
cmp qword [rbp - 0x18], 8
jb 0x18003f136
mov rcx, qword [rbp - 0x30]
call fcn.18007a7a4
xor eax, eax
jmp 0x18003f2c5
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov rax, qword [rsi]
lea r8, [rbp - 0x40]
mov rcx, rsi
call qword [rax + 0x20]
lea rcx, [rbp - 0x30]
test eax, eax
jne 0x18003f23f
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9d, dword [rbp - 0x40]
mov r8, rbx
lea rdx, [0x1800acca0]
lea rcx, [0x1800d7100]
call fcn.180006a50
nop
cmp qword [rbp - 0x18], 8
jb 0x18003f136
mov rcx, qword [rbp - 0x30]
call fcn.18007a7a4
xor eax, eax
jmp 0x18003f2c5
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [0x1800d9688]
test eax, eax
jne 0x18003f2b0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, [0x1800accd8]
lea rcx, [0x1800d7100]
call fcn.180006a50
nop
cmp qword [rbp - 0x18], 8
jb 0x18003f136
mov rcx, qword [rbp - 0x30]
call fcn.18007a7a4
xor eax, eax
jmp 0x18003f2c5
cmp qword [rbp - 0x18], 8
jb 0x18003f2c0
mov rcx, qword [rbp - 0x30]
call fcn.18007a7a4
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret