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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.14001c360
sub rsp, rax
mov rax, qword [0x140042028]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x140042038]
cmp esi, 0xffffffff
jne 0x14000a033
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000a1ad
mov eax, 0xffffffff
lock cmpxchg dword [0x140042038], esi
jne 0x14000a20d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
and ebx, 3
jne 0x14000a0b3
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call sub.mozglue.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14001c330
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.140017ef0
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
mov rcx, rdi
call fcn.1400204e0
lea rdx, [0x14003b4d0]
mov rcx, rdi
call fcn.1400204e0
mov r14, qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rdi
mov edx, ebx
call r14
lea rdx, str._vs.
mov rcx, rdi
call fcn.1400204e0
mov rcx, rdi
xor edx, edx
call r14
lea rdx, [0x14003b4ce]
mov rcx, rdi
call fcn.1400204e0
mov ecx, 0x20
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rax
call fcn.1400010e0
lea r14, [rsp + 0xa8]
mov rax, qword [rbx - 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x140039c98]
mov qword [rsp + rax + 0x20], rcx
mov rax, qword [rbx - 8]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsp + rax + 0x1c], ecx
lea rax, [0x140039cb0]
mov qword [r14 - 0x80], rax
mov rcx, rbx
call fcn.1400181b0
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, r14
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::ios_base::destructor_void____ptr64]
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0xec
mov r9, rdi
call fcn.1400200a0
mov rcx, rbx
call fcn.140020140
jmp 0x14000a043
lea rsi, [rsp + 0x28]
mov dword [rsi - 8], 3
mov rcx, rsi
call fcn.140017ef0
lea rdi, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
mov qword [rsi + 0xf0], rdi
mov dword [rsi + 0xf8], 0xd0
lea rcx, [rsp + 0x130]
call fcn.1400221c0
lea rcx, [rsp + 0x20]
call fcn.140020140
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000a220
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsFree]
jmp 0x14000a020
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x140042038]
jmp 0x14000a033
lea rsi, [rsp + 0x28]
mov dword [rsi - 8], 3
mov rcx, rsi
call fcn.140017ef0
mov qword [rsi + 0xf0], rdi
mov dword [rsi + 0xf8], 0xda
lea rcx, [rsp + 0x130]
call fcn.1400221c0
lea rcx, [rsp + 0x20]
call fcn.140020140
mov esi, 0xffffffff
jmp 0x14000a1fd