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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x005ae7a0]
test ecx, ecx
je 0x4e9c4d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x4e9c66
cmp qword [rax + 8], 0
je 0x4e9c66
add rax, 8
add rsp, 0x20
pop rsi
ret
lea rcx, [0x005ae788]
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x4e9c3c
mov ecx, dword [0x005ae7a0]
test ecx, ecx
je 0x4e9cdf
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4e9cf8
mov rsi, rax
test rax, rax
jne 0x4e9ccc
mov rax, qword [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.0044f650
test rax, rax
je 0x4e9d10
mov rsi, rax
lea rax, [0x005ae788]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x005ae7a0]
test ecx, ecx
je 0x4e9d00
dec ecx
mov rdx, rsi
call fcn.005ab204
add rsi, 8
mov rcx, rsi
xor edx, edx
add rsp, 0x20
pop rsi
jmp 0x4eac10
lea rcx, [0x005ae788]
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x4e9c7d
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x005ae788]
call fcn.0053fd10
mov ecx, eax
jmp 0x4e9cc4
mov ecx, 8
mov edx, 0x10
call fcn.00578c70
ud2
push rsi
push rdi
sub rsp, 0xb8
mov rsi, rcx
test rdx, rdx
je 0x4eac34
mov rax, qword [rdx]
mov qword [rdx], 0
test rax, rax
jne 0x4eadaa
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.004efe60
test rax, rax
jne 0x4eaddd
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
lea r8, [0x005c7c60]
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov r9d, 8
call fcn.004edac0
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 [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x170
mov edx, 0x10
call fcn.0044f650
test rax, rax
je 0x4eae4e
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 0x4eadd0
dec qword [rcx]
jne 0x4eadd0
dec qword [rcx + 8]
jne 0x4eadd0
mov edx, 0x170
mov r8d, 0x10
call fcn.0044f660
mov rax, rsi
add rsp, 0xb8
pop rdi
pop rsi
ret
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x30], rdi
lea rax, [0x004efb10]
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._home_codespace_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rsp + 0x80]
call fcn.00587e80
ud2
mov ecx, 0x10
mov edx, 0x170
call fcn.00578c70
ud2