Function at 0x140041040
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.1400c211c
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 0x14004112e
lea rcx, [rsp + 0x2c]
call fcn.1400414b0
test al, al
jne 0x1400410b7
lea rdx, str._var_tmp_build_firefox_0553bfb9087f_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.14001a410
mov rcx, rsi
call fcn.14001a690
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14004110c
lea rcx, [rsp + 0x2c]
call fcn.1400414b0
test al, al
je 0x1400410d5
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x1400410fe
lea rdx, str._var_tmp_build_firefox_0553bfb9087f_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.14001a410
mov rcx, rsi
call fcn.14001a690
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 0x14004112e
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 0x1400412c7
lea rcx, [rsp + 0xa0]
lea rsi, [rsp + 0x38]
lea rax, [0x1400fa078]
mov qword [rsp + 0x30], rax
lea rax, [0x1400fa0a0]
mov qword [rsp + 0xa0], rax
mov rdx, rsi
call fcn.14007fe00
mov qword [rsp + 0x128], 0
mov dword [rsp + 0x130], 0xffffffff
lea r15, [0x1400fa008]
mov qword [rsp + 0x30], r15
lea r12, [0x1400fa030]
mov qword [rsp + 0xa0], r12
mov rcx, rsi
call fcn.1400806f0
lea r13, [0x1400fa0c0]
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.14001b220
lea rdx, [0x1400fbf74]
mov r8d, 2
mov rcx, rax
call fcn.14001b220
mov rcx, rbx
mov edx, edi
call fcn.140083ac0
lea rdx, [0x1400fbf77]
mov r8d, 5
mov rcx, rbx
call fcn.14001b220
mov rcx, rbx
xor edx, edx
call fcn.140083ac0
lea rdx, [0x1400fbf7d]
mov r8d, 1
mov rcx, rbx
call fcn.14001b220
mov ecx, 0x18
call fcn.1400c11a0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14001ae50
mov qword [rsp + 0x30], r15
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x38], r13
test byte [rsp + 0x78], 1
je 0x14004127c
mov rcx, qword [rsp + 0x88]
call fcn.1400c1280
mov rcx, rsi
call fcn.140080420
lea rdx, [0x1400fa048]
lea rcx, [rsp + 0x30]
call fcn.140083390
lea rcx, [rsp + 0xa0]
call fcn.140080370
lea rdx, str._var_tmp_build_firefox_0553bfb9087f_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xec
mov r9, rdi
call fcn.14001a4d0
mov rcx, rsi
call fcn.14001a690
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.1400c1240
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 0x140041341
mov rax, rsi
add rsp, 0x1040
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140076380
int3