Function at 0x1400145f0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov rax, qword [0x140091028]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rax, str.DeleteFile.Recursive
lea r15, str.DeleteFile.NonRecursive
test dl, dl
cmovne r15, rax
mov eax, edx
xor al, 1
movzx eax, al
lea r12, [rax + rax*2]
add r12, 0x14
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400148ed
mov rsi, rcx
mov r13d, 0xa1
cmp rax, 0x103
jbe 0x1400146a7
test r13d, r13d
sete dil
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140014674
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001481c
mov ebp, 7
test al, 0x10
je 0x14001498a
mov rcx, rsi
call fcn.1400276e0
movzx eax, al
mov ebp, 6
sub ebp, eax
jmp 0x14001498a
mov ebx, edx
lea rbp, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbp
call fcn.1400121c0
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 7
jbe 0x1400146cb
mov rbp, qword [rsp + 0x40]
test rax, rax
je 0x1400147b0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x150], xmm0
movdqa xmmword [rsp + 0x140], xmm0
movdqa xmmword [rsp + 0x130], xmm0
movdqa xmmword [rsp + 0x120], xmm0
movdqa xmmword [rsp + 0x110], xmm0
movdqa xmmword [rsp + 0x100], xmm0
movdqa xmmword [rsp + 0xf0], xmm0
movdqa xmmword [rsp + 0xe0], xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x8a], 1
mov byte [rsp + 0x9f], 1
test rax, rax
jle 0x1400147b0
lea rax, [rax*2]
add rax, rbp
mov rdi, rbp
nop word cs:[rax + rax]
nop
movzx ecx, word [rdi]
cmp rcx, 0xff
ja 0x1400147a7
cmp byte [rsp + rcx + 0x60], 0
jne 0x140014903
add rdi, 2
cmp rdi, rax
jb 0x140014790
lea rcx, [rsp + 0x40]
call fcn.140010f50
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x1400147c7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400148dc
mov edi, eax
test dil, 1
je 0x1400147fe
mov edx, edi
and edx, 0xfffffffe
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x1400147f0
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400148dc
test dil, 0x10
jne 0x140014847
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x140014811
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400148d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14001497e
cmp eax, 5
je 0x140014977
cmp eax, 3
jne 0x140014985
mov ebp, 2
jmp 0x14001498a
test bl, bl
je 0x1400148c5
movdqa xmm0, xmmword [0x140076c90]
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 0x2a
lea rdx, [rsp + 0x60]
mov r8b, 1
mov rcx, rsi
call fcn.1400153b0
mov r13d, eax
mov rax, qword [rsp + 0x78]
cmp rax, 8
jb 0x1400148bc
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x1400148b7
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140014ae3
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.140051fb0
test r13d, r13d
jne 0x140014656
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x1400148d2
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400148ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
or eax, 1
cmp eax, 3
jne 0x14001495b
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
xor ebx, ebx
mov dil, 1
xor ebp, ebp
jmp 0x14001498d
sub rdi, rbp
lea rcx, [rsp + 0x40]
call fcn.140010f50
cmp rdi, 0xfffffffffffffffe
je 0x1400147ba
lea r14, [rsp + 0x60]
mov rcx, rsi
mov rdx, r14
call fcn.1400121c0
lea rbp, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbp
call fcn.140011d00
mov rcx, rbp
mov rdx, r14
mov r8d, ebx
call fcn.1400153b0
mov r13d, eax
mov rcx, rbp
call fcn.140010f50
mov rcx, r14
call fcn.140010f50
xor ebx, ebx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
mov edi, 0
test r13d, r13d
jne 0x140014667
jmp 0x1400148f9
mov ebp, 3
jmp 0x14001498a
mov ebp, 1
jmp 0x14001498a
mov ebp, 4
mov ebx, r13d
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea r9, str.Windows.PostOperationState.
lea rsi, [rsp + 0x60]
mov edx, 0x1b
mov rcx, rsi
call fcn.1400025d0
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140026970
mov r8d, 8
mov rcx, rsi
mov edx, ebp
call fcn.1400288e0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140014a1e
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140014a19
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x140014ae3
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.140051fb0
mov sil, 1
test dil, dil
jne 0x140014abd
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r12
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea r9, str.Windows.FilesystemError.
lea rsi, [rsp + 0x60]
mov edx, 0x18
mov rcx, rsi
call fcn.1400025d0
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140026970
mov rcx, rsi
mov edx, ebx
call fcn.140028920
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140014abb
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140014ab6
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x140014ae3
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.140051fb0
xor esi, esi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140051fd0
mov eax, esi
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14005ca40
ud2