Function at 0x140064784
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 0x14006498a
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 0x14006498c
cmp byte [rax], 0
je 0x14006483f
lea rdx, [0x14041391c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rdi, rax
test rax, rax
je 0x14006482d
cmp byte [rbx], 0x2d
jne 0x14006482d
mov sil, byte [rax + rbx]
lea rdx, [rbx + 1]
mov rcx, r14
mov byte [rax + rbx], 0
call fcn.1400652a4
xor ecx, ecx
test rdi, rdi
je 0x140064829
xor eax, eax
add ecx, r15d
mov byte [rax + rbx], 0x2c
mov eax, ecx
cmp rax, rdi
jb 0x14006481b
mov byte [rdi + rbx], sil
add rbx, rdi
mov al, byte [rbx]
test al, al
je 0x14006483f
add rbx, r15
mov al, byte [rbx]
test al, al
jne 0x1400647e1
cmp byte [rbp], 0
mov rbx, rbp
je 0x14006498c
lea rdx, [0x14041391c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rdi, rax
test rax, rax
je 0x140064964
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 0x140064a1b
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 0x1400648b2
lea rdx, str.linuxio
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400648dd
cmp dword [0x1407082a4], 0
je 0x1400648d6
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.140010930
lea rbx, str.linux
xor edx, edx
mov rcx, rbx
call fcn.140065108
mov r10, rax
test rax, rax
je 0x14006493a
mov eax, dword [r14 + 0x370]
xor r9d, r9d
xor ecx, ecx
test eax, eax
je 0x14006491f
mov r8, qword [r14 + 0x378]
mov edx, ecx
add rdx, rdx
cmp r10, qword [r8 + rdx*8]
je 0x14006491a
add ecx, r15d
cmp ecx, eax
jb 0x140064906
jmp 0x14006491f
mov r9d, dword [r8 + rdx*8 + 8]
mov eax, r9d
not eax
test dword [r10 + 8], eax
je 0x14006495f
mov r8d, r15d
mov rdx, r10
mov rcx, r14
call fcn.140065400
jmp 0x14006495f
call fcn.140024c0c
cmp eax, r13d
jge 0x14006495f
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.140010930
mov byte [rdi], sil
jmp 0x14006496a
mov sil, byte [rbx]
mov rdi, rbx
mov al, sil
test sil, sil
je 0x140064975
mov al, byte [rdi + 1]
test sil, sil
lea rbx, [rdi + 1]
cmove rbx, rdi
test al, al
jne 0x14006484c
jmp 0x14006498c
xor ebp, ebp
mov rbx, qword [0x140708298]
jmp 0x140064a12
xor r9d, r9d
cmp dword [rbx + 0x1c], r9d
je 0x140064a0e
mov edx, dword [r14 + 0x370]
xor eax, eax
test edx, edx
je 0x1400649cb
mov r8, qword [r14 + 0x378]
mov ecx, eax
add rcx, rcx
cmp rbx, qword [r8 + rcx*8]
je 0x1400649c6
add eax, r15d
cmp eax, edx
jb 0x1400649b2
jmp 0x1400649cb
mov r9d, dword [r8 + rcx*8 + 8]
mov edi, dword [rbx + 8]
mov eax, r9d
not eax
test edi, eax
jne 0x140064a00
cmp dword [0x1407082a4], 0
je 0x140064a0e
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.140010930
jmp 0x140064a0e
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.140065400
mov rbx, qword [rbx + 0x20]
test rbx, rbx
jne 0x140064995
cmp dword [0x1407082a4], 0
je 0x140064aa3
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.140010930
jmp 0x140064a86
mov rdi, qword [rsi]
lea rax, [0x1404119ce]
test r15d, r15d
lea rbx, [0x14041391c]
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.140010930
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov ecx, r13d
test rsi, rsi
jne 0x140064a45
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140413c0c]
call fcn.140010930
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]