Function at 0x140010b30
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 0x140010d91
mov byte [rsp + 0x2f], 0
mov rax, qword [0x14008a080]
cmp rax, 3
jne 0x140010d3d
cmp byte [rsp + 0x2f], 0
jne 0x140010d52
mov ecx, dword [0x1400340b8]
test ecx, ecx
je 0x140010d58
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140010b8d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140010c22
mov ecx, dword [0x1400340b8]
test ecx, ecx
je 0x140010d6b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140010bd9
mov rsi, rax
cmp rax, 1
jne 0x140010c1c
lea rax, [0x1400844c8]
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, [0x140083b80]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.1400042e0
movzx eax, byte [0x14008a030]
mov ecx, 0x10
call fcn.14002e0c0
test rax, rax
je 0x140010da4
mov rsi, rax
lea rax, [0x1400340a0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400340b8]
test ecx, ecx
je 0x140010d7e
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x14008a048]
cmp rax, rsi
jne 0x140010c54
mov eax, dword [0x14008a078]
inc eax
jne 0x140010c74
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x1400847d0]
mov edx, 0x26
call fcn.140004560
lea rcx, [0x14008a040]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140010d52
mov qword [0x14008a048], rsi
mov eax, 1
mov dword [0x14008a078], 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 [0x14008a050], 0
jne 0x140010d9d
mov qword [0x14008a050], 0xffffffffffffffff
cmp byte [0x14008a070], 0
jne 0x140010ce2
lea rcx, [0x14008a058]
call fcn.140010ee0
test rax, rax
je 0x140010ce2
mov rcx, rax
call fcn.14000fb10
cmp qword [0x14008a058], 0
je 0x140010cfd
mov rcx, qword [0x14008a060]
mov edx, 1
call fcn.140001e00
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x14008a068], xmm1
movups xmmword [0x14008a058], xmm0
inc qword [0x14008a050]
dec dword [0x14008a078]
jne 0x140010d52
mov qword [0x14008a048], 0
lea rcx, [0x14008a040]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x140010d52
lea rcx, [rsp + 0x2f]
call fcn.140010e70
cmp byte [rsp + 0x2f], 0
je 0x140010b65
add rsp, 0x50
pop rsi
ret
lea rcx, [0x1400340a0]
call fcn.1400102f0
mov ecx, eax
jmp 0x140010b75
lea rcx, [0x1400340a0]
call fcn.1400102f0
mov ecx, eax
jmp 0x140010b9d
lea rcx, [0x1400340a0]
call fcn.1400102f0
mov ecx, eax
jmp 0x140010c14
lea rcx, str.library_std_src_synconce.rs
call fcn.140004540
call fcn.140003b00
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1400021e0
mov rsi, rax
cmp qword [0x14008a058], 0
je 0x140010dd1
mov rcx, qword [0x14008a060]
mov edx, 1
call fcn.140001e00
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x14008a068], xmm1
movups xmmword [0x14008a058], xmm0
inc qword [0x14008a050]
jmp 0x140010e23
dec dword [0x14008a078]
jne 0x140010e42
mov qword [0x14008a048], 0
lea rcx, [0x14008a040]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.1400324e0
cmp qword [rsp + 0x30], 0
je 0x140010e61
mov rcx, qword [rsp + 0x38]
mov edx, 1
call fcn.140001e00
call fcn.140004950
int3