Function at 0x14002e2a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x1400b89e8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, rcx
mov qword [rbp - 0x41], rdx
xor esi, esi
mov qword [rbp - 0x51], rdx
lea rcx, str.HWLOC_SYNTHETIC_VERBOSE
mov dword [rbp - 0x69], esi
mov r14d, esi
mov r13, rdx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov dword [rbp - 0x5d], 1
test rax, rax
je 0x14002e304
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r14d, eax
mov dword [rbp - 0x69], eax
mov dword [r12 + 8], esi
lea r8, [r12 + 0x38]
mov qword [r12 + 0x20], rsi
lea r9, [r12 + 0x50]
lea r15, [r12 + 0x48]
mov dword [r8], esi
lea rbx, [r12 + 0x70]
mov qword [r9], rsi
mov qword [r15], rsi
mov qword [rbx], rsi
mov dword [r12 + 0x34], 1
mov qword [r12 + 0x60], rsi
cmp byte [r13], 0x28
jne 0x14002e365
lea rcx, [r13 + 1]
mov dword [rsp + 0x20], r14d
lea rdx, [rbp - 0x51]
call fcn.14002e040
test eax, eax
js 0x14002ec63
mov r13, qword [rbp - 0x51]
mov qword [rbp - 0x41], r13
mov qword [r12 + 0x10], rsi
mov r11d, 1
mov qword [r12 + 0x20], rsi
mov qword [rsp + 0x110], rdi
mov rdi, r13
mov dword [rbp - 0x65], r11d
cmp byte [r13], sil
je 0x14002e610
mov edx, esi
mov dword [rbp - 0x51], edx
nop dword [rax]
nop word [rax + rax]
mov eax, edx
mov r13d, 0xffffffff
mov dword [rbp - 0x61], r13d
lea rcx, [rax + rax*8]
lea r14, [r12 + rcx*8]
mov dword [r14 + 0x30], esi
movzx eax, byte [rdi]
mov qword [rbp - 0x49], r14
cmp al, 0x20
jne 0x14002e3ce
movzx eax, byte [rdi + 1]
inc rdi
cmp al, 0x20
je 0x14002e3c3
test al, al
je 0x14002e610
cmp al, 0x5b
jne 0x14002e4c8
inc rdi
lea r8, [rbp - 0x39]
mov rcx, rdi
lea rdx, [rbp - 0x61]
mov r9d, 0x28
call sym.cornelius.exe_hwloc_type_sscanf
test eax, eax
js 0x14002e697
cmp dword [rbp - 0x61], 0xd
jne 0x14002e677
mov eax, dword [r14 + 0x34]
mov ecx, 0x20
add dword [r12 + 8], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x14002e453
mov rdx, qword [rbp - 0x49]
add rdx, 0x70
mov dword [rax], reloc.WS2_32.dll_listen
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov rcx, qword [rdx]
test rcx, rcx
je 0x14002e450
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x14002e443
mov qword [rdx], r14
mov edx, 0x5d
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov qword [rbp - 0x59], rax
test rax, rax
je 0x14002e657
mov edx, 0x28
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14002e4b1
mov rcx, qword [rbp - 0x59]
cmp rax, rcx
jae 0x14002e4b5
test r14, r14
je 0x14002e4b5
lea rcx, [rax + 1]
mov r8, r14
mov eax, dword [rbp - 0x69]
lea r9, [r12 + 0x10]
lea rdx, [rbp - 0x49]
mov dword [rsp + 0x20], eax
call fcn.14002e040
test eax, eax
js 0x14002e780
mov rcx, qword [rbp - 0x59]
mov edx, dword [rbp - 0x51]
inc rcx
mov r11d, dword [rbp - 0x65]
mov qword [rbp - 0x59], rcx
jmp 0x14002e604
mov eax, r11d
lea rcx, [rax + rax*8]
lea r14, [r12 + rcx*8]
mov qword [r14 + 0x50], rsi
mov qword [r14 + 0x60], rsi
mov qword [r14 + 0x70], rsi
movzx eax, byte [rdi]
sub al, 0x30
cmp al, 9
jbe 0x14002e53e
mov r9d, 0x28
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x61]
mov rcx, rdi
call sym.cornelius.exe_hwloc_type_sscanf
test eax, eax
js 0x14002e6f4
mov r13d, dword [rbp - 0x61]
test r13d, r13d
je 0x14002e6d7
lea eax, [r13 - 0xe]
cmp eax, 3
jbe 0x14002e6d7
mov edx, 0x3a
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov qword [rbp - 0x59], rax
test rax, rax
je 0x14002e6b7
lea rdi, [rax + 1]
lea eax, [r13 - 4]
mov dword [r14 + 0x38], r13d
mov qword [r14 + 0x3c], 0xffffffffffffffff
cmp eax, 7
ja 0x14002e563
mov eax, dword [rbp - 0x31]
mov dword [r14 + 0x3c], eax
mov eax, dword [rbp - 0x25]
mov dword [r14 + 0x40], eax
jmp 0x14002e573
mov eax, dword [r14 + 0x3c]
cmp r13d, 0xc
cmove eax, dword [rbp - 0x39]
mov dword [r14 + 0x3c], eax
xor r8d, r8d
lea rdx, [rbp - 0x59]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov rcx, qword [rbp - 0x59]
cmp rcx, rdi
je 0x14002e74c
test eax, eax
je 0x14002e733
mov rdx, qword [rbp - 0x49]
lea r9, [r14 + 0x50]
mov edi, dword [rbp - 0x69]
mov qword [r9], rsi
mov qword [r14 + 0x60], rsi
mov dword [rdx + 0x30], eax
mov edx, dword [rbp - 0x5d]
imul edx, eax
mov qword [r14 + 0x48], rsi
mov dword [r14 + 0x34], edx
cmp byte [rcx], 0x28
mov dword [rbp - 0x5d], edx
jne 0x14002e5e3
inc rcx
mov dword [rsp + 0x20], edi
lea r8, [r14 + 0x38]
lea rdx, [rbp - 0x59]
call fcn.14002e040
test eax, eax
js 0x14002e780
mov rcx, qword [rbp - 0x59]
mov edx, dword [rbp - 0x51]
lea eax, [rdx + 2]
cmp eax, 0x80
jae 0x14002e70d
mov r11d, dword [rbp - 0x65]
inc r11d
inc edx
mov dword [rbp - 0x65], r11d
mov dword [rbp - 0x51], edx
mov rdi, rcx
cmp byte [rcx], sil
jne 0x14002e3a0
lea r10d, [r11 - 1]
mov eax, r10d
lea rdx, [r10*8 + 7]
add rdx, rax
mov eax, dword [r12 + rdx*8]
inc eax
lea rdx, [r12 + rdx*8]
test eax, 0xfffffffb
je 0x14002e7d9
cmp dword [rbp - 0x69], esi
je 0x14002e976
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_cannot_use_non_PU_type_for_last_level_n
jmp 0x14002e96e
cmp dword [rbp - 0x69], esi
je 0x14002e76e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_doesnt_have_a_closing____after_attached_object_type_at__s_n
jmp 0x14002e763
cmp dword [rbp - 0x69], esi
je 0x14002e76e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_disallowed_attached_object_type_at__s_n
jmp 0x14002e763
cmp dword [rbp - 0x69], esi
je 0x14002e76e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_unknown_attached_object_type_at__s_n
jmp 0x14002e763
cmp dword [rbp - 0x69], esi
je 0x14002e76e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_doesnt_have_a__:_after_object_type_at__s_n
jmp 0x14002e763
cmp dword [rbp - 0x69], esi
je 0x14002e76e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_disallowed_object_type_at__s_n
jmp 0x14002e763
cmp dword [rbp - 0x69], esi
je 0x14002e76e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_unknown_object_type_at__s_n
jmp 0x14002e763
test edi, edi
je 0x14002e76e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x80
lea rdx, str.Too_many_synthetic_levels__max__d_n
mov rcx, rax
call fcn.140001fc0
jmp 0x14002e76e
cmp dword [rbp - 0x69], esi
je 0x14002e76e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_disallow_0_number_of_objects_at__s_n
jmp 0x14002e763
cmp dword [rbp - 0x69], esi
je 0x14002e76e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_doesnt_have_a_number_of_objects_at__s_n
mov r8, rdi
mov rcx, rax
call fcn.140001fc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
nop word [rax + rax]
cmp qword [rbx], 0
je 0x14002e7a6
nop word [rax + rax]
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x18]
mov qword [rbx], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [rbx], 0
jne 0x14002e790
mov rcx, qword [rbx - 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rbx - 0x40], 0
je 0x14002e7c4
inc esi
add rbx, 0x48
cmp esi, 0x80
jb 0x14002e780
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffffff
jmp 0x14002ec5b
mov dword [rdx], 3
mov ecx, r10d
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
test r10d, r10d
je 0x14002e825
nop dword [rax + rax]
movsxd rax, dword [rdx]
cmp eax, 0xffffffff
je 0x14002e81c
inc dword [rbp + rax*4 - 0x39]
sub rdx, 0x48
add ecx, 0xffffffff
jne 0x14002e810
mov eax, dword [rbp - 0x2d]
test eax, eax
jne 0x14002e84a
cmp dword [rbp - 0x69], esi
je 0x14002e976
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_missing_ending_number_of_PUs_n
jmp 0x14002e96e
cmp eax, 1
jle 0x14002e86f
cmp dword [rbp - 0x69], esi
je 0x14002e976
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_cannot_have_several_PU_levels_n
jmp 0x14002e96e
cmp dword [rbp - 0x35], 1
jle 0x14002e895
cmp dword [rbp - 0x69], esi
je 0x14002e976
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_cannot_have_several_package_levels_n
jmp 0x14002e96e
mov r14d, dword [rbp - 5]
cmp r14d, 1
jle 0x14002e8bf
cmp dword [rbp - 0x69], esi
je 0x14002e976
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_cannot_have_several_NUMA_node_levels_n
jmp 0x14002e96e
test r14d, r14d
je 0x14002e8eb
cmp dword [r12 + 8], esi
je 0x14002e8eb
cmp dword [rbp - 0x69], esi
je 0x14002e976
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_cannot_have_NUMA_nodes_both_as_a_level_and_attached_n
jmp 0x14002e96e
cmp dword [rbp - 0x31], 1
jle 0x14002e90e
cmp dword [rbp - 0x69], esi
je 0x14002e976
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_cannot_have_several_core_levels_n
jmp 0x14002e96e
mov r8d, 1
mov ecx, esi
cmp r10d, r8d
jbe 0x14002eaf9
lea r9, [r12 + 0x80]
mov rdx, r9
nop word [rax + rax]
cmp dword [rdx], 0xffffffff
lea eax, [rcx + 1]
lea rdx, [rdx + 0x48]
cmovne eax, ecx
inc r8d
mov ecx, eax
cmp r8d, r10d
jb 0x14002e930
test eax, eax
je 0x14002eaf9
lea edx, [r11 - 2]
cmp eax, edx
je 0x14002e98c
cmp dword [rbp - 0x69], esi
je 0x14002e976
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_cannot_mix_unspecified_and_specified_types_for_levels_n
mov rcx, rax
call fcn.140001fc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
mov eax, 0xffffffff
jmp 0x14002ec5b
cmp edx, 1
jb 0x14002e99e
mov r10d, 1
cmp dword [r12 + 8], esi
je 0x14002e9a1
mov r10d, esi
mov edi, dword [rbp - 9]
sub edx, r10d
cmp edx, 1
mov ebx, esi
mov eax, edx
setae bl
sub eax, ebx
mov r13d, eax
mov dword [rbp - 0x5d], eax
cmp r13d, 1
mov eax, esi
setae al
sub r13d, eax
mov eax, 4
cmp r13d, eax
mov r8d, r13d
mov r11d, r13d
cmova r8d, eax
sub r11d, r8d
je 0x14002ea01
mov eax, r11d
add edi, r11d
nop dword [rax]
nop word [rax + rax]
mov dword [r9], listen
lea r9, [r9 + 0x48]
sub rax, 1
jne 0x14002e9f0
cmp edx, 1
jb 0x14002ea17
lea eax, [r11 + 1]
lea rax, [rax + rax*8]
mov dword [r12 + rax*8 + 0x38], 1
test r10d, r10d
je 0x14002ea35
lea eax, [r11 + 1]
mov r14d, 1
add eax, ebx
lea rax, [rax + rax*8]
mov dword [r12 + rax*8 + 0x38], reloc.WS2_32.dll_listen
test r8d, r8d
je 0x14002ead6
lea ecx, [r11 + 1]
mov edx, esi
add ecx, ebx
add ecx, r10d
cmp r8d, 3
setae dl
add edx, ecx
lea r9d, [rdx + 1]
lea r11d, [r9 + 1]
cmp r8d, 3
jb 0x14002ea76
lea rcx, [rcx + rcx*8]
mov dword [r12 + rcx*8 + 0x38], 6
mov qword [r12 + rcx*8 + 0x3c], 3
lea rcx, [rdx + rdx*8]
mov dword [r12 + rcx*8 + 0x38], 5
mov qword [r12 + rcx*8 + 0x3c], 2
cmp r8d, 2
jb 0x14002eab1
lea rcx, [r9 + r9*8]
mov dword [r12 + rcx*8 + 0x38], 4
mov dword [r12 + rcx*8 + 0x3c], 1
mov dword [r12 + rcx*8 + 0x40], 1
cmp r8d, 4
jb 0x14002ead6
lea rcx, [r11 + r11*8]
mov dword [r12 + rcx*8 + 0x38], 9
mov dword [r12 + rcx*8 + 0x3c], 1
mov dword [r12 + rcx*8 + 0x40], 2
cmp dword [rbp - 0x5d], 1
mov r11d, dword [rbp - 0x65]
jb 0x14002eafc
lea ecx, [r13 + 1]
lea eax, [rbx + r10]
add ecx, eax
lea rcx, [rcx + rcx*8]
mov dword [r12 + rcx*8 + 0x38], 2
jmp 0x14002eafc
mov edi, dword [rbp - 9]
test r14d, r14d
mov r14d, dword [rbp - 0x69]
jne 0x14002eb9c
cmp dword [r12 + 8], esi
jne 0x14002eb9c
test r14d, r14d
je 0x14002eb33
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.Inserting_a_NUMA_level_with_a_single_object_at_depth_1_n
call fcn.140001fc0
mov eax, dword [rbp - 0x65]
lea rcx, [r12 + 0xc0]
lea rdx, [r12 + 0x78]
lea r8, [rax + rax*8]
shl r8, 3
call sub.VCRUNTIME140.dll_memmove
mov r11d, dword [rbp - 0x65]
mov eax, dword [r12 + 0x34]
inc r11d
mov dword [r12 + 0x7c], eax
mov eax, dword [r12 + 0x30]
mov dword [rbp - 0x65], r11d
mov dword [r12 + 0x80], reloc.WS2_32.dll_listen
mov qword [r12 + 0x98], rsi
mov qword [r12 + 0xa8], rsi
mov qword [r12 + 0x90], rsi
mov dword [r12 + 0x78], eax
mov dword [r12 + 0x30], 1
test r11d, r11d
je 0x14002ec28
mov ebx, r11d
lea r13, [r12 + 0x50]
nop dword [rax]
mov ecx, dword [r15 - 0x10]
cmp ecx, 0xc
jne 0x14002ebc8
cmp dword [r15 - 0xc], 0xffffffff
jne 0x14002ec08
mov dword [r15 - 0xc], edi
dec edi
jmp 0x14002ec08
lea eax, [rcx - 4]
cmp eax, 7
ja 0x14002ebf7
cmp qword [r15], rsi
jne 0x14002ec08
mov ecx, dword [r15 - 0xc]
cmp ecx, 1
jne 0x14002ebe7
mov qword [r15], 0x8000
jmp 0x14002ec08
mov eax, 0x40000
add ecx, ecx
shl eax, cl
cdqe
mov qword [r15], rax
jmp 0x14002ec08
cmp ecx, 0xd
jne 0x14002ec08
cmp qword [r15], rsi
jne 0x14002ec08
mov qword [r15], 0x40000000
mov r8d, dword [r15 - 0x14]
mov r9d, r14d
mov rdx, r13
mov rcx, r12
call fcn.14002d7d0
add r13, 0x48
add r15, 0x48
sub rbx, 1
jne 0x14002ebb0
mov r8d, dword [r12 + 8]
lea rdx, [r12 + 0x10]
mov r9d, r14d
mov rcx, r12
call fcn.14002d7d0
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [r12], rax
mov eax, dword [rbp - 0x65]
dec eax
lea rax, [rax + rax*8]
mov dword [r12 + rax*8 + 0x30], esi
xor eax, eax
mov rdi, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14008ccd0
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret