Function at 0x140006030
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1770
call fcn.140008100
sub rsp, rax
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x1760], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov eax, dword [0x140038044]
mov edi, eax
mov dword [rsp + 0x20], eax
cmp eax, 0xffffffff
jne 0x14000615c
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, edi
je 0x140006087
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x1400060a3
mov r8d, 0x71
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rcx, [rsp + 0x28]
call fcn.14000ca40
mov ebx, 1
test bl, 1
je 0x1400060b5
and ebx, 0xfffffffe
lea rcx, [rsp + 0x28]
call fcn.14000cd3c
cmp edi, 0xffffffff
jne 0x140006121
lea rcx, [rsp + 0x20]
call fcn.140011840
mov edi, dword [rsp + 0x20]
test al, al
je 0x1400060d1
cmp edi, 0xffffffff
jne 0x1400060ee
or ebx, 2
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
mov r8d, 0x7b
lea rcx, [rsp + 0x130]
call fcn.14000ca40
test bl, 2
je 0x140006103
and ebx, 0xfffffffd
lea rcx, [rsp + 0x130]
call fcn.14000cd3c
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsFree]
test bl, 8
je 0x140006121
and ebx, 0xfffffff7
lea rcx, [rsp + 0x340]
call fcn.14000cd3c
or eax, 0xffffffff
lock cmpxchg dword [0x140038044], edi
cmp eax, 0xffffffff
je 0x140006158
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_TlsFree]
test bl, 0x10
je 0x140006150
and ebx, 0xffffffef
lea rcx, [rsp + 0x448]
call fcn.14000cd3c
mov edi, dword [0x140038044]
jmp 0x14000615c
mov edi, dword [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140006186
or ebx, 4
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
mov r8d, 0x8d
lea rcx, [rsp + 0x238]
call fcn.14000ca40
test bl, 4
je 0x14000619b
and ebx, 0xfffffffb
lea rcx, [rsp + 0x238]
call fcn.14000cd3c
xor edx, edx
lea rcx, [rsp + 0x760]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x760]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test bl, 0x20
je 0x1400061d5
and ebx, 0xffffffdf
lea rcx, [rsp + 0x550]
call fcn.14000cd3c
mov ecx, 0x1000
call fcn.1400071ec
mov rsi, rax
lea r8, [rsp + 0x760]
mov rdx, rax
mov eax, 0x20
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [r8]
lea r8, [r8 + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [r8 - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [r8 - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [r8 - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [r8 - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [r8 - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [r8 - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [r8 - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub rax, 1
jne 0x1400061f2
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test bl, 0x40
je 0x14000626a
lea rcx, [rsp + 0x658]
call fcn.14000cd3c
mov rax, rsi
mov rcx, qword [rsp + 0x1760]
xor rcx, rsp
call fcn.140006f20
lea r11, [rsp + 0x1770]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret