Function at 0x180018ff0
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 0x180019030
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r15, rax
jmp 0x180019033
xor r15d, r15d
mov rcx, qword [r13 + 0x7e8]
test rcx, rcx
je 0x180019055
nop
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x18]
or r14d, dword [rax + 0x10]
test rcx, rcx
jne 0x180019040
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 0x1800191bd
cmp byte [r15], 0
mov rbx, r15
je 0x1800191bd
movzx r14d, byte [rsp + 0x60]
nop dword [rax + rax]
lea rdx, [0x18007455c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rsi, rax
test rax, rax
je 0x18001919d
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 0x180019288
cmp rsi, 6
jne 0x180019288
mov word [rbx + 1], 0x2c2c
lea esi, [rax + 3]
mov byte [rbx], 0x2c
add rbx, 3
cmp byte [rbx], 0x2d
je 0x18001919d
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 0x180019406
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 0x18001912d
movzx r14d, byte [rax]
mov byte [rax], 0
mov r10, qword [0x180087cc8]
test r10, r10
je 0x180019174
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 0x180019163
inc rax
test ecx, ecx
jne 0x180019150
test edx, edx
je 0x1800192d7
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x180019140
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.18000e2a0
mov byte [rsi + rbx], bpl
test rdi, rdi
je 0x18001919d
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 0x180019090
mov r14d, dword [rsp + 0x60]
mov rdi, qword [0x180087cc8]
test rdi, rdi
je 0x180019406
nop dword [rax]
test r15, r15
je 0x180019249
cmp byte [r15], 0
mov rbx, r15
je 0x180019249
nop
lea rdx, [0x18007455c]
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 0x180019232
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 0x180019232
mov rcx, qword [rdi + 8]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x180019220
cmp rax, rsi
je 0x1800192ff
add rbx, rbp
mov rcx, rbx
movzx eax, byte [rbx]
inc rbx
test al, al
cmove rbx, rcx
cmp byte [rbx], 0
jne 0x1800191e0
mov ecx, dword [rdi]
test r14d, ecx
je 0x1800193a6
cmp dword [0x180087cbc], 0
je 0x1800193f9
sub ecx, r12d
je 0x180019377
sub ecx, r12d
je 0x18001936e
cmp ecx, 2
je 0x180019365
lea rbx, str.unknown
jmp 0x18001937e
cmp byte [rbx], 0x2d
jne 0x1800190ed
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 0x1800190e4
cmp rsi, 7
jne 0x1800190e4
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 0x18001919d
test rdi, rdi
je 0x1800192e2
lea r8, [rdi + 1]
jmp 0x1800192e5
xor r8d, r8d
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], r12d
mov rdx, r10
mov rcx, r13
call fcn.180018ee0
jmp 0x180019191
cmp dword [0x180087cbc], 0
je 0x1800193f9
mov ecx, dword [rdi]
sub ecx, r12d
je 0x180019338
sub ecx, r12d
je 0x18001932f
cmp ecx, 2
je 0x180019326
lea rbx, str.unknown
jmp 0x18001933f
lea rbx, str.misc
jmp 0x18001933f
lea rbx, str.global
jmp 0x18001933f
lea rbx, [0x180074b30]
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.18000e2a0
jmp 0x1800193f9
lea rbx, str.misc
jmp 0x18001937e
lea rbx, str.global
jmp 0x18001937e
lea rbx, [0x180074b30]
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.18000e2a0
jmp 0x1800193f9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x18]
test rax, rax
jne 0x1800193df
cmp dword [0x180087cbc], eax
je 0x1800193f9
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.18000e2a0
jmp 0x1800193f9
mov rdx, rax
mov dword [rax + 0x10], 0
mov rcx, r13
call fcn.1800195b0
test eax, eax
js 0x1800193f9
or r14d, dword [rdi + 0x10]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1800191d0
cmp dword [0x180087cbc], 0
mov r14, qword [rsp + 0x30]
je 0x1800194a8
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.18000e2a0
test rsi, rsi
je 0x18001948e
lea rbp, [0x180073e7a]
nop word [rax + rax]
mov rdi, qword [rsi]
lea rbx, [0x18007455c]
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.18000e2a0
mov rsi, qword [rsi + 0x18]
xor r12d, r12d
test rsi, rsi
jne 0x180019450
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x180074f38]
call fcn.18000e2a0
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 0x1800194db
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