Function at 0x41de80
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, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4375d0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
cmp byte [eax], 0
mov byte [eax], 0
je 0x41e0bb
mov byte [ebp - 0x1d], 0
mov eax, dword [0x45c9dc]
cmp eax, 3
jne 0x41e06b
cmp byte [ebp - 0x1d], 0
jne 0x41e07d
mov eax, dword [0x45c05c]
test eax, eax
je 0x41e08e
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x41df01
cmp byte [eax + 4], 0
mov esi, eax
jne 0x41df84
mov eax, dword [0x45c05c]
test eax, eax
je 0x41e09d
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x41df43
mov esi, eax
cmp eax, 1
jne 0x41df7e
lea eax, [ebp - 0x34]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
mov edx, 0x46
push 0x452264
push 0x45128c
push eax
call fcn.00446630
add esp, 0xc
ud2
movzx eax, byte [0x45ca98]
mov ecx, 8
call fcn.0040c250
test eax, eax
je 0x41e0e2
mov dword [eax], 0x45c05c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x45c05c]
test eax, eax
je 0x41e0ac
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
mov eax, dword [0x45c9fc]
add esi, 5
cmp eax, esi
jne 0x41dfb1
mov eax, dword [0x45ca00]
inc eax
jne 0x41dfd1
mov ecx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
mov edx, 0x26
push 0x4525a4
call fcn.004466b0
add esp, 4
ud2
lea eax, [0x45c9f8]
push eax
call dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x41e07d
mov eax, 1
mov dword [0x45c9fc], esi
mov dword [0x45ca00], eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x26], 0
mov dword [ebp - 0x2a], 0
cmp dword [0x45c9e0], 0
jne 0x41e0d4
lea ecx, [0x45c9e4]
mov dword [0x45c9e0], 0xffffffff
mov dword [ebp - 0x10], 1
call fcn.0041e190
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x2c]
mov dword [0x45c9f4], eax
movsd qword [0x45c9ec], xmm1
movsd qword [0x45c9e4], xmm0
inc dword [0x45c9e0]
dec dword [0x45ca00]
jne 0x41e07d
lea eax, [0x45c9f8]
mov dword [0x45c9fc], 0
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x41e07d
lea ecx, [ebp - 0x1d]
call fcn.00447040
cmp byte [ebp - 0x1d], 0
je 0x41dedb
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x45c05c
call fcn.00446e40
jmp 0x41dee9
mov ecx, 0x45c05c
call fcn.00446e40
jmp 0x41df0f
mov ecx, 0x45c05c
call fcn.00446e40
jmp 0x41df76
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rs
mov edx, 0x2b
push 0x452518
call fcn.004463d0
add esp, 4
ud2
mov dword [ebp - 0x10], 2
call fcn.004465e0
ud2
mov ecx, 4
mov edx, 8
call fcn.00446130
ud2