Function at 0x1001af50
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, 0x98
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x78], r8
mov byte [rsp + 0x23], dl
mov rsi, rcx
mov rax, qword [rcx]
lea r12, [rsp + 0x5a]
lea r15, [0x1004f080]
xor ebp, ebp
lea r13, [0x1005d050]
jmp 0x1001afbe
cmp byte [rsp + 0x23], 0
je 0x1001b3de
mov rax, rdi
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x1001b2a8
mov rdi, rax
test rax, rax
je 0x1001afab
cmp rdi, 1
je 0x1001afa0
cmp rdi, 3
je 0x1001b2dc
mov eax, edi
and eax, 3
cmp eax, 2
je 0x1001affe
jmp 0x1001b419
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x1001b2a0
mov ecx, dword [0x1004f098]
test ecx, ecx
je 0x1001b157
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1001b030
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1001b030
add rbx, 0x10
jmp 0x1001b0e0
mov ecx, dword [0x1004f098]
test ecx, ecx
je 0x1001b166
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1001b060
mov r14, rax
cmp rax, 1
jne 0x1001b0a2
jmp 0x1001b34d
movzx eax, byte [0x10064020]
mov edx, 0x18
xor ecx, ecx
call fcn.100481f0
test rax, rax
je 0x1001b365
mov r14, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x1004f098]
test ecx, ecx
je 0x1001b175
dec ecx
mov rdx, r14
call sub.KERNEL32.dll_TlsSetValue
lea rbx, [r14 + 0x10]
mov rcx, qword [r14 + 0x10]
cmp qword [r14 + 8], 0
mov qword [r14 + 8], 1
mov qword [r14 + 0x10], 0
je 0x1001b0e0
test rcx, rcx
je 0x1001b0e0
lock dec qword [rcx]
jne 0x1001b0e0
call fcn.1001b650
nop word cs:[rax + rax]
mov r14, qword [rbx]
test r14, r14
jne 0x1001b0ff
xor ecx, ecx
call fcn.1001ac70
mov r14, rax
cmp qword [rbx], 0
jne 0x1001b30e
mov qword [rbx], r14
lock inc qword [r14]
jle 0x1001b479
mov rax, rdi
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x58], r14
mov byte [rsp + 0x68], 0
mov qword [rsp + 0x60], rax
mov rax, rdi
lock cmpxchg qword [rsi], r12
je 0x1001b270
mov rdi, rax
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1001aff0
lock dec qword [rax]
jne 0x1001aff0
mov rcx, qword [rsp + 0x58]
call fcn.1001b650
jmp 0x1001aff0
mov rcx, r15
call fcn.1001b6a0
mov ecx, eax
jmp 0x1001b00e
mov rcx, r15
call fcn.1001b6a0
mov ecx, eax
jmp 0x1001b040
mov rcx, r15
call fcn.1001b6a0
mov ecx, eax
jmp 0x1001b09a
call fcn.1001b810
mov rbx, rax
test rax, rax
je 0x1001b2f1
lock dec byte [rbx + 0x28]
je 0x1001b1de
mov rdi, rbx
add rdi, 0x28
mov r14, qword [0x10064100]
test r14, r14
je 0x1001b1f5
nop word [rax + rax]
mov r8d, 1
mov rcx, rdi
mov rdx, r13
mov r9d, 0xffffffff
call r14
mov al, 1
lock cmpxchg byte [rdi], bpl
jne 0x1001b1c0
lock dec qword [rbx]
jne 0x1001b270
mov rcx, rbx
call fcn.1001b650
jmp 0x1001b270
mov rcx, qword [0x1004f008]
cmp rcx, 0xffffffffffffffff
jne 0x1001b24e
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rax, qword [0x1004f018]
lea rcx, [rsp + 0x70]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x1001b374
mov rcx, qword [rsp + 0x70]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x1004f008], rcx
je 0x1001b24e
mov r14, rax
call sub.KERNEL32.dll_CloseHandle
mov rcx, r14
mov rax, qword [0x1004f028]
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rdi], al
lock dec qword [rbx]
je 0x1001b1e8
nop
movzx eax, byte [rsp + 0x68]
test al, al
je 0x1001b190
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1001b2a0
lock dec qword [rax]
jne 0x1001b2a0
mov rcx, qword [rsp + 0x58]
call fcn.1001b650
nop word [rax + rax]
mov rax, qword [rsi]
jmp 0x1001afbe
cmp rdi, 1
mov qword [rsp + 0x28], 3
sete byte [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.1001b490
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1005b160]
mov edx, 0x5e
call fcn.10004930
jmp 0x1001b479
lea rax, str.reentrant_init
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, str._kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkHHHHHMMfffYUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._xxxxxxxxxxxxxxxxxxxxxxxxvvvvIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
lea rcx, [rsp + 0x28]
call fcn.10002890
jmp 0x1001b479
lea rcx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
lea r8, [0x1005b160]
mov edx, 0x5e
call fcn.10004930
mov ecx, 8
mov edx, 0x18
call fcn.10001bd0
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x24]
mov qword [rsp + 0x88], rax
lea rax, [0x10006f70]
mov qword [rsp + 0x90], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 1
lea rdx, str.EEEEEEEEEddddAAAAJJJppppppppppppppppppppppppppppp
lea rcx, [rsp + 0x28]
call fcn.10002890
jmp 0x1001b479
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, str._kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkHHHHHMMfffYUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x100]
call fcn.10002890
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibraryUUxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
mov edx, 0x40
mov r8, qword [rsp + 0x100]
call fcn.100036e0
mov rdi, rax
mov edx, 1
mov rcx, rsi
call fcn.1001b490
jmp 0x1001b46a
mov rcx, rdi
call fcn.1004cda0
jmp 0x1001b474
call fcn.1001b8b0
ud2