Function at 0x140007990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
test rdx, rdx
je 0x140007465
mov rax, qword [rdx]
mov qword [rdx], 0
test rax, rax
jne 0x1400075db
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x2f]
lea rdi, [rsp + 0x60]
mov r8d, 0x20
mov rdx, rdi
call fcn.14000ab60
test rax, rax
jne 0x14000760f
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
lea r8, [0x140938798]
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov r9d, 8
call fcn.14000a480
mov rdi, qword [rsp + 0x80]
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [0x14095d9a8]
movzx eax, byte [rax]
mov ecx, 0x170
mov edx, 0x10
call fcn.140004670
test rax, rax
je 0x140007680
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x60], xmm0
movaps xmmword [rax + 0x70], xmm0
movaps xmmword [rax + 0x80], xmm0
movaps xmmword [rax + 0x90], xmm0
movaps xmmword [rax + 0xa0], xmm0
movaps xmmword [rax + 0xb0], xmm0
movaps xmmword [rax + 0xc0], xmm0
movaps xmmword [rax + 0xd0], xmm0
movaps xmmword [rax + 0xe0], xmm0
movaps xmmword [rax + 0xf0], xmm0
movaps xmmword [rax + 0x100], xmm0
mov qword [rax + 0x110], 0x40
mov qword [rax + 0x120], rdi
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rax + 0x128], xmm0
movups xmmword [rax + 0x138], xmm1
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x148], rcx
mov qword [rax + 0x150], 0x10000
mov qword [rax + 0x158], 0x10000
mov qword [rax + 0x160], 0
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x140007601
dec qword [rcx]
jne 0x140007601
dec qword [rcx + 8]
jne 0x140007601
mov edx, 0x170
mov r8d, 0x10
call fcn.140004680
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x30], rdi
lea rax, [0x14000a850]
mov qword [rsp + 0x38], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
lea rdx, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rsp + 0x80]
call fcn.14008bcf0
ud2
mov ecx, 0x10
mov edx, 0x170
call fcn.14007cd40
mov rdi, rax
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rcx, rsi
call qword [rbx]
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400076b6
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.140004680
mov rcx, rdi
call fcn.1400a0450
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400076d3
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.140004680
call fcn.14008c090
int3
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400079c1
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400079d6
cmp qword [rax + 8], 0
je 0x1400079d6
add rax, 8
jmp 0x140007a5c
mov rcx, rdi
call fcn.140056120
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400079b1
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140007a45
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140007a5a
mov rbx, rax
test rax, rax
jne 0x140007a2f
mov rax, qword [0x14095d9a8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140004670
test rax, rax
je 0x140007a70
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140007a64
dec ecx
mov rdx, rbx
call fcn.1400a002c
add rbx, 8
mov rcx, rbx
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x140007440
mov rcx, rdi
call fcn.140056120
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400079ea
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.140056120
mov ecx, eax
jmp 0x140007a27
mov ecx, 8
mov edx, 0x10
call fcn.14007cd40
int3