Function at 0x40eea0
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 0x40eeea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x40f021
xor eax, eax
dec eax
lock cmpxchg dword [0x438020], esi
jne 0x40f05c
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
and ebx, 3
jne 0x40ef56
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.00414c00
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.00412150
push str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
push edi
call fcn.0041b430
add esp, 8
push 0x4337b3
push eax
call fcn.0041b430
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.0041b430
add esp, 8
mov ecx, edi
push 0
call ebx
push 0x4337b1
push edi
call fcn.0041b430
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], 0x43110c
mov eax, dword [ebx - 0x50]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [esp + eax - 4], ecx
mov dword [ebx - 0x4c], 0x431120
lea ecx, [esp + 4]
call fcn.00412200
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.0041b070
mov ecx, ebx
call fcn.0041b100
jmp 0x40eef8
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.0041b030
mov ecx, esi
call fcn.0041b100
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x40f070
push 0xffffffffffffffff
call fcn.0041ec40
add esp, 4
jmp 0x40eed9
push esi
call fcn.0041ec40
add esp, 4
mov esi, dword [0x438020]
jmp 0x40eeea
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.0041b030
mov ecx, edi
call fcn.0041b100
jmp 0x40f04d