Function at 0x140005150
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 0x140005611
nop word [rax + rax]
mov rdx, qword [rbx]
mov eax, dword [rdx]
dec eax
cmp eax, 1
ja 0x140005207
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x140005207
test ebp, ebp
je 0x1400051e4
test byte [rbx + 0x20], 1
je 0x1400051e4
mov rdx, qword [rdx + 8]
lea rcx, str.Backend__s_forcing_a_reconnect_of_levels_n
call fcn.140001ca0
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.140004400
mov rcx, rdi
call fcn.1400049e0
test eax, eax
js 0x14000561d
mov rax, qword [rbx + 0x40]
mov ebp, esi
mov rcx, rbx
call rax
test eax, eax
js 0x140005207
mov rcx, qword [rbx]
lea edx, [rax + r14]
cmp dword [rcx], 2
cmovne edx, r14d
inc r15d
mov r14d, edx
test eax, eax
jle 0x140005207
inc ebp
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x140005190
test r15d, r15d
je 0x140005611
mov rcx, rdi
call fcn.140009d30
mov rcx, rdi
call fcn.14000bc10
mov rax, qword [rdi + 0x208]
mov rbp, rsi
mov rbx, qword [rax]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14000524a
mov rbp, rbx
call fcn.140007cc0
mov rbx, qword [rbx + 0x88]
test rbx, rbx
je 0x140005274
nop word [rax + rax]
mov rdx, rbp
mov rcx, rbx
call fcn.140003150
mov rbx, qword [rbx + 0x68]
test rbx, rbx
jne 0x140005260
cmp qword [rdi + 0x7a0], rsi
je 0x1400052b6
cmp dword [rdi + 0x66c], esi
je 0x1400052b6
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 0x1400052a4
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x1400052ad
test byte [rdi + 0x608], 0x40
je 0x1400052b6
mov rcx, rdi
call qword [rdi + 0x7a0]
mov rcx, qword [rdi + 0x208]
xor edx, edx
mov rcx, qword [rcx]
call fcn.1400031d0
mov r9, qword [rdi + 0x208]
mov rbx, qword [r9]
mov rax, qword [rbx + 0xc8]
test rax, rax
je 0x1400053b6
cmp dword [rax + 0x10], esi
jne 0x1400053b6
mov edx, dword [rax]
mov ecx, esi
test edx, edx
je 0x140005312
mov r8, qword [rax + 8]
nop word [rax + rax]
mov eax, ecx
cmp dword [r8 + rax*4], esi
jne 0x1400053b6
inc ecx
cmp ecx, edx
jb 0x140005300
mov rbx, qword [rbx + 0xc0]
test rbx, rbx
je 0x140005338
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 0x140005375
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 0x1400053af
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.1400034c0
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.140003610
test byte [rdi + 0x608], 1
jne 0x1400053ee
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.140003820
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.140003420
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.140004400
mov rcx, rdi
call fcn.1400049e0
test eax, eax
js 0x14000561d
mov rbx, qword [rdi + 0x7e8]
mov ebp, esi
test rbx, rbx
je 0x14000549f
nop word [rax + rax]
mov rdx, qword [rbx]
mov eax, dword [rdx]
dec eax
cmp eax, 1
jbe 0x140005496
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x140005496
test ebp, ebp
je 0x140005484
test byte [rbx + 0x20], 1
je 0x140005484
mov rdx, qword [rdx + 8]
lea rcx, str.Backend__s_forcing_a_reconnect_of_levels_n
call fcn.140001ca0
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.140004400
mov rcx, rdi
call fcn.1400049e0
test eax, eax
js 0x14000561d
mov rax, qword [rbx + 0x40]
mov ebp, esi
mov rcx, rbx
call rax
test eax, eax
js 0x140005496
add r14d, eax
test eax, eax
jle 0x140005496
inc ebp
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x140005430
test r14d, r14d
je 0x1400054cb
mov rdx, qword [rdi + 0x208]
mov rcx, rdi
mov rdx, qword [rdx]
call fcn.140004050
mov rdx, qword [rdi + 0x208]
xor r8d, r8d
mov rcx, rdi
mov rdx, qword [rdx]
call fcn.140004230
mov rdx, qword [rdi + 0x208]
mov rcx, rdi
call fcn.1400039f0
mov rdx, qword [rdi + 0x208]
mov rcx, rdi
call fcn.140003b40
mov rdx, qword [rdi + 0x208]
cmp qword [rdx], rsi
jne 0x140005516
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.140001b60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rcx, rdi
call fcn.140003cb0
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.140004400
mov rcx, rdi
call fcn.1400049e0
test eax, eax
js 0x14000561d
mov rcx, qword [rdi + 0x208]
mov rcx, qword [rcx]
call fcn.1400030a0
mov rcx, rdi
call fcn.140009c70
mov rcx, rdi
call fcn.140009d30
mov rcx, rdi
call fcn.14000ac60
mov rax, qword [rdi + 0x7e8]
test rax, rax
je 0x14000560d
mov rax, qword [rax]
lea rdx, [0x140055a04]
mov rcx, qword [rax + 8]
movzx eax, byte [rcx + rsi]
inc rsi
cmp al, byte [rdx + rsi - 1]
jne 0x14000559c
cmp rsi, 4
jne 0x140005582
xor eax, eax
jmp 0x140005622
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 0x1400055d4
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 0x14000560d
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 0x140005622
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WSOCK32.dll_shutdown
mov 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