Function at 0x5c1210
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov ecx, dword [0x006df078]
test ecx, ecx
je 0x5c12ec
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x5c14c2
je 0x5c12e5
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x5c128f
mov esi, eax
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov edx, 0x20
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x5c128f
and esi, 0x7fffffff
jne 0x5c151d
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [0x0076d150]
test rax, rax
je 0x5c130e
lea rsi, [rsp + 0x50]
test eax, 0x4000
jne 0x5c131f
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
jmp 0x5c1336
xor eax, eax
jmp 0x5c14c2
lea rcx, [0x006df060]
call fcn.00678f30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x5c1239
jmp 0x5c14c2
call fcn.006a3320
lea rsi, [rsp + 0x50]
test eax, 0x4000
je 0x5c12c1
lea r8, [0x007290d8]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.005c1870
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm1
movups xmmword [rsp + 0x68], xmm2
movzx eax, byte [0x0076d188]
mov edx, 0x170
xor ecx, ecx
call fcn.0069df80
test rax, rax
je 0x5c14fa
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
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmm2, xmmword [rsp + 0x60]
movups xmmword [rax + 0x118], xmm0
movups xmmword [rax + 0x128], xmm1
movups xmmword [rax + 0x138], xmm2
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x148], rax
mov qword [rsi + 0x150], 0x10000
mov qword [rsi + 0x158], 0x10000
mov qword [rsi + 0x160], 0
movzx eax, byte [0x0076d188]
mov edx, 0x10
xor ecx, ecx
call fcn.0069df80
test rax, rax
je 0x5c1509
mov qword [rax], rsi
lea rcx, [0x006df060]
mov rsi, rax
mov qword [rax + 8], rcx
mov ecx, dword [0x006df078]
test ecx, ecx
je 0x5c14cd
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x006df078]
test ecx, ecx
je 0x5c14dd
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x5c14bf
mov r8, qword [rdi]
dec qword [r8]
jne 0x5c14ae
dec qword [r8 + 8]
jne 0x5c14ae
mov rcx, qword [0x0076d128]
xor edx, edx
call fcn.006d3c74
mov rcx, qword [0x0076d128]
xor edx, edx
mov r8, rdi
call fcn.006d3c74
mov rax, rsi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x006df060]
call fcn.00678f30
mov ecx, eax
jmp 0x5c1471
lea rcx, [0x006df060]
call fcn.00678f30
mov ecx, eax
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
jne 0x5c1492
jmp 0x5c14bf
mov ecx, 0x10
mov edx, 0x170
call fcn.00522ef0
mov ecx, 8
mov edx, 0x10
call fcn.00522ef0
jmp 0x5c15b3
movzx eax, byte [0x0076d188]
mov edx, 4
xor ecx, ecx
call fcn.0069df80
test rax, rax
jne 0x5c1544
mov ecx, 4
mov edx, 4
call fcn.00522ef0
mov dword [rax], esi
mov qword [rsp + 0x20], rax
lea rax, [0x0071a4a8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x80], rdi
lea rax, [0x005c3b10]
mov qword [rsp + 0x88], rax
lea rax, str.could_not_initialize_thread_rng:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rdx, str._home_uni_100_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rsp + 0x40]
call fcn.0056d430
ud2