Function at 0x1800046b0
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 rbx, qword [rcx + 0x7e8]
xor esi, esi
mov rdi, rcx
mov r14d, esi
mov r15d, esi
mov ebp, esi
test rbx, rbx
je 0x180004b31
nop word [rax + rax]
mov rdx, qword [rbx]
mov eax, dword [rdx]
dec eax
cmp eax, 1
ja 0x180004767
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x180004767
test ebp, ebp
je 0x180004744
test byte [rbx + 0x20], 1
je 0x180004744
mov rdx, qword [rdx + 8]
lea rcx, str.Backend__s_forcing_a_reconnect_of_levels_n
call fcn.180001170
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.180003950
mov rcx, rdi
call fcn.180003f40
test eax, eax
js 0x180004b3d
mov rax, qword [rbx + 0x40]
mov ebp, esi
mov rcx, rbx
call rax
test eax, eax
js 0x180004767
mov rcx, qword [rbx]
lea edx, [rax + r14]
cmp dword [rcx], 2
cmovne edx, r14d
inc r15d
mov r14d, edx
test eax, eax
jle 0x180004767
inc ebp
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1800046f0
test r15d, r15d
je 0x180004b31
mov rcx, rdi
call fcn.1800091b0
mov rcx, rdi
call fcn.18000b0a0
mov rcx, qword [rdi + 0x208]
xor edx, edx
mov rcx, qword [rcx]
call fcn.180002640
cmp qword [rdi + 0x7a0], rsi
je 0x1800047dc
cmp dword [rdi + 0x66c], esi
je 0x1800047dc
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 0x1800047ca
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x1800047d3
test byte [rdi + 0x608], 0x40
je 0x1800047dc
mov rcx, rdi
call qword [rdi + 0x7a0]
mov rcx, qword [rdi + 0x208]
xor edx, edx
mov rcx, qword [rcx]
call fcn.180002720
mov r9, qword [rdi + 0x208]
mov rbx, qword [r9]
mov rax, qword [rbx + 0xc8]
test rax, rax
je 0x1800048d6
cmp dword [rax + 0x10], esi
jne 0x1800048d6
mov edx, dword [rax]
mov ecx, esi
test edx, edx
je 0x180004832
mov r8, qword [rax + 8]
nop dword [rax]
mov eax, ecx
cmp dword [r8 + rax*4], esi
jne 0x1800048d6
inc ecx
cmp ecx, edx
jb 0x180004820
mov rbx, qword [rbx + 0xc0]
test rbx, rbx
je 0x180004858
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r9, qword [rdi + 0x208]
mov rax, qword [r9]
mov qword [rax + 0xc0], rsi
mov rax, qword [rdi + 0x208]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0xc8]
test rbx, rbx
je 0x180004895
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rdi + 0x208]
mov rcx, qword [rax]
mov qword [rcx + 0xc8], rsi
mov rax, qword [rdi + 0x208]
mov rdx, qword [rax]
mov rbx, qword [rdx + 0xd0]
test rbx, rbx
je 0x1800048cf
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rdi + 0x208]
mov rdx, qword [rax]
mov qword [rdx + 0xd0], rsi
mov rcx, qword [rdi + 0x208]
xor edx, edx
mov rcx, qword [rcx]
call fcn.180002a10
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.180002b60
test byte [rdi + 0x608], 1
jne 0x18000490e
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.180002d70
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.180002970
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.180003950
mov rcx, rdi
call fcn.180003f40
test eax, eax
js 0x180004b3d
mov rbx, qword [rdi + 0x7e8]
mov ebp, esi
test rbx, rbx
je 0x1800049bf
nop word [rax + rax]
mov rdx, qword [rbx]
mov eax, dword [rdx]
dec eax
cmp eax, 1
jbe 0x1800049b6
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x1800049b6
test ebp, ebp
je 0x1800049a4
test byte [rbx + 0x20], 1
je 0x1800049a4
mov rdx, qword [rdx + 8]
lea rcx, str.Backend__s_forcing_a_reconnect_of_levels_n
call fcn.180001170
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.180003950
mov rcx, rdi
call fcn.180003f40
test eax, eax
js 0x180004b3d
mov rax, qword [rbx + 0x40]
mov ebp, esi
mov rcx, rbx
call rax
test eax, eax
js 0x1800049b6
add r14d, eax
test eax, eax
jle 0x1800049b6
inc ebp
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x180004950
test r14d, r14d
je 0x1800049eb
mov rdx, qword [rdi + 0x208]
mov rcx, rdi
mov rdx, qword [rdx]
call fcn.1800035a0
mov rdx, qword [rdi + 0x208]
xor r8d, r8d
mov rcx, rdi
mov rdx, qword [rdx]
call fcn.180003780
mov rdx, qword [rdi + 0x208]
mov rcx, rdi
call fcn.180002f40
mov rdx, qword [rdi + 0x208]
mov rcx, rdi
call fcn.180003090
mov rdx, qword [rdi + 0x208]
cmp qword [rdx], rsi
jne 0x180004a36
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.180001030
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rcx, rdi
call fcn.180003200
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.180003950
mov rcx, rdi
call fcn.180003f40
test eax, eax
js 0x180004b3d
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.180002590
mov rcx, rdi
call fcn.1800090f0
mov rcx, rdi
call fcn.1800091b0
mov rcx, rdi
call fcn.18000a0e0
mov rax, qword [rdi + 0x7e8]
test rax, rax
je 0x180004b2d
mov rax, qword [rax]
lea rdx, [0x180060a84]
mov rcx, qword [rax + 8]
movzx eax, byte [rcx + rsi]
inc rsi
cmp al, byte [rdx + rsi - 1]
jne 0x180004abc
cmp rsi, 4
jne 0x180004aa2
xor eax, eax
jmp 0x180004b40
mov rax, qword [rdi + 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 0x180004af4
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 0x180004b2d
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.8
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 0x180004b40
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