Function at 0x140002780
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x1040
call fcn.140027a20
sub rsp, rax
mov rax, qword [0x14005f018]
xor rax, rsp
mov qword [rsp + 0x1038], rax
mov ecx, dword [0x14005f070]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x1400027e7
lea rcx, [rsp + 0x2c]
call fcn.140028c80
test al, al
je 0x140002968
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140002996
mov eax, 0xffffffff
lock cmpxchg dword [0x14005f070], ecx
mov ecx, dword [rsp + 0x2c]
jne 0x1400029e7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
and edi, 3
jne 0x140002865
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.ntdll.dll_memset
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
mov rbx, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rbx
mov ecx, 0x1000
call sub.mozglue.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call sub.ntdll.dll_memcpy
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call rbx
mov rcx, qword [rsp + 0x1038]
xor rcx, rsp
call fcn.140027a90
mov rax, rdi
add rsp, 0x1040
pop rbx
pop rdi
pop rsi
ret
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov edx, 2
mov r8d, 1
call fcn.140021330
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
mov rcx, rsi
call fcn.140032f50
lea rdx, [0x140055713]
mov rcx, rax
call fcn.140032f50
mov rbx, 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, rsi
mov edx, edi
call rbx
lea rdx, str._vs.
mov rcx, rsi
call fcn.140032f50
mov rcx, rsi
xor edx, edx
call rbx
lea rdx, [0x140055711]
mov rcx, rsi
call fcn.140032f50
mov ecx, 0x20
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, rax
call fcn.140020dd0
lea rbx, [rsp + 0xb8]
mov rax, qword [rdi - 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x140051530]
mov qword [rsp + rax + 0x30], rcx
mov rax, qword [rdi - 8]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsp + rax + 0x2c], ecx
lea rax, [0x140051550]
mov qword [rbx - 0x80], rax
mov rcx, rdi
call fcn.140021650
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, rbx
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 rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0xec
mov r9, rsi
call fcn.140034a50
mov rcx, rdi
call fcn.140034ac0
jmp 0x1400027f5
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xd0
call fcn.140034a00
mov rcx, rsi
call fcn.140034ac0
jmp 0x1400027c3
lea rcx, [rsp + 0x2c]
call fcn.140028c80
test al, al
je 0x1400029ab
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x1400029d4
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xda
call fcn.140034a00
mov rcx, rsi
call fcn.140034ac0
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400027d0
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14005f070]
mov dword [rsp + 0x2c], ecx
jmp 0x1400027e7