Function at 0x419110
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], 0x41b1a0
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x41914e
test eax, eax
jne 0x4192ca
mov ebx, dword [0x49f264]
test ebx, ebx
je 0x4192ca
mov dword [ebp - 0x20], 0
jmp 0x419177
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4191a8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41931b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419170
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 0x419170
test byte [ebp - 0x20], 1
je 0x4192ca
mov ebx, dword [0x49f264]
test ebx, ebx
je 0x4192ca
mov dword [ebp - 0x20], 0
jmp 0x4191d7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x419208
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41931b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4191d0
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 0x4191d0
test byte [ebp - 0x20], 1
je 0x4192ca
mov ebx, dword [0x49f264]
test ebx, ebx
je 0x4192ca
mov dword [ebp - 0x20], 0
jmp 0x419237
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x419268
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41931b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419230
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 0x419230
test byte [ebp - 0x20], 1
je 0x4192ca
mov ebx, dword [0x49f264]
test ebx, ebx
je 0x4192ca
mov dword [ebp - 0x20], 0
jmp 0x419297
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4192c4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41931b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419290
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 0x419290
test byte [ebp - 0x20], 1
jne 0x4192e4
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 0x4192ef
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4192ca
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41931b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4192ec
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4192ec
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.00451670
add esp, 0xc
ud2