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

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x140018463
mov byte [rsp + 0x2f], 0
mov rax, qword [0x14028a0a8]
cmp rax, 3
jne 0x14001840f
cmp byte [rsp + 0x2f], 0
jne 0x140018424
mov ecx, dword [0x140049110]
test ecx, ecx
je 0x14001842a
dec ecx
call fcn.14004679c
cmp rax, 2
jb 0x14001825d
push rax
pop rsi
nop
cmp byte [rax + 8], 0
jne 0x1400182f4
mov ecx, dword [0x140049110]
test ecx, ecx
je 0x14001843d
dec ecx
call fcn.14004679c
test rax, rax
je 0x1400182a9
push rax
pop rsi
nop
cmp rax, 1
jne 0x1400182ee
lea rax, str.library_std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_std_src_threadlocal.rs
lea r9, [0x140280a60]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.140005cd0
movzx eax, byte [0x14028a128]
mov edx, 0x10
xor ecx, ecx
call fcn.1400370d0
test rax, rax
je 0x140018476
push rax
nop
pop rsi
lea rax, [0x1400490f8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140049110]
test ecx, ecx
je 0x140018450
dec ecx
push rsi
pop rdx
nop
call fcn.140046794
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x14028a070]
cmp rax, rsi
jne 0x140018326
mov eax, dword [0x14028a0a0]
inc eax
jne 0x140018346
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x140281cb0]
mov edx, 0x26
call fcn.140005f50
lea rcx, [0x14028a068]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140018424
mov qword [0x14028a070], rsi
mov eax, 1
mov dword [0x14028a0a0], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x4d], 0
mov dword [rsp + 0x49], 0
cmp qword [0x14028a078], 0
jne 0x14001846f
mov qword [0x14028a078], 0xffffffffffffffff
cmp byte [0x14028a098], 0
jne 0x1400183b4
lea rcx, [0x14028a080]
call fcn.1400185b0
or rax, rax
je 0x1400183b4
nop
push rax
pop rcx
call fcn.140017080
cmp qword [0x14028a080], 0
je 0x1400183cf
mov rcx, qword [0x14028a088]
mov edx, 1
call fcn.140002f40
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x14028a090], xmm1
movups xmmword [0x14028a080], xmm0
inc qword [0x14028a078]
dec dword [0x14028a0a0]
jne 0x140018424
mov qword [0x14028a070], 0
lea rcx, [0x14028a068]
call fcn.1400467dc
jmp 0x140018424
lea rcx, [rsp + 0x2f]
call fcn.140018540
cmp byte [rsp + 0x2f], 0
je 0x140018235
add rsp, 0x50
pop rsi
ret
lea rcx, [0x1400490f8]
call fcn.140017830
mov ecx, eax
jmp 0x140018245
lea rcx, [0x1400490f8]
call fcn.140017830
mov ecx, eax
jmp 0x14001826d
lea rcx, [0x1400490f8]
call fcn.140017830
mov ecx, eax
jmp 0x1400182e6
lea rcx, str.library_std_src_synconce.rs
call fcn.140005f30
call fcn.1400054f0
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140003420
nop
push rax
pop rsi
cmp qword [0x14028a080], 0
je 0x1400184a3
mov rcx, qword [0x14028a088]
mov edx, 1
call fcn.140002f40
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x14028a090], xmm1
movups xmmword [0x14028a080], xmm0
inc qword [0x14028a078]
jmp 0x1400184f5
dec dword [0x14028a0a0]
jne 0x140018514
mov qword [0x14028a070], 0
lea rcx, [0x14028a068]
call fcn.1400467dc
push rsi
pop rcx
nop
call fcn.140046e10
cmp qword [rsp + 0x30], 0
je 0x140018533
mov rcx, qword [rsp + 0x38]
mov edx, 1
call fcn.140002f40
call fcn.140006340
int3