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

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov rdi, rcx
mov ecx, dword [0x1401930e8]
test ecx, ecx
je 0x1400ec644
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400ec63a
je 0x1400ec638
test rdi, rdi
je 0x1400ec409
mov rsi, qword [rdi]
mov qword [rdi], 0
test rsi, rsi
jne 0x1400ec59a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x2f]
lea rsi, [rsp + 0x70]
mov r8d, 0x20
mov rdx, rsi
call fcn.1400f0480
test rax, rax
jne 0x1400ec6a6
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x40]
lea r8, [0x140444cc8]
lea rdx, [rsp + 0x90]
mov r9d, 8
call fcn.1400efc70
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmm2, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xb0], xmm2
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x58], xmm2
mov rax, qword [0x140472688]
movzx eax, byte [rax]
mov ecx, 0x170
mov edx, 0x10
call fcn.14000d8f0
test rax, rax
je 0x1400ec70c
mov rsi, rax
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 rax, qword [rsp + 0x60]
mov qword [rsi + 0x148], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x138], xmm2
movups xmmword [rsi + 0x128], xmm1
movups xmmword [rsi + 0x118], xmm0
mov qword [rsi + 0x150], 0x10000
mov qword [rsi + 0x158], 0x10000
mov qword [rsi + 0x160], 0
mov rax, qword [0x140472688]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000d8f0
test rax, rax
je 0x1400ec697
mov qword [rax], rsi
lea rcx, [0x1401930d0]
mov rsi, rax
mov qword [rax + 8], rcx
mov ecx, dword [0x1401930e8]
test ecx, ecx
je 0x1400ec663
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1401930e8]
test ecx, ecx
je 0x1400ec676
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400ec633
mov rcx, qword [rdi]
dec qword [rcx]
jne 0x1400ec620
dec qword [rcx + 8]
jne 0x1400ec620
mov edx, 0x170
mov r8d, 0x10
call fcn.14000d900
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.14000d900
mov rax, rsi
jmp 0x1400ec63a
xor eax, eax
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rcx, [0x1401930d0]
call fcn.140143d70
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400ec3eb
jmp 0x1400ec63a
lea rcx, [0x1401930d0]
call fcn.140143d70
mov ecx, eax
jmp 0x1400ec5dd
lea rcx, [0x1401930d0]
call fcn.140143d70
mov ecx, eax
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
jne 0x1400ec602
jmp 0x1400ec633
mov ecx, 8
mov edx, 0x10
call fcn.14016da90
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x90], rsi
lea rax, [0x1400f0050]
mov qword [rsp + 0x98], 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 + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rdx, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rsp + 0x30]
call fcn.14017af40
mov ecx, 0x10
mov edx, 0x170
call fcn.14016da90
int3