Function at 0x140011160
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 0x1400113c1
mov byte [rsp + 0x2f], 0
mov rax, qword [0x14027d090]
cmp rax, 3
jne 0x14001136d
cmp byte [rsp + 0x2f], 0
jne 0x140011382
mov ecx, dword [0x1400340b8]
test ecx, ecx
je 0x140011388
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400111bd
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140011252
mov ecx, dword [0x1400340b8]
test ecx, ecx
je 0x14001139b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140011209
mov rsi, rax
cmp rax, 1
jne 0x14001124c
lea rax, str.Fi_
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, [0x140276020]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.1400046f0
movzx eax, byte [0x14027d040]
mov ecx, 0x10
call fcn.14002e720
test rax, rax
je 0x1400113d4
mov rsi, rax
lea rax, [0x1400340a0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400340b8]
test ecx, ecx
je 0x1400113ae
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x14027d058]
cmp rax, rsi
jne 0x140011284
mov eax, dword [0x14027d088]
inc eax
jne 0x1400112a4
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, str.Nl_
mov edx, 0x26
call fcn.140004970
lea rcx, [0x14027d050]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x140011382
mov qword [0x14027d058], rsi
mov eax, 1
mov dword [0x14027d088], 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 [0x14027d060], 0
jne 0x1400113cd
mov qword [0x14027d060], 0xffffffffffffffff
cmp byte [0x14027d080], 0
jne 0x140011312
lea rcx, [0x14027d068]
call fcn.140011510
test rax, rax
je 0x140011312
mov rcx, rax
call fcn.140010140
cmp qword [0x14027d068], 0
je 0x14001132d
mov rcx, qword [0x14027d070]
mov edx, 1
call fcn.140001ef0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x14027d078], xmm1
movups xmmword [0x14027d068], xmm0
inc qword [0x14027d060]
dec dword [0x14027d088]
jne 0x140011382
mov qword [0x14027d058], 0
lea rcx, [0x14027d050]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
jmp 0x140011382
lea rcx, [rsp + 0x2f]
call fcn.1400114a0
cmp byte [rsp + 0x2f], 0
je 0x140011195
add rsp, 0x50
pop rsi
ret
lea rcx, [0x1400340a0]
call fcn.140010920
mov ecx, eax
jmp 0x1400111a5
lea rcx, [0x1400340a0]
call fcn.140010920
mov ecx, eax
jmp 0x1400111cd
lea rcx, [0x1400340a0]
call fcn.140010920
mov ecx, eax
jmp 0x140011244
lea rcx, str.library_std_src_synconce.rs
call fcn.140004950
call fcn.140003f00
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1400022d0
mov rsi, rax
cmp qword [0x14027d068], 0
je 0x140011401
mov rcx, qword [0x14027d070]
mov edx, 1
call fcn.140001ef0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x14027d078], xmm1
movups xmmword [0x14027d068], xmm0
inc qword [0x14027d060]
jmp 0x140011453
dec dword [0x14027d088]
jne 0x140011472
mov qword [0x14027d058], 0
lea rcx, [0x14027d050]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.140032b00
cmp qword [rsp + 0x30], 0
je 0x140011491
mov rcx, qword [rsp + 0x38]
mov edx, 1
call fcn.140001ef0
call fcn.140004d60
int3