Function at 0x14002d710
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 0x14002d984
mov byte [rsp + 0x37], 0
mov rax, qword [0x140144088]
cmp rax, 3
jne 0x14002d930
cmp byte [rsp + 0x37], 0
jne 0x14002d945
mov ecx, dword [0x14003c0c0]
test ecx, ecx
je 0x14002d94b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14002d76d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14002d80a
mov ecx, dword [0x14003c0c0]
test ecx, ecx
je 0x14002d95e
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x14002d7b9
mov rsi, rax
cmp rax, 1
jne 0x14002d804
lea rax, [0x14013cc30]
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, [0x14013c1d0]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.140005630
mov rax, qword [0x14013e808]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14002eb90
test rax, rax
je 0x14002d9aa
mov rsi, rax
lea rax, [0x14003c0a8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14003c0c0]
test ecx, ecx
je 0x14002d971
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140144050]
cmp rax, rsi
jne 0x14002d83c
mov eax, dword [0x140144080]
inc eax
jne 0x14002d85c
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x14013d020]
mov edx, 0x26
call fcn.140004f10
lea rcx, [0x140144048]
call sub.kernel32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x14002d945
mov qword [0x140144050], rsi
mov eax, 1
mov dword [0x140144080], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x55], 0
mov dword [rsp + 0x51], 0
cmp qword [0x140144058], 0
jne 0x14002d99c
mov qword [0x140144058], 0xffffffffffffffff
cmp byte [0x140144078], 0
jne 0x14002d8d1
lea rcx, [0x140144060]
call fcn.14002b970
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14002d8d1
lea rcx, [rsp + 0x58]
call fcn.140015e50
cmp qword [0x140144060], 0
je 0x14002d8f0
mov r8, qword [0x140144068]
mov rcx, qword [0x1401440e0]
xor edx, edx
call sub.kernel32.dll_HeapFree
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x140144070], xmm1
movups xmmword [0x140144060], xmm0
inc qword [0x140144058]
dec dword [0x140144080]
jne 0x14002d945
mov qword [0x140144050], 0
lea rcx, [0x140144048]
call sub.kernel32.dll_ReleaseSRWLockExclusive
jmp 0x14002d945
lea rcx, [rsp + 0x37]
call fcn.14002daf0
cmp byte [rsp + 0x37], 0
je 0x14002d745
add rsp, 0x60
pop rsi
ret
lea rcx, [0x14003c0a8]
call fcn.140031990
mov ecx, eax
jmp 0x14002d755
lea rcx, [0x14003c0a8]
call fcn.140031990
mov ecx, eax
jmp 0x14002d77d
lea rcx, [0x14003c0a8]
call fcn.140031990
mov ecx, eax
jmp 0x14002d7fc
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.140005250
lea rcx, str.library_std_srcio_stdio.rs
call fcn.140004b00
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140004000
mov rsi, rax
cmp qword [0x140144060], 0
je 0x14002d9d8
mov rcx, qword [0x140144068]
mov r8d, 1
call fcn.14002ec20
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [0x140144070], xmm1
movups xmmword [0x140144060], xmm0
inc qword [0x140144058]
jmp 0x14002da32
dec dword [0x140144080]
jne 0x14002da51
mov qword [0x140144050], 0
lea rcx, [0x140144048]
call sub.kernel32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.140039d70
cmp qword [rsp + 0x38], 0
je 0x14002da71
mov rcx, qword [rsp + 0x40]
mov r8d, 1
call fcn.14002ec20
call fcn.140005440
int3