Function at 0x14006b510
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov dl, 1
jmp 0x14006b510
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 [0x140154028]
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 [0x140133080]
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.140069de0
xor edi, edi
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.140070090
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.140069de0
lea rcx, [rsp + 0xc0]
mov rdx, rbx
xor r8d, r8d
call fcn.140070090
movzx eax, byte [r15 + 0x17]
test al, al
jns 0x14006b61b
mov rax, qword [r15 + 8]
test rax, rax
je 0x14006b6c8
cmp rax, 0x103
ja 0x14006b8e7
mov rcx, r15
mov rdx, rbx
call fcn.140069150
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x14006b64e
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rax, rax
je 0x14006b8f1
lea rdi, [rbx + rax*2]
add rax, rax
mov rsi, rbx
movzx ecx, word [rsi]
cmp cx, 0x3f
je 0x14006b67d
cmp cx, 0x2a
je 0x14006b67d
add rsi, 2
add rax, 0xfffffffffffffffe
jne 0x14006b661
mov rsi, rdi
lea rcx, [rsp + 0x40]
call fcn.1400683f0
cmp rsi, rdi
je 0x14006b699
sub rsi, rbx
cmp rsi, 0xfffffffffffffffe
jne 0x14006b900
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14006b6a6
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14006b7ad
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.1400700f0
xor ebp, ebp
test edi, edi
jne 0x14006b7e8
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.140070a80
mov rcx, rsi
mov edx, ebp
mov r8d, 8
call fcn.1400370d0
cmp byte [rsi + 0x17], 0
jns 0x14006b768
mov rcx, qword [rsp + 0x40]
call fcn.140096800
test edi, edi
jne 0x14006b823
test edi, edi
sete bl
lea rcx, [rsp + 0x60]
call fcn.1400700f0
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140097620
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 0x14006b945
test dil, 0x10
jne 0x14006b899
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14006b7d0
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0
test eax, eax
jne 0x14006b6c8
jmp 0x14006b6b5
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14006b7f5
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006b96a
test al, 0x10
je 0x14006b989
mov rcx, r15
call fcn.140034580
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x14006b6ef
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.140070a80
mov rcx, rsi
mov edx, edi
call fcn.140037170
cmp byte [rsi + 0x17], 0
jns 0x14006b88c
mov rcx, qword [rsp + 0x40]
call fcn.140096800
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14006b770
test r14b, r14b
je 0x14006b8cf
lea rsi, [rsp + 0x40]
mov byte [rsi + 0x17], 1
mov dword [rsi], 0x2a
mov rcx, r15
mov rdx, rsi
mov r8b, 1
call fcn.14002f780
mov edi, eax
cmp byte [rsi + 0x17], 0
js 0x14006b993
test edi, edi
jne 0x14006b6c8
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14006b8dc
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14006b7d6
mov edi, 0xa1
jmp 0x14006b6c8
lea rcx, [rsp + 0x40]
call fcn.1400683f0
jmp 0x14006b699
lea rsi, [rsp + 0x40]
mov rcx, r15
mov rdx, rsi
call fcn.140069150
lea rbx, [rsp + 0x28]
mov rcx, r15
mov rdx, rbx
call fcn.140068c90
mov rcx, rbx
mov rdx, rsi
mov r8d, r14d
call fcn.14002f780
mov edi, eax
mov rcx, rbx
call fcn.1400683f0
mov rcx, rsi
call fcn.1400683f0
jmp 0x14006b6c8
mov edx, edi
and edx, 0xfffffffe
cmp byte [r15 + 0x17], 0
mov rcx, r15
jns 0x14006b957
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14006b7b9
jmp 0x14006b6b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14006b9a2
cmp eax, 5
je 0x14006b9ac
cmp eax, 3
jne 0x14006b9b6
mov ebp, 2
jmp 0x14006b6ef
mov ebp, 7
jmp 0x14006b6ef
mov rcx, qword [rsp + 0x40]
call fcn.140096800
jmp 0x14006b8c7
mov ebp, 1
jmp 0x14006b6ef
mov ebp, 3
jmp 0x14006b6ef
mov ebp, 4
jmp 0x14006b6ef