Function at 0x411b20
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x438014]
xor eax, ebp
mov dword [esp + 0x800], eax
mov esi, dword [0x438020]
cmp esi, 0xffffffff
jne 0x411b6a
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x411ca1
xor eax, eax
dec eax
lock cmpxchg dword [0x438020], esi
jne 0x411cdc
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
and ebx, 3
jne 0x411bd6
mov ebx, 0x800
mov eax, esp
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 3]
push eax
push esi
call dword [sym.imp.kernel32.dll_TlsSetValue]
push ebx
call sub.mozglue.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov edi, eax
push ebx
lea eax, [esp + 4]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, edi
or eax, 3
push eax
push esi
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esp + 0x800]
xor ecx, ebp
call fcn.00417da0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, esp
mov ecx, edi
push 1
call fcn.004150d0
push str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
push edi
call fcn.0041bce0
add esp, 8
push 0x4337a3
push eax
call fcn.0041bce0
add esp, 8
mov eax, dword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, edi
push ebx
mov ebx, eax
call eax
push str._vs.
push edi
call fcn.0041bce0
add esp, 8
mov ecx, edi
push 0
call ebx
push 0x4337a1
push edi
call fcn.0041bce0
add esp, 8
push 0x18
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea ecx, [esp + 4]
push eax
call fcn.004011d0
lea ebx, [esp + 0x50]
mov eax, dword [ebx - 0x50]
mov eax, dword [eax + 4]
mov dword [esp + eax], 0x4310f8
mov eax, dword [ebx - 0x50]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [esp + eax - 4], ecx
mov dword [ebx - 0x4c], 0x431110
lea ecx, [esp + 4]
call fcn.00415180
lea ecx, [esp + 4]
call dword [sym.imp.msvcp140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, ebx
call dword [sym.imp.msvcp140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ebx, esp
mov ecx, ebx
push edi
push 0xec
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0041b920
mov ecx, ebx
call fcn.0041b9b0
jmp 0x411b78
mov esi, esp
mov ecx, esi
push str.PlatformThreadLocalStorage::AllocTLS_key_
push 0xd0
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0041b8e0
mov ecx, esi
call fcn.0041b9b0
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x411cf0
push 0xffffffffffffffff
call fcn.0041f510
add esp, 4
jmp 0x411b59
push esi
call fcn.0041f510
add esp, 4
mov esi, dword [0x438020]
jmp 0x411b6a
mov edi, esp
mov ecx, edi
push str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
push 0xda
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.0041b8e0
mov ecx, edi
call fcn.0041b9b0
jmp 0x411ccd