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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x34], ecx
mov ebx, eax
test eax, eax
jne 0x467ad4
jmp 0x467aba
cmp byte [ebp + 0xc], 0
je 0x467d57
mov ecx, dword [ebp + 8]
mov eax, ebx
mov edx, 2
lock cmpxchg dword [ecx], edx
je 0x467cb4
mov ebx, eax
test eax, eax
je 0x467aba
cmp ebx, 1
je 0x467ab0
cmp ebx, 3
je 0x467cf3
mov eax, ebx
and eax, 3
cmp eax, 2
je 0x467b0e
jmp 0x467d86
mov eax, ebx
and eax, 3
cmp eax, 2
jne 0x467ca0
mov eax, dword [0x4b9054]
test eax, eax
je 0x467b4f
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x467b2f
cmp dword [eax + 4], 0
mov edi, eax
jne 0x467bf0
mov eax, dword [0x4b9054]
test eax, eax
je 0x467b69
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x467b80
mov edi, eax
cmp eax, 1
jne 0x467bc0
jmp 0x467d3d
push 0x4b9054
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x467b23
jmp 0x467b2f
push 0x4b9054
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
jne 0x467b43
mov eax, dword [0x4d8218]
movzx eax, byte [eax]
push 4
push 0xc
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x467d4e
mov dword [eax], 0x4b9054
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4b9054]
test eax, eax
je 0x467c5c
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [edi + 4], 1
mov dword [edi + 8], 0
je 0x467bf0
test eax, eax
je 0x467bf0
lock dec dword [eax]
jne 0x467bf0
lea ecx, [ebp - 0x2c]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop
add edi, 8
mov esi, dword [edi]
test esi, esi
jne 0x467c13
sub esp, 4
push 0
call sym.std::thread::Thread::new::hd0adf4e9cf08a0e7
add esp, 8
cmp dword [edi], 0
mov esi, eax
jne 0x467cfb
mov dword [edi], esi
lock inc dword [esi]
jle 0x467d3b
mov ecx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x16]
add eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov eax, ebx
lock cmpxchg dword [ecx], edx
je 0x467c75
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x467b00
lock dec dword [eax]
jne 0x467b00
lea ecx, [ebp - 0x18]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x467b00
push 0x4b9054
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
jmp 0x467bb9
call dbg.park
movzx eax, byte [ebp - 0x10]
test al, al
je 0x467c70
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x467ca0
lock dec dword [eax]
jne 0x467ca0
lea ecx, [ebp - 0x18]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, eax
test eax, eax
jne 0x467ad4
jmp 0x467aba
mov eax, dword [ebp + 8]
cmp ebx, 1
mov dword [ebp - 0x30], 3
sete byte [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp + 0x10]
call eax
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
call sym.__LT_std..sys_common..once..queue..WaiterQueue_u20_as_u20_core..ops..drop..Drop_GT_::drop::hfc0aa2ee6573d2c9
add esp, 4
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x4bce28
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0x4bcb70
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push 0x4bce80
push eax
call dbg.panic_fmt
add esp, 8
ud2
push 0x4bdf98
push 0x5e
push str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
call dbg.expect_failed
push 0xc
push 4
call dbg.handle_alloc_error
mov dword [ebp - 0x30], str.Once_instance_has_previously_been_poisoned
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0x4bcb70
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x30]
push dword [ebp + 0x18]
push eax
call dbg.panic_fmt
push dword [ebp + 0x18]
push 0x40
push str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rs
call dbg.panic
mov edi, eax
lea eax, [ebp - 0x18]
push eax
call sym.__LT_std..sys_common..once..queue..WaiterQueue_u20_as_u20_core..ops..drop..Drop_GT_::drop::hfc0aa2ee6573d2c9
add esp, 4
jmp 0x467dc9
push edi
call sym.__Unwind_Resume
nop