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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movaps xmm0, xmmword [0x14022cb50]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DoDeleteFile
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x107
call fcn.1400d3160
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.1400bc840
mov qword [rsp + 0xa8], 0xb
mov al, byte [0x140271fcb]
test al, al
jne 0x140067557
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
mov rax, qword [rsi + 8]
mov rdx, rcx
cmovs rdx, rax
test rdx, rdx
je 0x140067464
test cl, cl
sets cl
cmp rax, 0x104
setae al
test cl, al
jne 0x1400674d3
mov rcx, rsi
mov rdx, rdi
call fcn.14011b020
movsx rax, byte [rsp + 0x57]
test rax, rax
mov rdx, rax
cmovs rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmovs rdi, rcx
test rdx, rdx
je 0x1400674ee
lea r8, [rdi + rdx*2]
add rdx, rdx
mov r9, rdi
movzx r10d, word [r9]
cmp r10d, 0x2a
je 0x14006741a
cmp r10d, 0x3f
je 0x14006741a
add r9, 2
add rdx, 0xfffffffffffffffe
jne 0x1400673fd
mov r9, r8
cmp r9, r8
sete dl
sub r9, rdi
cmp r9, 0xfffffffffffffffe
sete bl
or bl, dl
test al, al
jns 0x140067435
call fcn.140146640
test bl, bl
je 0x140067500
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140067449
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14006748e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x1400674c0
lea rcx, [rsp + 0x60]
call fcn.14010c450
mov dil, 1
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140149190
mov eax, edi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
mov edi, eax
test dil, 1
jne 0x140067586
cmp byte [rsi + 0x17], 0
jns 0x1400674a3
mov rsi, qword [rsi]
mov rcx, rsi
test dil, 0x10
jne 0x1400674b8
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140067464
jmp 0x140067454
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400674b2
lea rcx, [rsp + 0x60]
call fcn.14010c450
mov dil, 1
test esi, esi
je 0x140067471
jmp 0x1400674e2
lea rcx, [rsp + 0x60]
call fcn.14010c450
mov esi, 0xa1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x140067471
test al, al
jns 0x14006743d
call fcn.140146640
jmp 0x14006743d
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.14011b020
lea rbx, [rsp + 0x28]
mov rcx, rsi
mov rdx, rbx
call fcn.14011b420
mov rcx, rbx
mov rdx, rdi
call fcn.140038710
mov esi, eax
cmp byte [rbx + 0x17], 0
jns 0x14006753d
mov rcx, qword [rsp + 0x28]
call fcn.140146640
cmp byte [rsp + 0x57], 0
jns 0x1400674c0
mov rcx, qword [rsp + 0x40]
call fcn.140146640
jmp 0x1400674c0
movzx ecx, al
lea r9, [rsp + 0x28]
mov qword [r9], rdi
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0xb0]
mov qword [r8], rax
lea rdx, [rsp + 0xa8]
call fcn.1401a2ec0
jmp 0x140067392
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140067597
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14006749a
jmp 0x140067454