Function at 0x180011a70
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 0x180011c20
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r14, rax
test rax, rax
je 0x180011c23
mov rbx, rax
cmp byte [rax], r13b
je 0x180011c23
nop dword [rax]
lea rdx, [0x180091d6c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rdi, rax
test rax, rax
je 0x180011bb5
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 0x180011bd2
cmp rdi, 8
jne 0x180011bd2
mov word [rbx + 5], 0x6f69
mov byte [rbx + 7], 0x2c
cmp byte [rbx], 0x2d
je 0x180011bb5
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 0x180011deb
movzx esi, byte [rdi + rbx]
mov byte [rdi + rbx], r13b
mov r10, qword [0x1800b0300]
test r10, r10
je 0x180011b94
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 0x180011b83
inc rax
test ecx, ecx
jne 0x180011b70
test edx, edx
je 0x180011c10
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x180011b60
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.1800053c0
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 0x180011ad0
jmp 0x180011c23
cmp byte [rbx], 0x2d
jne 0x180011b27
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 0x180011b1e
cmp rdi, 9
jne 0x180011b1e
mov word [rbx + 6], 0x6f69
mov byte [rbx + 8], 0x2c
jmp 0x180011bb5
mov r9d, r12d
mov rdx, r10
mov rcx, r15
call fcn.180011970
jmp 0x180011bb1
mov r14, r13
mov rdi, qword [0x1800b0300]
test rdi, rdi
je 0x180011deb
cmp dword [rdi + 0x24], r13d
je 0x180011dde
test r14, r14
je 0x180011cb5
mov rbx, r14
cmp byte [r14], r13b
je 0x180011cb5
nop word [rax + rax]
lea rdx, [0x180091d6c]
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 0x180011c9e
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 0x180011c9e
mov rcx, qword [rdi + 8]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], r13b
jne 0x180011c90
cmp rax, rsi
je 0x180011cef
add rbx, rbp
mov rcx, rbx
movzx eax, byte [rbx]
inc rbx
test al, al
cmove rbx, rcx
cmp byte [rbx], r13b
jne 0x180011c50
mov esi, dword [r15 + 0x2d0]
mov ecx, dword [rdi]
test ecx, esi
je 0x180011d95
cmp dword [0x1800b02f4], r13d
je 0x180011dde
sub ecx, r12d
je 0x180011d67
sub ecx, r12d
je 0x180011d5e
cmp ecx, 2
je 0x180011d55
lea rbx, str.unknown
jmp 0x180011d6e
cmp dword [0x1800b02f4], r13d
je 0x180011dde
mov ecx, dword [rdi]
sub ecx, r12d
je 0x180011d28
sub ecx, r12d
je 0x180011d1f
cmp ecx, 2
je 0x180011d16
lea rbx, str.unknown
jmp 0x180011d2f
lea rbx, str.misc
jmp 0x180011d2f
lea rbx, str.global
jmp 0x180011d2f
lea rbx, [0x180092fc0]
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.1800053c0
jmp 0x180011dde
lea rbx, str.misc
jmp 0x180011d6e
lea rbx, str.global
jmp 0x180011d6e
lea rbx, [0x180092fc0]
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.1800053c0
jmp 0x180011dde
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x18]
test rax, rax
jne 0x180011dcf
cmp dword [0x1800b02f4], r13d
je 0x180011dde
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.1800053c0
jmp 0x180011dde
mov rdx, rax
mov dword [rax + 0x10], r13d
mov rcx, r15
call sym.xmrstakrx_opencl_backend.dll_hwloc_backend_enable
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x180011c33
cmp dword [0x1800b02f4], r13d
je 0x180011e88
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.1800053c0
test rsi, rsi
je 0x180011e6e
lea rbp, [0x180091fea]
nop word [rax + rax]
mov rdi, qword [rsi]
lea rbx, [0x180091d6c]
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.1800053c0
mov rsi, qword [rsi + 0x18]
mov r12d, r13d
test rsi, rsi
jne 0x180011e30
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x1800933c0]
call fcn.1800053c0
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]