Function at 0x6a3290
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 0x6a33a0
mov rcx, rax
call qword [sym.imp.msvcrt.dll__strdup_1]
mov r12, rax
test rax, rax
je 0x6a33a0
movzx ebx, byte [rax]
mov r15, rax
lea rbp, str.linuxpci
lea r14, str.stop
test bl, bl
je 0x6a33a3
lea rdx, [0x00aed37f]
mov rcx, r15
call sub.msvcrt.dll_strcspn
test rax, rax
je 0x6a3390
mov ecx, 8
mov rsi, r15
mov rdi, rbp
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x6a3322
cmp rax, 8
je 0x6a3511
cmp bl, 0x2d
je 0x6a34e0
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 0x6a34a1
lea rbx, [r15 + rax]
mov rdx, r15
mov ecx, 0xffffffff
movzx esi, byte [rbx]
mov byte [rbx], 0
call fcn.006a2820
test rax, rax
je 0x6a3540
mov r8d, 1
mov rdx, rax
mov rcx, r13
call fcn.006a31a0
mov byte [rbx], sil
test sil, sil
je 0x6a33a3
mov r15, rbx
nop dword [rax]
movzx ebx, byte [r15 + 1]
add r15, 1
jmp 0x6a32e1
xor r12d, r12d
mov rbp, qword [0x00b58da0]
test rbp, rbp
je 0x6a34a1
lea rsi, [0x00aed37f]
jmp 0x6a33e7
add rbx, r15
cmp byte [rbx], 0
jne 0x6a34d0
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
call fcn.006a31a0
mov rbp, qword [rbp + 0x28]
test rbp, rbp
je 0x6a34a1
mov ecx, dword [rbp + 0x24]
test ecx, ecx
je 0x6a33da
mov rbx, r12
test r12, r12
je 0x6a33cc
movzx edi, byte [rbx]
test dil, dil
je 0x6a33cc
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strcspn
mov r15, rax
cmp dil, 0x2d
jne 0x6a33c0
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 0x6a33c0
mov rcx, rdi
call sub.msvcrt.dll_strlen
cmp r14, rax
jne 0x6a33c0
mov edx, dword [0x00b58d94]
test edx, edx
je 0x6a33da
mov eax, dword [rbp]
lea rbx, str.global
cmp eax, 2
je 0x6a3474
lea rbx, str.misc
cmp eax, 4
je 0x6a3474
cmp eax, 1
lea rbx, [0x00aed22c]
lea rax, [0x00aed220]
cmovne rbx, rax
mov ecx, 2
call qword [fcn.00701940]
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 0x6a33e7
mov eax, dword [0x00b58d94]
test eax, eax
jne 0x6a3562
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.00701710
add rbx, 1
jmp 0x6a33f6
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 0x6a3509
test edx, edx
je 0x6a35f8
movzx esi, byte [rbx]
jmp 0x6a3385
mov r9d, 0x6f69
mov byte [r15 + 7], 0x2c
mov word [r15 + 5], r9w
cmp bl, 0x2d
jne 0x6a332b
lea rbx, [r15 + 8]
movzx esi, byte [r15 + 8]
jmp 0x6a3385
mov ecx, 2
call qword [fcn.00701940]
mov r8, r15
lea rdx, str.Cannot_find_discovery_component___s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x6a3382
mov rbx, qword [r13 + 0x2c0]
mov ecx, 2
mov rbp, qword [fcn.00701940]
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 0x6a35df
mov rax, qword [rbx]
lea rsi, [0x00aed528]
lea r13, [0x00aed745]
lea r14, [0x00aed37f]
mov rdi, qword [rax + 8]
jmp 0x6a35be
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 0x6a35b4
mov ecx, 2
call rbp
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
jmp 0x6a34af
mov r8d, 0x6f69
mov byte [r15 + 8], 0x2c
mov word [r15 + 6], r8w
jmp 0x6a3509