Function at 0x140041060
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 rbx
mov eax, 0x1040
call fcn.1400c217c
sub rsp, rax
mov r14, qword [0x1400f7448]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x1038], rax
mov ecx, dword [0x14014f040]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14004114e
lea rcx, [rsp + 0x2c]
call fcn.1400414d0
test al, al
jne 0x1400410d7
lea rdx, str._var_tmp_build_firefox_7913966da16e_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.14001a430
mov rcx, rsi
call fcn.14001a6b0
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14004112c
lea rcx, [rsp + 0x2c]
call fcn.1400414d0
test al, al
je 0x1400410f5
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x14004111e
lea rdx, str._var_tmp_build_firefox_7913966da16e_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.14001a430
mov rcx, rsi
call fcn.14001a6b0
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x14014f040], ecx
mov ecx, dword [rsp + 0x2c]
je 0x14004114e
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14014f040]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
and edi, 3
je 0x1400412e7
lea rcx, [rsp + 0xa0]
lea rsi, [rsp + 0x38]
lea rax, [0x1400fa0f8]
mov qword [rsp + 0x30], rax
lea rax, [0x1400fa120]
mov qword [rsp + 0xa0], rax
mov rdx, rsi
call fcn.14007fe60
mov qword [rsp + 0x128], 0
mov dword [rsp + 0x130], 0xffffffff
lea r15, [0x1400fa088]
mov qword [rsp + 0x30], r15
lea r12, [0x1400fa0b0]
mov qword [rsp + 0xa0], r12
mov rcx, rsi
call fcn.140080750
lea r13, [0x1400fa140]
mov qword [rsp + 0x38], r13
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 rbx, [rsp + 0x30]
mov r8d, 0x40
mov rcx, rbx
call fcn.14001b240
lea rdx, [0x1400fbff4]
mov r8d, 2
mov rcx, rax
call fcn.14001b240
mov rcx, rbx
mov edx, edi
call fcn.140083b20
lea rdx, [0x1400fbff7]
mov r8d, 5
mov rcx, rbx
call fcn.14001b240
mov rcx, rbx
xor edx, edx
call fcn.140083b20
lea rdx, [0x1400fbffd]
mov r8d, 1
mov rcx, rbx
call fcn.14001b240
mov ecx, 0x18
call fcn.1400c1200
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14001ae70
mov qword [rsp + 0x30], r15
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x38], r13
test byte [rsp + 0x78], 1
je 0x14004129c
mov rcx, qword [rsp + 0x88]
call fcn.1400c12e0
mov rcx, rsi
call fcn.140080480
lea rdx, [0x1400fa0c8]
lea rcx, [rsp + 0x30]
call fcn.1400833f0
lea rcx, [rsp + 0xa0]
call fcn.1400803d0
lea rdx, str._var_tmp_build_firefox_7913966da16e_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xec
mov r9, rdi
call fcn.14001a4f0
mov rcx, rsi
call fcn.14001a6b0
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.1400c12a0
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 + 0x1038]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140041361
mov rax, rsi
add rsp, 0x1040
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400763e0
int3