Function at 0x10057fe0
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 0x10058196
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x1005818e
je 0x1005818c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10058026
mov edi, dword [eax]
mov dword [eax], 0
test edi, edi
jne 0x10058128
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::h11a186955b3c2a45
add esp, 0xc
test eax, eax
jne 0x100581c0
movups xmm0, xmmword [esp + 0x30]
movups xmm1, xmmword [esp + 0x40]
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x50], xmm1
push 4
push 0x1015ecdc
call sym.rand_chacha::guts::read_u32le::h96a120894981d93c
add esp, 8
mov dword [esp + 0x14], eax
lea eax, [0x1015ece0]
push 4
push eax
call sym.rand_chacha::guts::read_u32le::h96a120894981d93c
add esp, 8
mov ebx, eax
mov eax, dword [0x1017b554]
movzx eax, byte [eax]
push 8
push 0x158
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x1005820c
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 [0x1015edd0]
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 [0x1017b554]
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x100581b2
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 0x10058186
mov eax, dword [edi]
dec dword [eax]
jne 0x10058179
dec dword [eax + 4]
jne 0x10058179
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 0x1005818e
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 0x10058009
jmp 0x1005818e
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
add esp, 8
jmp 0x1005820a
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 0x1015eee0
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::h53a560a28520044e
push 0x1015ef50
push edi
call sym.core::panicking::panic_fmt::hced28cb7137b21e1
add esp, 8
ud2
push 0x158
push 8
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
mov ebx, dword [esp + 0x10]
mov esi, eax
mov edi, dword [esp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x1005822e
push edi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x10058242
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 0x1005825c
push dword [ebx + 8]
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
call sym.core::panicking::panic_in_cleanup::h828554743c41e7fc
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