Function at 0x18001fc20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, rcx
lea rcx, str.HWLOC_COMPONENTS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor r13d, r13d
lea r12d, [r13 + 1]
test rax, rax
je 0x18001fdd0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r14, rax
test rax, rax
je 0x18001fdd3
mov rbx, rax
cmp byte [rax], r13b
je 0x18001fdd3
nop dword [rax]
lea rdx, [0x18008b6ec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rdi, rax
test rax, rax
je 0x18001fd65
mov r8d, 8
lea rdx, str.linuxpci
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18001fd82
cmp rdi, 8
jne 0x18001fd82
mov word [rbx + 5], 0x6f69
mov byte [rbx + 7], 0x2c
cmp byte [rbx], 0x2d
je 0x18001fd65
mov r8, rdi
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 0x18001ff9b
movzx esi, byte [rdi + rbx]
mov byte [rdi + rbx], r13b
mov r10, qword [0x1800a2f90]
test r10, r10
je 0x18001fd44
nop word [rax + 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 0x18001fd33
inc rax
test ecx, ecx
jne 0x18001fd20
test edx, edx
je 0x18001fdc0
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x18001fd10
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.1800100d0
mov byte [rdi + rbx], sil
add rbx, rdi
mov rcx, rbx
movzx eax, byte [rbx]
inc rbx
test al, al
cmove rbx, rcx
cmp byte [rbx], r13b
jne 0x18001fc80
jmp 0x18001fdd3
cmp byte [rbx], 0x2d
jne 0x18001fcd7
lea rcx, [rbx + 1]
mov r8d, 8
lea rdx, str.linuxpci
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18001fcce
cmp rdi, 9
jne 0x18001fcce
mov word [rbx + 6], 0x6f69
mov byte [rbx + 8], 0x2c
jmp 0x18001fd65
mov r9d, r12d
mov rdx, r10
mov rcx, r15
call fcn.18001fb20
jmp 0x18001fd61
mov r14, r13
mov rdi, qword [0x1800a2f90]
test rdi, rdi
je 0x18001ff9b
cmp dword [rdi + 0x24], r13d
je 0x18001ff8e
test r14, r14
je 0x18001fe65
mov rbx, r14
cmp byte [r14], r13b
je 0x18001fe65
nop word [rax + rax]
lea rdx, [0x18008b6ec]
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 0x18001fe4e
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 0x18001fe4e
mov rcx, qword [rdi + 8]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], r13b
jne 0x18001fe40
cmp rax, rsi
je 0x18001fe9f
add rbx, rbp
mov rcx, rbx
movzx eax, byte [rbx]
inc rbx
test al, al
cmove rbx, rcx
cmp byte [rbx], r13b
jne 0x18001fe00
mov esi, dword [r15 + 0x2d0]
mov ecx, dword [rdi]
test ecx, esi
je 0x18001ff45
cmp dword [0x1800a2f84], r13d
je 0x18001ff8e
sub ecx, r12d
je 0x18001ff17
sub ecx, r12d
je 0x18001ff0e
cmp ecx, 2
je 0x18001ff05
lea rbx, str.unknown
jmp 0x18001ff1e
cmp dword [0x1800a2f84], r13d
je 0x18001ff8e
mov ecx, dword [rdi]
sub ecx, r12d
je 0x18001fed8
sub ecx, r12d
je 0x18001fecf
cmp ecx, 2
je 0x18001fec6
lea rbx, str.unknown
jmp 0x18001fedf
lea rbx, str.misc
jmp 0x18001fedf
lea rbx, str.global
jmp 0x18001fedf
lea rbx, [0x18008bf70]
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.1800100d0
jmp 0x18001ff8e
lea rbx, str.misc
jmp 0x18001ff1e
lea rbx, str.global
jmp 0x18001ff1e
lea rbx, [0x18008bf70]
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], esi
mov r8, rbx
call fcn.1800100d0
jmp 0x18001ff8e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x18]
test rax, rax
jne 0x18001ff7f
cmp dword [0x1800a2f84], r13d
je 0x18001ff8e
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.1800100d0
jmp 0x18001ff8e
mov rdx, rax
mov dword [rax + 0x10], r13d
mov rcx, r15
call sym.xmrstak_cuda_backend.dll_hwloc_backend_enable
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x18001fde3
cmp dword [0x1800a2f84], r13d
je 0x180020038
mov rsi, qword [r15 + 0x2c0]
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.1800100d0
test rsi, rsi
je 0x18002001e
lea rbp, [0x18008af3a]
nop word [rax + rax]
mov rdi, qword [rsi]
lea rbx, [0x18008b6ec]
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.1800100d0
mov rsi, qword [rsi + 0x18]
mov r12d, r13d
test rsi, rsi
jne 0x18001ffe0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x18008c370]
call fcn.1800100d0
mov rcx, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]