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

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x1040
call fcn.14004cdb0
sub rsp, rax
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x1038], rax
mov ecx, dword [0x14005b070]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x140020207
lea rcx, [rsp + 0x2c]
call fcn.140020540
test al, al
je 0x14002038b
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400203b9
mov eax, 0xffffffff
lock cmpxchg dword [0x14005b070], ecx
mov ecx, dword [rsp + 0x2c]
jne 0x14002040a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
and edi, 3
jne 0x140020285
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.14004ce20
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.140010430
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
mov rcx, rsi
call fcn.140010530
lea rdx, [0x140052228]
mov rcx, rax
call fcn.140010530
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.140010530
mov rcx, rsi
xor edx, edx
call rbx
lea rdx, [0x140052226]
mov rcx, rsi
call fcn.140010530
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.140011470
lea rbx, [rsp + 0xb8]
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 4]
lea rcx, [0x14004e500]
mov qword [rsp + rax + 0x30], rcx
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsp + rax + 0x2c], ecx
lea rax, [0x14004e520]
mov qword [rsp + 0x38], rax
mov rcx, rdi
call fcn.1400112e0
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.140016b50
mov rcx, rdi
call fcn.140016c00
jmp 0x140020215
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.140016b00
mov rcx, rsi
call fcn.140016c00
jmp 0x1400201e3
lea rcx, [rsp + 0x2c]
call fcn.140020540
test al, al
je 0x1400203ce
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x1400203f7
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.140016b00
mov rcx, rsi
call fcn.140016c00
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400201f0
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14005b070]
mov dword [rsp + 0x2c], ecx
jmp 0x140020207