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

Disassembly:
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 r14d, edx
mov r15, rcx
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x108], rax
xor r13d, r13d
test r14b, 1
lea rax, str.DeleteFile.NonRecursive
lea r12, str.DeleteFile.Recursive
cmove r12, rax
sete r13b
movaps xmm6, xmmword [0x140147b90]
lea rbx, [rsp + 0x20]
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 + 0xb0]
mov rcx, rsi
mov r8, rbp
mov r9d, 0x1a5
call fcn.140038cd0
xor edi, edi
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.140043760
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 + 0x90]
mov rcx, rbx
mov r8, rbp
mov r9d, 0x165
call fcn.140038cd0
lea rcx, [rsp + 0xb0]
mov rdx, rbx
xor r8d, r8d
call fcn.140043760
movzx eax, byte [r15 + 0x17]
test al, al
jns 0x14004e179
mov rax, qword [r15 + 8]
test rax, rax
je 0x14004e232
cmp rax, 0x103
ja 0x14004e45a
mov rcx, r15
mov rdx, rbx
call fcn.140007e00
movzx eax, byte [rsp + 0xa7]
test al, al
jns 0x14004e1b5
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
test rax, rax
je 0x14004e464
lea rbp, [rbx + rax*2]
add rax, rax
mov rsi, rbx
movzx ecx, word [rsi]
cmp cx, 0x3f
je 0x14004e1e4
cmp cx, 0x2a
je 0x14004e1e4
add rsi, 2
add rax, 0xfffffffffffffffe
jne 0x14004e1c8
mov rsi, rbp
lea rcx, [rsp + 0x90]
call fcn.14004f070
cmp rsi, rbp
je 0x14004e203
sub rsi, rbx
cmp rsi, 0xfffffffffffffffe
jne 0x14004e476
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14004e210
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004e315
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor edi, edi
cmp ecx, 2
cmovne edi, eax
lea r13, [r13 + r13*2 + 0x14]
lea r14, [rsp + 0xb0]
mov rcx, r14
call fcn.14003cd60
xor ebp, ebp
test edi, edi
jne 0x14004e3a3
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x90]
mov qword [rsi + 0x10], rbx
movaps xmmword [rsi], 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], r13
lea rdx, [rsp + 0x78]
mov qword [rdx], 2
mov qword [rdx + 8], r14
mov rcx, rsi
call fcn.14004e910
mov rcx, rsi
mov edx, ebp
mov r8d, 8
call fcn.14004e540
cmp byte [rsi + 0x17], 0
jns 0x14004e2d0
mov rcx, qword [rsp + 0x90]
call fcn.14007a98c
test edi, edi
jne 0x14004e3de
test edi, edi
sete bl
lea rcx, [rsp + 0x20]
call fcn.14003cd60
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14007d5a0
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
mov ebx, eax
test bl, 1
jne 0x14004e4be
test bl, 0x10
jne 0x14004e354
test r14b, 2
jne 0x14004e4e3
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14004e33c
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0
test eax, eax
jne 0x14004e232
jmp 0x14004e21f
test r14b, 1
je 0x14004e38e
lea rsi, [rsp + 0x90]
mov byte [rsi + 0x17], 1
mov dword [rsi], 0x2a
mov rcx, r15
mov rdx, rsi
mov r8d, r14d
call fcn.1400afd90
mov edi, eax
cmp byte [rsi + 0x17], 0
js 0x14004e4f8
test edi, edi
jne 0x14004e232
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14004e39b
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14004e342
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14004e3b0
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004e50a
test al, 0x10
je 0x14004e532
mov rcx, r15
call fcn.1400afca0
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x14004e251
lea rsi, [rsp + 0x90]
mov qword [rsi + 0x10], rbx
movaps xmmword [rsi], 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], r13
lea rdx, [rsp + 0x78]
mov qword [rdx], 2
mov qword [rdx + 8], r14
mov rcx, rsi
call fcn.14004e910
mov rcx, rsi
mov edx, edi
call fcn.1400afc70
cmp byte [rsi + 0x17], 0
jns 0x14004e44d
mov rcx, qword [rsp + 0x90]
call fcn.14007a98c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004e2d8
mov edi, 0xa1
jmp 0x14004e232
lea rcx, [rsp + 0x90]
call fcn.14004f070
jmp 0x14004e203
lea rsi, [rsp + 0x90]
mov rcx, r15
mov rdx, rsi
call fcn.140007e00
lea rbx, [rsp + 0x78]
mov rcx, r15
mov rdx, rbx
call fcn.140009b40
mov rcx, rbx
mov rdx, rsi
mov r8d, r14d
call fcn.1400afd90
mov edi, eax
mov rcx, rbx
call fcn.14004f070
mov rcx, rsi
call fcn.14004f070
jmp 0x14004e232
mov edx, ebx
and edx, 0xfffffffe
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14004e4d0
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14004e320
jmp 0x14004e21f
mov rcx, r15
call fcn.1400f73c0
test al, al
jne 0x14004e232
jmp 0x14004e21f
mov rcx, qword [rsp + 0x90]
call fcn.14007a98c
jmp 0x14004e386
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov ebp, 4
cmp eax, 4
jae 0x14004e251
cdqe
lea rcx, [0x14014e548]
mov ebp, dword [rcx + rax*4]
jmp 0x14004e251
mov ebp, 7
jmp 0x14004e251