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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm7
movaps xmmword [rsp + 0xb0], xmm6
mov qword [rsp + 0xa8], r9
mov qword [rsp + 0xa0], r8
mov byte [rsp + 0x2f], dl
mov rsi, rcx
mov rax, qword [rcx]
lea r12, [rsp + 0x82]
xor r13d, r13d
xorps xmm6, xmm6
movaps xmm7, xmmword [0x140046610]
lea rbp, [0x14004e5c0]
jmp 0x14001f48e
cmp byte [rsp + 0x2f], 0
je 0x14001faa5
mov rax, r14
mov ecx, 2
lock cmpxchg qword [rsi], rcx
je 0x14001f908
mov r14, rax
test rax, rax
je 0x14001f47b
cmp r14, 1
je 0x14001f470
cmp r14, 3
je 0x14001f93f
mov eax, r14d
and eax, 3
cmp eax, 2
je 0x14001f4cf
jmp 0x14001faec
mov eax, r14d
and eax, 3
cmp eax, 2
jne 0x14001f900
mov ecx, dword [0x140045088]
test ecx, ecx
je 0x14001f4f8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001f520
mov r15, rax
cmp qword [rax], 0
je 0x14001f520
add r15, 8
jmp 0x14001f5f0
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14001f4e6
nop word cs:[rax + rax]
mov ecx, dword [0x140045088]
test ecx, ecx
je 0x14001f548
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001f560
mov rdi, rax
cmp rax, 1
jne 0x14001f5c7
jmp 0x14001fa2a
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14001f536
mov rax, qword [0x1400570e8]
test rax, rax
jne 0x14001f581
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14001fa19
mov qword [0x1400570e8], rax
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14001fa19
mov rdi, rax
mov qword [rax], 0
lea rax, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
mov qword [rdi + 0x18], rax
mov ecx, dword [0x140045088]
test ecx, ecx
je 0x14001f6fd
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
lea r15, [rdi + 8]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi], 0
mov qword [rdi], 1
movups xmmword [rdi + 8], xmm6
je 0x14001f5f0
test rcx, rcx
je 0x14001f5f0
lock dec qword [rcx]
jne 0x14001f5f0
call dbg.drop_slow<std::thread::Inner>
cmp qword [r15], 0
jne 0x14001f97b
mov qword [r15], 0xffffffffffffffff
mov rcx, qword [r15 + 8]
test rcx, rcx
jne 0x14001f693
mov qword [rsp + 0x40], 0
mov rax, qword [0x1400570e8]
test rax, rax
jne 0x14001f638
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14001f9f1
mov qword [0x1400570e8], rax
mov r8d, 0x30
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14001f9f1
mov rcx, rax
movups xmmword [rax], xmm7
mov qword [rsp + 0x70], rax
mov qword [rax + 0x10], 0
mov rax, qword [0x1400570e0]
nop dword [rax + rax]
mov rdx, rax
inc rdx
je 0x14001f963
lock cmpxchg qword [0x1400570e0], rdx
jne 0x14001f670
mov qword [rcx + 0x20], rdx
mov byte [rcx + 0x28], 0
mov qword [r15 + 8], rcx
lock inc qword [rcx]
jle 0x14001f977
inc qword [r15]
mov rax, r14
and rax, 0xfffffffffffffffc
mov qword [rsp + 0x80], rcx
mov byte [rsp + 0x90], 0
mov qword [rsp + 0x88], rax
mov rax, r14
lock cmpxchg qword [rsi], r12
je 0x14001f8c0
mov r14, rax
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14001f4c0
lock dec qword [rax]
jne 0x14001f4c0
mov rcx, qword [rsp + 0x80]
call dbg.drop_slow<std::thread::Inner>
jmp 0x14001f4c0
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call dbg.init
mov ecx, eax
jmp 0x14001f5bf
call sym.std::sys_common::thread_info::THREAD_INFO::__getit::h08cf710de42d8f36
mov rbx, rax
test rax, rax
je 0x14001f9d4
cmp qword [rbx], 0
jne 0x14001f9a6
mov qword [rbx], 0xffffffffffffffff
mov rdi, qword [rbx + 8]
test rdi, rdi
jne 0x14001f7c3
mov qword [rsp + 0x40], 0
mov rax, qword [0x1400570e8]
test rax, rax
jne 0x14001f769
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14001fa05
mov qword [0x1400570e8], rax
mov r8d, 0x30
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14001fa05
mov rdi, rax
movups xmmword [rax], xmm7
mov qword [rsp + 0x70], rax
mov qword [rax + 0x10], 0
mov rax, qword [0x1400570e0]
nop dword [rax]
mov rcx, rax
inc rcx
je 0x14001f96d
lock cmpxchg qword [0x1400570e0], rcx
jne 0x14001f7a0
mov qword [rdi + 0x20], rcx
mov byte [rdi + 0x28], 0
mov qword [rbx + 8], rdi
lock inc qword [rdi]
jle 0x14001f977
inc qword [rbx]
mov qword [rsp + 0x30], rdi
lock dec byte [rdi + 0x28]
je 0x14001f80d
add rdi, 0x28
mov rbx, qword [0x1400570f8]
test rbx, rbx
je 0x14001f82b
nop dword [rax + rax]
mov r8d, 1
mov rcx, rdi
mov rdx, rbp
mov r9d, 0xffffffff
call rbx
mov al, 1
lock cmpxchg byte [rdi], r13b
jne 0x14001f7f0
mov rax, qword [rsp + 0x30]
lock dec qword [rax]
jne 0x14001f8c0
mov rcx, qword [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner>
jmp 0x14001f8c0
mov rcx, qword [0x140045018]
cmp rcx, 0xffffffffffffffff
jne 0x14001f88d
mov qword [rsp + 0x98], 0xffffffffffffffff
mov rax, qword [sym.std::sys::windows::c::NtCreateKeyedEvent::load::h459a4c275f6107c3]
lea rcx, [rsp + 0x98]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
jne 0x14001fa44
mov rcx, qword [rsp + 0x98]
mov rax, 0xffffffffffffffff
lock cmpxchg qword [0x140045018], rcx
je 0x14001f88d
mov rbx, rax
call sub.KERNEL32.dll_CloseHandle
mov rcx, rbx
mov rax, qword [sym.std::sys::windows::c::NtWaitForKeyedEvent::load::hdf2e4dd751250517]
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call rax
xor eax, eax
xchg byte [rdi], al
mov rax, qword [rsp + 0x30]
lock dec qword [rax]
je 0x14001f81c
nop word cs:[rax + rax]
movzx eax, byte [rsp + 0x90]
test al, al
je 0x14001f710
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x14001f900
lock dec qword [rax]
jne 0x14001f900
mov rcx, qword [rsp + 0x80]
call dbg.drop_slow<std::thread::Inner>
mov rax, qword [rsi]
jmp 0x14001f48e
mov rax, qword [rsi]
jmp 0x14001f48e
cmp r14, 1
mov qword [rsp + 0x40], 3
sete byte [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xa8]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call dbg.drop
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call dbg.exhausted
jmp 0x14001fb62
call dbg.exhausted
jmp 0x14001fb62
ud2
lea rax, str.library_std_src_sys_common_thread_info.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14004f147]
lea r9, dbg.drop_in_place_mut_std::io::Write::write_fmt::Adapter_alloc::vec::Vec_u8__alloc::alloc::Global___
lea r8, [rsp + 0x40]
mov edx, 0x10
call dbg.unwrap_failed
ud2
lea rax, str.library_std_src_sys_common_thread_info.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14004f147]
lea r9, dbg.drop_in_place_mut_std::io::Write::write_fmt::Adapter_alloc::vec::Vec_u8__alloc::alloc::Global___
lea r8, [rsp + 0x40]
mov edx, 0x10
call dbg.unwrap_failed
jmp 0x14001fb62
lea rcx, [0x14004ef2d]
lea r8, str.library_std_src_threadmod.rsuse_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
call dbg.expect_failed
jmp 0x14001fb62
mov ecx, 0x30
mov edx, 8
call dbg.handle_alloc_error
jmp 0x14001fb62
mov ecx, 0x30
mov edx, 8
call dbg.handle_alloc_error
jmp 0x14001fb62
mov ecx, 0x20
mov edx, 8
call dbg.handle_alloc_error
ud2
lea rcx, [0x14004ef2d]
lea r8, str.library_std_src_threadmod.rsuse_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
call dbg.expect_failed
ud2
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x70], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_i32_::fmt::hc1a7df6c13474e68]
mov qword [rsp + 0x78], rax
lea rax, str.Unable_to_create_keyed_event_handle:_error
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_thread_parker.rs
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
jmp 0x14001fb62
lea rax, [0x140050798]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, sym.core::ptr::drop_in_place_windows::core::error::Error_::h294572efbc43ce79
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0x140]
call dbg.panic_fmt
ud2
lea rcx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
mov edx, 0x40
mov r8, qword [rsp + 0x140]
call dbg.panic
ud2
ud2