Function at 0x6d2760
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, rcx
lea rcx, str.HWLOC_COMPONENTS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6d2870
mov rcx, rax
call qword [sym.imp.msvcrt.dll__strdup_1]
mov r12, rax
test rax, rax
je 0x6d2870
movzx ebx, byte [rax]
mov r15, rax
lea rbp, str.linuxpci
lea r14, str.stop
test bl, bl
je 0x6d2873
lea rdx, [0x009127df]
mov rcx, r15
call sub.msvcrt.dll_strcspn
test rax, rax
je 0x6d2860
mov ecx, 8
mov rsi, r15
mov rdi, rbp
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x6d27f2
cmp rax, 8
je 0x6d29e1
cmp bl, 0x2d
je 0x6d29b0
cmp rax, 5
mov ecx, 5
mov rsi, r15
mov rdi, r14
cmovle rcx, rax
cmp rcx, rcx
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
je 0x6d2971
lea rbx, [r15 + rax]
mov rdx, r15
mov ecx, 0xffffffff
movzx esi, byte [rbx]
mov byte [rbx], 0
call fcn.006d1cf0
test rax, rax
je 0x6d2a10
mov r8d, 1
mov rdx, rax
mov rcx, r13
call fcn.006d2670
mov byte [rbx], sil
test sil, sil
je 0x6d2873
mov r15, rbx
nop dword [rax]
movzx ebx, byte [r15 + 1]
add r15, 1
jmp 0x6d27b1
xor r12d, r12d
mov rbp, qword [0x00c2d140]
test rbp, rbp
je 0x6d2971
lea rsi, [0x009127df]
jmp 0x6d28b7
add rbx, r15
cmp byte [rbx], 0
jne 0x6d29a0
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
call fcn.006d2670
mov rbp, qword [rbp + 0x28]
test rbp, rbp
je 0x6d2971
mov ecx, dword [rbp + 0x24]
test ecx, ecx
je 0x6d28aa
mov rbx, r12
test r12, r12
je 0x6d289c
movzx edi, byte [rbx]
test dil, dil
je 0x6d289c
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strcspn
mov r15, rax
cmp dil, 0x2d
jne 0x6d2890
mov rdi, qword [rbp + 8]
lea r14, [rax - 1]
lea rcx, [rbx + 1]
mov r8, r14
mov rdx, rdi
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x6d2890
mov rcx, rdi
call sub.msvcrt.dll_strlen
cmp r14, rax
jne 0x6d2890
mov edx, dword [0x00c2d134]
test edx, edx
je 0x6d28aa
mov eax, dword [rbp]
lea rbx, str.global
cmp eax, 2
je 0x6d2944
lea rbx, str.misc
cmp eax, 4
je 0x6d2944
cmp eax, 1
lea rbx, [0x0091268c]
lea rax, str.unknown
cmovne rbx, rax
mov ecx, 2
call qword [fcn.007116c0]
mov r9, rdi
mov r8, rbx
lea rdx, str.Excluding__s_discovery_component___s_because_of_HWLOC_COMPONENTS_environment_variable_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rbp, qword [rbp + 0x28]
test rbp, rbp
jne 0x6d28b7
mov eax, dword [0x00c2d134]
test eax, eax
jne 0x6d2a32
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.00710f20
add rbx, 1
jmp 0x6d28c6
lea rsi, [r15 + 1]
mov ecx, 8
lea rbx, [r15 + rax]
mov rdi, rbp
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
movsx edx, dl
cmp rax, 9
jne 0x6d29d9
test edx, edx
je 0x6d2ac8
movzx esi, byte [rbx]
jmp 0x6d2855
mov r9d, 0x6f69
mov byte [r15 + 7], 0x2c
mov word [r15 + 5], r9w
cmp bl, 0x2d
jne 0x6d27fb
lea rbx, [r15 + 8]
movzx esi, byte [r15 + 8]
jmp 0x6d2855
mov ecx, 2
call qword [fcn.007116c0]
mov r8, r15
lea rdx, str.Cannot_find_discovery_component___s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x6d2852
mov rbx, qword [r13 + 0x2c0]
mov ecx, 2
mov rbp, qword [fcn.007116c0]
call rbp
mov r8d, 0x2c
mov edx, 1
lea rcx, str.Final_list_of_enabled_discovery_components:
mov r9, rax
call sub.msvcrt.dll_fwrite
test rbx, rbx
je 0x6d2aaf
mov rax, qword [rbx]
lea rsi, [0x00912988]
lea r13, [0x00912ba5]
lea r14, [0x009127df]
mov rdi, qword [rax + 8]
jmp 0x6d2a8e
mov rax, qword [rbx]
mov rsi, r14
mov rdi, qword [rax + 8]
mov ecx, 2
call rbp
mov r9, rdi
mov r8, rsi
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x6d2a84
mov ecx, 2
call rbp
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
jmp 0x6d297f
mov r8d, 0x6f69
mov byte [r15 + 8], 0x2c
mov word [r15 + 6], r8w
jmp 0x6d29d9