Function at 0x140033dc0
Capabilities:
Check if file exists
Delete directory
Delete file

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 [0x1400e05d8]
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.140047eb0
lea rcx, [rsp + 0x28]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.140047ee0
lea rdx, str.DoDeleteFile
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov r8, rbp
mov r9d, 0x130
call fcn.140047eb0
lea rcx, [rsp + 0xb8]
mov rdx, rbx
xor r8d, r8d
call fcn.140047ee0
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140033e7d
mov rax, qword [rsi + 8]
test rax, rax
je 0x140033f3c
cmp rax, 0x103
ja 0x14003414e
mov rcx, rsi
mov rdx, rbx
call fcn.14002e4d0
movzx eax, byte [rsp + 0xa7]
test al, al
jns 0x140033eb9
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
test rax, rax
je 0x140034158
lea rbp, [rbx + rax*2]
add rax, rax
xor edi, edi
movzx ecx, word [rbx + rdi]
cmp cx, 0x3f
je 0x14003403f
cmp cx, 0x2a
je 0x14003403f
add rdi, 2
cmp rax, rdi
jne 0x140033ecb
mov rdi, rbp
lea rcx, [rsp + 0x90]
call fcn.14002d560
cmp rdi, rbp
je 0x140033f0e
sub rdi, rbx
cmp rdi, 0xfffffffffffffffe
jne 0x14003416a
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140033f1a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140034005
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.140048000
xor ebp, ebp
test edi, edi
jne 0x140034047
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.14003d9c0
mov rcx, rsi
mov edx, ebp
mov r8d, 8
call fcn.140031db0
cmp byte [rsi + 0x17], 0
jns 0x140033fcc
mov rcx, qword [rsp + 0x90]
call fcn.140089d80
mov sil, 1
test edi, edi
jne 0x140034081
lea rcx, [rsp + 0x28]
call fcn.140048000
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14008a0f0
mov eax, esi
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 0x1400341b2
test dil, 0x10
jne 0x1400340f0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034027
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0
test eax, eax
jne 0x140033f3c
jmp 0x140033f29
add rdi, rbx
jmp 0x140033eef
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034053
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400341d6
test al, 0x10
je 0x1400341fe
mov rcx, rsi
call fcn.1400464d0
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x140033f5e
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.14003d9c0
mov rcx, rsi
mov edx, edi
call fcn.140031e90
cmp byte [rsi + 0x17], 0
jns 0x1400340e9
mov rcx, qword [rsp + 0x90]
call fcn.140089d80
xor esi, esi
jmp 0x140033fd7
test r14b, r14b
je 0x140034137
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.140034c50
mov edi, eax
cmp byte [rbx + 0x17], 0
js 0x140034208
test edi, edi
jne 0x140033f3c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034143
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14003402d
mov edi, 0xa1
jmp 0x140033f3c
lea rcx, [rsp + 0x90]
call fcn.14002d560
jmp 0x140033f0e
lea rbx, [rsp + 0x90]
mov rcx, rsi
mov rdx, rbx
call fcn.14002e4d0
lea rbp, [rsp + 0x78]
mov rcx, rsi
mov rdx, rbp
call fcn.14002e030
mov rcx, rbp
mov rdx, rbx
mov r8d, r14d
call fcn.140034c50
mov edi, eax
mov rcx, rbp
call fcn.14002d560
mov rcx, rbx
call fcn.14002d560
jmp 0x140033f3c
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400341c3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140034011
jmp 0x140033f29
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov ebp, 4
cmp eax, 4
jae 0x140033f5e
cdqe
lea rcx, [0x1400ba1f8]
mov ebp, dword [rcx + rax*4]
jmp 0x140033f5e
mov ebp, 7
jmp 0x140033f5e
mov rcx, qword [rsp + 0x90]
call fcn.140089d80
jmp 0x14003412f