Function at 0x1400ea290
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 [0x140327038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.14013f660
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.1400ea560
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1402e6d80]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.1400c97c0
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1400ea328
mov ecx, eax
and ecx, 0x7f
jmp 0x1400ea32d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x1400ea36d
test al, al
js 0x1400ea447
lea rcx, [rsp + 0x298]
call fcn.1400ea6a0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14013d520
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.14013f660
mov rcx, r15
mov rdx, r14
call fcn.1400ea720
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400ea4ce
mov rcx, r14
call fcn.1400ea550
test al, al
jne 0x1400ea456
test sil, 2
jne 0x1400ea4a5
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x1400ea3d5
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
je 0x1400ea48d
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400e1240
mov rcx, r15
mov rdx, r14
call fcn.1400c97c0
cmp byte [rsp + 0x47], 0
jns 0x1400ea40d
mov rcx, qword [rsp + 0x30]
call fcn.14013a6ac
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 0x1400ea431
mov ecx, eax
and ecx, 0x7f
jmp 0x1400ea436
mov rcx, qword [rsp + 0x38]
mov r12d, ebp
test rcx, rcx
jne 0x1400ea384
jmp 0x1400ea332
mov rcx, qword [rsp + 0x30]
call fcn.14013a6ac
jmp 0x1400ea33a
xor ebp, ebp
test sil, 1
je 0x1400ea3e2
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov r8d, esi
call fcn.1400ea290
mov ebp, eax
test eax, eax
jne 0x1400ea3e2
cmp byte [rsp + 0x47], 0
jns 0x1400ea525
jmp 0x1400ea51b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400ea3e2
call fcn.1401153b0
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
lea rcx, [rsp + 0x30]
call fcn.1401f8070
xor ebp, ebp
test al, al
jne 0x1400ea3e2
jmp 0x1400ea48d
test sil, 1
jne 0x1400ea4e6
lea rcx, [rsp + 0x48]
call fcn.1400ea550
test al, al
jne 0x1400ea507
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
js 0x1400ea4f7
lea rcx, [rsp + 0x30]
jmp 0x1400ea4fc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400ea3ac
lea rcx, [rsp + 0x48]
call fcn.1400ea550
test al, al
je 0x1400ea3bc
jmp 0x1400ea53a
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 0x1400ea3da
xor ebp, ebp
jmp 0x1400ea3e2