Function at 0x180018a80
Capabilities:
Query environment variable

Disassembly:
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov r13, rcx
mov qword [rsp + 0x30], r14
lea rcx, str.HWLOC_COMPONENTS
xor r14d, r14d
mov dword [rsp + 0x60], r14d
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180018ac0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r15, rax
jmp 0x180018ac3
xor r15d, r15d
mov rcx, qword [r13 + 0x7e8]
test rcx, rcx
je 0x180018ae5
nop
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x18]
or r14d, dword [rax + 0x10]
test rcx, rcx
jne 0x180018ad0
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x68], rbx
mov r12d, 1
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x48], rdi
test r15, r15
je 0x180018c4d
cmp byte [r15], 0
mov rbx, r15
je 0x180018c4d
movzx r14d, byte [rsp + 0x60]
nop dword [rax + rax]
lea rdx, [0x180063f5c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rsi, rax
test rax, rax
je 0x180018c2d
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 0x180018d18
cmp rsi, 6
jne 0x180018d18
mov word [rbx + 1], 0x2c2c
lea esi, [rax + 3]
mov byte [rbx], 0x2c
add rbx, 3
cmp byte [rbx], 0x2d
je 0x180018c2d
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 0x180018e96
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 0x180018bbd
movzx r14d, byte [rax]
mov byte [rax], 0
mov r10, qword [0x1800759d8]
test r10, r10
je 0x180018c04
nop dword [rax]
mov r8, qword [r10 + 8]
mov rax, rbx
sub r8, rbx
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180018bf3
inc rax
test ecx, ecx
jne 0x180018be0
test edx, edx
je 0x180018d67
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x180018bd0
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.18000dd30
mov byte [rsi + rbx], bpl
test rdi, rdi
je 0x180018c2d
mov byte [rdi], r14b
add rbx, rsi
mov rcx, rbx
movzx eax, byte [rbx]
inc rbx
test al, al
cmove rbx, rcx
cmp byte [rbx], 0
jne 0x180018b20
mov r14d, dword [rsp + 0x60]
mov rdi, qword [0x1800759d8]
test rdi, rdi
je 0x180018e96
nop dword [rax]
test r15, r15
je 0x180018cd9
cmp byte [r15], 0
mov rbx, r15
je 0x180018cd9
nop
lea rdx, [0x180063f5c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp byte [rbx], 0x2d
mov rbp, rax
jne 0x180018cc2
mov rdx, qword [rdi + 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 0x180018cc2
mov rcx, qword [rdi + 8]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x180018cb0
cmp rax, rsi
je 0x180018d8f
add rbx, rbp
mov rcx, rbx
movzx eax, byte [rbx]
inc rbx
test al, al
cmove rbx, rcx
cmp byte [rbx], 0
jne 0x180018c70
mov ecx, dword [rdi]
test r14d, ecx
je 0x180018e36
cmp dword [0x1800759cc], 0
je 0x180018e89
sub ecx, r12d
je 0x180018e07
sub ecx, r12d
je 0x180018dfe
cmp ecx, 2
je 0x180018df5
lea rbx, str.unknown
jmp 0x180018e0e
cmp byte [rbx], 0x2d
jne 0x180018b7d
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 0x180018b74
cmp rsi, 7
jne 0x180018b74
movzx eax, byte [rbx]
mov esi, 4
mov byte [rbx + 3], al
mov word [rbx + 1], 0x2c2c
mov byte [rbx], 0x2c
add rbx, 3
jmp 0x180018c2d
test rdi, rdi
je 0x180018d72
lea r8, [rdi + 1]
jmp 0x180018d75
xor r8d, r8d
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], r12d
mov rdx, r10
mov rcx, r13
call fcn.180018970
jmp 0x180018c21
cmp dword [0x1800759cc], 0
je 0x180018e89
mov ecx, dword [rdi]
sub ecx, r12d
je 0x180018dc8
sub ecx, r12d
je 0x180018dbf
cmp ecx, 2
je 0x180018db6
lea rbx, str.unknown
jmp 0x180018dcf
lea rbx, str.misc
jmp 0x180018dcf
lea rbx, str.global
jmp 0x180018dcf
lea rbx, [0x180064530]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rdi + 8]
lea rdx, str.Excluding__s_discovery_component___s_because_of_HWLOC_COMPONENTS_environment_variable_n
mov rcx, rax
mov r8, rbx
call fcn.18000dd30
jmp 0x180018e89
lea rbx, str.misc
jmp 0x180018e0e
lea rbx, str.global
jmp 0x180018e0e
lea rbx, [0x180064530]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rdi + 8]
lea rdx, str.Excluding__s_discovery_component___s__conflicts_with_excludes_0x_x_n
mov rcx, rax
mov dword [rsp + 0x20], r14d
mov r8, rbx
call fcn.18000dd30
jmp 0x180018e89
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x18]
test rax, rax
jne 0x180018e6f
cmp dword [0x1800759cc], eax
je 0x180018e89
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rdi + 8]
lea rdx, str.Failed_to_instantiate_discovery_component___s_n
mov rcx, rax
call fcn.18000dd30
jmp 0x180018e89
mov rdx, rax
mov dword [rax + 0x10], 0
mov rcx, r13
call fcn.180019040
test eax, eax
js 0x180018e89
or r14d, dword [rdi + 0x10]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x180018c60
cmp dword [0x1800759cc], 0
mov r14, qword [rsp + 0x30]
je 0x180018f38
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.18000dd30
test rsi, rsi
je 0x180018f1e
lea rbp, [0x18006387a]
nop word [rax + rax]
mov rdi, qword [rsi]
lea rbx, [0x180063f5c]
test r12d, r12d
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.18000dd30
mov rsi, qword [rsi + 0x18]
xor r12d, r12d
test rsi, rsi
jne 0x180018ee0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x180064938]
call fcn.18000dd30
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
test r15, r15
je 0x180018f6b
mov rcx, r15
add rsp, 0x50
pop r15
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rsp, 0x50
pop r15
ret