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 [0x1400bf0a8]
cmp rax, 3
jne 0x14001840f
cmp byte [rsp + 0x2f], 0
jne 0x140018424
mov ecx, dword [0x140049110]
or ecx, ecx
je 0x14001842a
dec ecx
call fcn.14004679c
cmp rax, 2
jb 0x14001825d
push rax
nop
pop rsi
cmp byte [rax + 8], 0
jne 0x1400182f4
mov ecx, dword [0x140049110]
or ecx, ecx
je 0x14001843d
dec ecx
call fcn.14004679c
or rax, rax
je 0x1400182a9
push rax
nop
pop rsi
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, [0x1400b5460]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.140005cd0
movzx eax, byte [0x1400bf128]
mov edx, 0x10
sub ecx, ecx
call fcn.1400370d0
or rax, rax
je 0x140018476
push rax
pop rsi
nop
lea rax, [0x1400490f8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140049110]
or ecx, ecx
je 0x140018450
dec ecx
mov rdx, rsi
call fcn.140046794
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x1400bf070]
cmp rax, rsi
jne 0x140018326
mov eax, dword [0x1400bf0a0]
inc eax
jne 0x140018346
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x1400b66b0]
mov edx, 0x26
call fcn.140005f50
lea rcx, [0x1400bf068]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140018424
mov qword [0x1400bf070], rsi
mov eax, 1
mov dword [0x1400bf0a0], 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 [0x1400bf078], 0
jne 0x14001846f
mov qword [0x1400bf078], 0xffffffffffffffff
cmp byte [0x1400bf098], 0
jne 0x1400183b4
lea rcx, [0x1400bf080]
call fcn.1400185b0
or rax, rax
je 0x1400183b4
push rax
pop rcx
nop
call fcn.140017080
cmp qword [0x1400bf080], 0
je 0x1400183cf
mov rcx, qword [0x1400bf088]
mov edx, 1
call fcn.140002f40
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400bf090], xmm1
movups xmmword [0x1400bf080], xmm0
inc qword [0x1400bf078]
dec dword [0x1400bf0a0]
jne 0x140018424
mov qword [0x1400bf070], 0
lea rcx, [0x1400bf068]
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
push rax
nop
pop rsi
cmp qword [0x1400bf080], 0
je 0x1400184a3
mov rcx, qword [0x1400bf088]
mov edx, 1
call fcn.140002f40
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400bf090], xmm1
movups xmmword [0x1400bf080], xmm0
inc qword [0x1400bf078]
jmp 0x1400184f5
dec dword [0x1400bf0a0]
jne 0x140018514
mov qword [0x1400bf070], 0
lea rcx, [0x1400bf068]
call fcn.1400467dc
push rsi
nop
pop rcx
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