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

Disassembly:
xor edx, edx
jmp 0x140060120
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 [0x14010e038]
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 [0x1400f2f80]
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.140068280
xor edi, edi
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.1400682b0
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.140068280
lea rcx, [rsp + 0xc0]
mov rdx, rbx
xor r8d, r8d
call fcn.1400682b0
movzx eax, byte [r15 + 0x17]
test al, al
jns 0x14006022b
mov rax, qword [r15 + 8]
test rax, rax
je 0x1400602d8
cmp rax, 0x103
ja 0x1400604f7
mov rcx, r15
mov rdx, rbx
call fcn.14005ce70
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x14006025e
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rax, rax
je 0x140060501
lea rdi, [rbx + rax*2]
add rax, rax
mov rsi, rbx
movzx ecx, word [rsi]
cmp cx, 0x3f
je 0x14006028d
cmp cx, 0x2a
je 0x14006028d
add rsi, 2
add rax, 0xfffffffffffffffe
jne 0x140060271
mov rsi, rdi
lea rcx, [rsp + 0x40]
call fcn.14005c110
cmp rsi, rdi
je 0x1400602a9
sub rsi, rbx
cmp rsi, 0xfffffffffffffffe
jne 0x140060510
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x1400602b6
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400603bd
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.140068310
xor ebp, ebp
test edi, edi
jne 0x1400603f8
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.1400687c0
mov rcx, rsi
mov edx, ebp
mov r8d, 8
call fcn.14002afc0
cmp byte [rsi + 0x17], 0
jns 0x140060378
mov rcx, qword [rsp + 0x40]
call fcn.14007b788
test edi, edi
jne 0x140060433
test edi, edi
sete bl
lea rcx, [rsp + 0x60]
call fcn.140068310
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14007c600
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 0x140060555
test dil, 0x10
jne 0x1400604a9
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x1400603e0
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0
test eax, eax
jne 0x1400602d8
jmp 0x1400602c5
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x140060405
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006057a
test al, 0x10
je 0x140060599
mov rcx, r15
call fcn.140038130
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x1400602ff
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.1400687c0
mov rcx, rsi
mov edx, edi
call fcn.14002b100
cmp byte [rsi + 0x17], 0
jns 0x14006049c
mov rcx, qword [rsp + 0x40]
call fcn.14007b788
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140060380
test r14b, r14b
je 0x1400604df
lea rsi, [rsp + 0x40]
mov byte [rsi + 0x17], 1
mov dword [rsi], 0x2a
mov rcx, r15
mov rdx, rsi
mov r8b, 1
call fcn.14002cef0
mov edi, eax
cmp byte [rsi + 0x17], 0
js 0x1400605a3
test edi, edi
jne 0x1400602d8
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x1400604ec
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400603e6
mov edi, 0xa1
jmp 0x1400602d8
lea rcx, [rsp + 0x40]
call fcn.14005c110
jmp 0x1400602a9
lea rsi, [rsp + 0x40]
mov rcx, r15
mov rdx, rsi
call fcn.14005ce70
lea rbx, [rsp + 0x28]
mov rcx, r15
mov rdx, rbx
call fcn.14005c9b0
mov rcx, rbx
mov rdx, rsi
mov r8d, r14d
call fcn.14002cef0
mov edi, eax
mov rcx, rbx
call fcn.14005c110
mov rcx, rsi
call fcn.14005c110
jmp 0x1400602d8
mov edx, edi
and edx, 0xfffffffe
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x140060567
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400603c9
jmp 0x1400602c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400605b2
cmp eax, 5
je 0x1400605bc
cmp eax, 3
jne 0x1400605c6
mov ebp, 2
jmp 0x1400602ff
mov ebp, 7
jmp 0x1400602ff
mov rcx, qword [rsp + 0x40]
call fcn.14007b788
jmp 0x1400604d7
mov ebp, 1
jmp 0x1400602ff
mov ebp, 3
jmp 0x1400602ff
mov ebp, 4
jmp 0x1400602ff