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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x460
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov ebx, edx
mov rsi, rcx
lea rbp, [0x10000acc0]
test rcx, rcx
jne 0x1000a6c42
lea r8, [0x10000ad00]
mov edx, 0xc2
mov rcx, rbp
call fcn.100099ad8
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0xfd
jb 0x1000a6c71
lea r8, [0x10000ad10]
mov edx, 0xc3
mov rcx, rbp
call fcn.100099ad8
cmp ebx, 2
jae 0x1000a6c8a
lea r8, [0x10000ad38]
mov edx, 0xc4
mov rcx, rbp
call fcn.100099ad8
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
lea r12, [0x100003728]
cmp rcx, rbp
je 0x1000a6cc1
test byte [rcx + 0x1c], 1
je 0x1000a6cc1
cmp byte [rcx + 0x19], 4
jb 0x1000a6cc1
mov rcx, qword [rcx + 0x10]
mov edx, 0x11
mov r8, r12
call fcn.10001c7b8
mov r15d, 0x208
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8, r15
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
mov r8, r15
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [0x100003598]
lea r8, [0x10000ad48]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
mov r9, rsi
mov edx, 0x104
call fcn.100043ec0
mov edi, eax
test eax, eax
js 0x1000a6ee5
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000a6d6c
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a6f0e
test byte [rcx + 0x1c], 1
je 0x1000a6eec
cmp byte [rcx + 0x19], 4
jb 0x1000a6eec
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0x12
mov r8, r12
call fcn.10001da24
jmp 0x1000a6ee5
lea rcx, [rsp + 0x30]
mov r8, r15
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [0x100003598]
lea r8, [0x10000ad48]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
mov r9, rsi
mov edx, 0x104
mov dword [rsp + 0x20], ebx
call fcn.100043ec0
mov edi, eax
test eax, eax
js 0x1000a6ee5
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000a6ded
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a6df4
test byte [rcx + 0x1c], 1
je 0x1000a6df4
cmp byte [rcx + 0x19], 3
jb 0x1000a6df4
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x13]
lea r9, [rsp + 0x30]
mov r8, r12
mov dword [rsp + 0x20], edi
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
test ebx, ebx
je 0x1000a6eec
lea rcx, [0x100003598]
lea eax, [rbx - 1]
lea r8, [0x10000ad48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x240]
mov r9, rsi
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.100043ec0
mov edi, eax
test eax, eax
js 0x1000a6ee5
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1000a6e5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000a6e98
lea rcx, [rsp + 0x30]
call fcn.1000a6ac0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x240]
mov r8, r15
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x240]
mov r8, r15
xor edx, edx
call sub.msvcrt.dll_memset
add ebx, 0xffffffff
je 0x1000a6ee5
jmp 0x1000a6dfc
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a6f0e
test byte [rcx + 0x1c], 1
je 0x1000a6eec
cmp byte [rcx + 0x19], 3
jb 0x1000a6eec
mov rcx, qword [rcx + 0x10]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x240]
mov edx, 0x14
mov r8, r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.10001e360
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x1000a6f0e
test byte [rcx + 0x1c], 1
je 0x1000a6f0e
cmp byte [rcx + 0x19], 4
jb 0x1000a6f0e
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r8, r12
call fcn.10001c7b8
mov eax, edi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x460
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret