Function at 0x1400154c0
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, 0xa8
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14029ca60]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoDeleteFile
lea r8, str.file_util_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x119
call fcn.140158eb0
mov rcx, r14
xor edx, edx
xor r8d, r8d
call fcn.1401a26e0
test byte [0x1402d90d0], 0x19
jne 0x1400156df
movzx eax, byte [rsi + 0x17]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rsi + 8]
cmovs rdx, rcx
test rdx, rdx
je 0x140015611
test al, al
jns 0x14001556a
cmp rcx, 0x103
ja 0x1400156c6
mov rcx, rsi
mov rdx, rdi
call fcn.140173a20
movzx eax, byte [rsp + 0x57]
mov edx, eax
and edx, 0x7f
test al, al
cmovs rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmovs rdi, rcx
test rdx, rdx
je 0x1400156cd
lea r8, [rdi + rdx*2]
add rdx, rdx
mov r9, rdi
movzx r10d, word [r9]
cmp r10d, 0x2a
je 0x1400155c0
cmp r10d, 0x3f
je 0x1400155c0
add r9, 2
add rdx, 0xfffffffffffffffe
jne 0x1400155a3
mov r9, r8
cmp r9, r8
sete dl
sub r9, rdi
cmp r9, 0xfffffffffffffffe
sete dil
or dil, dl
test al, al
jns 0x1400155dd
call fcn.1401cbbbc
test dil, dil
je 0x140015704
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400155f2
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140015655
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140015756
lea rcx, [rsp + 0x60]
call fcn.140181760
mov sil, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401ce5b0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp byte [rsi + 0x17], 0
jns 0x140015646
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140015611
jmp 0x1400155fd
mov edi, eax
test dil, 1
jne 0x140015770
test dil, 0x10
je 0x14001563d
test bl, bl
je 0x1400156b2
lea rdx, [0x1402a926a]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140207340
mov rcx, rsi
mov rdx, rbx
mov r8b, 1
call fcn.1400157a0
mov edi, eax
cmp byte [rbx + 0x17], 0
js 0x1400156f8
test edi, edi
je 0x1400156b2
lea rcx, [rsp + 0x60]
call fcn.140181760
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14001561e
cmp byte [rsi + 0x17], 0
jns 0x1400156bb
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001564f
mov edi, 0xa1
jmp 0x140015699
test al, al
jns 0x1400155e6
call fcn.1401cbbbc
jmp 0x1400155e6
lea rdx, [rsp + 0x28]
mov qword [rdx], rdi
lea rcx, str.ScopedBlockingCall
call fcn.1402380c0
jmp 0x14001553d
mov rcx, qword [rsp + 0x40]
call fcn.1401cbbbc
jmp 0x140015695
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.140173a20
lea r14, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
call fcn.140188050
mov rcx, r14
mov rdx, rdi
mov r8d, ebx
call fcn.1400157a0
mov edi, eax
cmp byte [r14 + 0x17], 0
jns 0x140015745
mov rcx, qword [rsp + 0x28]
call fcn.1401cbbbc
cmp byte [rsp + 0x57], 0
jns 0x140015756
mov rcx, qword [rsp + 0x40]
call fcn.1401cbbbc
lea rcx, [rsp + 0x60]
call fcn.140181760
mov sil, 1
test edi, edi
je 0x14001561e
jmp 0x1400156a3
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140015781
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140015661
jmp 0x1400155fd