Function at 0x1401663b0
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
test edx, edx
jne 0x1401663f2
mov eax, dword [rcx + 0x30]
test eax, eax
jle 0x1401663f2
dec eax
mov dword [rcx + 0x30], eax
jmp 0x1401665ff
cmp qword [rcx + 0x58], 0
jne 0x140166407
cmp qword [rcx + 0x88], 0
je 0x1401665ff
mov dword [0x14030c210], 1
mov rdi, qword [rcx + 0x48]
xor ebp, ebp
test rdi, rdi
je 0x140166493
nop dword [rax]
mov qword [rsp + 0x58], rbp
mov rcx, qword [rdi + 0x10]
mov rdi, qword [rdi]
sub rcx, 0x18
call fcn.140019180
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14016646b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14016646b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14016648e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test rdi, rdi
jne 0x140166420
lea rcx, [rsi + 0x48]
call fcn.140029d60
nop
mov dword [0x14030c210], ebp
mov r14, qword [rsi + 0x78]
test r14, r14
je 0x1401665f6
mov qword [rsp + 0x60], rbp
mov rcx, qword [r14 + 0x10]
mov r14, qword [r14]
sub rcx, 0x18
call fcn.140019180
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x28]
mov qword [rsp + 0x38], rax
lea rcx, [rbx - 0x18]
call fcn.140019180
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.140125760
test eax, eax
je 0x140166589
mov dword [0x14030c210], 1
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rax
lea rcx, [rbx - 0x18]
call fcn.140019180
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x20]
add rcx, 0xffffffffffffffe8
call fcn.140019180
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.140025c80
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140166581
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov dword [0x14030c210], ebp
jmp 0x1401665c9
call fcn.14012bfe0
mov rdi, rax
xor r9d, r9d
mov r8, qword [rax + 0xe8]
mov rdx, rbx
lea rcx, [rax + 0xe0]
call fcn.140029e40
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x1401665bb
mov qword [rcx], rax
jmp 0x1401665c2
mov qword [rdi + 0xe0], rax
mov qword [rdi + 0xe8], rax
mov eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1401665ed
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test r14, r14
jne 0x1401664b0
lea rcx, [rsi + 0x78]
call fcn.140029d60
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret