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

Disassembly:
push rsi
push rdi
sub rsp, 0x108
movdqa xmmword [rsp + 0xf0], xmm7
movdqa xmmword [rsp + 0xe0], xmm6
mov ecx, dword [0x140305088]
test ecx, ecx
je 0x1401786ed
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14017869f
mov rax, qword [rax + 8]
test rax, rax
jne 0x140178a0c
mov ecx, dword [0x140305088]
test ecx, ecx
je 0x140178708
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x140178720
mov rsi, rax
cmp rax, 1
jne 0x14017878e
lea rax, [0x1403b0840]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_std_src_threadlocal.rs
lea r9, [0x14033ceb0]
lea r8, [rsp + 0x30]
mov edx, 0x46
call fcn.14013bd80
ud2
lea rcx, [0x140305070]
call fcn.14028f0b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140178692
jmp 0x14017869f
lea rcx, [0x140305070]
call fcn.14028f0b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x1401786b5
movzx eax, byte [0x1403f6a90]
mov rcx, qword [0x1403f6548]
test rcx, rcx
jne 0x14017874b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140178abf
mov rcx, rax
mov qword [0x1403f6548], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140178abf
mov rsi, rax
lea rax, [0x140305070]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140305088]
test ecx, ecx
je 0x140178a2b
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
lea rdi, [rsp + 0xb0]
mov r8d, 0x20
mov rdx, rdi
call fcn.14017b300
test rax, rax
jne 0x140178a53
movdqa xmm7, xmmword [rsp + 0xb0]
movdqa xmm6, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0x80], xmm6
movdqa xmmword [rsp + 0x70], xmm7
mov rax, qword [0x1403f65e8]
test rax, rax
je 0x14017883a
lea rdi, [rsp + 0x40]
test eax, 0x4000
jne 0x14017884b
pshufd xmm0, xmm7, 0xee
pshufd xmm1, xmm6, 0xee
movq rax, xmm7
movq rcx, xmm0
movq rdx, xmm6
movq r8, xmm1
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], r8
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
jmp 0x14017885f
call fcn.1402bd650
lea rdi, [rsp + 0x40]
test eax, 0x4000
je 0x1401787fc
lea r8, [0x1403b3070]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140178c90
movaps xmm0, xmmword [rdi]
movaps xmm1, xmmword [rdi + 0x10]
movaps xmm2, xmmword [rdi + 0x20]
movaps xmmword [rsp + 0xd0], xmm2
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0x58], xmm2
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x38], xmm0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x98], rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x80], xmm0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x70], xmm0
movzx eax, byte [0x1403f6a90]
mov rcx, qword [0x1403f6548]
test rcx, rcx
jne 0x1401788fa
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140178a42
mov rcx, rax
mov qword [0x1403f6548], rax
mov r8d, 0x170
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140178a42
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
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmm2, xmmword [rsp + 0x90]
movups xmmword [rax + 0x118], xmm0
movups xmmword [rax + 0x128], xmm1
movups xmmword [rax + 0x138], xmm2
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 0x148], rcx
mov qword [rax + 0x150], 0x10000
mov qword [rax + 0x158], 0x10000
mov qword [rax + 0x160], 0
mov r8, qword [rsi + 8]
mov qword [rsi + 8], rax
test r8, r8
je 0x140178a08
dec qword [r8]
jne 0x140178a08
dec qword [r8 + 8]
jne 0x140178a08
mov rcx, qword [0x1403f6548]
xor edx, edx
call fcn.140302ad4
mov rax, qword [rsi + 8]
inc qword [rax]
je 0x140178a3e
movaps xmm6, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rdi
pop rsi
ret
lea rcx, [0x140305070]
call fcn.14028f0b0
mov ecx, eax
jmp 0x140178786
ud2
mov ecx, 0x10
mov edx, 0x170
call fcn.1400eb190
ud2
mov qword [rsp + 0xb0], rax
lea rax, [0x14033d0b0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x70], rdi
lea rax, [0x14017af40]
mov qword [rsp + 0x78], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rdx, str._Users_sh1n_.cargo_registry_src_rsproxy.cn_8f6827c7555bfaf8_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rsp + 0x30]
call fcn.140136bd0
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1400eb190
ud2