Function at 0x1400c6680
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140111cd0
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.1400c6940
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x14029bb90]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.1400c6b50
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1400c6718
mov ecx, eax
and ecx, 0x7f
jmp 0x1400c671d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x1400c675d
test al, al
js 0x1400c6837
lea rcx, [rsp + 0x298]
call fcn.1400c6a80
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14010fba0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.140111cd0
mov rcx, r15
mov rdx, r14
call fcn.1400c6b00
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400c6846
mov rcx, r14
call fcn.1400c6930
test al, al
jne 0x1400c68d7
test sil, 2
jne 0x1400c6898
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x1400c67c5
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
je 0x1400c68bf
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400bbc90
mov rcx, r15
mov rdx, r14
call fcn.1400c6b50
cmp byte [rsp + 0x47], 0
jns 0x1400c67fd
mov rcx, qword [rsp + 0x30]
call fcn.14010cc0c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x30], xmm0
movzx eax, byte [rsp + 0x47]
test al, al
js 0x1400c6821
mov ecx, eax
and ecx, 0x7f
jmp 0x1400c6826
mov rcx, qword [rsp + 0x38]
mov r12d, ebp
test rcx, rcx
jne 0x1400c6774
jmp 0x1400c6722
mov rcx, qword [rsp + 0x30]
call fcn.14010cc0c
jmp 0x1400c672a
test sil, 1
jne 0x1400c685e
lea rcx, [rsp + 0x48]
call fcn.1400c6930
test al, al
jne 0x1400c687f
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
js 0x1400c686c
lea rcx, [rsp + 0x30]
jmp 0x1400c6871
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400c679c
lea rcx, [rsp + 0x48]
call fcn.1400c6930
xor ebp, ebp
test al, al
je 0x1400c67ac
jmp 0x1400c67d2
call fcn.1400f1800
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
lea rcx, [rsp + 0x30]
call fcn.1401c9ba0
xor ebp, ebp
test al, al
jne 0x1400c67d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400c67d2
xor ebp, ebp
test sil, 1
je 0x1400c67d2
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov r8d, esi
call fcn.1400c6680
mov ebp, eax
test eax, eax
jne 0x1400c67d2
cmp byte [rsp + 0x47], 0
jns 0x1400c6913
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
jmp 0x1400c67ca