Function at 0x57b110
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, 0x6c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x577910
mov ebx, ecx
lea eax, [ebp - 0x18]
mov esi, edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x5fd048]
test eax, eax
je 0x57b1a1
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
mov dword [ebp - 0x30], ebx
jb 0x57b168
cmp dword [eax + 4], 0
je 0x57b168
add eax, 8
jmp 0x57b220
mov eax, dword [0x5fd048]
test eax, eax
je 0x57b1ad
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x57b1c2
mov edi, eax
cmp eax, 1
jne 0x57b202
lea eax, [ebp - 0x78]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_aedd173a2c086e558c2b66d3743b344f977621a7library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5ec568
push 0x58a34c
push eax
call fcn.0057fa90
mov ecx, 0x5fd048
call fcn.005878a0
jmp 0x57b14b
mov ecx, 0x5fd048
call fcn.005878a0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x57b17d
movzx eax, byte [0x5fd2ec]
xor ecx, ecx
mov edx, 0x14
call fcn.0056a9f0
test eax, eax
je 0x57b425
mov dword [eax], 0x5fd048
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x5fd048]
test eax, eax
je 0x57b3bb
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
lea eax, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], 0
mov word [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
mov edx, 0x41c5b0
movsd xmm1, qword [ecx + 0x10]
movsd xmm0, qword [ecx + 0x18]
movsd xmm2, qword [ecx]
movsd qword [ebp - 0x68], xmm1
movsd xmm1, qword [ecx + 8]
movsd qword [ebp - 0x60], xmm0
movsd qword [ebp - 0x78], xmm2
mov ecx, esi
movsd qword [ebp - 0x70], xmm1
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x54], 0
push eax
call fcn.004c26e0
add esp, 4
mov eax, dword [ebp - 0x58]
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x5fd2e8]
test eax, 0x7fffffff
je 0x57b34b
mov byte [ebp - 0x1d], 1
call fcn.00587ba0
xor al, 1
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 4]
test dl, dl
jne 0x57b35c
cmp byte [ecx + 5], 0
jne 0x57b2f4
lea edx, [ecx + 8]
mov dword [ebp - 0x34], edx
nop dword [eax]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x1d], 1
push 0
push 0xffffffffffffffff
push ecx
push dword [ebp - 0x34]
call dword [sym.imp.kernel32.dll_SleepConditionVariableSRW]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
test al, al
setne al
movzx ecx, byte [edx + 4]
test cl, cl
mov ecx, edx
jne 0x57b3ca
cmp byte [ecx + 5], 0
je 0x57b2c0
test al, al
mov byte [ecx + 5], 0
je 0x57b38e
mov byte [ebp - 0x1d], 1
push ecx
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
cmp eax, 1
jne 0x57b3f9
movsd xmm0, qword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
movsd xmm1, qword [ebp - 0x40]
movsd qword [eax + 0x10], xmm1
movsd qword [eax + 8], xmm0
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov dword fs:[0], ecx
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 4]
test dl, dl
je 0x57b2ad
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x28], al
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x2c]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x599e9c
push 0x599dbc
push eax
call fcn.0057fa90
add esp, 0xc
jmp 0x57b423
mov eax, dword [0x5fd2e8]
test eax, 0x7fffffff
je 0x57b300
mov byte [ebp - 0x1d], 1
call fcn.00587ba0
mov ecx, dword [ebp - 0x24]
test al, al
jne 0x57b300
mov byte [ecx + 4], 1
jmp 0x57b300
mov ecx, 0x5fd048
call fcn.005878a0
jmp 0x57b1fa
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x28], al
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x2c]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x599eac
push 0x599dbc
push eax
call fcn.0057fa90
add esp, 0xc
jmp 0x57b423
test eax, eax
jne 0x57b41a
mov byte [ebp - 0x1d], 0
mov ecx, str.internal_error:_entered_unreachable_code_rustc_aedd173a2c086e558c2b66d3743b344f977621a7library_alloc_src_vecmod.rs
mov edx, 0x28
push 0x589c18
call fcn.0057f7d0
add esp, 4
jmp 0x57b423
mov byte [ebp - 0x1d], 0
call fcn.004bd060
ud2
mov ecx, 4
mov edx, 0x14
call fcn.0057f230
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x10
add ebp, 0xc
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x1d], 1
push eax
call fcn.0040d1c0
add esp, 4
mov byte [ebp - 0x1d], 1
add esp, 0x10
pop ebp
ret