Function at 0x140061480
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x14029bb90]
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 rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x150
call fcn.14009b140
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.140059ca0
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 0x140061620
test al, al
jns 0x14006151f
cmp rcx, 0x104
jae 0x1400616e6
mov rcx, rsi
mov rdx, rbx
call fcn.1400a0ae0
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 rbx, rcx
test rdx, rdx
je 0x14006165f
lea rdx, [rbx + rdx*2]
lea r9, [0x1402aaf40]
mov r8, rbx
movzx r10d, word [r8]
xor r11d, r11d
cmp r10w, word [r11 + r9]
je 0x140061580
add r11, 2
cmp r11, 4
jne 0x140061563
add r8, 2
cmp r8, rdx
jne 0x14006155c
mov r8, rdx
cmp r8, rdx
sete dl
sub r8, rbx
cmp r8, 0xfffffffffffffffe
sete bl
or bl, dl
test al, al
jns 0x14006159b
call fcn.14010cc0c
test bl, bl
je 0x14006167d
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400615af
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006164d
mov ebx, eax
test bl, 1
jne 0x140061723
test bl, 0x10
je 0x140061747
test dil, 1
je 0x14006160a
lea rdx, [0x1402aaf46]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400eb674
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call fcn.1400c6680
mov ebp, eax
cmp byte [rbx + 0x17], 0
js 0x140061671
test ebp, ebp
jne 0x14006170a
cmp byte [rsi + 0x17], 0
jns 0x140061613
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14006164d
lea rcx, [rsp + 0x60]
call fcn.140059e90
mov sil, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14010fba0
mov eax, esi
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
je 0x140061620
jmp 0x1400616cf
test al, al
jns 0x1400615a3
call fcn.14010cc0c
jmp 0x1400615a3
mov rcx, qword [rsp + 0x40]
call fcn.14010cc0c
jmp 0x140061602
lea rbx, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400a0ae0
lea r14, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
call fcn.1400a0f20
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call fcn.1400c6680
mov ebp, eax
cmp byte [r14 + 0x17], 0
jns 0x1400616be
mov rcx, qword [rsp + 0x28]
call fcn.14010cc0c
cmp byte [rsp + 0x57], 0
jns 0x1400616cf
mov rcx, qword [rsp + 0x40]
call fcn.14010cc0c
lea rcx, [rsp + 0x60]
call fcn.140059e90
mov sil, 1
test ebp, ebp
je 0x14006162d
jmp 0x140061714
lea r9, [0x1402aaebc]
mov r8d, 4
mov rcx, rsi
xor edx, edx
call fcn.1401c27fc
mov ebp, 0xa1
test eax, eax
je 0x14006151f
lea rcx, [rsp + 0x60]
call fcn.140059e90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14006162d
mov edx, ebx
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140061734
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400615c9
jmp 0x14006164d
test dil, 2
jne 0x140061764
cmp byte [rsi + 0x17], 0
jns 0x140061756
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14006161c
call fcn.1400f1800
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
mov rcx, rsi
call fcn.1401c9ba0
test al, al
je 0x14006164d
jmp 0x140061620