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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x110
mov r14d, edx
mov rsi, rcx
mov rax, qword [0x1400e45d8]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rax, str.DeleteFile.Recursive
lea r15, str.DeleteFile.NonRecursive
test dl, dl
cmovne r15, rax
mov eax, edx
xor al, 1
movzx r12d, al
lea rdx, str.DeleteFileAndRecordMetrics
lea rbp, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb8]
mov rcx, rbx
mov r8, rbp
mov r9d, 0x168
call fcn.14004af20
lea rcx, [rsp + 0x28]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14004af50
lea rdx, str.DoDeleteFile
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov r8, rbp
mov r9d, 0x130
call fcn.14004af20
lea rcx, [rsp + 0xb8]
mov rdx, rbx
xor r8d, r8d
call fcn.14004af50
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14003541d
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400354dc
cmp rax, 0x103
ja 0x1400356f2
mov rcx, rsi
mov rdx, rbx
call fcn.14002f5f0
movzx eax, byte [rsp + 0xa7]
test al, al
jns 0x140035459
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
test rax, rax
je 0x1400356fc
lea rbp, [rbx + rax*2]
add rax, rax
xor edi, edi
movzx ecx, word [rbx + rdi]
cmp cx, 0x3f
je 0x1400355e1
cmp cx, 0x2a
je 0x1400355e1
add rdi, 2
cmp rax, rdi
jne 0x14003546b
mov rdi, rbp
lea rcx, [rsp + 0x90]
call fcn.14002e670
cmp rdi, rbp
je 0x1400354ae
sub rdi, rbx
cmp rdi, 0xfffffffffffffffe
jne 0x14003570e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400354ba
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400355a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor edi, edi
cmp ecx, 2
cmovne edi, eax
lea rbx, [r12 + r12*2]
add rbx, 0x14
lea r14, [rsp + 0xb8]
mov rcx, r14
call fcn.14004b070
xor ebp, ebp
test edi, edi
jne 0x1400355e9
lea rax, str.Windows.PostOperationState.
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 0x1b
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xd0], rbx
lea rdx, [rsp + 0x78]
mov qword [rdx], 2
mov qword [rdx + 8], r14
lea rsi, [rsp + 0x90]
mov rcx, rsi
call fcn.14003f4b0
mov rcx, rsi
mov edx, ebp
mov r8d, 8
call fcn.140033330
cmp byte [rsi + 0x17], 0
jns 0x14003556c
mov rcx, qword [rsp + 0x90]
call fcn.14008d81c
test edi, edi
jne 0x140035623
test edi, edi
sete bl
lea rcx, [rsp + 0x28]
call fcn.14004b070
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14008db90
mov eax, ebx
add rsp, 0x110
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
test dil, 1
jne 0x140035756
test dil, 0x10
jne 0x140035694
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400355c9
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0
test eax, eax
jne 0x1400354dc
jmp 0x1400354c9
add rdi, rbx
jmp 0x14003548f
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400355f5
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003577a
test al, 0x10
je 0x1400357a2
mov rcx, rsi
call fcn.140049510
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x1400354fe
lea rax, str.Windows.FilesystemError.
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 0x18
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xd0], rbx
lea rdx, [rsp + 0x78]
mov qword [rdx], 2
mov qword [rdx + 8], r14
lea rsi, [rsp + 0x90]
mov rcx, rsi
call fcn.14003f4b0
mov rcx, rsi
mov edx, edi
call fcn.140033410
cmp byte [rsi + 0x17], 0
jns 0x140035574
mov rcx, qword [rsp + 0x90]
call fcn.14008d81c
jmp 0x140035574
test r14b, r14b
je 0x1400356db
xorps xmm0, xmm0
lea rbx, [rsp + 0x90]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov byte [rbx + 0x17], 1
mov dword [rbx], 0x2a
mov rcx, rsi
mov rdx, rbx
mov r8b, 1
call fcn.1400361f0
mov edi, eax
cmp byte [rbx + 0x17], 0
js 0x1400357ac
test edi, edi
jne 0x1400354dc
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400356e7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400355cf
mov edi, 0xa1
jmp 0x1400354dc
lea rcx, [rsp + 0x90]
call fcn.14002e670
jmp 0x1400354ae
lea rbx, [rsp + 0x90]
mov rcx, rsi
mov rdx, rbx
call fcn.14002f5f0
lea rbp, [rsp + 0x78]
mov rcx, rsi
mov rdx, rbp
call fcn.14002f110
mov rcx, rbp
mov rdx, rbx
mov r8d, r14d
call fcn.1400361f0
mov edi, eax
mov rcx, rbp
call fcn.14002e670
mov rcx, rbx
call fcn.14002e670
jmp 0x1400354dc
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140035767
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400355b3
jmp 0x1400354c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov ebp, 4
cmp eax, 4
jae 0x1400354fe
cdqe
lea rcx, [0x1400be358]
mov ebp, dword [rcx + rax*4]
jmp 0x1400354fe
mov ebp, 7
jmp 0x1400354fe
mov rcx, qword [rsp + 0x90]
call fcn.14008d81c
jmp 0x1400356d3