Function at 0x1800118b0
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 0x180011d2f
nop word [rax + rax]
mov rdx, qword [rdi]
mov eax, dword [rdx]
dec eax
cmp eax, 1
ja 0x180011961
cmp qword [rdi + 0x40], rsi
je 0x180011961
test ebp, ebp
je 0x18001193d
test byte [rdi + 0x20], 1
je 0x18001193d
mov rdx, qword [rdx + 8]
lea rcx, str.Backend__s_forcing_a_reconnect_of_levels_n
call fcn.18000dde0
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.180010970
mov rcx, rbx
call fcn.180010f40
test eax, eax
js 0x180011d3b
mov ebp, esi
mov rcx, rdi
call qword [rdi + 0x40]
test eax, eax
js 0x180011961
mov rcx, qword [rdi]
lea edx, [rax + r14]
cmp dword [rcx], 2
cmovne edx, r14d
inc r15d
mov r14d, edx
test eax, eax
jle 0x180011961
inc ebp
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x1800118f0
test r15d, r15d
je 0x180011d2f
mov rcx, rbx
call fcn.1800161b0
mov rcx, rbx
call fcn.180018000
mov rcx, qword [rbx + 0x208]
xor edx, edx
mov rcx, qword [rcx]
call fcn.18000f490
cmp qword [rbx + 0x7a0], rsi
je 0x1800119d6
cmp dword [rbx + 0x66c], esi
je 0x1800119d6
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 0x1800119c4
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x1800119cd
test byte [rbx + 0x608], 0x40
je 0x1800119d6
mov rcx, rbx
call qword [rbx + 0x7a0]
mov rcx, qword [rbx + 0x208]
xor edx, edx
mov rcx, qword [rcx]
call fcn.18000f560
mov rax, qword [rbx + 0x208]
mov rdi, qword [rax]
mov rax, qword [rdi + 0xc8]
test rax, rax
je 0x180011ad6
cmp dword [rax + 0x10], esi
jne 0x180011ad6
mov edx, dword [rax]
mov ecx, esi
test edx, edx
je 0x180011a32
mov r8, qword [rax + 8]
nop word [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], esi
jne 0x180011ad6
inc ecx
cmp ecx, edx
jb 0x180011a20
mov rdi, qword [rdi + 0xc0]
test rdi, rdi
je 0x180011a51
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 0x180011a8b
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 0x180011ac5
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.18000f940
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.18000fb30
test byte [rbx + 0x608], 1
jne 0x180011b0e
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.18000fd90
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.18000f880
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.180010970
mov rcx, rbx
call fcn.180010f40
test eax, eax
js 0x180011d3b
mov rdi, qword [rbx + 0x7e8]
mov ebp, esi
test rdi, rdi
je 0x180011bb9
nop word [rax + rax]
mov rdx, qword [rdi]
mov eax, dword [rdx]
dec eax
cmp eax, 1
jbe 0x180011bb0
cmp qword [rdi + 0x40], rsi
je 0x180011bb0
test ebp, ebp
je 0x180011b9d
test byte [rdi + 0x20], 1
je 0x180011b9d
mov rdx, qword [rdx + 8]
lea rcx, str.Backend__s_forcing_a_reconnect_of_levels_n
call fcn.18000dde0
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.180010970
mov rcx, rbx
call fcn.180010f40
test eax, eax
js 0x180011d3b
mov ebp, esi
mov rcx, rdi
call qword [rdi + 0x40]
test eax, eax
js 0x180011bb0
add r14d, eax
test eax, eax
jle 0x180011bb0
inc ebp
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x180011b50
test r14d, r14d
je 0x180011be5
mov rdx, qword [rbx + 0x208]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.1800105d0
mov rdx, qword [rbx + 0x208]
xor r8d, r8d
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.180010780
mov rdx, qword [rbx + 0x208]
mov rcx, rbx
call fcn.18000ff70
mov rdx, qword [rbx + 0x208]
mov rcx, rbx
call fcn.1800100a0
mov rdx, qword [rbx + 0x208]
cmp qword [rdx], rsi
jne 0x180011c30
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.18000dd30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rcx, rbx
call fcn.180010250
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.180010970
mov rcx, rbx
call fcn.180010f40
test eax, eax
js 0x180011d3b
mov rcx, qword [rbx + 0x208]
mov rcx, qword [rcx]
call fcn.18000f3c0
mov rcx, rbx
call fcn.1800160f0
mov rcx, rbx
call fcn.1800161b0
mov rcx, rbx
call fcn.180016fb0
mov rax, qword [rbx + 0x7e8]
test rax, rax
je 0x180011d2b
mov rax, qword [rax]
lea rdx, [0x180063a44]
mov rcx, qword [rax + 8]
nop dword [rax]
movzx eax, byte [rcx + rsi]
inc rsi
cmp al, byte [rdx + rsi - 1]
jne 0x180011cba
cmp rsi, 4
jne 0x180011ca0
xor eax, eax
jmp 0x180011d3e
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 0x180011cf2
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 0x180011d2b
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 0x180011d3e
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