Function at 0x6ab390
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 0x6ab4a0
mov rcx, rax
call qword [sym.imp.msvcrt.dll__strdup_1]
mov r12, rax
test rax, rax
je 0x6ab4a0
movzx ebx, byte [rax]
mov r15, rax
lea rbp, str.linuxpci
lea r14, str.stop
test bl, bl
je 0x6ab4a3
lea rdx, [0x00d0c49f]
mov rcx, r15
call sub.msvcrt.dll_strcspn
test rax, rax
je 0x6ab490
mov ecx, 8
mov rsi, r15
mov rdi, rbp
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x6ab422
cmp rax, 8
je 0x6ab611
cmp bl, 0x2d
je 0x6ab5e0
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 0x6ab5a1
lea rbx, [r15 + rax]
mov rdx, r15
mov ecx, 0xffffffff
movzx esi, byte [rbx]
mov byte [rbx], 0
call fcn.006aa920
test rax, rax
je 0x6ab640
mov r8d, 1
mov rdx, rax
mov rcx, r13
call fcn.006ab2a0
mov byte [rbx], sil
test sil, sil
je 0x6ab4a3
mov r15, rbx
nop dword [rax]
movzx ebx, byte [r15 + 1]
add r15, 1
jmp 0x6ab3e1
xor r12d, r12d
mov rbp, qword [0x00e1cea0]
test rbp, rbp
je 0x6ab5a1
lea rsi, [0x00d0c49f]
jmp 0x6ab4e7
add rbx, r15
cmp byte [rbx], 0
jne 0x6ab5d0
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
call fcn.006ab2a0
mov rbp, qword [rbp + 0x28]
test rbp, rbp
je 0x6ab5a1
mov ecx, dword [rbp + 0x24]
test ecx, ecx
je 0x6ab4da
mov rbx, r12
test r12, r12
je 0x6ab4cc
movzx edi, byte [rbx]
test dil, dil
je 0x6ab4cc
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strcspn
mov r15, rax
cmp dil, 0x2d
jne 0x6ab4c0
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 0x6ab4c0
mov rcx, rdi
call sub.msvcrt.dll_strlen
cmp r14, rax
jne 0x6ab4c0
mov edx, dword [0x00e1ce94]
test edx, edx
je 0x6ab4da
mov eax, dword [rbp]
lea rbx, str.global
cmp eax, 2
je 0x6ab574
lea rbx, str.misc
cmp eax, 4
je 0x6ab574
cmp eax, 1
lea rbx, [0x00d0c34c]
lea rax, [0x00d0c340]
cmovne rbx, rax
mov ecx, 2
call qword [fcn.00912130]
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 0x6ab4e7
mov eax, dword [0x00e1ce94]
test eax, eax
jne 0x6ab662
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.00911ec8
add rbx, 1
jmp 0x6ab4f6
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 0x6ab609
test edx, edx
je 0x6ab6f8
movzx esi, byte [rbx]
jmp 0x6ab485
mov r9d, 0x6f69
mov byte [r15 + 7], 0x2c
mov word [r15 + 5], r9w
cmp bl, 0x2d
jne 0x6ab42b
lea rbx, [r15 + 8]
movzx esi, byte [r15 + 8]
jmp 0x6ab485
mov ecx, 2
call qword [fcn.00912130]
mov r8, r15
lea rdx, str.Cannot_find_discovery_component___s_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x6ab482
mov rbx, qword [r13 + 0x2c0]
mov ecx, 2
mov rbp, qword [fcn.00912130]
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 0x6ab6df
mov rax, qword [rbx]
lea rsi, [0x00d0c648]
lea r13, [0x00d0c865]
lea r14, [0x00d0c49f]
mov rdi, qword [rax + 8]
jmp 0x6ab6be
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 0x6ab6b4
mov ecx, 2
call rbp
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
jmp 0x6ab5af
mov r8d, 0x6f69
mov byte [r15 + 8], 0x2c
mov word [r15 + 6], r8w
jmp 0x6ab609