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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x410
mov eax, dword [0x100f2e28]
mov esi, dword [eax]
test esi, esi
je 0x1005b98e
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x1005b986
je 0x1005b984
mov eax, dword [0x100ff02c]
cmp eax, 3
jne 0x1005b9aa
mov edi, dword [0x100ff030]
lock inc dword [edi]
jle 0x1005b9be
movsd xmm0, qword [0x10073724]
movsd xmm1, qword [sym.__ZN15crossbeam_epoch8deferred8Deferred5NO_OP10no_op_call17h95b5941e9e7c081cE.llvm.1807907578340861432]
mov eax, 0xfffffc00
nop word cs:[eax + eax]
movsd qword [esp + eax + 0x410], xmm0
movsd qword [esp + eax + 0x408], xmm1
add eax, 0x10
jne 0x1005b850
mov eax, dword [0x100f2e44]
mov dword [esp + 4], esi
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], 0x4c0
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x1005b9cb
mov esi, eax
lea ecx, [esp + 8]
and esi, 0xffffffc0
mov dword [esi + 0x3c], eax
lea ebx, [esi + 0x40]
lea eax, [esi + 0x48]
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], edi
push 0x400
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
movaps xmm0, xmmword [0x100f1a10]
movups xmmword [esi + 0x448], xmm0
mov dword [esi + 0x480], 0
mov eax, dword [edi + 0x100]
mov dword [esi + 0x40], eax
lock cmpxchg dword [edi + 0x100], ebx
je 0x1005b8fc
nop dword [eax]
mov dword [ebx], eax
lock cmpxchg dword [edi + 0x100], ebx
jne 0x1005b8f0
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x1005b9d7
mov dword [eax], ebx
mov ebx, dword [esp + 4]
mov dword [eax + 4], ebx
push ebx
mov esi, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [esp], esi
push esi
push ebx
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x1005b97f
mov eax, dword [edi]
mov ecx, dword [eax + 0x410]
test ecx, ecx
je 0x1005b9e0
mov edx, dword [eax + 0x40c]
lea esi, [ecx - 1]
cmp ecx, 1
mov dword [eax + 0x410], esi
jne 0x1005b970
test edx, edx
je 0x1005b9c0
mov eax, dword [0x100f2e2c]
push edi
push 0
push dword [eax]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp]
jmp 0x1005b986
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sym.std::sys::thread_local::key::windows::LazyKey::init::h0bd71fcfbfc5b9bd
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x1005b80e
jmp 0x1005b986
call sym.__ZN15crossbeam_epoch4sync9once_lock17OnceLock_LT_T_GT_10initialize17he43afc94034ebef6E.llvm.1807907578340861432
mov edi, dword [0x100ff030]
lock inc dword [edi]
jg 0x1005b831
ud2
push eax
call sym.crossbeam_epoch::internal::Local::finalize::h01bc6b0953415ad6
add esp, 4
jmp 0x1005b970
push 0x480
push 0x40
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
push 0x100f1e20
call sym.core::panicking::panic_const::panic_const_sub_overflow::h31f5191bdbee8bd5
nop word [eax + eax]