Function at 0x14009b380
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x14009b711
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x14029d078]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x14029d0c0]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x1402b7c68]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r13, [rax + rax*4]
mov eax, r13d
lea r15, [rsi + rax*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009b6a0
lea r12, [rsi + 0x48]
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14009b6ad
mov byte [rsp + 0x3f], 0
mov r8, qword [rdi]
test r8, r8
je 0x14009b699
mov edx, r13d
mov rcx, r8
bswap rcx
mov r14d, dword [r12 + rdx*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x14009b71b
mov edx, ecx
and edx, 0x1fc000
je 0x14009b71b
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov dword [rdi], 0
mov byte [rdi + 4], 0
mov eax, 0xf1
nop
mov dword [rdi + rax - 0x71], 0
mov qword [rdi + rax - 0x79], 0
mov byte [rdi + rax - 0x70], 0
mov dword [rdi + rax - 0x61], 0
mov qword [rdi + rax - 0x69], 0
mov byte [rdi + rax - 0x60], 0
mov dword [rdi + rax - 0x51], 0
mov qword [rdi + rax - 0x59], 0
mov byte [rdi + rax - 0x50], 0
mov dword [rdi + rax - 0x41], 0
mov qword [rdi + rax - 0x49], 0
mov byte [rdi + rax - 0x40], 0
mov dword [rdi + rax - 0x31], 0
mov qword [rdi + rax - 0x39], 0
mov byte [rdi + rax - 0x30], 0
mov dword [rdi + rax - 0x21], 0
mov qword [rdi + rax - 0x29], 0
mov byte [rdi + rax - 0x20], 0
mov dword [rdi + rax - 0x11], 0
mov qword [rdi + rax - 0x19], 0
mov byte [rdi + rax - 0x10], 0
mov dword [rdi + rax - 1], 0
mov qword [rdi + rax - 9], 0
mov byte [rdi + rax], 0
sub rax, 0xffffffffffffff80
cmp rax, 0x571
jne 0x14009b500
mov qword [rdi + 0x4f8], rsi
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rdi + 0x500], eax
xorps xmm6, xmm6
movups xmmword [rdi + 0x508], xmm6
mov rcx, rdi
call fcn.14009b760
movups xmmword [rdi + 0x48], xmm6
movups xmmword [rdi + 0x38], xmm6
movups xmmword [rdi + 0x28], xmm6
movups xmmword [rdi + 0x18], xmm6
movups xmmword [rdi + 8], xmm6
lea rax, [rdi + 0x82]
xor ecx, ecx
lea rdx, [0x1402f45e0]
nop word [rax + rax]
mov qword [rax - 0xa], 0
mov byte [rax - 2], 0
movzx r8d, byte [rcx + rdx]
mov byte [rax - 1], r8b
movzx r8d, word [r12 + 0x18]
mov word [rax], r8w
cmp qword [r12], 0
je 0x14009b708
inc rcx
add rax, 0x10
add r12, 0x28
cmp rcx, 0x48
jne 0x14009b610
mov ecx, dword [0x1402f45d8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1402f0db0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x1a0], rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010fba0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x14009b4a2
mov rcx, rbx
call fcn.140092bb0
jmp 0x14009b44c
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.140092110
test rax, rax
je 0x14009b714
mov rdi, rax
and rax, 0xffffffffffe00000
mov ecx, edi
shr ecx, 9
and ecx, 0xfe0
add rax, rcx
add rax, 0x1000
movzx ecx, byte [rax + 0x1e]
and ecx, 0x3f
shl ecx, 5
sub rax, rcx
jmp 0x14009b4bc
mov byte [rax - 1], 0
jmp 0x14009b63a
int3
xor edi, edi
jmp 0x14009b4e6
movaps xmm0, xmmword [0x14029bb90]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.1401641c0
mov rcx, rsi
call fcn.14008fa20
mov rcx, r14
call fcn.140164200
int3