Function at 0x10015cc0
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 0x10015f59
mov byte [rsp + 0x2f], 0
mov rax, qword [0x104b8078]
cmp rax, 3
jne 0x10015cf3
cmp byte [rsp + 0x2f], 0
je 0x10015d04
add rsp, 0x50
pop rsi
ret
lea rcx, [rsp + 0x2f]
call fcn.10016050
cmp byte [rsp + 0x2f], 0
jne 0x10015ced
mov ecx, dword [0x100460b0]
test ecx, ecx
je 0x10015d60
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10015d79
mov rsi, rax
cmp byte [rax + 8], 0
je 0x10015d79
add rsi, 9
mov rax, qword [0x104b8040]
cmp rax, rsi
jne 0x10015e63
mov eax, dword [0x104b8070]
inc eax
jne 0x10015e83
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x104ac7f0]
mov edx, 0x26
call fcn.10008980
ud2
lea rcx, [0x10046098]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10015d1b
mov ecx, dword [0x100460b0]
test ecx, ecx
je 0x10015dc7
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x10015ddf
mov rsi, rax
cmp rax, 1
jne 0x10015e49
lea rax, [0x104ac4e8]
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, [0x104abad0]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.100087c0
ud2
lea rcx, [0x10046098]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x10015d8f
movzx eax, byte [0x104b8120]
mov rcx, qword [0x104b80c8]
test rcx, rcx
jne 0x10015e0a
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x10015f7a
mov rcx, rax
mov qword [0x104b80c8], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x10015f7a
mov rsi, rax
lea rax, [0x10046098]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x100460b0]
test ecx, ecx
je 0x10015f46
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 0x10015d38
lea rcx, [0x104b8038]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x10015ced
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 0x10015f73
mov qword [0x104b8048], 0xffffffffffffffff
cmp byte [0x104b8068], 0
jne 0x10015ede
lea rcx, [0x104b8050]
call fcn.100160c0
test rax, rax
je 0x10015ede
mov rcx, rax
call fcn.100144c0
cmp qword [0x104b8058], 0
je 0x10015efd
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 0x10015ced
mov qword [0x104b8040], 0
lea rcx, [0x104b8038]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
nop
add rsp, 0x50
pop rsi
ret
lea rcx, [0x10046098]
call fcn.10014df0
mov ecx, eax
jmp 0x10015e41
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.100079a0
ud2
call fcn.100080d0
ud2
mov ecx, 8
mov edx, 0x10
call fcn.100064f0
ud2