Function at 0x1400fff18
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rcx
lea rcx, str.HWLOC_COMPONENTS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r13d, 2
lea r15d, [r13 - 1]
test rax, rax
je 0x14010011e
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
mov rbp, rax
test rax, rax
je 0x140100120
cmp byte [rax], 0
je 0x1400fffd3
lea rdx, [0x14013df98]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rdi, rax
test rax, rax
je 0x1400fffc1
cmp byte [rbx], 0x2d
jne 0x1400fffc1
mov sil, byte [rax + rbx]
lea rdx, [rbx + 1]
mov rcx, r14
mov byte [rax + rbx], 0
call fcn.1400ff8ec
xor ecx, ecx
test rdi, rdi
je 0x1400fffbd
xor eax, eax
add ecx, r15d
mov byte [rax + rbx], 0x2c
mov eax, ecx
cmp rax, rdi
jb 0x1400fffaf
mov byte [rdi + rbx], sil
add rbx, rdi
mov al, byte [rbx]
test al, al
je 0x1400fffd3
add rbx, r15
mov al, byte [rbx]
test al, al
jne 0x1400fff75
cmp byte [rbp], 0
mov rbx, rbp
je 0x140100120
lea rdx, [0x14013df98]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rdi, rax
test rax, rax
je 0x1401000f8
mov r8, rax
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 0x1401001af
add rdi, rbx
lea rdx, str.linuxpci
mov rcx, rbx
mov sil, byte [rdi]
mov byte [rdi], 0
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140100046
lea rdx, str.linuxio
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140100071
cmp dword [0x1403ea38c], 0
je 0x14010006a
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.hwloc:_Replacing_deprecated_component___s_with__linux_in_envvar_forcing_n
mov rcx, rax
call fcn.14000f480
lea rbx, str.linux
xor edx, edx
mov rcx, rbx
call fcn.1400ffa48
mov r10, rax
test rax, rax
je 0x1401000ce
mov eax, dword [r14 + 0x370]
xor r9d, r9d
xor ecx, ecx
test eax, eax
je 0x1401000b3
mov r8, qword [r14 + 0x378]
mov edx, ecx
add rdx, rdx
cmp r10, qword [r8 + rdx*8]
je 0x1401000ae
add ecx, r15d
cmp ecx, eax
jb 0x14010009a
jmp 0x1401000b3
mov r9d, dword [r8 + rdx*8 + 8]
mov eax, r9d
not eax
test dword [r10 + 8], eax
je 0x1401000f3
mov r8d, r15d
mov rdx, r10
mov rcx, r14
call fcn.1400ffe30
jmp 0x1401000f3
call fcn.1400f2bf8
cmp eax, r13d
jge 0x1401000f3
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.hwloc:_Cannot_find_discovery_component___s_n
mov rcx, rax
call fcn.14000f480
mov byte [rdi], sil
jmp 0x1401000fe
mov sil, byte [rbx]
mov rdi, rbx
mov al, sil
test sil, sil
je 0x140100109
mov al, byte [rdi + 1]
test sil, sil
lea rbx, [rdi + 1]
cmove rbx, rdi
test al, al
jne 0x1400fffe0
jmp 0x140100120
xor ebp, ebp
mov rbx, qword [0x1403ea380]
jmp 0x1401001a6
xor r9d, r9d
cmp dword [rbx + 0x1c], r9d
je 0x1401001a2
mov edx, dword [r14 + 0x370]
xor eax, eax
test edx, edx
je 0x14010015f
mov r8, qword [r14 + 0x378]
mov ecx, eax
add rcx, rcx
cmp rbx, qword [r8 + rcx*8]
je 0x14010015a
add eax, r15d
cmp eax, edx
jb 0x140100146
jmp 0x14010015f
mov r9d, dword [r8 + rcx*8 + 8]
mov edi, dword [rbx + 8]
mov eax, r9d
not eax
test edi, eax
jne 0x140100194
cmp dword [0x1403ea38c], 0
je 0x1401001a2
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbx]
lea rdx, str.hwloc:_Excluding_blacklisted_discovery_component___s_phases_0x_x_n
mov rcx, rax
mov r9d, edi
call fcn.14000f480
jmp 0x1401001a2
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.1400ffe30
mov rbx, qword [rbx + 0x20]
test rbx, rbx
jne 0x140100129
cmp dword [0x1403ea38c], 0
je 0x140100237
mov rsi, qword [r14 + 0x318]
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.hwloc:_Final_list_of_enabled_discovery_components:
call fcn.14000f480
jmp 0x14010021a
mov rdi, qword [rsi]
lea rax, [0x140121e69]
test r15d, r15d
lea rbx, [0x14013df98]
cmovne rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rdi]
lea rdx, str._s_s_0x_x_
mov rcx, rax
mov r8, rbx
mov eax, dword [rsi + 0x20]
mov dword [rsp + 0x20], eax
call fcn.14000f480
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov ecx, r13d
test rsi, rsi
jne 0x1401001d9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140125eac]
call fcn.14000f480
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]