Function at 0x1400210e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov r13, rcx
lea rcx, str.HWLOC_COMPONENTS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r12d, 1
test rax, rax
je 0x14002129a
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r15, rax
test rax, rax
je 0x14002129d
cmp byte [rax], 0
mov rbx, rax
je 0x14002129d
nop word [rax + rax]
lea rdx, [0x1400a1494]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rdi, rax
test rax, rax
je 0x140021225
mov r8d, 8
lea rdx, str.linuxpci
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14002124c
cmp rdi, 8
jne 0x14002124c
mov word [rbx + 5], 0x6f69
mov byte [rbx + 7], 0x2c
cmp byte [rbx], 0x2d
je 0x140021225
mov r8, rdi
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 0x140021364
movzx esi, byte [rdi + rbx]
mov byte [rdi + rbx], 0
mov r10, qword [0x1400c2458]
test r10, r10
je 0x140021204
nop word [rax + rax]
mov r8, qword [r10 + 8]
mov rax, rbx
sub r8, rbx
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400211f3
inc rax
test ecx, ecx
jne 0x1400211e0
test edx, edx
je 0x14002128a
mov r10, qword [r10 + 0x28]
test r10, r10
jne 0x1400211d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Cannot_find_discovery_component___s_n
mov rcx, rax
call fcn.140001fc0
mov byte [rdi + rbx], sil
movzx ecx, byte [rdi + rbx]
lea rax, [rdi + rbx]
movzx edx, cl
test cl, cl
je 0x140021238
movzx edx, byte [rax + 1]
test cl, cl
lea rbx, [rax + 1]
cmove rbx, rax
test dl, dl
jne 0x140021140
jmp 0x14002129d
cmp byte [rbx], 0x2d
jne 0x140021197
lea rcx, [rbx + 1]
mov r8d, 8
lea rdx, str.linuxpci
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14002118e
cmp rdi, 9
jne 0x14002118e
mov word [rbx + 6], 0x6f69
mov byte [rbx + 8], 0x2c
jmp 0x140021225
mov r9d, r12d
mov rdx, r10
mov rcx, r13
call fcn.140020fe0
jmp 0x140021221
xor r15d, r15d
mov rsi, qword [0x1400c2458]
test rsi, rsi
je 0x140021364
mov qword [rsp + 0x50], r14
cmp dword [rsi + 0x24], 0
je 0x140021352
test r15, r15
je 0x140021344
cmp byte [r15], 0
mov rbx, r15
je 0x140021344
nop
lea rdx, [0x1400a1494]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp byte [rbx], 0x2d
mov r14, rax
jne 0x140021322
mov rdx, qword [rsi + 8]
lea rbp, [rax - 1]
mov r8, rbp
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140021322
mov rdi, qword [rsi + 8]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140021310
cmp rax, rbp
je 0x140021418
movzx edx, byte [r14 + rbx]
lea rax, [r14 + rbx]
movzx ecx, dl
test dl, dl
je 0x140021336
movzx ecx, byte [rax + 1]
test dl, dl
lea rbx, [rax + 1]
cmove rbx, rax
test cl, cl
jne 0x1400212d0
xor r9d, r9d
mov rdx, rsi
mov rcx, r13
call fcn.140020fe0
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400212b2
mov r14, qword [rsp + 0x50]
cmp dword [0x1400c2468], 0
je 0x1400213f8
mov rsi, qword [r13 + 0x2c0]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Final_list_of_enabled_discovery_components:
call fcn.140001fc0
test rsi, rsi
je 0x1400213de
lea rbp, [0x1400a0f2a]
nop
mov rdi, qword [rsi]
lea rbx, [0x1400a1494]
test r12d, r12d
mov ecx, 2
cmovne rbx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rdi + 8]
lea rdx, str._s_s
mov rcx, rax
mov r8, rbx
call fcn.140001fc0
mov rsi, qword [rsi + 0x18]
xor r12d, r12d
test rsi, rsi
jne 0x1400213a0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.140001fc0
mov rcx, r15
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rsi
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x1400c2468], 0
je 0x140021352
mov ecx, dword [rsi]
sub ecx, r12d
je 0x140021451
sub ecx, r12d
je 0x140021448
cmp ecx, 2
je 0x14002143f
lea rbx, str.unknown
jmp 0x140021458
lea rbx, str.misc
jmp 0x140021458
lea rbx, str.global
jmp 0x140021458
lea rbx, [0x1400a1d20]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rdi
lea rdx, str.Excluding__s_discovery_component___s_because_of_HWLOC_COMPONENTS_environment_variable_n
mov rcx, rax
mov r8, rbx
call fcn.140001fc0
jmp 0x140021352