Function at 0x180223160
Capabilities:
Allocate thread local storage
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0xa0
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov esi, 1
xor eax, eax
mov ebx, esi
lock cmpxchg byte [0x1806d4c53], sil
je 0x1802231be
cmp ebx, 0x10
jg 0x1802231ab
movsxd rax, ebx
test ebx, ebx
je 0x1802231a7
nop
pause
sub rax, rsi
jne 0x1802231a0
add ebx, ebx
jmp 0x1802231b1
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg byte [0x1806d4c53], sil
jne 0x180223193
cmp byte [0x1806d4ea0], 0
jne 0x180223468
mov eax, esi
lock xadd dword [0x1806d4e6c], eax
inc eax
cmp eax, esi
jne 0x180223212
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x180223490
mov dword [0x1806d4e68], eax
xor ecx, ecx
mov eax, 7
xorps xmm0, xmm0
cpuid
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], edx
lea rcx, str.TBB_VERSION
mov qword [rsp + 0xb0], rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180223265
movzx ecx, byte [rax]
cmp cl, byte [0x1805efc54]
jne 0x180223243
movzx eax, byte [rax + 1]
cmp al, byte [0x1805efc55]
je 0x180223265
mov ecx, 2
mov byte [0x1806d5867], sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
lea rcx, str.TBB:_VERSION_t_t4.4_nTBB:_INTERFACE_VERSION_t9003_nTBB:_BUILD_DATE_t_tAug__8_202414:23:38_nEmptyTBB:_TBB_USE_DEBUG_t0_nTBB:_TBB_USE_ASSERT_t0_nTBB:_DO_ITT_NOTIFY_t1_n
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
call fcn.180223100
mov eax, dword [0x18075c6e0]
movzx edi, byte [0x1806d5865]
cmp eax, 2
je 0x1802232e7
nop dword [rax]
mov eax, dword [0x18075c6e0]
test eax, eax
jne 0x180223294
lock cmpxchg dword [0x18075c6e0], esi
je 0x1802232d8
mov eax, dword [0x18075c6e0]
mov ebx, esi
cmp eax, ebx
jne 0x1802232cb
cmp ebx, 0x10
jg 0x1802232bb
movsxd rax, ebx
test ebx, ebx
je 0x1802232b7
nop dword [rax]
pause
sub rax, rsi
jne 0x1802232b0
add ebx, ebx
jmp 0x1802232c1
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov eax, dword [0x18075c6e0]
cmp eax, esi
je 0x1802232a0
mov eax, dword [0x18075c6e0]
cmp eax, 2
jne 0x180223280
jmp 0x1802232e7
call fcn.18021d6f0
mov dword [0x18075c6e0], 2
lea rax, str.__RML_open_factory
mov dword [rsp + 0x20], 7
mov qword [rsp + 0x50], rax
lea r9, [0x1806d4e80]
lea rax, [rsp + 0x48]
mov r8d, 4
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rax, str.__TBB_make_rml_server
mov qword [rsp + 0x60], rax
lea rcx, str.irml.dll
lea rax, [0x1806d4e88]
mov qword [rsp + 0x68], rax
lea rax, str.__RML_close_factory
mov qword [rsp + 0x70], rax
lea rax, [0x1806d4e78]
mov qword [rsp + 0x78], rax
lea rax, str.__TBB_call_with_my_server_info
mov qword [rsp + 0x80], rax
lea rax, [0x1806d4e90]
mov qword [rsp + 0x88], rax
call fcn.18022d2b0
test al, al
je 0x18022338d
mov r8d, 2
lea rdx, [rsp + 0x44]
lea rcx, [0x1806d4e70]
call qword [rsp + 0x48]
jmp 0x18022339d
mov qword [0x1806d4e80], 0
mov eax, 2
test eax, eax
mov qword [0x1806c82f8], 2
lea rcx, [0x18021fc50]
mov qword [0x1806c8300], 2
setne byte [0x1806d4ea1]
lea rax, [0x18021fb70]
test dil, dil
cmovne rax, rcx
mov qword [0x1806d4ea8], rax
call fcn.1801d1f20
cmp byte [0x1806d4ea1], 0
lea rcx, [0x1805f4974]
je 0x1802233fb
lea rdx, str.private
call fcn.18022d080
jmp 0x18022341b
lea rdx, str.shared
call fcn.18022d080
lea rdx, [0x1805e24b8]
lea rcx, [0x18022d150]
call qword [0x1806d4e90]
cmp qword [0x1806d4e50], 0
je 0x180223438
lea rdx, str.cilkrts20.dll
lea rcx, str.CILK
call fcn.18022d080
test dil, dil
lea rax, str.enabled
lea rdx, str.disabled
cmovne rdx, rax
lea rcx, str.Tools_support
call fcn.18022d080
mov rdi, qword [rsp + 0xb0]
mov byte [0x1806d4ea0], sil
mov byte [0x1806d4c53], 0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rsi
ret
mov ecx, 0xffffffff
call fcn.18022cfc0
int3