Function at 0x18005a01c
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov r13, r9
mov r12, r8
mov rdi, rcx
mov r14, qword [rsp + 0x110]
mov r15, qword [rsp + 0x118]
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x48], rax
mov rbp, qword [rsp + 0x128]
test rcx, rcx
je 0x18005a2d5
test r8, r8
je 0x18005a2d5
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18005a0a4
mov eax, 4
jmp 0x18005a2da
mov rcx, rdi
call fcn.180004b80
test eax, eax
jne 0x18005a0ba
mov eax, 0xd
jmp 0x18005a2da
xor esi, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ebx, [rsi + 1]
cmp eax, 0xffffffff
je 0x18005a0f4
and eax, ebx
je 0x18005a0f4
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call fcn.180051160
test eax, eax
jne 0x18005a0f2
lea eax, [rsi + 5]
jmp 0x18005a2da
mov esi, ebx
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x18005a2a7
cmp rax, 0xffffffffffffffff
je 0x18005a2a7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.180059f4c
nop
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rdx, qword [rsp + 0x88]
mov qword [rsp + 0x38], rbp
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r9, r13
mov r8, r12
mov rcx, rdi
call fcn.180059c74
mov ebx, eax
test eax, eax
je 0x18005a1ce
cmp qword [rbp + 0x18], 0
jne 0x18005a1ce
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.180058568
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rbp
call fcn.18000db80
nop
cmp qword [rsp + 0x78], 8
jb 0x18005a1ce
mov rcx, qword [rsp + 0x60]
call fcn.18009a864
test ebx, ebx
jne 0x18005a257
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rcx, qword [rsp + 0x88]
lea r8d, [rbx + 1]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18005a247
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rcx, qword [rsp + 0x88]
lea r8d, [rbx + 1]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18005a247
lea ebx, [rax + 8]
jmp 0x18005a257
cmp ebp, 0xffffffff
je 0x18005a257
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x18005a28b
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.180051160
nop
cmp qword [rsp + 0xa0], 8
jb 0x18005a2a3
mov rcx, qword [rsp + 0x88]
call fcn.18009a864
mov eax, ebx
jmp 0x18005a2da
test esi, esi
je 0x18005a2ba
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.180051160
cmp rbx, 0xffffffffffffffff
je 0x18005a2ce
test rbx, rbx
je 0x18005a2ce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 5
jmp 0x18005a2da
mov eax, 3
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180099fe0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret