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

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x1040
call fcn.14001bc00
sub rsp, rax
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x1038], rax
mov ecx, dword [0x14005c070]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x1400027a7
lea rcx, [rsp + 0x2c]
call fcn.14001ca90
test al, al
je 0x140002928
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140002956
mov eax, 0xffffffff
lock cmpxchg dword [0x14005c070], ecx
mov ecx, dword [rsp + 0x2c]
jne 0x1400029a7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
and edi, 3
jne 0x140002825
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.14001bc70
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.140015030
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
mov rcx, rsi
call fcn.140015130
lea rdx, [0x1400524aa]
mov rcx, rax
call fcn.140015130
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.140015130
mov rcx, rsi
xor edx, edx
call rbx
lea rdx, [0x1400524a8]
mov rcx, rsi
call fcn.140015130
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.140015320
lea rbx, [rsp + 0xb8]
mov rax, qword [rdi - 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x14004e510]
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, [0x14004e530]
mov qword [rbx - 0x80], rax
mov rcx, rdi
call fcn.1400153c0
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.140024e70
mov rcx, rdi
call fcn.140024d60
jmp 0x1400027b5
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.140024d10
mov rcx, rsi
call fcn.140024d60
jmp 0x140002783
lea rcx, [rsp + 0x2c]
call fcn.14001ca90
test al, al
je 0x14000296b
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140002994
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.140024d10
mov rcx, rsi
call fcn.140024d60
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140002790
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14005c070]
mov dword [rsp + 0x2c], ecx
jmp 0x1400027a7