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

Disassembly:
xor edx, edx
jmp 0x14003f190
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1401b46a8]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rax, str.DeleteFile.Recursive
lea r12, str.DeleteFile.NonRecursive
test dl, dl
cmovne r12, rax
mov eax, edx
xor al, 1
movzx r13d, al
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
lea rdx, str.DeleteFileAndRecordMetrics
lea rbp, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x168
call fcn.14002d9e0
lea rcx, [rsp + 0x20]
xor r15d, r15d
mov rdx, rdi
xor r8d, r8d
call fcn.14003abb0
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
lea rdx, str.DoDeleteFile
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x130
call fcn.14002d9e0
lea rcx, [rsp + 0xb0]
mov rdx, rdi
xor r8d, r8d
call fcn.14003abb0
movzx eax, byte [rsi]
mov rdx, rax
shr rdx, 1
test al, 1
mov rcx, qword [rsi + 8]
cmovne rdx, rcx
mov ebp, 0
test rdx, rdx
je 0x14003f48d
cmp rcx, 0x104
jb 0x14003f2ca
mov ebp, 0xa1
and al, 1
jne 0x14003f48d
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.14002b720
movzx eax, byte [rsp + 0x90]
test al, 1
je 0x14003f2f8
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
jmp 0x14003f303
shr rax, 1
lea rcx, [rsp + 0x92]
mov rdi, 0xffffffffffffffff
test rax, rax
je 0x14003f346
add rax, rax
xor edx, edx
nop word cs:[rax + rax]
nop
movzx ebp, word [rcx + rdx]
cmp bp, 0x3f
je 0x14003f33b
cmp bp, 0x2a
je 0x14003f33b
add rdx, 2
cmp rax, rdx
jne 0x14003f320
jmp 0x14003f346
cmp rax, rdx
je 0x14003f346
sar rdx, 1
mov rdi, rdx
lea rcx, [rsp + 0x90]
call fcn.14002a9e0
cmp rdi, 0xffffffffffffffff
je 0x14003f3a1
lea r14, [rsp + 0x90]
mov rcx, rsi
mov rdx, r14
call fcn.14002b720
lea rdi, [rsp + 0x78]
mov rcx, rsi
mov rdx, rdi
call fcn.14002b570
mov rcx, rdi
mov rdx, r14
mov r8d, ebx
call fcn.140040250
mov ebp, eax
mov rcx, rdi
call fcn.14002a9e0
mov rcx, r14
call fcn.14002a9e0
jmp 0x14003f48d
lea r14, [rsi + 2]
test byte [rsi], 1
mov rcx, r14
je 0x14003f3b1
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003f47a
mov ebp, eax
test bpl, 1
je 0x14003f3e7
mov edx, ebp
and edx, 0xfffffffe
test byte [rsi], 1
mov rcx, r14
je 0x14003f3d9
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14003f47a
test bpl, 0x10
jne 0x14003f401
test byte [rsi], 1
je 0x14003f3f6
mov r14, qword [rsi + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14003f471
test bl, bl
je 0x14003f45f
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
mov byte [rsp + 0x90], 2
mov dword [rsp + 0x92], 0x2a
lea rdx, [rsp + 0x90]
mov rcx, rsi
mov r8b, 1
call fcn.140040250
mov ebp, eax
test byte [rsp + 0x90], 1
je 0x14003f45b
mov rcx, qword [rsp + 0xa0]
call fcn.1401321e4
test ebp, ebp
jne 0x14003f48d
test byte [rsi], 1
je 0x14003f468
mov r14, qword [rsi + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14003f48d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
lea rdi, [r13*2 + 0x14]
add rdi, r13
lea r14, [rsp + 0xb0]
mov rcx, r14
call fcn.14003acf0
test ebp, ebp
je 0x14003f507
test byte [rsi], 1
je 0x14003f4b7
mov rcx, qword [rsi + 0x10]
jmp 0x14003f4bb
lea rcx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003f4e6
mov r15d, 7
test al, 0x10
je 0x14003f507
mov rcx, rsi
call fcn.14002ca60
movzx eax, al
mov r15d, 6
sub r15d, eax
jmp 0x14003f507
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov r15d, 4
cmp eax, 4
jae 0x14003f507
cdqe
lea rcx, [0x14016bc08]
mov r15d, dword [rcx + rax*4]
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmmword [rsp + 0x90], xmm6
lea rax, str.Windows.PostOperationState.
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x1b
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x80], r14
lea rsi, [rsp + 0x90]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140035820
mov rcx, rsi
mov edx, r15d
mov r8d, 8
call fcn.140032420
test byte [rsp + 0x90], 1
je 0x14003f59a
mov rcx, qword [rsp + 0xa0]
call fcn.1401321e4
test ebp, ebp
je 0x14003f624
mov qword [rsp + 0xa0], rbx
movaps xmmword [rsp + 0x90], xmm6
lea rax, str.Windows.FilesystemError.
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x18
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x78], 2
mov qword [rsp + 0x80], r14
lea rsi, [rsp + 0x90]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140035820
mov rcx, rsi
mov edx, ebp
call fcn.1400324a0
test byte [rsp + 0x90], 1
je 0x14003f624
mov rcx, qword [rsp + 0xa0]
call fcn.1401321e4
test ebp, ebp
sete bl
lea rcx, [rsp + 0x20]
call fcn.14003acf0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140132550
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret