Function at 0x1801ea460
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov edi, edx
movzx r12d, cl
mov byte [rax - 0x38], 0
lea rcx, [0x18067c9f2]
mov qword [rax - 0x40], rcx
call fcn.180199c30
nop
mov rbx, qword [0x18067c2a0]
test rbx, rbx
je 0x1801ea539
inc dword [rbx + 0xc8]
test r12b, r12b
je 0x1801ea4cf
mov esi, dword [rbx + 0xcc]
lea eax, [rsi + 1]
mov dword [rbx + 0xcc], eax
jmp 0x1801ea4d4
mov esi, 1
mov byte [0x18067c9f2], 0
xor ebp, ebp
mov qword [rsp + 0x38], rbp
test esi, esi
jne 0x1801ea4f7
mov edx, dword [rbx + 0x18]
mov ecx, edi
call fcn.1801ea400
mov ecx, eax
call fcn.1801ea830
call fcn.18019a950
dec eax
cmp edi, eax
je 0x1801ea75d
mov esi, dword [rbx + 0xdc]
cmp esi, edi
jae 0x1801ea75d
mov r8d, edi
mov edx, esi
lea rcx, str.The_number_of_workers_is_currently_limited_to__u._The_request_for__u_workers_is_ignored._Further_requests_for_more_workers_will_be_silently_ignored_until_the_limit_changes._n
call fcn.1801f59d0
mov ecx, 0xffffffff
mov eax, esi
lock cmpxchg dword [rbx + 0xdc], ecx
jmp 0x1801ea75d
mov rcx, qword [0x18058e918]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r13, rax
call fcn.18019a950
mov ebx, 2
mov ecx, 4
cmp eax, 0x80
cmovbe ebx, ecx
mov rcx, qword [0x180671240]
xor ebp, ebp
mov r15d, ebp
test rcx, rcx
cmovne r15d, dword [0x180671238]
call fcn.18019a950
imul eax, ebx
cmp eax, r15d
cmovae r15d, eax
mov rax, qword [0x180671240]
test rax, rax
je 0x1801ea5a2
mov rax, qword [0x180671238]
test eax, eax
je 0x1801ea5a2
lea edi, [rax - 1]
jmp 0x1801ea5ae
call fcn.18019a950
dec eax
cmp eax, edi
cmovae edi, eax
lea eax, [r15 - 1]
mov r14d, eax
cmp edi, r15d
cmovb r14d, edi
lea rdi, [rax*8 + 0x100]
mov esi, 1
mov eax, esi
lock xadd dword [0x18067c2a8], eax
inc eax
cmp eax, esi
jne 0x1801ea610
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1801ea78b
mov dword [0x18067c294], eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov eax, 7
xor ecx, ecx
cpuid
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], ebx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
mov rdx, rdi
mov rcx, rsi
call fcn.1801e6550
mov rbx, rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, vtable.tbb::internal::market.0
mov qword [rbx], rax
mov qword [rbx + 8], rbp
mov dword [rbx + 0x18], r15d
mov dword [rbx + 0x1c], r14d
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], rsi
lea rcx, [rbx + 0x48]
mov qword [rcx + 0x10], rbp
mov qword [rcx], rcx
mov qword [rcx + 8], rcx
lea rax, [rcx + 0x28]
mov qword [rax + 0x10], rbp
mov qword [rax], rax
mov qword [rax + 8], rax
lea rax, [rcx + 0x50]
mov qword [rax + 0x10], rbp
mov qword [rax], rax
mov qword [rax + 8], rax
mov dword [rbx + 0xc8], esi
mov qword [rbx + 0xd0], r13
mov dword [rbx + 0xdc], r14d
lea rax, [rbx + 0xe0]
mov qword [rax + 0x10], rbp
mov qword [rax], rax
mov qword [rax + 8], rax
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x94], eax
mov qword [rsp + 0x90], rbp
cmp byte [0x18067c2e0], bpl
jne 0x1801ea6f4
mov r8, rbx
lea rdx, [rsp + 0x90]
lea rcx, [0x18067c2b8]
call qword [0x18067c2d0]
test eax, eax
je 0x1801ea6e7
mov byte [0x18067c2e0], sil
mov edx, eax
lea rcx, str.rml::tbb_factory::make_server_failed_with_status__x__falling_back_on_private_rml
call fcn.1801f59d0
mov rcx, qword [rsp + 0x90]
test rcx, rcx
jne 0x1801ea717
mov edx, 0x40
mov rcx, rsi
call fcn.1801e6550
mov rdx, rbx
mov rcx, rax
call fcn.1801f6600
mov rcx, rax
mov qword [rsp + 0x90], rax
mov qword [rbx + 0x10], rcx
test r12b, r12b
je 0x1801ea726
mov dword [rbx + 0xcc], esi
mov qword [0x18067c2a0], rbx
cmp byte [0x18067c2e0], bpl
jne 0x1801ea75d
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp eax, r14d
jae 0x1801ea75d
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov edx, eax
mov r8d, r14d
lea rcx, str.RML_might_limit_the_number_of_workers_to__u_while__u_is_requested._n
call fcn.1801f59d0
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1801ea76a
mov byte [rax], 0
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0xffffffff
call fcn.1801f5b40
int3