Function at 0x180011e20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x7e8]
xor esi, esi
mov rbx, rcx
mov r14d, esi
mov r15d, esi
mov ebp, esi
test rdi, rdi
je 0x18001229f
nop word [rax + rax]
mov rdx, qword [rdi]
mov eax, dword [rdx]
dec eax
cmp eax, 1
ja 0x180011ed1
cmp qword [rdi + 0x40], rsi
je 0x180011ed1
test ebp, ebp
je 0x180011ead
test byte [rdi + 0x20], 1
je 0x180011ead
mov rdx, qword [rdx + 8]
lea rcx, str.Backend__s_forcing_a_reconnect_of_levels_n
call fcn.18000e350
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.180010ee0
mov rcx, rbx
call fcn.1800114b0
test eax, eax
js 0x1800122ab
mov ebp, esi
mov rcx, rdi
call qword [rdi + 0x40]
test eax, eax
js 0x180011ed1
mov rcx, qword [rdi]
lea edx, [rax + r14]
cmp dword [rcx], 2
cmovne edx, r14d
inc r15d
mov r14d, edx
test eax, eax
jle 0x180011ed1
inc ebp
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x180011e60
test r15d, r15d
je 0x18001229f
mov rcx, rbx
call fcn.180016720
mov rcx, rbx
call fcn.180018570
mov rcx, qword [rbx + 0x208]
xor edx, edx
mov rcx, qword [rcx]
call fcn.18000fa00
cmp qword [rbx + 0x7a0], rsi
je 0x180011f46
cmp dword [rbx + 0x66c], esi
je 0x180011f46
lea rcx, str.HWLOC_THISSYSTEM_ALLOWED_RESOURCES
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180011f34
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x180011f3d
test byte [rbx + 0x608], 0x40
je 0x180011f46
mov rcx, rbx
call qword [rbx + 0x7a0]
mov rcx, qword [rbx + 0x208]
xor edx, edx
mov rcx, qword [rcx]
call fcn.18000fad0
mov rax, qword [rbx + 0x208]
mov rdi, qword [rax]
mov rax, qword [rdi + 0xc8]
test rax, rax
je 0x180012046
cmp dword [rax + 0x10], esi
jne 0x180012046
mov edx, dword [rax]
mov ecx, esi
test edx, edx
je 0x180011fa2
mov r8, qword [rax + 8]
nop word [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], esi
jne 0x180012046
inc ecx
cmp ecx, edx
jb 0x180011f90
mov rdi, qword [rdi + 0xc0]
test rdi, rdi
je 0x180011fc1
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbx + 0x208]
mov rcx, qword [rax]
mov qword [rcx + 0xc0], rsi
mov rax, qword [rbx + 0x208]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0xc8]
test rdi, rdi
je 0x180011ffb
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbx + 0x208]
mov rcx, qword [rax]
mov qword [rcx + 0xc8], rsi
mov rax, qword [rbx + 0x208]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0xd0]
test rdi, rdi
je 0x180012035
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbx + 0x208]
mov rcx, qword [rax]
mov qword [rcx + 0xd0], rsi
mov rcx, qword [rbx + 0x208]
xor edx, edx
mov rcx, qword [rcx]
call fcn.18000feb0
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.1800100a0
test byte [rbx + 0x608], 1
jne 0x18001207e
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.180010300
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.18000fdf0
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.180010ee0
mov rcx, rbx
call fcn.1800114b0
test eax, eax
js 0x1800122ab
mov rdi, qword [rbx + 0x7e8]
mov ebp, esi
test rdi, rdi
je 0x180012129
nop word [rax + rax]
mov rdx, qword [rdi]
mov eax, dword [rdx]
dec eax
cmp eax, 1
jbe 0x180012120
cmp qword [rdi + 0x40], rsi
je 0x180012120
test ebp, ebp
je 0x18001210d
test byte [rdi + 0x20], 1
je 0x18001210d
mov rdx, qword [rdx + 8]
lea rcx, str.Backend__s_forcing_a_reconnect_of_levels_n
call fcn.18000e350
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.180010ee0
mov rcx, rbx
call fcn.1800114b0
test eax, eax
js 0x1800122ab
mov ebp, esi
mov rcx, rdi
call qword [rdi + 0x40]
test eax, eax
js 0x180012120
add r14d, eax
test eax, eax
jle 0x180012120
inc ebp
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x1800120c0
test r14d, r14d
je 0x180012155
mov rdx, qword [rbx + 0x208]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.180010b40
mov rdx, qword [rbx + 0x208]
xor r8d, r8d
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.180010cf0
mov rdx, qword [rbx + 0x208]
mov rcx, rbx
call fcn.1800104e0
mov rdx, qword [rbx + 0x208]
mov rcx, rbx
call fcn.180010610
mov rdx, qword [rbx + 0x208]
cmp qword [rdx], rsi
jne 0x1800121a0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Topology_became_empty__aborting__n
call fcn.18000e2a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rcx, rbx
call fcn.1800107c0
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.180010ee0
mov rcx, rbx
call fcn.1800114b0
test eax, eax
js 0x1800122ab
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.18000f930
mov rcx, rbx
call fcn.180016660
mov rcx, rbx
call fcn.180016720
mov rcx, rbx
call fcn.180017520
mov rax, qword [rbx + 0x7e8]
test rax, rax
je 0x18001229b
mov rax, qword [rax]
lea rdx, [0x180074044]
mov rcx, qword [rax + 8]
nop dword [rax]
movzx eax, byte [rcx + rsi]
inc rsi
cmp al, byte [rdx + rsi - 1]
jne 0x18001222a
cmp rsi, 4
jne 0x180012210
xor eax, eax
jmp 0x1800122ae
mov rax, qword [rbx + 0x208]
mov rsi, qword [rax]
mov ebp, dword [rsi + 0xf0]
mov rdi, qword [rsi + 0xe8]
lea eax, [rbp + 8]
and eax, 0xfffffff8
cmp ebp, eax
je 0x180012262
mov edx, eax
mov rcx, rdi
shl rdx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdi, rax
test rax, rax
je 0x18001229b
mov rbx, rbp
lea rcx, str.hwlocVersion
add rbx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
lea rcx, str.1.11.7
mov qword [rdi + rbx*8], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rdi + rbx*8 + 8], rax
lea eax, [rbp + 1]
mov qword [rsi + 0xe8], rdi
mov dword [rsi + 0xf0], eax
xor eax, eax
jmp 0x1800122ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret