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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1400d7618]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rax, str.DeleteFile.Recursive
lea r12, str.DeleteFile.NonRecursive
test dl, dl
cmovne r12, rax
mov eax, edx
xor al, 1
movzx r13d, al
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea rdx, str.DeleteFileAndRecordMetrics
lea rbp, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x168
call fcn.1400418b0
lea rcx, [rsp + 0x20]
xor r15d, r15d
mov rdx, rdi
xor r8d, r8d
call fcn.1400418e0
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
lea rdx, str.DoDeleteFile
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x130
call fcn.1400418b0
lea rcx, [rsp + 0xb0]
mov rdx, rdi
xor r8d, r8d
call fcn.1400418e0
movzx eax, byte [rsi]
mov rdx, rax
shr rdx, 1
test al, 1
mov rcx, qword [rsi + 8]
cmovne rdx, rcx
mov ebp, 0
test rdx, rdx
je 0x14002bc7d
cmp rcx, 0x104
jb 0x14002baba
mov ebp, 0xa1
and al, 1
jne 0x14002bc7d
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.140026170
movzx eax, byte [rsp + 0x90]
test al, 1
je 0x14002bae8
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
jmp 0x14002baf3
shr rax, 1
lea rcx, [rsp + 0x92]
mov rdi, 0xffffffffffffffff
test rax, rax
je 0x14002bb36
add rax, rax
xor edx, edx
nop word cs:[rax + rax]
nop
movzx ebp, word [rcx + rdx]
cmp bp, 0x3f
je 0x14002bb2b
cmp bp, 0x2a
je 0x14002bb2b
add rdx, 2
cmp rax, rdx
jne 0x14002bb10
jmp 0x14002bb36
cmp rax, rdx
je 0x14002bb36
sar rdx, 1
mov rdi, rdx
lea rcx, [rsp + 0x90]
call fcn.140025440
cmp rdi, 0xffffffffffffffff
je 0x14002bb91
lea r14, [rsp + 0x90]
mov rcx, rsi
mov rdx, r14
call fcn.140026170
lea rdi, [rsp + 0x78]
mov rcx, rsi
mov rdx, rdi
call fcn.140025fe0
mov rcx, rdi
mov rdx, r14
mov r8d, ebx
call fcn.14002cad0
mov ebp, eax
mov rcx, rdi
call fcn.140025440
mov rcx, r14
call fcn.140025440
jmp 0x14002bc7d
lea r14, [rsi + 2]
test byte [rsi], 1
mov rcx, r14
je 0x14002bba1
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002bc6a
mov ebp, eax
test bpl, 1
je 0x14002bbd7
mov edx, ebp
and edx, 0xfffffffe
test byte [rsi], 1
mov rcx, r14
je 0x14002bbc9
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14002bc6a
test bpl, 0x10
jne 0x14002bbf1
test byte [rsi], 1
je 0x14002bbe6
mov r14, qword [rsi + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14002bc61
test bl, bl
je 0x14002bc4f
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
mov byte [rsp + 0x90], 2
mov dword [rsp + 0x92], 0x2a
lea rdx, [rsp + 0x90]
mov rcx, rsi
mov r8b, 1
call fcn.14002cad0
mov ebp, eax
test byte [rsp + 0x90], 1
je 0x14002bc4b
mov rcx, qword [rsp + 0xa0]
call fcn.140083808
test ebp, ebp
jne 0x14002bc7d
test byte [rsi], 1
je 0x14002bc58
mov r14, qword [rsi + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14002bc7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
lea rdi, [r13*2 + 0x14]
add rdi, r13
lea r14, [rsp + 0xb0]
mov rcx, r14
call fcn.140041a20
test ebp, ebp
je 0x14002bcf7
test byte [rsi], 1
je 0x14002bca7
mov rcx, qword [rsi + 0x10]
jmp 0x14002bcab
lea rcx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002bcd6
mov r15d, 7
test al, 0x10
je 0x14002bcf7
mov rcx, rsi
call fcn.14003fcc0
movzx eax, al
mov r15d, 6
sub r15d, eax
jmp 0x14002bcf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov r15d, 4
cmp eax, 4
jae 0x14002bcf7
cdqe
lea rcx, [0x1400b2488]
mov r15d, dword [rcx + rax*4]
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmmword [rsp + 0x90], xmm6
lea rax, str.Windows.PostOperationState.
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x1b
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x80], r14
lea rsi, [rsp + 0x90]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1400367e0
mov rcx, rsi
mov edx, r15d
mov r8d, 8
call fcn.140029720
test byte [rsp + 0x90], 1
je 0x14002bd8a
mov rcx, qword [rsp + 0xa0]
call fcn.140083808
test ebp, ebp
je 0x14002be18
mov qword [rsp + 0xa0], rbx
movaps xmmword [rsp + 0x90], xmm6
lea rax, str.Windows.FilesystemError.
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x18
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x80], r14
lea rsi, [rsp + 0x90]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1400367e0
mov rcx, rsi
mov edx, ebp
call fcn.140029800
test byte [rsp + 0x90], 1
je 0x14002be14
mov rcx, qword [rsp + 0xa0]
call fcn.140083808
xor esi, esi
jmp 0x14002be1b
mov sil, 1
lea rcx, [rsp + 0x20]
call fcn.140041a20
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140083c20
mov eax, esi
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x14002b980