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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140199040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x140165510]
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, 0x155
call fcn.140042db0
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.1400477a0
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
mov rax, qword [rsi + 8]
mov rdx, rcx
cmovs rdx, rax
test rdx, rdx
je 0x140067482
test cl, cl
jns 0x140067390
cmp rax, 0x104
jae 0x1400674e1
mov rcx, rsi
mov rdx, rbx
call fcn.1400431d0
movsx rax, byte [rsp + 0x57]
test rax, rax
jns 0x1400673b0
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rax, rax
je 0x1400674c6
lea r15, [rbx + rax*2]
lea rax, [0x14017856a]
mov r14, rbx
movzx ecx, word [r14]
xor edx, edx
cmp cx, word [rdx + rax]
je 0x1400673e9
add rdx, 2
cmp rdx, 4
jne 0x1400673cd
add r14, 2
cmp r14, r15
jne 0x1400673c7
mov r14, r15
lea rcx, [rsp + 0x40]
call fcn.140043120
cmp r14, r15
je 0x140067405
sub r14, rbx
cmp r14, 0xfffffffffffffffe
jne 0x140067587
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140067411
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400674b1
mov ebx, eax
test bl, 1
jne 0x14006751e
test bl, 0x10
je 0x140067542
test dil, 1
je 0x14006746c
lea rdx, [0x140178570]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002856a
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call fcn.140067cf0
mov ebp, eax
cmp byte [rbx + 0x17], 0
js 0x1400674d5
test ebp, ebp
jne 0x140067505
cmp byte [rsi + 0x17], 0
jns 0x140067475
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1400674b1
lea rcx, [rsp + 0x60]
call fcn.140047820
mov sil, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009a1f0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
je 0x140067482
jmp 0x1400675c7
lea rcx, [rsp + 0x40]
call fcn.140043120
jmp 0x140067405
mov rcx, qword [rsp + 0x40]
call fcn.140098d0c
jmp 0x140067464
lea r9, [0x1401784f4]
mov r8d, 4
mov rcx, rsi
xor edx, edx
call fcn.140109180
mov ebp, 0xa1
test eax, eax
je 0x140067390
lea rcx, [rsp + 0x60]
call fcn.140047820
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14006748f
mov edx, ebx
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14006752f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14006742b
jmp 0x1400674b1
test dil, 2
jne 0x14006755f
cmp byte [rsi + 0x17], 0
jns 0x140067551
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14006747e
call fcn.14003a130
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
mov rcx, rsi
call fcn.14010c3f0
test al, al
je 0x1400674b1
jmp 0x140067482
lea rbx, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400431d0
lea r14, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
call fcn.14006ee20
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call fcn.140067cf0
mov ebp, eax
mov rcx, r14
call fcn.140043120
mov rcx, rbx
call fcn.140043120
lea rcx, [rsp + 0x60]
call fcn.140047820
mov sil, 1
test ebp, ebp
je 0x14006748f
jmp 0x14006750f