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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
vmovaps xmmword [rsp + 0x80], xmm6
mov ecx, dword [0x140060028]
test ecx, ecx
je 0x140013075
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140013027
mov rax, qword [rax + 8]
test rax, rax
jne 0x140013249
mov ecx, dword [0x140060028]
test ecx, ecx
je 0x140013090
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400130a8
mov rsi, rax
cmp rax, 1
jne 0x140013116
lea rax, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
lea r9, sym.core::ptr::drop_in_place_aead::Error_::h9e5191360067d7b6
lea r8, [rsp + 0x40]
mov edx, 0x46
call dbg.unwrap_failed
ud2
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h0506998c96ebf630
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001301a
jmp 0x140013027
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h0506998c96ebf630
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14001303d
movzx eax, byte [0x140181040]
mov rcx, qword [0x140181128]
test rcx, rcx
jne 0x1400130d3
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400132f8
mov rcx, rax
mov qword [0x140181128], rax
mov r8d, 0x10
xor edx, edx
call fcn.1400430c4
test rax, rax
je 0x1400132f8
mov rsi, rax
lea rax, sym.std::sys::common::thread_local::os_local::destroy_value::h0506998c96ebf630
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140060028]
test ecx, ecx
je 0x140013265
dec ecx
mov rdx, rsi
call fcn.140043014
vxorps xmm0, xmm0, xmm0
vmovups ymmword [rsp + 0x40], ymm0
lea rcx, [rsp + 0x40]
vzeroupper
call sym.__rand_core::os::OsRng_as_rand_core::RngCore_::try_fill_bytes::h0403f11d80d5dc9d
test rax, rax
jne 0x14001328d
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
vmovaps xmm6, xmmword [rsp + 0x50]
movzx eax, byte [0x140181040]
mov rcx, qword [0x140181128]
test rcx, rcx
jne 0x140013171
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14001327c
mov rcx, rax
mov qword [0x140181128], rax
mov r8d, 0x170
xor edx, edx
call fcn.1400430c4
test rax, rax
je 0x14001327c
mov qword [rax], 1
mov qword [rax + 8], 1
vxorps xmm0, xmm0, xmm0
vmovups ymmword [rax + 0x10], ymm0
vmovups ymmword [rax + 0x30], ymm0
vmovups ymmword [rax + 0x50], ymm0
vmovups ymmword [rax + 0x70], ymm0
vmovups ymmword [rax + 0x90], ymm0
vmovups ymmword [rax + 0xb0], ymm0
vmovups ymmword [rax + 0xd0], ymm0
vmovups ymmword [rax + 0xf0], ymm0
mov qword [rax + 0x110], 0x40
mov qword [rax + 0x120], rdi
mov qword [rax + 0x128], rbx
vmovups xmmword [rax + 0x130], xmm6
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rax + 0x140], xmm0
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 0x140013245
dec qword [r8]
jne 0x140013245
dec qword [r8 + 8]
jne 0x140013245
mov rcx, qword [0x140181128]
xor edx, edx
vzeroupper
call fcn.1400430bc
mov rax, qword [rsi + 8]
inc qword [rax]
je 0x140013278
vmovaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rdi
pop rsi
vzeroupper
ret
lea rcx, sym.std::sys::common::thread_local::os_local::destroy_value::h0506998c96ebf630
call dbg.init
mov ecx, eax
jmp 0x14001310e
ud2
mov ecx, 0x10
mov edx, 0x170
call dbg.handle_alloc_error
ud2
mov qword [rsp + 0x30], rax
lea rax, sym.core::ptr::drop_in_place_i32_::h1dbcfabe1370f43d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
lea rax, [sym.__rand_core::error::Error_as_core::fmt::Display_::fmt::h4fc30c9ff8ebb374]
mov qword [rsp + 0x78], 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 + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rdx, str.C:UsersEvgen.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rs
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2