Function at 0x1401886d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm7
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x58], r8
mov r13d, edx
mov rsi, rcx
mov rax, qword [rcx]
lea r15, [rsp + 0x2a]
mov r12d, 2
lea rdi, [0x14021e110]
xorps xmm6, xmm6
movaps xmm7, xmmword [0x1402204e0]
mov rbx, rax
test rax, rax
jne 0x14018874f
jmp 0x140188739
test r13b, r13b
je 0x140188aab
mov rax, rbx
lock cmpxchg qword [rsi], r12
je 0x1401889e4
mov rbx, rax
test rax, rax
je 0x140188739
cmp rbx, 1
je 0x140188730
cmp rbx, 3
je 0x140188a15
mov eax, ebx
and eax, 3
cmp eax, 2
je 0x14018877e
jmp 0x140188af2
mov eax, ebx
and eax, 3
cmp eax, 2
jne 0x1401889d0
mov ecx, dword [0x14021e128]
test ecx, ecx
je 0x1401887a7
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401887c0
mov rbp, rax
cmp qword [rax], 0
je 0x1401887c0
add rbp, 8
jmp 0x140188890
mov rcx, rdi
call fcn.140188b70
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140188795
nop dword [rax]
mov ecx, dword [0x14021e128]
test ecx, ecx
je 0x1401887e8
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x140188800
mov r14, rax
cmp rax, 1
jne 0x140188860
jmp 0x140188a91
mov rcx, rdi
call fcn.140188b70
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x1401887d6
nop dword [rax]
mov rax, qword [0x14031a128]
test rax, rax
jne 0x140188821
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140188a80
mov qword [0x14031a128], rax
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140188a80
mov r14, rax
mov qword [rax], 0
mov qword [rax + 0x18], rdi
mov ecx, dword [0x14021e128]
test ecx, ecx
je 0x14018898b
dec ecx
mov rdx, r14
call sub.kernel32.dll_TlsSetValue
lea rbp, [r14 + 8]
mov rcx, qword [r14 + 0x10]
cmp qword [r14], 0
mov qword [r14], 1
movups xmmword [r14 + 8], xmm6
je 0x140188890
test rcx, rcx
je 0x140188890
lock dec qword [rcx]
jne 0x140188890
call fcn.140081400
nop word [rax + rax]
cmp qword [rbp], 0
jne 0x140188a44
mov qword [rbp], 0xffffffffffffffff
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x140188933
mov qword [rsp + 0x70], 0
mov rax, qword [0x14031a128]
test rax, rax
jne 0x1401888da
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140188a6f
mov qword [0x14031a128], rax
mov r8d, 0x30
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140188a6f
mov rcx, rax
movups xmmword [rax], xmm7
mov qword [rsp + 0x68], rax
mov qword [rax + 0x10], 0
mov rax, qword [0x14031a120]
nop dword [rax]
mov rdx, rax
inc rdx
je 0x140188a39
lock cmpxchg qword [0x14031a120], rdx
jne 0x140188910
mov qword [rcx + 0x20], rdx
mov byte [rcx + 0x28], 0
mov qword [rbp + 8], rcx
lock inc qword [rcx]
jle 0x140188a40
inc qword [rbp]
mov rax, rbx
and rax, 0xfffffffffffffffc
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov rax, rbx
lock cmpxchg qword [rsi], r15
je 0x1401889a5
mov rbx, rax
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140188770
lock dec qword [rax]
jne 0x140188770
mov rcx, qword [rsp + 0x28]
call fcn.140081400
jmp 0x140188770
mov rcx, rdi
call fcn.140188b70
mov ecx, eax
jmp 0x140188858
call fcn.140188d00
movzx eax, byte [rsp + 0x38]
test al, al
je 0x1401889a0
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1401889d0
lock dec qword [rax]
jne 0x1401889d0
mov rcx, qword [rsp + 0x28]
call fcn.140081400
nop dword [rax + rax]
mov rax, qword [rsi]
mov rbx, rax
test rax, rax
jne 0x14018874f
jmp 0x140188739
cmp rbx, 1
mov qword [rsp + 0x28], 3
sete byte [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140188ea0
movaps xmm6, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140188130
jmp 0x140188a7e
ud2
lea rax, [0x1402940e8]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedXn__
lea r9, [0x140292b58]
lea r8, [rsp + 0x70]
mov edx, 0x10
call fcn.14002dda0
ud2
mov ecx, 0x30
mov edx, 8
call fcn.1400270c0
ud2
mov ecx, 0x20
mov edx, 8
call fcn.1400270c0
ud2
lea rcx, [0x1402931d5]
lea r8, str.library_std_src_threadmod.rsuse_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
call fcn.14002d970
ud2
lea rax, str.0W__
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], 0
lea rax, [0x1402be068]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x110]
call fcn.14002ba10
ud2
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
mov edx, 0x40
mov r8, qword [rsp + 0x110]
call fcn.14002cb80
ud2