Function at 0x140163280
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 [0x1402fa010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
test edx, edx
jne 0x1401632c2
mov eax, dword [rcx + 0x30]
test eax, eax
jle 0x1401632c2
dec eax
mov dword [rcx + 0x30], eax
jmp 0x1401634cf
cmp qword [rcx + 0x58], 0
jne 0x1401632d7
cmp qword [rcx + 0x88], 0
je 0x1401634cf
mov dword [0x140306110], 1
mov rdi, qword [rcx + 0x48]
xor ebp, ebp
test rdi, rdi
je 0x140163363
nop dword [rax]
mov qword [rsp + 0x58], rbp
mov rcx, qword [rdi + 0x10]
mov rdi, qword [rdi]
sub rcx, 0x18
call fcn.1400191a0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14016333b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14016333b
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 0x14016335e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
test rdi, rdi
jne 0x1401632f0
lea rcx, [rsi + 0x48]
call fcn.140029c30
nop
mov dword [0x140306110], ebp
mov r14, qword [rsi + 0x78]
test r14, r14
je 0x1401634c6
mov qword [rsp + 0x60], rbp
mov rcx, qword [r14 + 0x10]
mov r14, qword [r14]
sub rcx, 0x18
call fcn.1400191a0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x28]
mov qword [rsp + 0x38], rax
lea rcx, [rbx - 0x18]
call fcn.1400191a0
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.140122cb0
test eax, eax
je 0x140163459
mov dword [0x140306110], 1
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rax
lea rcx, [rbx - 0x18]
call fcn.1400191a0
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.1400191a0
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.140025b80
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140163451
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov dword [0x140306110], ebp
jmp 0x140163499
call fcn.1401285c0
mov rdi, rax
xor r9d, r9d
mov r8, qword [rax + 0xf0]
mov rdx, rbx
lea rcx, [rax + 0xe8]
call fcn.140029d10
mov rcx, qword [rdi + 0xf0]
test rcx, rcx
je 0x14016348b
mov qword [rcx], rax
jmp 0x140163492
mov qword [rdi + 0xe8], rax
mov qword [rdi + 0xf0], rax
mov eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1401634bd
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
test r14, r14
jne 0x140163380
lea rcx, [rsi + 0x78]
call fcn.140029c30
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f3bf0
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