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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DoDeleteFile
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0xf9
call fcn.14012aa00
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140131050
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14005165f
mov rax, qword [rsi + 8]
test rax, rax
je 0x140051708
cmp rax, 0x103
ja 0x140051794
mov rcx, rsi
mov rdx, rdi
call fcn.1401295e0
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x140051692
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
test rax, rax
je 0x14005179b
lea rbp, [rdi + rax*2]
add rax, rax
mov rbx, rdi
movzx ecx, word [rbx]
cmp cx, 0x3f
je 0x1400516c1
cmp cx, 0x2a
je 0x1400516c1
add rbx, 2
add rax, 0xfffffffffffffffe
jne 0x1400516a5
mov rbx, rbp
lea rcx, [rsp + 0x40]
call fcn.1401295d0
cmp rbx, rbp
je 0x1400516dd
sub rbx, rdi
cmp rbx, 0xfffffffffffffffe
jne 0x1400517aa
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400516e9
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005171a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x1400517ea
lea rcx, [rsp + 0x60]
call fcn.1401310b0
mov sil, 1
jmp 0x1400517fb
mov edi, eax
test dil, 1
jne 0x14005181d
test dil, 0x10
jne 0x140051744
cmp byte [rsi + 0x17], 0
jns 0x140051735
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140051708
jmp 0x1400516f4
test r15b, r15b
je 0x140051841
lea rbx, [rsp + 0x40]
mov byte [rbx + 0x17], 1
mov dword [rbx], 0x2a
mov rcx, rsi
mov rdx, rbx
mov r8b, 1
call fcn.1401988a0
mov edi, eax
cmp byte [rbx + 0x17], 0
js 0x140051858
test edi, edi
je 0x140051841
lea rcx, [rsp + 0x60]
call fcn.1401310b0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400517fb
mov edi, 0xa1
jmp 0x14005177e
lea rcx, [rsp + 0x40]
call fcn.1401295d0
jmp 0x1400516dd
lea r14, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
call fcn.1401295e0
lea rbx, [rsp + 0x28]
mov rcx, rsi
mov rdx, rbx
call fcn.14004a990
mov rcx, rbx
mov rdx, r14
mov r8d, r15d
call fcn.1401988a0
mov edi, eax
mov rcx, rbx
call fcn.1401295d0
mov rcx, r14
call fcn.1401295d0
lea rcx, [rsp + 0x60]
call fcn.1401310b0
mov sil, 1
test edi, edi
jne 0x140051788
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005182e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140051726
jmp 0x1400516f4
cmp byte [rsi + 0x17], 0
jns 0x14005184a
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14005173e
mov rcx, qword [rsp + 0x40]
call fcn.140142744
jmp 0x140051776