Function at 0x140013680
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x140023128]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r13d, r9d
mov dword [rbp - 0x39], r9d
mov rdi, rdx
mov r15, rcx
lea rdx, [rbp - 0x21]
call fcn.140018c04
mov rbx, rax
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.1400160ec
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.1400121c0
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140013710
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x14001d898]
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001373f
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x14001d898]
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 9], xmm1
movups xmmword [rbp + 7], xmm1
mov qword [rbp + 0x17], rax
xor r14d, r14d
lea eax, [r12 + 1]
cmp dword [0x140024680], r12d
je 0x140013777
cmp dword [r15 + 0x74], 0xa000000c
cmove r14d, eax
xor esi, esi
cmp dword [0x140024670], esi
je 0x14001378d
cmp dword [r15 + 0x74], 0xa0000003
cmove rsi, rax
xor ebx, ebx
test r14, r14
jne 0x1400137a7
test rsi, rsi
jne 0x1400137a7
cmp dword [0x140024550], r12d
mov eax, 0x2000080
je 0x1400137ac
mov eax, 0x2200080
and qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x100
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140013873
and qword [rbp + 0x17], r12
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov rcx, qword [r15 + 0x78]
mov qword [rbp - 9], rcx
mov rcx, qword [r15 + 8]
mov qword [rbp - 1], rcx
mov rcx, qword [r15]
mov qword [rbp + 7], rcx
mov rcx, qword [r15 + 0x80]
mov qword [rbp + 0xf], rcx
mov dword [rsp + 0x20], 4
mov r9d, 0x28
lea r8, [rbp - 9]
lea rdx, [rbp - 0x19]
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov r13d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or rdi, 0xffffffffffffffff
test r13d, r13d
jns 0x1400138b4
mov ecx, r13d
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov r13d, dword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7b
je 0x1400138bc
cmp eax, 2
je 0x1400138bc
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
inc ebx
mov r9d, ebx
mov r8d, r13d
mov edx, 0x2397
mov rcx, r15
call fcn.14000a788
test eax, eax
jne 0x14001378f
mov r12d, 1
jmp 0x1400138d0
lea r9d, [rbx + 1]
xor r8d, r8d
mov edx, 0x2397
mov rcx, r15
call fcn.14000a788
cmp rdi, 0xffffffffffffffff
je 0x1400138e6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140013915
mov rcx, qword [rdx]
mov r8, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [r8 + 8]
call qword [0x14001d898]
mov eax, r12d
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140001800
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret