Function at 0x413060
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], 0x42ac70
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 0x4132c9
mov byte [ebp - 0x1d], 0
mov eax, dword [0x448960]
cmp eax, 3
jne 0x41310a
cmp byte [ebp - 0x1d], 0
jne 0x4132a9
mov eax, dword [0x448034]
test eax, eax
je 0x41311e
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x413134
cmp byte [eax + 4], 0
mov esi, eax
je 0x413134
mov eax, dword [0x448980]
add esi, 5
cmp eax, esi
jne 0x4131f2
mov eax, dword [0x448984]
inc eax
jne 0x413212
mov ecx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
mov edx, 0x26
push 0x43e3d8
call fcn.00439a20
add esp, 4
ud2
lea ecx, [ebp - 0x1d]
call fcn.0043a4b0
cmp byte [ebp - 0x1d], 0
jne 0x4132a9
jmp 0x4130b7
mov ecx, 0x448034
call fcn.0043a2b0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x4130cd
mov eax, dword [0x448034]
test eax, eax
je 0x413176
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41318b
mov esi, eax
cmp eax, 1
jne 0x4131dc
lea eax, [ebp - 0x20]
mov ecx, 0x43db37
mov edx, 0x46
push 0x43db9c
push 0x43d28c
push eax
call fcn.004399a0
add esp, 0xc
ud2
mov ecx, 0x448034
call fcn.0043a2b0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x413149
mov eax, dword [0x4489c0]
test eax, eax
jne 0x4131a7
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41330b
mov dword [0x4489c0], eax
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41330b
mov dword [eax], 0x448034
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x448034]
test eax, eax
je 0x4132ba
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
mov eax, dword [0x448980]
add esi, 5
cmp eax, esi
je 0x4130e5
lea eax, [0x44897c]
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4132a9
mov eax, 1
mov dword [0x448980], esi
mov dword [0x448984], eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
cmp dword [0x448964], 0
jne 0x4132e2
lea ecx, [0x448968]
mov dword [0x448964], 0xffffffff
mov dword [ebp - 0x10], 1
call fcn.004133d0
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x2c]
mov dword [0x448978], eax
movsd qword [0x448970], xmm1
movsd qword [0x448968], xmm0
inc dword [0x448964]
dec dword [0x448984]
jne 0x4132a9
lea eax, [0x44897c]
mov dword [0x448980], 0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x448034
call fcn.0043a2b0
jmp 0x4131d4
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_alloc_srccollections_btreemapentry.rs
mov edx, 0x2b
push 0x43e34c
call fcn.004397f0
add esp, 4
ud2
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x20]
mov ecx, str.already_borrowedlibrary_std_srcio_stdio.rs
mov edx, 0x10
push 0x43e0dc
push 0x43d29c
push eax
call fcn.004399a0
add esp, 0xc
ud2
mov ecx, 8
mov edx, 4
call fcn.00439680
ud2