Function at 0x140023980
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 [0x140145040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1401213c0]
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....._base_files_file_util_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x106
call fcn.1400754d0
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
call fcn.140098080
movzx ecx, byte [rsi + 0x17]
test cl, cl
mov rax, qword [rsi + 8]
mov rdx, rcx
cmovs rdx, rax
test rdx, rdx
je 0x140023ac4
test cl, cl
jns 0x140023a1b
cmp rax, 0x103
ja 0x140023bb6
mov rcx, rsi
mov rdx, rdi
call fcn.140023cb0
movzx eax, byte [rsp + 0x57]
test al, al
mov rdx, rax
cmovs rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmovs rdi, rcx
test rdx, rdx
je 0x140023bde
lea r8, [rdi + rdx*2]
add rdx, rdx
mov r9, rdi
movzx r10d, word [r9]
cmp r10d, 0x2a
je 0x140023a6f
cmp r10d, 0x3f
je 0x140023a6f
add r9, 2
add rdx, 0xfffffffffffffffe
jne 0x140023a52
mov r9, r8
cmp r9, r8
sete dl
sub r9, rdi
cmp r9, 0xfffffffffffffffe
sete dil
or dil, dl
test al, al
jns 0x140023a8c
call fcn.1400b4d44
test dil, dil
je 0x140023bf0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140023aa1
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140023b3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140023c42
mov qword [rsp + 0x28], 0xa
mov al, byte [0x14015765a]
test al, al
jne 0x140023b03
lea rcx, [rsp + 0x60]
call fcn.140097660
mov sil, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b7310
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx ecx, al
lea r8, [rsp + 0x40]
mov qword [r8], 0
lea rdx, [rsp + 0x28]
mov r9d, 2
call fcn.1400754f0
jmp 0x140023ad7
cmp byte [rsi + 0x17], 0
jns 0x140023b2d
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140023ac4
jmp 0x140023ab0
mov edi, eax
test dil, 1
jne 0x140023c73
test dil, 0x10
je 0x140023b24
test bl, bl
je 0x140023c5c
lea rbx, [rsp + 0x40]
mov byte [rbx + 0x17], 1
mov dword [rbx], 0x2a
mov rcx, rsi
mov rdx, rbx
mov r8b, 1
call fcn.140023ef0
mov edi, eax
cmp byte [rbx + 0x17], 0
js 0x140023c97
test edi, edi
je 0x140023c5c
mov qword [rsp + 0x28], 0xa
mov al, byte [0x14015765a]
test al, al
jne 0x140023bbd
lea rcx, [rsp + 0x60]
call fcn.140097660
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x140023ae4
mov edi, 0xa1
jmp 0x140023b8a
movzx ecx, al
lea r8, [rsp + 0x40]
mov qword [r8], 0
lea rdx, [rsp + 0x28]
mov r9d, 2
call fcn.1400754f0
jmp 0x140023b9d
test al, al
jns 0x140023a95
call fcn.1400b4d44
jmp 0x140023a95
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.140023cb0
lea r14, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
call fcn.140025de0
mov rcx, r14
mov rdx, rdi
mov r8d, ebx
call fcn.140023ef0
mov edi, eax
cmp byte [r14 + 0x17], 0
jns 0x140023c31
mov rcx, qword [rsp + 0x28]
call fcn.1400b4d44
cmp byte [rsp + 0x57], 0
jns 0x140023c42
mov rcx, qword [rsp + 0x40]
call fcn.1400b4d44
lea rcx, [rsp + 0x60]
call fcn.1400aaa40
mov sil, 1
test edi, edi
je 0x140023ae4
jmp 0x140023ba7
cmp byte [rsi + 0x17], 0
jns 0x140023c65
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140023b36
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140023c84
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140023b4b
jmp 0x140023ab0
mov rcx, qword [rsp + 0x40]
call fcn.1400b4d44
jmp 0x140023b82