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

Disassembly:
xor edx, edx
jmp 0x180175e50
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1803467d0]
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, 0x14f
call fcn.18010a970
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
call fcn.180101470
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 0x180175fea
test al, al
jns 0x180175ef1
cmp rcx, 0x104
jae 0x18017606a
mov rcx, rsi
mov rdx, rbx
call fcn.18010c180
movzx eax, byte [rsp + 0x57]
test al, al
js 0x180175f0a
and eax, 0x7f
jmp 0x180175f14
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rax, rax
je 0x18017604c
lea r15, [rbx + rax*2]
lea rax, [0x18035d188]
mov r14, rbx
movzx ecx, word [r14]
xor edx, edx
cmp cx, word [rdx + rax]
je 0x180175f4d
add rdx, 2
cmp rdx, 4
jne 0x180175f31
add r14, 2
cmp r14, r15
jne 0x180175f2b
mov r14, r15
lea rcx, [rsp + 0x40]
call fcn.18010ad40
cmp r14, r15
je 0x180175f69
sub r14, rbx
cmp r14, 0xfffffffffffffffe
jne 0x1801760cb
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x180175f75
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180176019
mov ebx, eax
test bl, 1
jne 0x1801760a7
test bl, 0x10
je 0x18017602e
test dil, 1
je 0x180175fd4
lea rdx, [0x18035d18e]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1801447b6
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call fcn.180176a30
mov ebp, eax
cmp byte [rbx + 0x17], 0
js 0x18017605b
test ebp, ebp
jne 0x18017608e
cmp byte [rsi + 0x17], 0
jns 0x180175fdd
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x180176019
lea rcx, [rsp + 0x60]
call fcn.1801014d0
mov sil, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1801e6610
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 0x180175fea
jmp 0x18017610b
test dil, 2
jne 0x180176125
cmp byte [rsi + 0x17], 0
jns 0x180176041
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180175fe6
lea rcx, [rsp + 0x40]
call fcn.18010ad40
jmp 0x180175f69
mov rcx, qword [rsp + 0x40]
call fcn.1801e4f44
jmp 0x180175fcc
lea r9, [0x18035d140]
mov r8d, 4
mov rcx, rsi
xor edx, edx
call fcn.1802c6460
mov ebp, 0xa1
test eax, eax
je 0x180175ef1
lea rcx, [rsp + 0x60]
call fcn.1801014d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x180175ff7
mov edx, ebx
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1801760b8
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x180175f8f
jmp 0x180176019
lea rbx, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.18010c180
lea r14, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
call fcn.18010bb50
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call fcn.180176a30
mov ebp, eax
mov rcx, r14
call fcn.18010ad40
mov rcx, rbx
call fcn.18010ad40
lea rcx, [rsp + 0x60]
call fcn.1801014d0
mov sil, 1
test ebp, ebp
je 0x180175ff7
jmp 0x180176098
call fcn.1800fd130
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
mov rcx, rsi
call fcn.1802ccfc0
test al, al
jne 0x180175fea
jmp 0x180176019