Function at 0x1400efb50
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, 0x138
movaps xmmword [rsp + 0x120], xmm6
mov r14d, edx
mov r15, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
lea rcx, str.DeleteFile.Recursive
lea r12, str.DeleteFile.NonRecursive
test dl, dl
cmovne r12, rcx
mov qword [rsp + 0x118], rax
mov eax, edx
xor al, 1
movzx eax, al
mov qword [rsp + 0x20], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], r13
movaps xmm6, xmmword [0x1401e90c0]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.DeleteFileAndRecordMetrics
lea rbp, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0xc0]
mov rcx, rsi
mov r8, rbp
mov r9d, 0x171
call fcn.1400e8370
xor edi, edi
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.1400f4950
mov qword [rsi + 0x50], r13
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.DoDeleteFile
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r8, rbp
mov r9d, 0x136
call fcn.1400e8370
lea rcx, [rsp + 0xc0]
mov rdx, rbx
xor r8d, r8d
call fcn.1400f4950
movzx eax, byte [r15 + 0x17]
test al, al
jns 0x1400efc5b
mov rax, qword [r15 + 8]
test rax, rax
je 0x1400efd08
cmp rax, 0x103
ja 0x1400eff27
mov rcx, r15
mov rdx, rbx
call fcn.1400e7600
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x1400efc8e
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rax, rax
je 0x1400eff31
lea rdi, [rbx + rax*2]
add rax, rax
mov rsi, rbx
movzx ecx, word [rsi]
cmp cx, 0x3f
je 0x1400efcbd
cmp cx, 0x2a
je 0x1400efcbd
add rsi, 2
add rax, 0xfffffffffffffffe
jne 0x1400efca1
mov rsi, rdi
lea rcx, [rsp + 0x40]
call fcn.1400e68a0
cmp rsi, rdi
je 0x1400efcd9
sub rsi, rbx
cmp rsi, 0xfffffffffffffffe
jne 0x1400eff40
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x1400efce6
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400efded
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor edi, edi
cmp ecx, 2
cmovne edi, eax
mov rax, qword [rsp + 0x20]
lea r13, [rax + rax*2]
add r13, 0x14
lea r14, [rsp + 0xc0]
mov rcx, r14
call fcn.1400f49b0
xor ebp, ebp
test edi, edi
jne 0x1400efe28
lea rsi, [rsp + 0x40]
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsi + 0x10], rbx
movaps xmmword [rsi], xmm6
lea rax, str.Windows.PostOperationState.
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 0x1b
mov qword [rsp + 0xd0], r12
mov qword [rsp + 0xd8], r13
lea rdx, [rsp + 0x28]
mov qword [rdx], 2
mov qword [rdx + 8], r14
mov rcx, rsi
call fcn.1400f93f0
mov rcx, rsi
mov edx, ebp
mov r8d, 8
call fcn.14004ba60
cmp byte [rsi + 0x17], 0
jns 0x1400efda8
mov rcx, qword [rsp + 0x40]
call fcn.1401109f8
test edi, edi
jne 0x1400efe63
test edi, edi
sete bl
lea rcx, [rsp + 0x60]
call fcn.1400f49b0
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140111870
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, eax
test dil, 1
jne 0x1400eff85
test dil, 0x10
jne 0x1400efed9
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x1400efe10
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0
test eax, eax
jne 0x1400efd08
jmp 0x1400efcf5
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x1400efe35
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400effaa
test al, 0x10
je 0x1400effc9
mov rcx, r15
call fcn.140049b70
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x1400efd2f
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x10], rbx
movaps xmmword [rsi], xmm6
lea rax, str.Windows.FilesystemError.
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 0x18
mov qword [rsp + 0xd0], r12
mov qword [rsp + 0xd8], r13
lea rdx, [rsp + 0x28]
mov qword [rdx], 2
mov qword [rdx + 8], r14
mov rcx, rsi
call fcn.1400f93f0
mov rcx, rsi
mov edx, edi
call fcn.14004bb40
cmp byte [rsi + 0x17], 0
jns 0x1400efecc
mov rcx, qword [rsp + 0x40]
call fcn.1401109f8
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400efdb0
test r14b, r14b
je 0x1400eff0f
lea rsi, [rsp + 0x40]
mov byte [rsi + 0x17], 1
mov dword [rsi], 0x2a
mov rcx, r15
mov rdx, rsi
mov r8b, 1
call fcn.1400515c0
mov edi, eax
cmp byte [rsi + 0x17], 0
js 0x1400effd3
test edi, edi
jne 0x1400efd08
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x1400eff1c
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400efe16
mov edi, 0xa1
jmp 0x1400efd08
lea rcx, [rsp + 0x40]
call fcn.1400e68a0
jmp 0x1400efcd9
lea rsi, [rsp + 0x40]
mov rcx, r15
mov rdx, rsi
call fcn.1400e7600
lea rbx, [rsp + 0x28]
mov rcx, r15
mov rdx, rbx
call fcn.1400e7140
mov rcx, rbx
mov rdx, rsi
mov r8d, r14d
call fcn.1400515c0
mov edi, eax
mov rcx, rbx
call fcn.1400e68a0
mov rcx, rsi
call fcn.1400e68a0
jmp 0x1400efd08
mov edx, edi
and edx, 0xfffffffe
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x1400eff97
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400efdf9
jmp 0x1400efcf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400effe2
cmp eax, 5
je 0x1400effec
cmp eax, 3
jne 0x1400efff6
mov ebp, 2
jmp 0x1400efd2f
mov ebp, 7
jmp 0x1400efd2f
mov rcx, qword [rsp + 0x40]
call fcn.1401109f8
jmp 0x1400eff07
mov ebp, 1
jmp 0x1400efd2f
mov ebp, 3
jmp 0x1400efd2f
mov ebp, 4
jmp 0x1400efd2f