Function at 0x14000c680
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 0x14000c6be
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r12, rax
jmp 0x14000c6c1
xor r12d, r12d
mov rcx, qword [r13 + 0x7e8]
test rcx, rcx
je 0x14000c6e3
nop dword [rax]
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x18]
or ebp, dword [rax + 0x10]
test rcx, rcx
jne 0x14000c6d0
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 0x14000c856
cmp byte [r12], 0
mov rbx, r12
je 0x14000c856
movzx r14d, byte [rsp + 0x60]
nop word [rax + rax]
lea rdx, [0x140055f1c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rsi, rax
test rax, rax
je 0x14000c82d
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 0x14000c933
cmp rsi, 6
jne 0x14000c933
mov word [rbx + 1], 0x2c2c
lea esi, [rax + 3]
mov byte [rbx], 0x2c
add rbx, 3
cmp byte [rbx], 0x2d
je 0x14000c82d
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 0x14000cab7
movzx ebp, byte [rsi + rbx]
mov edx, 0x3d
mov rcx, rbx
mov byte [rsi + rbx], 0
call sub.VCRUNTIME140.dll_strchr
mov rdi, rax
test rax, rax
je 0x14000c7bc
movzx r14d, byte [rax]
mov byte [rax], 0
mov r10, qword [0x1400683a0]
test r10, r10
je 0x14000c804
nop dword [rax + 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 0x14000c7f3
inc rcx
test eax, eax
jne 0x14000c7e0
test edx, edx
je 0x14000c984
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x14000c7d0
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.140001b60
mov byte [rsi + rbx], bpl
test rdi, rdi
je 0x14000c82d
mov byte [rdi], r14b
movzx edx, byte [rsi + rbx]
lea rax, [rsi + rbx]
movzx ecx, dl
test dl, dl
je 0x14000c840
movzx ecx, byte [rax + 1]
test dl, dl
lea rbx, [rax + 1]
cmove rbx, rax
test cl, cl
jne 0x14000c720
mov ebp, dword [rsp + 0x60]
mov r14, qword [0x1400683a0]
test r14, r14
je 0x14000cab7
test r12, r12
je 0x14000c8f4
cmp byte [r12], 0
mov rbx, r12
je 0x14000c8f4
nop dword [rax]
lea rdx, [0x140055f1c]
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 0x14000c8d2
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 0x14000c8d2
mov rdi, qword [r14 + 8]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x14000c8c0
cmp rax, rsi
je 0x14000c9ac
movzx edx, byte [r15 + rbx]
lea rax, [r15 + rbx]
movzx ecx, dl
test dl, dl
je 0x14000c8e6
movzx ecx, byte [rax + 1]
test dl, dl
lea rbx, [rax + 1]
cmove rbx, rax
test cl, cl
jne 0x14000c880
mov ecx, dword [r14]
test ebp, ecx
je 0x14000ca52
cmp dword [0x1400683b0], 0
je 0x14000caa6
sub ecx, 1
je 0x14000ca24
sub ecx, 1
je 0x14000ca1b
cmp ecx, 2
je 0x14000ca12
lea rbx, str.unknown
jmp 0x14000ca2b
cmp byte [rbx], 0x2d
jne 0x14000c77d
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 0x14000c774
cmp rsi, 7
jne 0x14000c774
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 0x14000c82d
test rdi, rdi
je 0x14000c98f
lea r8, [rdi + 1]
jmp 0x14000c992
xor r8d, r8d
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], r15d
mov rdx, r10
mov rcx, r13
call fcn.14000c560
jmp 0x14000c821
cmp dword [0x1400683b0], 0
je 0x14000caa6
mov ecx, dword [r14]
sub ecx, 1
je 0x14000c9e6
sub ecx, 1
je 0x14000c9dd
cmp ecx, 2
je 0x14000c9d4
lea rbx, str.unknown
jmp 0x14000c9ed
lea rbx, str.misc
jmp 0x14000c9ed
lea rbx, str.global
jmp 0x14000c9ed
lea rbx, [0x1400564f0]
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.140001b60
jmp 0x14000caa6
lea rbx, str.misc
jmp 0x14000ca2b
lea rbx, str.global
jmp 0x14000ca2b
lea rbx, [0x1400564f0]
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.140001b60
jmp 0x14000caa6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [r14 + 0x18]
test rax, rax
jne 0x14000ca8c
cmp dword [0x1400683b0], eax
je 0x14000caa6
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.140001b60
jmp 0x14000caa6
mov rdx, rax
mov dword [rax + 0x10], 0
mov rcx, r13
call fcn.14000cba0
test eax, eax
js 0x14000caa6
or ebp, dword [r14 + 0x10]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x14000c866
lea r15d, [r14 + 1]
cmp dword [0x1400683b0], 0
mov r14, qword [rsp + 0x38]
je 0x14000cb58
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.140001b60
test rsi, rsi
je 0x14000cb3e
lea rbp, [0x14005583a]
nop word [rax + rax]
mov rdi, qword [rsi]
lea rbx, [0x140055f1c]
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.140001b60
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
test rsi, rsi
jne 0x14000cb00
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x1400568f8]
call fcn.140001b60
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 0x14000cb8b
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