Function at 0x40ab30
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 [0x450010]
xor eax, ebp
mov dword [esp + 0x800], eax
mov esi, dword [0x450054]
cmp esi, 0xffffffff
jne 0x40ab7a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x40acb1
xor eax, eax
dec eax
lock cmpxchg dword [0x450054], esi
jne 0x40acec
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
and ebx, 3
jne 0x40abe6
mov ebx, 0x800
mov eax, esp
push ebx
push 0
push eax
call sub.ntdll.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.ntdll.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.004230e0
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.0040f110
push str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
push edi
call fcn.004296f0
add esp, 8
push 0x4497cd
push eax
call fcn.004296f0
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.004296f0
add esp, 8
mov ecx, edi
push 0
call ebx
push 0x4497cb
push edi
call fcn.004296f0
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.0040f1c0
lea ebx, [esp + 0x50]
mov eax, dword [ebx - 0x50]
mov eax, dword [eax + 4]
mov dword [esp + eax], 0x445530
mov eax, dword [ebx - 0x50]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [esp + eax - 4], ecx
mov dword [ebx - 0x4c], 0x445540
lea ecx, [esp + 4]
call fcn.0040f230
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.0042b520
mov ecx, ebx
call fcn.0042b5b0
jmp 0x40ab88
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.0042b4e0
mov ecx, esi
call fcn.0042b5b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x40ad00
push 0xffffffffffffffff
call fcn.0042f830
add esp, 4
jmp 0x40ab69
push esi
call fcn.0042f830
add esp, 4
mov esi, dword [0x450054]
jmp 0x40ab7a
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.0042b4e0
mov ecx, edi
call fcn.0042b5b0
jmp 0x40acdd