Function at 0x18000bb20
Capabilities:
Query environment variable

Disassembly:
push r12
sub rsp, 0x50
mov qword [rsp + 0x70], rbp
xor ebp, ebp
mov qword [rsp + 0x40], r13
mov r13, rcx
lea rcx, str.HWLOC_COMPONENTS
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x60], ebp
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18000bb5e
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r12, rax
jmp 0x18000bb61
xor r12d, r12d
mov rcx, qword [r13 + 0x7e8]
test rcx, rcx
je 0x18000bb83
nop dword [rax]
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x18]
or ebp, dword [rax + 0x10]
test rcx, rcx
jne 0x18000bb70
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x68], rbx
mov r15d, 1
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], r14
test r12, r12
je 0x18000bcf6
cmp byte [r12], 0
mov rbx, r12
je 0x18000bcf6
movzx r14d, byte [rsp + 0x60]
nop word [rax + rax]
lea rdx, [0x180060f9c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rsi, rax
test rax, rax
je 0x18000bccd
mov r8d, 6
lea rdx, str.libpci
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18000bdd3
cmp rsi, 6
jne 0x18000bdd3
mov word [rbx + 1], 0x2c2c
lea esi, [rax + 3]
mov byte [rbx], 0x2c
add rbx, 3
cmp byte [rbx], 0x2d
je 0x18000bccd
mov r8, rsi
lea rdx, str.stop
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x18000bf57
movzx ebp, byte [rsi + rbx]
mov edx, 0x3d
mov rcx, rbx
mov byte [rsi + rbx], 0
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rdi, rax
test rax, rax
je 0x18000bc5d
movzx r14d, byte [rax]
mov byte [rax], 0
mov r10, qword [0x18006e318]
test r10, r10
je 0x18000bca4
nop dword [rax]
mov r8, qword [r10 + 8]
mov rcx, rbx
sub r8, rbx
nop word [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x18000bc93
inc rcx
test eax, eax
jne 0x18000bc80
test edx, edx
je 0x18000be24
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x18000bc70
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Cannot_find_discovery_component___s_n
mov rcx, rax
call fcn.180001030
mov byte [rsi + rbx], bpl
test rdi, rdi
je 0x18000bccd
mov byte [rdi], r14b
movzx edx, byte [rsi + rbx]
lea rax, [rsi + rbx]
movzx ecx, dl
test dl, dl
je 0x18000bce0
movzx ecx, byte [rax + 1]
test dl, dl
lea rbx, [rax + 1]
cmove rbx, rax
test cl, cl
jne 0x18000bbc0
mov ebp, dword [rsp + 0x60]
mov r14, qword [0x18006e318]
test r14, r14
je 0x18000bf57
test r12, r12
je 0x18000bd94
cmp byte [r12], 0
mov rbx, r12
je 0x18000bd94
nop dword [rax]
lea rdx, [0x180060f9c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp byte [rbx], 0x2d
mov r15, rax
jne 0x18000bd72
mov rdx, qword [r14 + 8]
lea rsi, [rax - 1]
mov r8, rsi
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18000bd72
mov rdi, qword [r14 + 8]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x18000bd60
cmp rax, rsi
je 0x18000be4c
movzx edx, byte [r15 + rbx]
lea rax, [r15 + rbx]
movzx ecx, dl
test dl, dl
je 0x18000bd86
movzx ecx, byte [rax + 1]
test dl, dl
lea rbx, [rax + 1]
cmove rbx, rax
test cl, cl
jne 0x18000bd20
mov ecx, dword [r14]
test ebp, ecx
je 0x18000bef2
cmp dword [0x18006e30c], 0
je 0x18000bf46
sub ecx, 1
je 0x18000bec4
sub ecx, 1
je 0x18000bebb
cmp ecx, 2
je 0x18000beb2
lea rbx, str.unknown
jmp 0x18000becb
cmp byte [rbx], 0x2d
jne 0x18000bc1d
mov r8d, 6
lea rdx, str.libpci
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18000bc14
cmp rsi, 7
jne 0x18000bc14
movzx eax, byte [rbx]
lea rcx, [rbx + 3]
mov byte [rbx], 0x2c
mov esi, 4
mov word [rbx + 1], 0x2c2c
mov rbx, rcx
mov byte [rcx], al
jmp 0x18000bccd
test rdi, rdi
je 0x18000be2f
lea r8, [rdi + 1]
jmp 0x18000be32
xor r8d, r8d
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], r15d
mov rdx, r10
mov rcx, r13
call fcn.18000ba10
jmp 0x18000bcc1
cmp dword [0x18006e30c], 0
je 0x18000bf46
mov ecx, dword [r14]
sub ecx, 1
je 0x18000be86
sub ecx, 1
je 0x18000be7d
cmp ecx, 2
je 0x18000be74
lea rbx, str.unknown
jmp 0x18000be8d
lea rbx, str.misc
jmp 0x18000be8d
lea rbx, str.global
jmp 0x18000be8d
lea rbx, [0x180061570]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
lea rdx, str.Excluding__s_discovery_component___s_because_of_HWLOC_COMPONENTS_environment_variable_n
mov rcx, rax
mov r8, rbx
call fcn.180001030
jmp 0x18000bf46
lea rbx, str.misc
jmp 0x18000becb
lea rbx, str.global
jmp 0x18000becb
lea rbx, [0x180061570]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [r14 + 8]
lea rdx, str.Excluding__s_discovery_component___s__conflicts_with_excludes_0x_x_n
mov rcx, rax
mov dword [rsp + 0x20], ebp
mov r8, rbx
call fcn.180001030
jmp 0x18000bf46
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [r14 + 0x18]
test rax, rax
jne 0x18000bf2c
cmp dword [0x18006e30c], eax
je 0x18000bf46
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [r14 + 8]
lea rdx, str.Failed_to_instantiate_discovery_component___s_n
mov rcx, rax
call fcn.180001030
jmp 0x18000bf46
mov rdx, rax
mov dword [rax + 0x10], 0
mov rcx, r13
call fcn.18000c040
test eax, eax
js 0x18000bf46
or ebp, dword [r14 + 0x10]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x18000bd06
lea r15d, [r14 + 1]
cmp dword [0x18006e30c], 0
mov r14, qword [rsp + 0x38]
je 0x18000bff8
mov rsi, qword [r13 + 0x7e8]
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.Final_list_of_enabled_discovery_components:
call fcn.180001030
test rsi, rsi
je 0x18000bfde
lea rbp, [0x1800608ba]
nop word [rax + rax]
mov rdi, qword [rsi]
lea rbx, [0x180060f9c]
test r15d, r15d
mov ecx, 2
cmovne rbx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rdi + 8]
lea rdx, str._s_s
mov rcx, rax
mov r8, rbx
call fcn.180001030
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
test rsi, rsi
jne 0x18000bfa0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x180061978]
call fcn.180001030
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
test r12, r12
je 0x18000c02b
mov rcx, r12
add rsp, 0x50
pop r12
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0x50
pop r12
ret