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

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x100262b9
mov byte [rsp + 0x37], 0
mov rax, qword [0x100cf078]
cmp rax, 3
jne 0x10026053
cmp byte [rsp + 0x37], 0
je 0x10026064
add rsp, 0x60
pop rsi
ret
lea rcx, [rsp + 0x37]
call fcn.10026370
cmp byte [rsp + 0x37], 0
jne 0x1002604d
mov ecx, dword [0x1004e080]
test ecx, ecx
je 0x100260c0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x100260d9
mov rsi, rax
cmp byte [rax + 8], 0
je 0x100260d9
add rsi, 9
mov rax, qword [0x100cf040]
cmp rax, rsi
jne 0x100261c3
mov eax, dword [0x100cf070]
inc eax
jne 0x100261e3
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x100c81a0]
mov edx, 0x26
call fcn.1000f520
ud2
lea rcx, [0x1004e068]
call fcn.10025870
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1002607b
mov ecx, dword [0x1004e080]
test ecx, ecx
je 0x10026127
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x1002613f
mov rsi, rax
cmp rax, 1
jne 0x100261a9
lea rax, [0x100c7e60]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
lea r9, [0x100c7598]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.1000f340
ud2
lea rcx, [0x1004e068]
call fcn.10025870
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x100260ef
movzx eax, byte [0x100cf160]
mov rcx, qword [0x100cf0d0]
test rcx, rcx
jne 0x1002616a
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x100262fe
mov rcx, rax
mov qword [0x100cf0d0], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x100262fe
mov rsi, rax
lea rax, [0x1004e068]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1004e080]
test ecx, ecx
je 0x100262a6
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x100cf040]
cmp rax, rsi
je 0x10026098
lea rcx, [0x100cf038]
call sub.kernel32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x1002604d
mov qword [0x100cf040], rsi
mov eax, 1
mov dword [0x100cf070], eax
mov qword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x56], 0
cmp qword [0x100cf048], 0
jne 0x100262d3
mov qword [0x100cf048], 0xffffffffffffffff
cmp byte [0x100cf06d], 0
jne 0x1002623e
lea rcx, [0x100cf050]
call fcn.10026470
test rax, rax
je 0x1002623e
mov rcx, rax
call fcn.10024910
cmp qword [0x100cf058], 0
je 0x1002625d
mov r8, qword [0x100cf050]
mov rcx, qword [0x100cf0d0]
xor edx, edx
call sub.kernel32.dll_HeapFree
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x100cf060], xmm1
movups xmmword [0x100cf050], xmm0
inc qword [0x100cf048]
dec dword [0x100cf070]
jne 0x1002604d
mov qword [0x100cf040], 0
lea rcx, [0x100cf038]
call sub.kernel32.dll_ReleaseSRWLockExclusive
nop
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1004e068]
call fcn.10025870
mov ecx, eax
jmp 0x100261a1
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.1000ea10
ud2
lea rax, [0x100c7de0]
mov qword [rsp + 0x20], rax
lea rcx, [0x100c7db0]
lea r9, [0x100c7578]
lea r8, [rsp + 0x38]
mov edx, 0x10
call fcn.1000f340
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1000cd70
ud2