Function at 0x4190a0
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], 0x41b130
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x4190de
test eax, eax
jne 0x41925a
mov ebx, dword [0x49f264]
test ebx, ebx
je 0x41925a
mov dword [ebp - 0x20], 0
jmp 0x419107
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x419138
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4192ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419100
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 0x419100
test byte [ebp - 0x20], 1
je 0x41925a
mov ebx, dword [0x49f264]
test ebx, ebx
je 0x41925a
mov dword [ebp - 0x20], 0
jmp 0x419167
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x419198
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4192ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419160
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 0x419160
test byte [ebp - 0x20], 1
je 0x41925a
mov ebx, dword [0x49f264]
test ebx, ebx
je 0x41925a
mov dword [ebp - 0x20], 0
jmp 0x4191c7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4191f8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4192ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4191c0
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 0x4191c0
test byte [ebp - 0x20], 1
je 0x41925a
mov ebx, dword [0x49f264]
test ebx, ebx
je 0x41925a
mov dword [ebp - 0x20], 0
jmp 0x419227
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x419254
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4192ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419220
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 0x419220
test byte [ebp - 0x20], 1
jne 0x419274
movzx eax, byte [0x496cd4]
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 [0x49f264]
jmp 0x41927f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41925a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4192ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41927c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x41927c
mov dword [ebp - 0x10], 0
push 0x460b70
push 0x2b
push str.called__Option::unwrap____on_a__None__valueinternal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len__rustc_84c898d65adf2f39a5a98507f1fe0ce10a2b8dbclibrary_alloc_src_string.rs
call fcn.004515c0
add esp, 0xc
ud2