Function at 0x10015c70
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 0x10015f09
mov byte [rsp + 0x2f], 0
mov rax, qword [0x104b8078]
cmp rax, 3
jne 0x10015ca3
cmp byte [rsp + 0x2f], 0
je 0x10015cb4
add rsp, 0x50
pop rsi
ret
lea rcx, [rsp + 0x2f]
call fcn.10016000
cmp byte [rsp + 0x2f], 0
jne 0x10015c9d
mov ecx, dword [0x100460b0]
test ecx, ecx
je 0x10015d10
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10015d29
mov rsi, rax
cmp byte [rax + 8], 0
je 0x10015d29
add rsi, 9
mov rax, qword [0x104b8040]
cmp rax, rsi
jne 0x10015e13
mov eax, dword [0x104b8070]
inc eax
jne 0x10015e33
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x104ac800]
mov edx, 0x26
call fcn.10008930
ud2
lea rcx, [0x10046098]
call fcn.10014da0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10015ccb
mov ecx, dword [0x100460b0]
test ecx, ecx
je 0x10015d77
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x10015d8f
mov rsi, rax
cmp rax, 1
jne 0x10015df9
lea rax, [0x104ac4f8]
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, [0x104abae0]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.10008770
ud2
lea rcx, [0x10046098]
call fcn.10014da0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x10015d3f
movzx eax, byte [0x104b8120]
mov rcx, qword [0x104b80c8]
test rcx, rcx
jne 0x10015dba
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x10015f2a
mov rcx, rax
mov qword [0x104b80c8], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x10015f2a
mov rsi, rax
lea rax, [0x10046098]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x100460b0]
test ecx, ecx
je 0x10015ef6
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x104b8040]
cmp rax, rsi
je 0x10015ce8
lea rcx, [0x104b8038]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x10015c9d
mov qword [0x104b8040], rsi
mov eax, 1
mov dword [0x104b8070], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x104b8048], 0
jne 0x10015f23
mov qword [0x104b8048], 0xffffffffffffffff
cmp byte [0x104b8068], 0
jne 0x10015e8e
lea rcx, [0x104b8050]
call fcn.10016070
test rax, rax
je 0x10015e8e
mov rcx, rax
call fcn.10014470
cmp qword [0x104b8058], 0
je 0x10015ead
mov r8, qword [0x104b8050]
mov rcx, qword [0x104b80c8]
xor edx, edx
call fcn.1003965c
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x104b8060], xmm1
movups xmmword [0x104b8050], xmm0
inc qword [0x104b8048]
dec dword [0x104b8070]
jne 0x10015c9d
mov qword [0x104b8040], 0
lea rcx, [0x104b8038]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
nop
add rsp, 0x50
pop rsi
ret
lea rcx, [0x10046098]
call fcn.10014da0
mov ecx, eax
jmp 0x10015df1
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.10007950
ud2
call fcn.10008080
ud2
mov ecx, 8
mov edx, 0x10
call fcn.100064a0
ud2