Function at 0x140010e40
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
mov qword [rsp + 0x90], r9
mov qword [rsp + 0x88], r8
mov byte [rsp + 0x2f], dl
mov rsi, rcx
mov rax, qword [rcx]
lea r12, [rsp + 0x6a]
lea r15, [0x140038050]
xor ebp, ebp
lea r13, [0x14003ebd0]
mov rdi, rax
test rax, rax
jne 0x140010eb6
jmp 0x140010e9b
cmp byte [rsp + 0x2f], 0
je 0x14001142a
mov rax, rdi
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x140011274
mov rdi, rax
test rax, rax
je 0x140010e9b
cmp rdi, 1
je 0x140010e90
cmp rdi, 3
je 0x1400112ab
mov eax, edi
and eax, 3
cmp eax, 2
je 0x140010eee
jmp 0x14001140f
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x140011260
mov ecx, dword [0x140038068]
test ecx, ecx
je 0x140010f18
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140010f30
mov rbx, rax
cmp qword [rax + 8], 0
je 0x140010f30
add rbx, 0x10
jmp 0x140011010
mov rcx, r15
call fcn.140011710
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140010f05
nop dword [rax]
mov ecx, dword [0x140038068]
test ecx, ecx
je 0x140010f58
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140010f70
mov r14, rax
cmp rax, 1
jne 0x140010fd7
jmp 0x14001138b
mov rcx, r15
call fcn.140011710
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140010f46
nop dword [rax]
movzx eax, byte [0x140046030]
mov rax, qword [0x1400460d0]
test rax, rax
jne 0x140010f98
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400112fc
mov qword [0x1400460d0], rax
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400112fc
mov r14, rax
mov qword [rax], r15
mov qword [rax + 8], 0
mov ecx, dword [0x140038068]
test ecx, ecx
je 0x140011105
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 0x140011010
test rcx, rcx
je 0x140011010
lock dec qword [rcx]
jne 0x140011010
call fcn.1400116b0
nop word cs:[rax + rax]
mov r14, qword [rbx]
test r14, r14
jne 0x1400110ad
movzx eax, byte [0x140046030]
mov rax, qword [0x1400460d0]
test rax, rax
jne 0x140011044
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400112eb
mov qword [0x1400460d0], rax
mov r8d, 0x30
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400112eb
mov r14, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov rax, qword [0x1400460c8]
nop
mov rcx, rax
inc rcx
je 0x1400112c0
lock cmpxchg qword [0x1400460c8], rcx
jne 0x140011080
mov qword [r14 + 0x10], rcx
mov byte [r14 + 0x28], 0
cmp qword [rbx], 0
jne 0x14001130d
mov qword [rbx], r14
lock inc qword [r14]
jle 0x1400112ca
mov rax, rdi
add rax, 0xfffffffffffffffe
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x78], 0
mov qword [rsp + 0x70], rax
mov rax, rdi
lock cmpxchg qword [rsi], r12
je 0x140011230
mov rdi, rax
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140010ee0
lock dec qword [rax]
jne 0x140010ee0
mov rcx, qword [rsp + 0x68]
call fcn.1400116b0
jmp 0x140010ee0
mov rcx, r15
call fcn.140011710
mov ecx, eax
jmp 0x140010fcf
call fcn.140011b60
mov rbx, rax
test rax, rax
je 0x1400112ce
mov rdi, qword [rbx]
test rdi, rdi
jne 0x140011150
xor ecx, ecx
call fcn.140010c70
mov rdi, rax
cmp qword [rbx], 0
jne 0x14001134c
mov qword [rbx], rdi
lock inc qword [rdi]
jle 0x1400112ca
lock dec byte [rdi + 0x28]
je 0x14001118e
lea rbx, [rdi + 0x28]
mov r14, qword [0x1400460e8]
test r14, r14
je 0x1400111a5
mov r8d, 1
mov rcx, rbx
mov rdx, r13
mov r9d, 0xffffffff
call r14
mov al, 1
lock cmpxchg byte [rbx], bpl
jne 0x140011170
lock dec qword [rdi]
jne 0x140011230
mov rcx, rdi
call fcn.1400116b0
jmp 0x140011230
mov rcx, qword [0x140038008]
cmp rcx, 0xffffffffffffffff
jne 0x140011207
mov qword [rsp + 0x80], 0xffffffffffffffff
mov rax, qword [0x140038018]
lea rcx, [rsp + 0x80]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x1400113a5
mov rcx, qword [rsp + 0x80]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x140038008], rcx
je 0x140011207
mov r14, rax
call sub.KERNEL32.dll_CloseHandle
mov rcx, r14
mov rax, qword [0x140038028]
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rbx], al
lock dec qword [rdi]
je 0x140011198
nop word [rax + rax]
movzx eax, byte [rsp + 0x78]
test al, al
je 0x140011120
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140011260
lock dec qword [rax]
jne 0x140011260
mov rcx, qword [rsp + 0x68]
call fcn.1400116b0
nop word [rax + rax]
mov rax, qword [rsi]
mov rdi, rax
test rax, rax
jne 0x140010eb6
jmp 0x140010e9b
cmp rdi, 1
mov qword [rsp + 0x30], 3
sete byte [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x90]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.1400114e0
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140013e10
jmp 0x1400114b4
ud2
lea rcx, [0x14003f5c8]
lea r8, [0x14003f628]
mov edx, 0x5e
call fcn.140004b50
jmp 0x1400114b4
mov ecx, 8
mov edx, 0x30
call fcn.140002590
ud2
mov ecx, 8
mov edx, 0x18
call fcn.140002590
ud2
lea rax, str.reentrant_init
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_ba7c7a301984967c8c13adb580ef9b86ba706a83library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str._rustc_ba7c7a301984967c8c13adb580ef9b86ba706a83librarycore_srccellonce.rs
lea rcx, [rsp + 0x30]
call fcn.140002e10
jmp 0x1400114b4
lea rax, str.reentrant_init
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_ba7c7a301984967c8c13adb580ef9b86ba706a83library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str._rustc_ba7c7a301984967c8c13adb580ef9b86ba706a83librarycore_srccellonce.rs
lea rcx, [rsp + 0x30]
call fcn.140002e10
jmp 0x1400114b4
lea rcx, [0x14003f5c8]
lea r8, [0x14003f628]
mov edx, 0x5e
call fcn.140004b50
ud2
mov dword [rsp + 0x64], eax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x98], rax
lea rax, [0x140006930]
mov qword [rsp + 0xa0], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rdx, str.library_std_src_syswindows_thread_parking.rs
lea rcx, [rsp + 0x30]
call fcn.140002e10
jmp 0x1400114b4
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNING
mov edx, 0x40
mov r8, qword [rsp + 0x110]
call fcn.140003b70
ud2
lea rax, str.Once_instance_has_previously_been_poisoned
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_ba7c7a301984967c8c13adb580ef9b86ba706a83library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x110]
call fcn.140002e10
ud2
ud2