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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x1401990c0]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.DoDeleteFile
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x106
call fcn.140075ed0
lea rcx, [rsp + 0x60]
xor edx, edx
xor r8d, r8d
call fcn.1400a14c0
mov qword [rsp + 0xa0], 0xa
movzx eax, byte [0x1401d7dba]
test al, al
jne 0x14005cae8
cmp byte [rsi + 0x17], 0
js 0x14005cb1f
jne 0x14005cb3d
jmp 0x14005ccbd
movzx ecx, al
mov qword [rsp + 0x28], r14
lea rax, str.ScopedBlockingCall
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0xa0]
lea r8, [rsp + 0xa8]
lea r9, [rsp + 0x28]
call fcn.140062630
cmp byte [rsi + 0x17], 0
jns 0x14005cae1
mov rax, qword [rsi + 8]
test rax, rax
je 0x14005ccbd
mov edi, 0xa1
cmp rax, 0x103
ja 0x14005cc6c
mov rcx, rsi
mov rdx, r14
call fcn.140078d10
movzx eax, byte [rsp + 0x57]
mov rcx, qword [rsp + 0x40]
mov rdx, rax
test al, al
jns 0x14005cb61
mov rdx, qword [rsp + 0x48]
mov r14, rcx
test rdx, rdx
je 0x14005cba5
add rdx, rdx
xor edi, edi
nop dword [rax + rax]
movzx r8d, word [r14 + rdi]
cmp r8d, 0x2a
je 0x14005cb8c
cmp r8d, 0x3f
je 0x14005cb8c
add rdi, 2
cmp rdx, rdi
jne 0x14005cb70
jmp 0x14005cba5
cmp rdx, rdi
je 0x14005cba5
test al, al
js 0x14005cce7
cmp rdi, 0xfffffffffffffffe
jne 0x14005ccf6
jmp 0x14005cbae
test al, al
jns 0x14005cbae
call fcn.140150da4
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005cbba
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005cca9
mov edi, eax
test dil, 1
je 0x14005cbf0
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005cbe2
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14005cca9
test dil, 0x10
jne 0x14005cc15
cmp byte [rsi + 0x17], 0
jns 0x14005cbff
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14005ccbd
jmp 0x14005cca9
test bl, bl
je 0x14005cc93
mov byte [rsp + 0x57], 1
lea rax, [0x1401a8b6e]
lea rcx, [rsp + 0x40]
cmp rcx, rax
ja 0x14005cc3d
lea rcx, [rsp + 0x42]
cmp rcx, rax
ja 0x14005ce09
mov dword [rsp + 0x40], 0x2a
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov r8b, 1
call fcn.14005ef30
mov edi, eax
cmp byte [rsp + 0x57], 0
jns 0x14005cc68
mov rcx, qword [rsp + 0x40]
call fcn.140150da4
test edi, edi
je 0x14005cc93
mov qword [rsp + 0x28], 0xa
movzx eax, byte [0x1401d7dba]
test al, al
jne 0x14005cde3
lea rcx, [rsp + 0x60]
call fcn.1400a1760
jmp 0x14005cd6e
cmp byte [rsi + 0x17], 0
jns 0x14005cc9c
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14005ccbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x14005cd48
mov qword [rsp + 0x28], 0xa
movzx eax, byte [0x1401d7dba]
test al, al
jne 0x14005cd97
lea rcx, [rsp + 0x60]
call fcn.1400a1760
mov sil, 1
jmp 0x14005cd78
call fcn.140150da4
cmp rdi, 0xfffffffffffffffe
je 0x14005cbae
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.140078d10
lea r14, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
call fcn.140078a50
mov rcx, r14
mov rdx, rdi
mov r8d, ebx
call fcn.14005ef30
mov edi, eax
cmp byte [rsp + 0x3f], 0
jns 0x14005cd37
mov rcx, qword [rsp + 0x28]
call fcn.140150da4
cmp byte [rsp + 0x57], 0
jns 0x14005cd48
mov rcx, qword [rsp + 0x40]
call fcn.140150da4
mov qword [rsp + 0x28], 0xa
movzx eax, byte [0x1401d7dba]
test al, al
jne 0x14005cdbd
lea rcx, [rsp + 0x60]
call fcn.1400a1760
test edi, edi
je 0x14005ccdf
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140152280
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx ecx, al
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov r9d, 2
call fcn.140032b00
jmp 0x14005ccd5
movzx ecx, al
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov r9d, 2
call fcn.140032b00
jmp 0x14005cd5c
movzx ecx, al
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov r9d, 2
call fcn.140032b00
jmp 0x14005cc84
int3