Function at 0x1400641c0
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 [0x14020eb28]
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.140054e50
lea rcx, [rsp + 0x28]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
lea rdx, str.DoDeleteFile
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov r8, rbp
mov r9d, 0x130
call fcn.140054e50
lea rcx, [rsp + 0xb8]
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14006427d
mov rax, qword [rsi + 8]
test rax, rax
je 0x14006433c
cmp rax, 0x103
ja 0x14006454e
mov rcx, rsi
mov rdx, rbx
call fcn.140051600
movzx eax, byte [rsp + 0xa7]
test al, al
jns 0x1400642b9
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
test rax, rax
je 0x140064558
lea rbp, [rbx + rax*2]
add rax, rax
xor edi, edi
movzx ecx, word [rbx + rdi]
cmp cx, 0x3f
je 0x14006443f
cmp cx, 0x2a
je 0x14006443f
add rdi, 2
cmp rax, rdi
jne 0x1400642cb
mov rdi, rbp
lea rcx, [rsp + 0x90]
call fcn.140050690
cmp rdi, rbp
je 0x14006430e
sub rdi, rbx
cmp rdi, 0xfffffffffffffffe
jne 0x14006456a
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14006431a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140064405
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.14009cfd0
xor ebp, ebp
test edi, edi
jne 0x140064447
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.14009c5d0
mov rcx, rsi
mov edx, ebp
mov r8d, 8
call fcn.140058aa0
cmp byte [rsi + 0x17], 0
jns 0x1400643cc
mov rcx, qword [rsp + 0x90]
call fcn.140180390
mov sil, 1
test edi, edi
jne 0x140064481
lea rcx, [rsp + 0x28]
call fcn.14009cfd0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140180700
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 0x1400645b2
test dil, 0x10
jne 0x1400644f0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140064427
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0
test eax, eax
jne 0x14006433c
jmp 0x140064329
add rdi, rbx
jmp 0x1400642ef
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140064453
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400645d6
test al, 0x10
je 0x1400645fe
mov rcx, rsi
call fcn.140053c50
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x14006435e
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.14009c5d0
mov rcx, rsi
mov edx, edi
call fcn.140058ba0
cmp byte [rsi + 0x17], 0
jns 0x1400644e9
mov rcx, qword [rsp + 0x90]
call fcn.140180390
xor esi, esi
jmp 0x1400643d7
test r14b, r14b
je 0x140064537
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.140066360
mov edi, eax
cmp byte [rbx + 0x17], 0
js 0x140064608
test edi, edi
jne 0x14006433c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140064543
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14006442d
mov edi, 0xa1
jmp 0x14006433c
lea rcx, [rsp + 0x90]
call fcn.140050690
jmp 0x14006430e
lea rbx, [rsp + 0x90]
mov rcx, rsi
mov rdx, rbx
call fcn.140051600
lea rbp, [rsp + 0x78]
mov rcx, rsi
mov rdx, rbp
call fcn.140051160
mov rcx, rbp
mov rdx, rbx
mov r8d, r14d
call fcn.140066360
mov edi, eax
mov rcx, rbp
call fcn.140050690
mov rcx, rbx
call fcn.140050690
jmp 0x14006433c
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400645c3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140064411
jmp 0x140064329
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov ebp, 4
cmp eax, 4
jae 0x14006435e
cdqe
lea rcx, [0x1401bfb00]
mov ebp, dword [rcx + rax*4]
jmp 0x14006435e
mov ebp, 7
jmp 0x14006435e
mov rcx, qword [rsp + 0x90]
call fcn.140180390
jmp 0x14006452f