Function at 0x140004d80
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
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1670]
mov eax, 0x1770
call fcn.140006eb0
sub rsp, rax
mov rax, qword [0x140036018]
xor rax, rsp
mov qword [rbp + 0x1660], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov eax, dword [0x140036044]
mov edi, eax
mov dword [rsp + 0x20], eax
cmp eax, 0xffffffff
jne 0x140004edc
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, edi
je 0x140004de3
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x140004dff
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.14000b07c
mov ebx, 1
test bl, 1
je 0x140004e23
mov ecx, dword [rbp + 0x2c]
and ebx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbp - 0x48]
call fcn.14000b24c
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
cmp edi, 0xffffffff
jne 0x140004ea2
lea rcx, [rsp + 0x20]
call fcn.14000fda4
mov edi, dword [rsp + 0x20]
test al, al
je 0x140004e3f
cmp edi, 0xffffffff
jne 0x140004e58
or ebx, 2
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
mov r8d, 0x7b
lea rcx, [rbp + 0x30]
call fcn.14000b07c
test bl, 2
je 0x140004e85
mov ecx, dword [rbp + 0x134]
and ebx, 0xfffffffd
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbp + 0xc0]
call fcn.14000b24c
lea rcx, [rbp + 0xc0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsFree]
test bl, 8
je 0x140004ea2
and ebx, 0xfffffff7
lea rcx, [rbp + 0x240]
call fcn.14000b2cc
or eax, 0xffffffff
lock cmpxchg dword [0x140036044], edi
cmp eax, 0xffffffff
je 0x140004ed8
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_TlsFree]
test bl, 0x10
je 0x140004ed0
and ebx, 0xffffffef
lea rcx, [rbp + 0x348]
call fcn.14000b2cc
mov edi, dword [0x140036044]
jmp 0x140004edc
mov edi, dword [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140004f05
or ebx, 4
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
mov r8d, 0x8d
lea rcx, [rbp + 0x138]
call fcn.14000b07c
test bl, 4
je 0x140004f32
mov ecx, dword [rbp + 0x23c]
and ebx, 0xfffffffb
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbp + 0x1c8]
call fcn.14000b24c
lea rcx, [rbp + 0x1c8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor edx, edx
lea rcx, [rbp + 0x660]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x660]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test bl, 0x20
je 0x140004f69
and ebx, 0xffffffdf
lea rcx, [rbp + 0x450]
call fcn.14000b2cc
mov ecx, 0x1000
call fcn.140005f70
mov rsi, rax
lea r8, [rbp + 0x660]
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 0x140004f85
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test bl, 0x40
je 0x140004ffc
lea rcx, [rbp + 0x558]
call fcn.14000b2cc
mov rax, rsi
mov rcx, qword [rbp + 0x1660]
xor rcx, rsp
call fcn.140005c90
lea r11, [rsp + 0x1770]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret