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

Disassembly:
xor edx, edx
jmp 0x14005b020
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x140155bd0]
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.1400374b0
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.14003bcb0
movzx ecx, byte [rsi + 0x17]
test cl, cl
mov rax, qword [rsi + 8]
mov rdx, rcx
cmovs rdx, rax
test rdx, rdx
je 0x14005b1b2
test cl, cl
jns 0x14005b0be
cmp rax, 0x104
jae 0x14005b253
mov rcx, rsi
mov rdx, rbx
call fcn.140037820
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x14005b0dc
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rax, rax
je 0x14005b214
lea r15, [rbx + rax*2]
lea rax, [0x14015ecc8]
mov r14, rbx
movzx ecx, word [r14]
xor edx, edx
cmp cx, word [rdx + rax]
je 0x14005b115
add rdx, 2
cmp rdx, 4
jne 0x14005b0f9
add r14, 2
cmp r14, r15
jne 0x14005b0f3
mov r14, r15
lea rcx, [rsp + 0x40]
call fcn.140037770
cmp r14, r15
je 0x14005b131
sub r14, rbx
cmp r14, 0xfffffffffffffffe
jne 0x14005b290
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005b13d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005b1e1
mov ebx, eax
test bl, 1
jne 0x14005b232
test bl, 0x10
je 0x14005b1f6
test dil, 1
je 0x14005b19c
lea rdx, [0x14015ecce]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140051c5a
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call fcn.14005ba00
mov ebp, eax
cmp byte [rbx + 0x17], 0
js 0x14005b223
test ebp, ebp
jne 0x14005b277
cmp byte [rsi + 0x17], 0
jns 0x14005b1a5
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x14005b1e1
lea rcx, [rsp + 0x60]
call fcn.14003bd10
mov sil, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009ec00
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 0x14005b1b2
jmp 0x14005b2d0
test dil, 2
jne 0x14005b2e7
cmp byte [rsi + 0x17], 0
jns 0x14005b209
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14005b1ae
lea rcx, [rsp + 0x40]
call fcn.140037770
jmp 0x14005b131
mov rcx, qword [rsp + 0x40]
call fcn.14009d77c
jmp 0x14005b194
mov edx, ebx
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005b243
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14005b157
jmp 0x14005b1e1
lea r9, [0x14015ec80]
mov r8d, 4
mov rcx, rsi
xor edx, edx
call fcn.1400fdd86
mov ebp, 0xa1
test eax, eax
je 0x14005b0be
lea rcx, [rsp + 0x60]
call fcn.14003bd10
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14005b1bf
lea rbx, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140037820
lea r14, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
call fcn.1400608b0
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call fcn.14005ba00
mov ebp, eax
mov rcx, r14
call fcn.140037770
mov rcx, rbx
call fcn.140037770
lea rcx, [rsp + 0x60]
call fcn.14003bd10
mov sil, 1
test ebp, ebp
je 0x14005b1bf
jmp 0x14005b281
call fcn.14003d790
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
mov rcx, rsi
call fcn.1400ff5c0
test al, al
jne 0x14005b1b2
jmp 0x14005b1e1