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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1038
call fcn.1400c80bc
sub rsp, rax
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x140134048]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14004032f
lea rcx, [rsp + 0x2c]
call fcn.1400406a0
test al, al
jne 0x1400402b8
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_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.14001e070
mov rcx, rsi
call fcn.14001e310
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14004030d
lea rcx, [rsp + 0x2c]
call fcn.1400406a0
test al, al
je 0x1400402d6
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x1400402ff
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_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.14001e070
mov rcx, rsi
call fcn.14001e310
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x140134048], ecx
mov ecx, dword [rsp + 0x2c]
je 0x14004032f
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140134048]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
and ebx, 3
je 0x1400404c6
lea rsi, [rsp + 0xa0]
lea rdi, [rsp + 0x38]
lea rax, [0x1400fa6f8]
mov qword [rsp + 0x30], rax
lea rax, [0x1400fa720]
mov qword [rsp + 0xa0], rax
mov rcx, rsi
mov rdx, rdi
call fcn.140082f20
mov qword [rsp + 0x128], 0
mov dword [rsp + 0x130], 0xffffffff
lea r12, [0x1400fa688]
mov qword [rsp + 0x30], r12
lea r13, [0x1400fa6b0]
mov qword [rsp + 0xa0], r13
mov rcx, rdi
call fcn.1400837e0
lea rbp, [0x1400fa740]
mov qword [rsp + 0x38], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
mov dword [rsp + 0x98], 0x10
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
lea r14, [rsp + 0x30]
mov r8d, 0x40
mov rcx, r14
call fcn.14001ed60
lea rdx, [0x1400fc4f4]
mov r8d, 2
mov rcx, rax
call fcn.14001ed60
mov rcx, r14
mov edx, ebx
call fcn.140086b40
lea rdx, [0x1400fc4f7]
mov r8d, 5
mov rcx, r14
call fcn.14001ed60
mov rcx, r14
xor edx, edx
call fcn.140086b40
lea rdx, [0x1400fc4fd]
mov r8d, 1
mov rcx, r14
call fcn.14001ed60
mov ecx, 0x18
call fcn.1400c70b0
mov rbx, rax
mov rcx, rax
mov rdx, rdi
call fcn.14001eaf0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0x38], rbp
test byte [rsp + 0x78], 1
je 0x140040480
mov rcx, qword [rsp + 0x88]
call fcn.1400c7190
mov rcx, rdi
call fcn.140083520
lea rdx, [0x1400fa6c8]
lea rcx, [rsp + 0x30]
call fcn.140086410
mov rcx, rsi
call fcn.140083470
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xec
mov r9, rbx
call fcn.14001e130
mov rcx, rsi
call fcn.14001e310
lea rdi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.ntdll.dll_memset
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400c7150
mov rsi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call sub.ntdll.dll_memcpy
mov ecx, dword [rsp + 0x2c]
mov rdx, rsi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [rsp + 0x1030]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140040541
mov rax, rsi
add rsp, 0x1038
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c8850
int3