Function at 0x100e3580
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, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100e5840
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x100e35be
test eax, eax
jne 0x100e373a
mov ebx, dword [0x1019ccb0]
test ebx, ebx
je 0x100e373a
mov dword [ebp - 0x20], 0
jmp 0x100e35e7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100e3618
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100e378b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100e35e0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x100e35e0
test byte [ebp - 0x20], 1
je 0x100e373a
mov ebx, dword [0x1019ccb0]
test ebx, ebx
je 0x100e373a
mov dword [ebp - 0x20], 0
jmp 0x100e3647
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100e3678
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100e378b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100e3640
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x100e3640
test byte [ebp - 0x20], 1
je 0x100e373a
mov ebx, dword [0x1019ccb0]
test ebx, ebx
je 0x100e373a
mov dword [ebp - 0x20], 0
jmp 0x100e36a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100e36d8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100e378b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100e36a0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x100e36a0
test byte [ebp - 0x20], 1
je 0x100e373a
mov ebx, dword [0x1019ccb0]
test ebx, ebx
je 0x100e373a
mov dword [ebp - 0x20], 0
jmp 0x100e3707
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100e3734
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100e378b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100e3700
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x100e3700
test byte [ebp - 0x20], 1
jne 0x100e3754
movzx eax, byte [0x10189a00]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x1019ccb0]
jmp 0x100e375f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x100e373a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x100e378b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100e375c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x100e375c
mov dword [ebp - 0x10], 0
push 0x101775a4
push 0x2b
push str.called__Option::unwrap____on_a__None__valueinternal_error:_entered_unreachable_code_rustc_5b8f284536d00ba649ca968584bedab4820d8527library_alloc_src_vecmod.rs
call fcn.1010c750
add esp, 0xc
ud2