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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov r14d, edx
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402183e0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.DoDeleteFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0xf9
call fcn.1400ed980
xor edi, edi
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.1400f44c0
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140050d60
mov rax, qword [rsi + 8]
test rax, rax
je 0x140050e08
cmp rax, 0x103
ja 0x140050ebe
mov rcx, rsi
mov rdx, rbx
call fcn.1400ec560
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x140050d93
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test rax, rax
je 0x140050ec8
lea rbp, [rbx + rax*2]
add rax, rax
mov rdi, rbx
movzx ecx, word [rdi]
cmp cx, 0x3f
je 0x140050dc2
cmp cx, 0x2a
je 0x140050dc2
add rdi, 2
add rax, 0xfffffffffffffffe
jne 0x140050da6
mov rdi, rbp
lea rcx, [rsp + 0x40]
call fcn.1400ec550
cmp rdi, rbp
je 0x140050dde
sub rdi, rbx
cmp rdi, 0xfffffffffffffffe
jne 0x140050ed7
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140050dea
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140050e3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor edi, edi
cmp ecx, 2
cmovne edi, eax
lea rcx, [rsp + 0x60]
call fcn.1400f4520
test edi, edi
jne 0x140050e6a
test edi, edi
sete bl
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140106490
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov edi, eax
test dil, 1
jne 0x140050f1c
test dil, 0x10
jne 0x140050e74
cmp byte [rsi + 0x17], 0
jns 0x140050e56
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0
test eax, eax
jne 0x140050e08
jmp 0x140050df5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140050e16
test r14b, r14b
je 0x140050eaa
lea rbx, [rsp + 0x40]
mov byte [rbx + 0x17], 1
mov dword [rbx], 0x2a
mov rcx, rsi
mov rdx, rbx
mov r8b, 1
call fcn.14015b370
mov edi, eax
cmp byte [rbx + 0x17], 0
js 0x140050f40
test edi, edi
jne 0x140050e08
cmp byte [rsi + 0x17], 0
jns 0x140050eb3
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140050e5f
mov edi, 0xa1
jmp 0x140050e08
lea rcx, [rsp + 0x40]
call fcn.1400ec550
jmp 0x140050dde
lea rbx, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400ec560
lea rbp, [rsp + 0x28]
mov rcx, rsi
mov rdx, rbp
call fcn.140049fc0
mov rcx, rbp
mov rdx, rbx
mov r8d, r14d
call fcn.14015b370
mov edi, eax
mov rcx, rbp
call fcn.1400ec550
mov rcx, rbx
call fcn.1400ec550
jmp 0x140050e08
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140050f2d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140050e47
jmp 0x140050df5
mov rcx, qword [rsp + 0x40]
call fcn.140105bb4
jmp 0x140050ea2