Function at 0x10024930
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, 0xfffffff0
sub esp, 0x70
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x10024ae6
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x10024ade
je 0x10024adc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10024976
mov edi, dword [eax]
mov dword [eax], 0
test edi, edi
jne 0x10024a78
xorps xmm0, xmm0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x30], xmm0
lea edi, [esp + 0x30]
lea ebx, [esp + 0x18]
push 0x20
push edi
push ebx
call sym.__LT_rand_core..os..OsRng_u20_as_u20_rand_core..RngCore_GT_::try_fill_bytes::h86be43a40ebd7667
add esp, 0xc
test eax, eax
jne 0x10024b10
movups xmm0, xmmword [esp + 0x30]
movups xmm1, xmmword [esp + 0x40]
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x50], xmm1
push 4
push 0x1016def8
call sym.rand_chacha::guts::read_u32le::h1cddd26f46564e5c
add esp, 8
mov dword [esp + 0x14], eax
lea eax, [0x1016defc]
push 4
push eax
call sym.rand_chacha::guts::read_u32le::h1cddd26f46564e5c
add esp, 8
mov ebx, eax
mov eax, dword [0x101918ac]
movzx eax, byte [eax]
push 8
push 0x158
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10024b5c
mov edi, eax
mov dword [eax], 1
mov dword [eax + 4], 1
add eax, 8
push 0x100
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
movaps xmm0, xmmword [esp + 0x20]
movaps xmm2, xmmword [esp + 0x50]
mov eax, dword [esp + 0x14]
movaps xmm1, xmmword [0x1016dff0]
mov dword [edi + 0x108], 0x40
movups xmmword [edi + 0x110], xmm0
movups xmmword [edi + 0x120], xmm2
mov dword [edi + 0x130], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x138], eax
mov dword [edi + 0x13c], ebx
movups xmmword [edi + 0x140], xmm1
mov dword [edi + 0x150], 0
mov eax, dword [0x101918ac]
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10024b02
mov dword [eax], edi
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [esp + 0x20], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x10024ad6
mov eax, dword [edi]
dec dword [eax]
jne 0x10024ac9
dec dword [eax + 4]
jne 0x10024ac9
push 8
push 0x158
push eax
call sym.___rust_dealloc
add esp, 0xc
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x20]
jmp 0x10024ade
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::h8219056d8c3ded71
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x10024959
jmp 0x10024ade
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
jmp 0x10024b5a
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 0x1016e100
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], sym.__LT_rand_core..error..Error_u20_as_u20_core..fmt..Display_GT_::fmt::hb505ba4465efc629
push 0x1016e170
push edi
call sym.core::panicking::panic_fmt::h653fda680bf9012e
add esp, 8
ud2
push 0x158
push 8
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
mov ebx, dword [esp + 0x10]
mov esi, eax
mov edi, dword [esp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x10024b7e
push edi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x10024b92
push dword [ebx + 8]
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
push esi
call sym.__Unwind_Resume
mov eax, dword [ebx + 4]
test eax, eax
je 0x10024bac
push dword [ebx + 8]
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
call sym.core::panicking::panic_in_cleanup::hbacea214a6920ce1
mov esi, eax
mov ecx, edi
call sym.__ZN4core3ptr221drop_in_place_LT_std..sys..thread_local..os..Value_LT_alloc..rc..Rc_LT_core..cell..UnsafeCell_LT_rand..rngs..a
push esi
call sym.__Unwind_Resume