Function at 0x140090c58
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, 0x20
mov r13, rcx
lea rcx, str.HWLOC_COMPONENTS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140090c98
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
jmp 0x140090c9a
xor esi, esi
mov r15d, 1
test rsi, rsi
je 0x140090db0
cmp byte [rsi], 0
mov rbx, rsi
je 0x140090db0
lea r14d, [r15 + 7]
lea rdx, [0x1400a7830]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
mov rdi, rax
test rax, rax
je 0x140090d9a
mov r8, r14
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 0x140090d4a
cmp rdi, r14
jne 0x140090d4a
mov word [rbx + 5], 0x6f69
mov byte [rbx + 7], 0x2c
cmp byte [rbx], 0x2d
je 0x140090d9a
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 0x140090e80
mov bpl, byte [rdi + rbx]
mov rdx, rbx
or ecx, 0xffffffff
mov byte [rdi + rbx], 0
call fcn.1400907f8
test rax, rax
je 0x140090d79
mov r9d, r15d
xor r8d, r8d
mov rdx, rax
mov rcx, r13
call fcn.140090b5c
jmp 0x140090d96
cmp byte [rbx], 0x2d
jne 0x140090d04
lea rcx, [rbx + 1]
mov r8, r14
lea rdx, str.linuxpci
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140090cfb
cmp rdi, 9
jne 0x140090cfb
mov word [rbx + 6], 0x6f69
mov byte [rbx + 8], 0x2c
jmp 0x140090d9a
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.140001200
mov byte [rdi + rbx], bpl
add rbx, rdi
mov al, byte [rbx]
test al, al
je 0x140090db0
add rbx, r15
mov al, byte [rbx]
test al, al
jne 0x140090cb9
mov rdi, qword [0x1400b7730]
jmp 0x140090e77
cmp dword [rdi + 0x24], 0
je 0x140090e73
test rsi, rsi
je 0x140090e62
cmp byte [rsi], 0
mov rbx, rsi
je 0x140090e62
lea rdx, [0x1400a7830]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp byte [rbx], 0x2d
mov rbp, rax
jne 0x140090e1a
mov rdx, qword [rdi + 8]
lea r14, [rax - 1]
mov r8, r14
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140090e1a
mov rcx, qword [rdi + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rax, r14
je 0x140090e2c
add rbx, rbp
mov al, byte [rbx]
test al, al
je 0x140090e62
add rbx, r15
mov al, byte [rbx]
test al, al
jmp 0x140090dd5
cmp dword [0x1400b773c], 0
je 0x140090e73
mov ecx, dword [rdi]
call fcn.140090c28
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rdi + 8]
lea rdx, str.Excluding__s_discovery_component___s_because_of_HWLOC_COMPONENTS_environment_variable_n
mov rcx, rax
mov r8, rbx
call fcn.140001200
jmp 0x140090e73
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call fcn.140090b5c
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140090dbc
cmp dword [0x1400b773c], 0
je 0x140090f06
mov r14, 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.140001200
jmp 0x140090ee7
mov rdi, qword [r14]
lea rax, [0x14009dfe0]
test r15d, r15d
lea rbx, [0x1400a7830]
cmovne rbx, rax
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.140001200
mov r14, qword [r14 + 0x18]
xor r15d, r15d
mov ecx, 2
test r14, r14
jne 0x140090eac
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.140001200
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]