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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x50], rax
movaps xmm0, xmmword [0x140301d60]
movaps xmmword [r14 + 0x40], xmm0
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, 0x145
call fcn.14004f270
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.1400cd290
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 0x1400cc93e
test al, al
jns 0x1400cc864
cmp rcx, 0x104
jae 0x1400cc9c8
mov rcx, rsi
mov rdx, rbx
call fcn.140050ca0
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x1400cc884
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jmp 0x1400cc887
and eax, 0x7f
test rax, rax
je 0x1400cc9b9
lea r15, [rbx + rax*2]
add rax, rax
mov r14, rbx
movzx ecx, word [r14]
cmp ecx, 0x2a
je 0x1400cc8b5
cmp ecx, 0x3f
je 0x1400cc8b5
add r14, 2
add rax, 0xfffffffffffffffe
jne 0x1400cc89a
mov r14, r15
lea rcx, [rsp + 0x40]
call fcn.14007be00
cmp r14, r15
je 0x1400cc8d1
sub r14, rbx
cmp r14, 0xfffffffffffffffe
jne 0x1400cca05
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400cc8dd
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400cc90e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
je 0x1400cc93e
lea rcx, [rsp + 0x60]
call fcn.1400cd300
mov sil, 1
test ebp, ebp
je 0x1400cc94b
jmp 0x1400cc9f6
mov ebx, eax
test bl, 1
jne 0x1400cca4a
test bl, 0x10
jne 0x1400cc96d
test dil, 2
jne 0x1400cca6e
cmp byte [rsi + 0x17], 0
jns 0x1400cc931
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400cc8e8
lea rcx, [rsp + 0x60]
call fcn.1400cd300
mov sil, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140171860
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
test dil, 1
je 0x1400cc9a5
lea rdx, [0x14030a172]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140067b86
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call fcn.1400ccf90
mov ebp, eax
cmp byte [rbx + 0x17], 0
js 0x1400cca96
test ebp, ebp
jne 0x1400cc9ec
cmp byte [rsi + 0x17], 0
jns 0x1400cc9ae
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400cc93a
lea rcx, [rsp + 0x40]
call fcn.14007be00
jmp 0x1400cc8d1
lea r9, [0x14030a112]
mov r8d, 4
mov rcx, rsi
xor edx, edx
call fcn.140204f3a
mov ebp, 0xa1
test eax, eax
je 0x1400cc864
lea rcx, [rsp + 0x60]
call fcn.1400cd300
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400cc94b
lea rbx, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140050ca0
lea r14, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
call fcn.140050490
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call fcn.1400ccf90
mov ebp, eax
mov rcx, r14
call fcn.14007be00
mov rcx, rbx
call fcn.14007be00
jmp 0x1400cc8f8
mov edx, ebx
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400cca5b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400cc919
jmp 0x1400cc8e8
call fcn.14008daa0
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
mov rcx, rsi
call fcn.140210470
test al, al
jne 0x1400cc93e
jmp 0x1400cc8e8
mov rcx, qword [rsp + 0x40]
call fcn.14016eccc
jmp 0x1400cc9a1