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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x198], rax
lea rax, str.DeleteFile.Recursive
lea r12, str.DeleteFile.NonRecursive
test dl, dl
cmovne r12, rax
lea rdx, [0x14007e918]
lea rbp, [0x14007e8a8]
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x168
call fcn.140021a10
lea rcx, [rsp + 0x40]
xor r14d, r14d
mov rdx, rdi
xor r8d, r8d
call fcn.140021c90
lea rdx, str.DoDeleteFile
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov r8, rbp
mov r9d, 0x125
call fcn.140021a10
lea rcx, [rsp + 0x58]
mov rdx, rdi
xor r8d, r8d
call fcn.140021c90
mov rax, qword [rsi + 0x10]
mov ebp, 0
test rax, rax
je 0x14000c8d9
mov ebp, 0xa1
cmp rax, 0x103
ja 0x14000c8d9
lea rbp, [rsp + 0x70]
mov rcx, rsi
mov rdx, rbp
call fcn.14000ac60
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x88], 7
jbe 0x14000c6c1
mov rbp, qword [rsp + 0x70]
test rax, rax
je 0x14000c7b3
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0x180], xmm0
movdqa xmmword [rsp + 0x170], xmm0
movdqa xmmword [rsp + 0x160], 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 + 0xa0], xmm0
movdqa xmmword [rsp + 0x90], xmm0
mov byte [rsp + 0xba], 1
mov byte [rsp + 0xcf], 1
test rax, rax
jle 0x14000c7b3
lea rax, [rax*2]
add rax, rbp
mov rdi, rbp
nop word cs:[rax + rax]
nop dword [rax + rax]
movzx ecx, word [rdi]
cmp rcx, 0xff
ja 0x14000c7aa
cmp byte [rsp + rcx + 0x90], 0
jne 0x14000cada
add rdi, 2
cmp rdi, rax
jb 0x14000c790
lea rcx, [rsp + 0x70]
call fcn.140009970
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14000c7ca
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000c8c6
mov ebp, eax
test bpl, 1
je 0x14000c801
mov edx, ebp
and edx, 0xfffffffe
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14000c7f3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14000c8c6
test bpl, 0x10
jne 0x14000c81f
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14000c814
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000c8bd
test bl, bl
je 0x14000c8aa
movdqa xmm0, xmmword [0x14007e500]
movdqu xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x90], 0x2a
lea rdx, [rsp + 0x90]
mov rcx, rsi
mov r8b, 1
call fcn.14000dde0
mov ebp, eax
mov rax, qword [rsp + 0xa8]
cmp rax, 8
jb 0x14000c8a6
mov rcx, qword [rsp + 0x90]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14000c8a1
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000cb39
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.14005a6e0
test ebp, ebp
jne 0x14000c8d9
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14000c8b7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14000c8d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
or ecx, 1
xor ebp, ebp
cmp ecx, 3
cmovne ebp, eax
xor bl, 1
movzx eax, bl
lea rdi, [rax + rax*2]
add rdi, 0x14
lea rcx, [rsp + 0x58]
call fcn.140021dc0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rdi
test ebp, ebp
je 0x14000c958
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14000c90c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000c937
mov r14d, 7
test al, 0x10
je 0x14000c958
mov rcx, rsi
call fcn.140024f30
movzx eax, al
mov r14d, 6
sub r14d, eax
jmp 0x14000c958
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov r14d, 4
cmp eax, 4
jae 0x14000c958
cdqe
lea rcx, [0x14007ea98]
mov r14d, dword [rcx + rax*4]
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0xa0], xmm0
mov byte [rsp + 0x90], 0
lea r9, str.Windows.PostOperationState.
lea rsi, [rsp + 0x90]
mov edx, 0x1b
mov rcx, rsi
call fcn.140001340
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140022230
mov rcx, rsi
mov edx, r14d
mov r8d, 8
call fcn.140015350
mov rax, qword [rsp + 0xa8]
cmp rax, 0x10
jb 0x14000c9f9
mov rcx, qword [rsp + 0x90]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14000c9f4
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x14000cb39
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.14005a6e0
test ebp, ebp
je 0x14000caa9
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], rdi
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0xa0], xmm0
mov byte [rsp + 0x90], 0
lea r9, str.Windows.FilesystemError.
lea rsi, [rsp + 0x90]
mov edx, 0x18
mov rcx, rsi
call fcn.140001340
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140022230
mov rcx, rsi
mov edx, ebp
call fcn.1400153f0
mov rax, qword [rsp + 0xa8]
cmp rax, 0x10
jb 0x14000caa5
mov rcx, qword [rsp + 0x90]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14000caa0
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x14000cb39
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.14005a6e0
xor esi, esi
jmp 0x14000caac
mov sil, 1
lea rcx, [rsp + 0x40]
call fcn.140021dc0
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14005aa40
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
sub rdi, rbp
lea rcx, [rsp + 0x70]
call fcn.140009970
cmp rdi, 0xfffffffffffffffe
je 0x14000c7bd
lea r15, [rsp + 0x90]
mov rcx, rsi
mov rdx, r15
call fcn.14000ac60
lea rdi, [rsp + 0x70]
mov rcx, rsi
mov rdx, rdi
call fcn.14000a7b0
mov rcx, rdi
mov rdx, r15
mov r8d, ebx
call fcn.14000dde0
mov ebp, eax
mov rcx, rdi
call fcn.140009970
mov rcx, r15
call fcn.140009970
jmp 0x14000c8d9
call fcn.140066430
ud2