Function at 0x1400161c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
mov dword [rcx + 0xbc], esi
call sym.cornelius.exe_hwloc_bitmap_alloc_full
mov qword [rbx + 0x188], rax
call sym.cornelius.exe_hwloc_bitmap_alloc_full
mov rdi, qword [rbx + 0x2c0]
mov qword [rbx + 0x190], rax
test rdi, rdi
je 0x140016223
nop
mov rax, qword [rdi]
mov ecx, dword [rax]
dec ecx
cmp ecx, 1
ja 0x14001621a
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14001621a
mov rcx, rdi
call rax
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140016200
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov r8, qword [rax + 0xb8]
test r8, r8
je 0x14001625e
cmp dword [r8 + 0x10], esi
jne 0x14001627f
mov edx, dword [r8]
mov ecx, esi
test edx, edx
je 0x14001625e
mov r9, qword [r8 + 8]
nop dword [rax]
mov eax, ecx
cmp dword [r9 + rax*4], esi
jne 0x14001627f
inc ecx
cmp ecx, edx
jb 0x140016250
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
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x250], rsi
je 0x1400162be
cmp dword [rbx + 0xb4], esi
je 0x1400162be
lea rcx, str.HWLOC_THISSYSTEM_ALLOWED_RESOURCES
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400162af
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x1400162b5
test byte [rbx + 0x20], 4
je 0x1400162be
mov rcx, rbx
call qword [rbx + 0x250]
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r14
mov rcx, qword [rax]
mov rax, qword [rcx]
mov r8, qword [rax + 0xd0]
cmp dword [r8 + 0x10], esi
jne 0x1400163f7
mov edx, dword [r8]
mov ecx, esi
test edx, edx
je 0x140016302
mov r8, qword [r8 + 8]
mov eax, ecx
cmp dword [r8 + rax*4], esi
jne 0x1400163f7
inc ecx
cmp ecx, edx
jb 0x1400162f0
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0xd]
call sym.cornelius.exe_hwloc_alloc_setup_object
mov rcx, qword [rbx + 0x18]
mov rbp, rax
mov rdx, qword [rcx]
mov rcx, qword [rdx]
mov r14, qword [rcx + 0xb8]
test r14, r14
jne 0x14001632f
mov rdi, rsi
jmp 0x140016392
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140016347
mov rdi, rsi
jmp 0x140016392
mov ecx, dword [r14 + 4]
shl rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 8], rax
mov rcx, rax
test rax, rax
jne 0x14001636f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rsi
jmp 0x140016392
mov eax, dword [r14 + 4]
mov dword [rdi + 4], eax
mov eax, dword [r14]
mov r8d, eax
mov dword [rdi], eax
mov rdx, qword [r14 + 8]
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [r14 + 0x10]
mov dword [rdi + 0x10], eax
mov qword [rbp + 0xb8], rdi
call sym.cornelius.exe_hwloc_bitmap_alloc
xor edx, edx
mov qword [rbp + 0xc8], rax
mov rcx, rax
call sym.cornelius.exe_hwloc_bitmap_set
mov rax, qword [rbp + 0x28]
lea r9, [sym.cornelius.exe_hwloc_report_os_error]
movups xmm0, xmmword [rbx + 0x2e0]
mov r8, rbp
xor edx, edx
mov rcx, rbx
movups xmmword [rax], xmm0
movsd xmm1, qword [rbx + 0x2f0]
movsd qword [rax + 0x10], xmm1
xor eax, eax
mov qword [rbx + 0x2e0], rax
mov qword [rbx + 0x2e8], rax
mov qword [rbx + 0x2f0], rax
call sym.cornelius.exe_hwloc__insert_object_by_cpuset
jmp 0x14001641b
mov rcx, qword [rbx + 0x2f0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [rbx + 0x2e0], rax
mov qword [rbx + 0x2e8], rax
mov qword [rbx + 0x2f0], rax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, qword [r8 + 0xb8]
mov r8, qword [r8 + 0xc0]
mov rdx, rcx
call sym.cornelius.exe_hwloc_bitmap_and
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, qword [r8 + 0xc8]
mov r8, qword [r8 + 0xd0]
mov rdx, rcx
call sym.cornelius.exe_hwloc_bitmap_and
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x188]
mov rdx, qword [rax]
mov r8, qword [rdx]
mov rdx, rcx
mov r8, qword [r8 + 0xb8]
call sym.cornelius.exe_hwloc_bitmap_and
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x190]
mov rdx, qword [rax]
mov r8, qword [rdx]
mov rdx, rcx
mov r8, qword [r8 + 0xc8]
call sym.cornelius.exe_hwloc_bitmap_and
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.140014280
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.140013d70
test byte [rbx + 0x20], 1
jne 0x1400164d1
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.1400146d0
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rdx, qword [rcx]
movsxd rcx, dword [rdx]
cmp ecx, 0x12
jb 0x1400164f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x14001655f
mov r8d, dword [rbx + rcx*4 + 0x6c]
cmp r8d, 1
je 0x14001655f
cmp r8d, 3
jne 0x1400165df
cmp ecx, 0xf
jne 0x140016549
mov rax, qword [rdx + 0x28]
movzx edx, word [rax + 6]
mov ecx, edx
shr ecx, 8
lea eax, [rcx - 1]
cmp eax, 2
jbe 0x1400165df
cmp ecx, 0xb
je 0x1400165df
lea eax, [rdx - 0xc04]
test eax, 0xfffffffd
je 0x1400165df
cmp ecx, 0x12
je 0x1400165df
jmp 0x14001655f
cmp ecx, 0x10
jne 0x1400165df
mov rax, qword [rdx + 0x28]
cmp dword [rax], 4
jne 0x1400165df
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rdi, qword [rcx]
mov r8, qword [rdi + 0x78]
test r8, r8
je 0x1400165df
cmp qword [r8 + 0x58], rsi
jne 0x1400165df
mov qword [r8 + 0x48], rsi
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov qword [rcx], r8
mov rdx, qword [rdi + 0x90]
test rdx, rdx
je 0x14001659e
lea rcx, [r8 + 0x90]
call fcn.140011960
mov rdx, qword [rdi + 0xa0]
test rdx, rdx
je 0x1400165b6
lea rcx, [r8 + 0xa0]
call fcn.140011960
mov rdx, qword [rdi + 0xb0]
test rdx, rdx
je 0x1400165ce
lea rcx, [r8 + 0xb0]
call fcn.140011960
mov rcx, rdi
call fcn.140011460
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor edx, edx
mov rcx, rbx
call sym.cornelius.exe_hwloc_topology_reconnect
test eax, eax
js 0x14001686c
mov rdi, qword [rbx + 0x2c0]
test rdi, rdi
je 0x140016623
nop dword [rax]
mov rax, qword [rdi]
mov ecx, dword [rax]
dec ecx
cmp ecx, 1
jbe 0x14001661a
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14001661a
mov rcx, rdi
call rax
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140016600
cmp dword [rbx + 4], esi
ja 0x14001662d
mov rbp, rsi
jmp 0x140016644
mov rax, qword [rbx + 0x10]
cmp dword [rax], esi
ja 0x14001663a
mov rbp, rsi
jmp 0x140016644
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rbp, qword [rcx]
cmp dword [rbx + 0x2f8], esi
je 0x1400166f6
lea r14, [rbp + 0xa0]
mov dword [rbx + 0x2f8], esi
mov rdi, qword [r14]
test rdi, rdi
je 0x1400166f6
nop dword [rax]
mov eax, dword [rdi]
cmp eax, 0xf
je 0x1400166ba
cmp eax, 0xe
jne 0x1400166ce
mov rax, qword [rdi + 0x28]
cmp dword [rax + 0x20], 1
je 0x14001668c
cmp dword [rax + 0x18], 1
jne 0x1400166ce
cmp dword [rax + 0x18], 1
je 0x1400166ba
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x1400166ea
mov eax, dword [rcx]
cmp eax, 0xf
je 0x1400166b4
cmp eax, 0xe
jne 0x1400166ea
mov rax, qword [rcx + 0x28]
cmp dword [rax + 0x18], 1
jne 0x1400166ea
mov rdx, qword [rcx + 0x28]
jmp 0x1400166be
mov rdx, qword [rdi + 0x28]
mov rcx, rbx
call fcn.14001fe40
mov rdx, rax
cmp rax, rbp
jne 0x1400166d4
lea r14, [rdi + 0x58]
jmp 0x1400166ea
mov rax, qword [rdi + 0x58]
mov r8, rdi
mov qword [r14], rax
mov rcx, rbx
mov qword [rdi + 0x58], rsi
call sym.cornelius.exe_hwloc_insert_object_by_parent
mov rdi, qword [r14]
test rdi, rdi
jne 0x140016670
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.140014840
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.1400148a0
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
cmp qword [rcx], rsi
jne 0x140016744
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.Topology_became_empty__aborting__n
call fcn.140001fc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
xor edx, edx
mov rcx, rbx
call sym.cornelius.exe_hwloc_topology_reconnect
test eax, eax
js 0x14001686c
mov rcx, rbx
call fcn.140014a20
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call fcn.140013c90
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rdx, qword [rax]
mov rdx, qword [rdx]
call fcn.140015270
mov rcx, rbx
call fcn.1400153c0
mov rax, qword [rbx + 0x2c0]
test rax, rax
je 0x140016850
mov rax, qword [rax]
lea rdx, [0x1400a10a4]
mov rcx, qword [rax + 8]
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
inc rsi
cmp al, byte [rdx + rsi - 1]
jne 0x1400167c8
cmp rsi, 4
jne 0x1400167b0
jmp 0x140016850
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rdi, qword [rcx]
mov esi, dword [rdi + 0xe0]
mov rbx, qword [rdi + 0xd8]
lea eax, [rsi + 8]
and eax, 0xfffffff8
cmp esi, eax
je 0x140016807
mov edx, eax
mov rcx, rbx
shl rdx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rbx, rax
test rax, rax
je 0x140016850
mov qword [rdi + 0xd8], rax
lea rcx, str.hwlocVersion
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rsi
shl rcx, 4
add rbx, rcx
mov qword [rbx], rax
test rax, rax
je 0x140016850
lea rcx, str.2.0.2
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140016847
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140016850
lea eax, [rsi + 1]
mov dword [rdi + 0xe0], eax
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov eax, 0xffffffff
jmp 0x140016852