Function at 0x1400d2740
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 [0x140173028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x14014df90]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.DoDeleteFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x12e
call fcn.14004cb40
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140054820
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x1400234bf
mov rax, qword [rsi + 8]
test rax, rax
je 0x140023568
cmp rax, 0x103
ja 0x140023615
mov rcx, rsi
mov rdx, rbx
call fcn.140021af0
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x1400234f2
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rax, rax
je 0x140023633
lea rbp, [rbx + rax*2]
add rax, rax
mov rdi, rbx
movzx ecx, word [rdi]
cmp cx, 0x2a
je 0x140023521
cmp cx, 0x3f
je 0x140023521
add rdi, 2
add rax, 0xfffffffffffffffe
jne 0x140023505
mov rdi, rbp
lea rcx, [rsp + 0x40]
call fcn.14004bda0
cmp rdi, rbp
je 0x14002353d
sub rdi, rbx
cmp rdi, 0xfffffffffffffffe
jne 0x140023642
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140023549
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140023597
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140023682
lea rcx, [rsp + 0x60]
call fcn.140054af0
mov sil, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140083c00
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ebx, eax
test bl, 1
jne 0x140023699
test bl, 0x10
jne 0x1400235c9
test r15b, 2
jne 0x1400236bd
cmp byte [rsi + 0x17], 0
jns 0x1400235ba
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140023568
jmp 0x140023554
test r15b, 1
je 0x140023601
lea rdx, [0x140154074]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140021030
mov rcx, rsi
mov rdx, rbx
mov r8d, r15d
call fcn.1400d35a0
mov edi, eax
cmp byte [rbx + 0x17], 0
js 0x1400236e5
test edi, edi
jne 0x14002361a
cmp byte [rsi + 0x17], 0
jns 0x14002360a
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400235c3
mov edi, 0xa1
lea rcx, [rsp + 0x60]
call fcn.140054af0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x140023575
lea rcx, [rsp + 0x40]
call fcn.14004bda0
jmp 0x14002353d
lea r14, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
call fcn.140021af0
lea rbx, [rsp + 0x28]
mov rcx, rsi
mov rdx, rbx
call fcn.1400218f0
mov rcx, rbx
mov rdx, r14
mov r8d, r15d
call fcn.1400d35a0
mov edi, eax
mov rcx, rbx
call fcn.14004bda0
mov rcx, r14
call fcn.14004bda0
lea rcx, [rsp + 0x60]
call fcn.140054af0
mov sil, 1
test edi, edi
je 0x140023575
jmp 0x140023624
mov edx, ebx
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400236aa
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400235a2
jmp 0x140023554
call fcn.140055200
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
mov rcx, rsi
call fcn.1400d2840
test al, al
jne 0x140023568
jmp 0x140023554
mov rcx, qword [rsp + 0x40]
call fcn.140082794
jmp 0x1400235fd
xor edx, edx
jmp 0x140023430