Function at 0x140020060
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 0x140020210
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r14, rax
test rax, rax
je 0x140020213
mov rbx, rax
cmp byte [rax], r13b
je 0x140020213
nop dword [rax]
lea rdx, [0x14009c244]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rdi, rax
test rax, rax
je 0x1400201a5
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 0x1400201c2
cmp rdi, 8
jne 0x1400201c2
mov word [rbx + 5], 0x6f69
mov byte [rbx + 7], 0x2c
cmp byte [rbx], 0x2d
je 0x1400201a5
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 0x1400203db
movzx esi, byte [rdi + rbx]
mov byte [rdi + rbx], r13b
mov r10, qword [0x1400c1588]
test r10, r10
je 0x140020184
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 0x140020173
inc rax
test ecx, ecx
jne 0x140020160
test edx, edx
je 0x140020200
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x140020150
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.140001e00
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 0x1400200c0
jmp 0x140020213
cmp byte [rbx], 0x2d
jne 0x140020117
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 0x14002010e
cmp rdi, 9
jne 0x14002010e
mov word [rbx + 6], 0x6f69
mov byte [rbx + 8], 0x2c
jmp 0x1400201a5
mov r9d, r12d
mov rdx, r10
mov rcx, r15
call fcn.14001ff60
jmp 0x1400201a1
mov r14, r13
mov rdi, qword [0x1400c1588]
test rdi, rdi
je 0x1400203db
cmp dword [rdi + 0x24], r13d
je 0x1400203ce
test r14, r14
je 0x1400202a5
mov rbx, r14
cmp byte [r14], r13b
je 0x1400202a5
nop word [rax + rax]
lea rdx, [0x14009c244]
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 0x14002028e
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 0x14002028e
mov rcx, qword [rdi + 8]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], r13b
jne 0x140020280
cmp rax, rsi
je 0x1400202df
add rbx, rbp
mov rcx, rbx
movzx eax, byte [rbx]
inc rbx
test al, al
cmove rbx, rcx
cmp byte [rbx], r13b
jne 0x140020240
mov esi, dword [r15 + 0x2d0]
mov ecx, dword [rdi]
test ecx, esi
je 0x140020385
cmp dword [0x1400c157c], r13d
je 0x1400203ce
sub ecx, r12d
je 0x140020357
sub ecx, r12d
je 0x14002034e
cmp ecx, 2
je 0x140020345
lea rbx, str.unknown
jmp 0x14002035e
cmp dword [0x1400c157c], r13d
je 0x1400203ce
mov ecx, dword [rdi]
sub ecx, r12d
je 0x140020318
sub ecx, r12d
je 0x14002030f
cmp ecx, 2
je 0x140020306
lea rbx, str.unknown
jmp 0x14002031f
lea rbx, str.misc
jmp 0x14002031f
lea rbx, str.global
jmp 0x14002031f
lea rbx, [0x14009cad0]
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.140001e00
jmp 0x1400203ce
lea rbx, str.misc
jmp 0x14002035e
lea rbx, str.global
jmp 0x14002035e
lea rbx, [0x14009cad0]
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.140001e00
jmp 0x1400203ce
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x18]
test rax, rax
jne 0x1400203bf
cmp dword [0x1400c157c], r13d
je 0x1400203ce
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.140001e00
jmp 0x1400203ce
mov rdx, rax
mov dword [rax + 0x10], r13d
mov rcx, r15
call sym.xmr_stak_rx.exe_hwloc_backend_enable
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140020223
cmp dword [0x1400c157c], r13d
je 0x140020478
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.140001e00
test rsi, rsi
je 0x14002045e
lea rbp, [0x14009bcda]
nop word [rax + rax]
mov rdi, qword [rsi]
lea rbx, [0x14009c244]
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.140001e00
mov rsi, qword [rsi + 0x18]
mov r12d, r13d
test rsi, rsi
jne 0x140020420
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.140001e00
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]