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

Disassembly:
xor edx, edx
jmp 0x140209ba0
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1403df810]
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........._base_files_file_util_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x102
call fcn.140317d20
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
call fcn.14030e910
movzx ecx, byte [rsi + 0x17]
test cl, cl
mov rax, qword [rsi + 8]
mov rdx, rcx
cmovs rdx, rax
test rdx, rdx
je 0x140209d8d
test cl, cl
jns 0x140209c5c
mov ebp, 0xa1
cmp rax, 0x103
jbe 0x140209c5c
lea rcx, [rsp + 0x60]
call fcn.14030eb40
jmp 0x140209daa
mov rcx, rsi
mov rdx, rdi
call fcn.140319020
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x140209c7a
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
test rax, rax
je 0x140209d05
lea r15, [rdi + rax*2]
add rax, rax
mov r14, rdi
movzx ecx, word [r14]
cmp ecx, 0x2a
je 0x140209ca8
cmp ecx, 0x3f
je 0x140209ca8
add r14, 2
add rax, 0xfffffffffffffffe
jne 0x140209c8d
mov r14, r15
lea rcx, [rsp + 0x40]
call fcn.140318a80
cmp r14, r15
je 0x140209d0f
sub r14, rdi
cmp r14, 0xfffffffffffffffe
je 0x140209d0f
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.140319020
lea r14, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
call fcn.140318ad0
mov rcx, r14
mov rdx, rdi
mov r8d, ebx
call fcn.14020b080
mov ebp, eax
mov rcx, r14
call fcn.140318a80
mov rcx, rdi
call fcn.140318a80
jmp 0x140209d9c
lea rcx, [rsp + 0x40]
call fcn.140318a80
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140209d1b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140209d7d
mov edi, eax
test dil, 1
je 0x140209d49
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140209d3f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140209d7d
test dil, 0x10
jne 0x140209d63
cmp byte [rsi + 0x17], 0
jns 0x140209d58
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140209d79
test bl, bl
jne 0x140209dd6
cmp byte [rsi + 0x17], 0
jns 0x140209d70
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140209d8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140209d9c
lea rcx, [rsp + 0x60]
call fcn.14030eb40
mov sil, 1
jmp 0x140209db4
lea rcx, [rsp + 0x60]
call fcn.14030eb40
test ebp, ebp
je 0x140209d97
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140334bf0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, [0x1403e550e]
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14036ecf0
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
call fcn.14020b080
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140209e0a
mov rcx, qword [rsp + 0x40]
call fcn.1403336f4
test ebp, ebp
jne 0x140209c4d
jmp 0x140209d67