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

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp byte [eax], 0
mov byte [eax], 0
je 0x411cdf
mov byte [ebp - 5], 0
mov eax, dword [0x8fa068]
cmp eax, 3
jne 0x411ae2
cmp byte [ebp - 5], 0
je 0x411af0
add esp, 0x18
pop esi
pop ebp
ret
lea ecx, [ebp - 5]
call fcn.00411d80
cmp byte [ebp - 5], 0
jne 0x411adc
mov eax, dword [0x445040]
test eax, eax
je 0x411b42
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x411b57
cmp byte [eax + 4], 0
mov esi, eax
je 0x411b57
mov eax, dword [0x8fa088]
add esi, 5
cmp eax, esi
jne 0x411c17
mov eax, dword [0x8fa08c]
inc eax
jne 0x411c36
mov ecx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
mov edx, 0x26
push 0x8f1094
call fcn.00404fa0
add esp, 4
ud2
mov ecx, 0x445040
call fcn.004112a0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x411b05
mov eax, dword [0x445040]
test eax, eax
je 0x411b98
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x411bac
mov esi, eax
cmp eax, 1
jne 0x411c01
lea eax, [ebp - 8]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
mov edx, 0x46
push 0x8f0e48
push 0x8f06b0
push eax
call fcn.00404f10
add esp, 0xc
ud2
mov ecx, 0x445040
call fcn.004112a0
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
jne 0x411b6b
movzx eax, byte [0x8fa060]
mov eax, dword [0x8fa0c0]
test eax, eax
jne 0x411bce
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x411d1a
mov dword [0x8fa0c0], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x411d1a
mov dword [eax], 0x445040
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x445040]
test eax, eax
je 0x411cd0
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov word [esi + 4], 1
mov eax, dword [0x8fa088]
add esi, 5
cmp eax, esi
je 0x411b1d
lea eax, [0x8fa084]
push eax
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x411adc
mov dword [0x8fa088], esi
mov eax, 1
mov dword [0x8fa08c], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xe], 0
mov dword [ebp - 0x12], 0
cmp dword [0x8fa06c], 0
jne 0x411cf8
mov dword [0x8fa06c], 0xffffffff
lea ecx, [0x8fa070]
call fcn.00411e10
mov eax, dword [ebp - 0xc]
movsd xmm0, qword [ebp - 0x1c]
movsd xmm1, qword [ebp - 0x14]
mov dword [0x8fa080], eax
movsd qword [0x8fa078], xmm1
movsd qword [0x8fa070], xmm0
inc dword [0x8fa06c]
dec dword [0x8fa08c]
jne 0x411adc
mov dword [0x8fa088], 0
lea eax, [0x8fa084]
push eax
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
add esp, 0x18
pop esi
pop ebp
ret
mov ecx, 0x445040
call fcn.004112a0
jmp 0x411bfa
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov edx, 0x2b
push 0x8f1008
call fcn.00404640
add esp, 4
ud2
lea eax, [ebp - 8]
mov edx, 0x10
mov ecx, str.already_borrowedlibrary_std_srcio_stdio.rs
push 0x8f0dd0
push 0x8f06c0
push eax
call fcn.00404f10
add esp, 0xc
ud2
mov ecx, 4
mov edx, 8
call fcn.00403720
ud2