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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x358]
sub rsp, 0x440
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov rbx, rdx
mov r12, rcx
xor edi, edi
test rcx, rcx
je 0x180010a81
test rdx, rdx
je 0x180010a81
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1800217e0
nop
lea rdx, str._tmp
lea rcx, [rsp + 0x20]
call fcn.180020790
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x20]
mov rcx, r12
call fcn.180010720
mov r12d, eax
test eax, eax
je 0x180010a72
lea r8d, [rdi + 1]
mov rdx, rbx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r12d, eax
test eax, eax
jne 0x180010a63
cmp esi, 0xffffffff
je 0x180010a48
test sil, 1
je 0x180010928
and esi, 0xfffffffe
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov word [rsp + 0x30], di
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x32]
call fcn.180031540
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov r8, rbx
lea rdx, [0x18009b6d8]
lea rcx, [rsp + 0x30]
call fcn.1800303e4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800109cf
nop dword [rax]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov r8, rbx
lea rdx, [0x18009b6d8]
lea rcx, [rsp + 0x30]
call fcn.1800303e4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc edi
cmp edi, 0xa
jge 0x1800109b1
cmp eax, 0xffffffff
jne 0x180010970
jmp 0x1800109cf
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x20]
call fcn.1800204c0
mov eax, r12d
jmp 0x180010a83
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov r8d, 1
mov rdx, rbx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test eax, eax
jne 0x180010a2a
lea r8d, [rax + 5]
mov rdx, rbx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test eax, eax
jne 0x180010a2a
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180010a3c
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
lea rcx, [rsp + 0x20]
call fcn.1800204c0
jmp 0x180010a81
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x20]
call fcn.1800204c0
mov eax, r12d
jmp 0x180010a83
lea rcx, [rsp + 0x20]
call fcn.1800204c0
mov eax, r12d
jmp 0x180010a83
lea rcx, [rsp + 0x20]
call fcn.1800204c0
mov eax, r12d
jmp 0x180010a83
mov eax, edi
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.18002f6f0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret