Function at 0x1007c9a0
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, 0x40
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003cef0
lea ecx, [ebp - 0x18]
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
mov dword fs:[0], ecx
nop dword [eax]
mov eax, dword [ebp + 8]
mov edx, 2
mov eax, dword [eax]
jmp 0x1007c9ef
mov ecx, dword [ebp + 8]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x1007cc05
mov esi, eax
test eax, eax
je 0x1007c9e0
cmp esi, 1
jne 0x1007ca10
cmp byte [ebp + 0xc], 0
jne 0x1007c9e0
jmp 0x1007cccf
cmp esi, 3
je 0x1007cc50
mov eax, esi
and eax, 3
cmp eax, 2
je 0x1007ca3a
jmp 0x1007cd05
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x1007c9d0
mov eax, dword [0x100bd054]
test eax, eax
je 0x1007ca81
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x1007ca5c
cmp dword [eax + 4], 0
mov edi, eax
jne 0x1007cb40
mov eax, dword [0x100bd054]
test eax, eax
je 0x1007caa3
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1007cad0
mov edi, eax
cmp eax, 1
jne 0x1007cb10
jmp 0x1007cca7
mov dword [ebp - 0x10], 0xffffffff
push 0x100bd054
call sym.kso.dll_std::sys::pal::windows::thread_local_key::StaticKey::init::ha446e86f87fe37fa
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x1007ca50
jmp 0x1007ca5c
mov dword [ebp - 0x10], 0xffffffff
push 0x100bd054
call sym.kso.dll_std::sys::pal::windows::thread_local_key::StaticKey::init::ha446e86f87fe37fa
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1007ca71
nop word cs:[eax + eax]
nop dword [eax]
movzx eax, byte [sym.kso.dll___rust_no_alloc_shim_is_unstable]
push 4
push 0xc
call sym.kso.dll___rust_alloc
add esp, 8
test eax, eax
je 0x1007ccbf
mov dword [eax], 0x100bd054
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x100bd054]
test eax, eax
je 0x1007cbb1
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov dword [edi + 4], 1
mov dword [edi + 8], 0
je 0x1007cb40
test eax, eax
je 0x1007cb40
lock dec dword [eax]
jne 0x1007cb40
lea ecx, [ebp - 0x3c]
call fcn.100097d0
nop
add edi, 8
mov eax, dword [edi]
test eax, eax
jne 0x1007cb68
mov dword [ebp - 0x10], 0xffffffff
sub esp, 4
push 0
call sym.kso.dll_std::thread::Thread::new::hf4850676c7da245e
add esp, 8
cmp dword [edi], 0
jne 0x1007cc61
mov dword [edi], eax
lock inc dword [eax]
jle 0x1007cca5
mov ecx, esi
mov dword [ebp - 0x28], eax
mov eax, esi
mov esi, dword [ebp + 8]
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x26]
add ecx, 0xfffffffe
mov dword [ebp - 0x24], ecx
lock cmpxchg dword [esi], edx
je 0x1007cbdc
mov esi, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1007ca30
lock dec dword [eax]
jne 0x1007ca30
lea ecx, [ebp - 0x28]
call fcn.100097d0
jmp 0x1007ca30
mov dword [ebp - 0x10], 0xffffffff
push 0x100bd054
call sym.kso.dll_std::sys::pal::windows::thread_local_key::StaticKey::init::ha446e86f87fe37fa
add esp, 4
jmp 0x1007cb08
mov dword [ebp - 0x10], 2
call sym.kso.dll_std::thread::park::h26c0b9a62e2def9e
movzx eax, byte [ebp - 0x20]
test al, al
je 0x1007cbd0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1007c9d0
lock dec dword [eax]
jne 0x1007c9d0
lea ecx, [ebp - 0x28]
call fcn.100097d0
jmp 0x1007c9d0
mov eax, dword [ebp + 8]
cmp esi, 1
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x10], 0
sete byte [ebp - 0x3c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 1
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
call dword [eax + 0x10]
add esp, 8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
call sym.kso.dll___std::sys_common::once::queue::WaiterQueue_as_core::ops::drop::Drop_::drop::hf3a50fcbea690080
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x1007e8e8
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0x1007e778
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x40]
push 0x1007e940
push eax
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
add esp, 8
ud2
mov dword [ebp - 0x10], 0xffffffff
push 0x1007f57c
push 0x5e
push str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
call sym.kso.dll_core::option::expect_failed::h17002318759e0936
mov dword [ebp - 0x10], 0xffffffff
push 0xc
push 4
call sym.kso.dll_alloc::alloc::handle_alloc_error::h0f7631ec9b341a7f
mov dword [ebp - 0x40], 0x10082854
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0x1007e778
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x40]
push dword [ebp + 0x18]
push eax
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 0x18]
push 0x40
push str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rs
call sym.kso.dll_core::panicking::panic::hd53872080d8d36e0
nop dword [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov eax, dword [ebp - 0x44]
lock dec dword [eax]
jne 0x1007cd37
lea ecx, [ebp - 0x48]
call fcn.100097d0
add esp, 0xc
pop ebp
ret