Function at 0x419190
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], 0x41b220
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x4191ce
test eax, eax
jne 0x41934a
mov ebx, dword [0x4a0264]
test ebx, ebx
je 0x41934a
mov dword [ebp - 0x20], 0
jmp 0x4191f7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x419228
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41939b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4191f0
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 0x4191f0
test byte [ebp - 0x20], 1
je 0x41934a
mov ebx, dword [0x4a0264]
test ebx, ebx
je 0x41934a
mov dword [ebp - 0x20], 0
jmp 0x419257
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x419288
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41939b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419250
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 0x419250
test byte [ebp - 0x20], 1
je 0x41934a
mov ebx, dword [0x4a0264]
test ebx, ebx
je 0x41934a
mov dword [ebp - 0x20], 0
jmp 0x4192b7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4192e8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41939b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4192b0
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 0x4192b0
test byte [ebp - 0x20], 1
je 0x41934a
mov ebx, dword [0x4a0264]
test ebx, ebx
je 0x41934a
mov dword [ebp - 0x20], 0
jmp 0x419317
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x419344
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41939b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419310
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 0x419310
test byte [ebp - 0x20], 1
jne 0x419364
movzx eax, byte [0x497cd4]
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 [0x4a0264]
jmp 0x41936f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41934a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41939b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41936c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x41936c
mov dword [ebp - 0x10], 0
push 0x461b70
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.004515d0
add esp, 0xc
ud2