Function at 0x10014590
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, [0x10046078]
xor ebp, ebp
lea r13, [0x10072f80]
mov rdi, rax
test rax, rax
jne 0x10014606
jmp 0x100145eb
cmp byte [rsp + 0x23], 0
je 0x10014b08
mov rax, rdi
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x10014994
mov rdi, rax
test rax, rax
je 0x100145eb
cmp rdi, 1
je 0x100145e0
cmp rdi, 3
je 0x100149c8
mov eax, edi
and eax, 3
cmp eax, 2
je 0x1001463e
jmp 0x10014aed
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x10014980
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10014668
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10014680
mov rbx, rax
cmp qword [rax + 8], 0
je 0x10014680
add rbx, 0x10
jmp 0x10014760
mov rcx, r15
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10014655
nop dword [rax]
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x100146a8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x100146c0
mov r14, rax
cmp rax, 1
jne 0x10014727
jmp 0x10014a69
mov rcx, r15
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x10014696
nop dword [rax]
movzx eax, byte [0x10080120]
mov rax, qword [0x100800c8]
test rax, rax
jne 0x100146e8
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x10014a19
mov qword [0x100800c8], rax
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x10014a19
mov r14, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10014855
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 0x10014760
test rcx, rcx
je 0x10014760
lock dec qword [rcx]
jne 0x10014760
call fcn.10014d90
nop word cs:[rax + rax]
mov r14, qword [rbx]
test r14, r14
jne 0x100147fd
movzx eax, byte [0x10080120]
mov rax, qword [0x100800c8]
test rax, rax
jne 0x10014794
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x10014a08
mov qword [0x100800c8], rax
mov r8d, 0x30
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x10014a08
mov r14, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x100800c0]
nop
mov rcx, rax
inc rcx
je 0x100149dd
lock cmpxchg qword [0x100800c0], rcx
jne 0x100147d0
mov qword [r14 + 0x10], rcx
mov byte [r14 + 0x28], 0
cmp qword [rbx], 0
jne 0x10014a2a
mov qword [rbx], r14
lock inc qword [r14]
jle 0x100149e7
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 0x10014950
mov rdi, rax
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x10014630
lock dec qword [rax]
jne 0x10014630
mov rcx, qword [rsp + 0x58]
call fcn.10014d90
jmp 0x10014630
mov rcx, r15
call fcn.10014df0
mov ecx, eax
jmp 0x1001471f
call fcn.10014f60
mov rdi, rax
test rax, rax
je 0x100149eb
lock dec byte [rdi + 0x28]
je 0x100148be
mov rbx, rdi
add rbx, 0x28
mov r14, qword [0x100800e0]
test r14, r14
je 0x100148d5
nop word [rax + rax]
mov r8d, 1
mov rcx, rbx
mov rdx, r13
mov r9d, 0xffffffff
call r14
mov al, 1
lock cmpxchg byte [rbx], bpl
jne 0x100148a0
lock dec qword [rdi]
jne 0x10014950
mov rcx, rdi
call fcn.10014d90
jmp 0x10014950
mov rcx, qword [0x10046038]
cmp rcx, 0xffffffffffffffff
jne 0x1001492e
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rax, qword [0x10046040]
lea rcx, [rsp + 0x70]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x10014a83
mov rcx, qword [rsp + 0x70]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x10046038], rcx
je 0x1001492e
mov r14, rax
call sub.KERNEL32.dll_CloseHandle
mov rcx, r14
mov rax, qword [0x10046050]
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rbx], al
lock dec qword [rdi]
je 0x100148c8
nop
movzx eax, byte [rsp + 0x68]
test al, al
je 0x10014870
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x10014980
lock dec qword [rax]
jne 0x10014980
mov rcx, qword [rsp + 0x58]
call fcn.10014d90
nop word [rax + rax]
mov rax, qword [rsi]
mov rdi, rax
test rax, rax
jne 0x10014606
jmp 0x100145eb
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.10014bc0
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.100173a0
jmp 0x10014b90
ud2
lea rcx, [0x10073978]
lea r8, [0x100739d8]
mov edx, 0x5e
call fcn.10008980
jmp 0x10014b90
mov ecx, 8
mov edx, 0x30
call fcn.100064f0
ud2
mov ecx, 8
mov edx, 0x18
call fcn.100064f0
ud2
lea rax, str.reentrant_init
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, [0x10075378]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srccellonce.rs
lea rcx, [rsp + 0x28]
call fcn.10006c40
jmp 0x10014b90
lea rcx, [0x10073978]
lea r8, [0x100739d8]
mov edx, 0x5e
call fcn.10008980
ud2
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x24]
mov qword [rsp + 0x88], rax
lea rax, [0x1000a7d0]
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.library_std_src_syswindows_thread_parking.rs
lea rcx, [rsp + 0x28]
call fcn.10006c40
jmp 0x10014b90
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
mov r8, qword [rsp + 0x100]
call fcn.100079a0
ud2
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, [0x10075378]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x100]
call fcn.10006c40
ud2
ud2