Function at 0x10015c60
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 0x10015ef9
mov byte [rsp + 0x2f], 0
mov rax, qword [0x104b6078]
cmp rax, 3
jne 0x10015c93
cmp byte [rsp + 0x2f], 0
je 0x10015ca4
add rsp, 0x50
pop rsi
ret
lea rcx, [rsp + 0x2f]
call fcn.10015ff0
cmp byte [rsp + 0x2f], 0
jne 0x10015c8d
mov ecx, dword [0x100460b0]
test ecx, ecx
je 0x10015d00
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10015d19
mov rsi, rax
cmp byte [rax + 8], 0
je 0x10015d19
add rsi, 9
mov rax, qword [0x104b6040]
cmp rax, rsi
jne 0x10015e03
mov eax, dword [0x104b6070]
inc eax
jne 0x10015e23
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x104a9e20]
mov edx, 0x26
call fcn.10008920
ud2
lea rcx, [0x10046098]
call fcn.10014d90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10015cbb
mov ecx, dword [0x100460b0]
test ecx, ecx
je 0x10015d67
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x10015d7f
mov rsi, rax
cmp rax, 1
jne 0x10015de9
lea rax, [0x104a9b18]
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, [0x104a9100]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.10008760
ud2
lea rcx, [0x10046098]
call fcn.10014d90
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x10015d2f
movzx eax, byte [0x104b6120]
mov rcx, qword [0x104b60c8]
test rcx, rcx
jne 0x10015daa
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x10015f1a
mov rcx, rax
mov qword [0x104b60c8], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x10015f1a
mov rsi, rax
lea rax, [0x10046098]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x100460b0]
test ecx, ecx
je 0x10015ee6
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x104b6040]
cmp rax, rsi
je 0x10015cd8
lea rcx, [0x104b6038]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x10015c8d
mov qword [0x104b6040], rsi
mov eax, 1
mov dword [0x104b6070], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x104b6048], 0
jne 0x10015f13
mov qword [0x104b6048], 0xffffffffffffffff
cmp byte [0x104b6068], 0
jne 0x10015e7e
lea rcx, [0x104b6050]
call fcn.10016060
test rax, rax
je 0x10015e7e
mov rcx, rax
call fcn.10014460
cmp qword [0x104b6058], 0
je 0x10015e9d
mov r8, qword [0x104b6050]
mov rcx, qword [0x104b60c8]
xor edx, edx
call fcn.1003965c
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x104b6060], xmm1
movups xmmword [0x104b6050], xmm0
inc qword [0x104b6048]
dec dword [0x104b6070]
jne 0x10015c8d
mov qword [0x104b6040], 0
lea rcx, [0x104b6038]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
nop
add rsp, 0x50
pop rsi
ret
lea rcx, [0x10046098]
call fcn.10014d90
mov ecx, eax
jmp 0x10015de1
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.10007940
ud2
call fcn.10008070
ud2
mov ecx, 8
mov edx, 0x10
call fcn.100063f0
ud2