Function at 0x140028280
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x1400b89e8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, rdx
mov qword [rbp - 0x59], rdx
mov qword [rbp - 0x19], rcx
lea r8, [rbp - 0x71]
xor ecx, ecx
mov dword [rbp - 0x69], 0xffffffff
xor edx, edx
mov dword [rbp - 0x4d], ecx
mov rax, qword [r15 + 8]
xor esi, esi
mov dword [rbp - 0x51], edx
xor r14d, r14d
lea rdx, [rbp - 0x61]
mov dword [rbp - 0x79], esi
mov rcx, r15
mov dword [rbp - 0x49], r14d
xor edi, edi
call qword [rax + 0x18]
test eax, eax
js 0x1400289d4
lea r13, str.nbobjs
lea rdx, str.type
lea r12, str.kind
mov rbx, qword [rbp - 0x61]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rcx + r13 - 1]
jne 0x14002833e
cmp rcx, 7
jne 0x140028310
lea r8d, [rcx + 3]
xor edx, edx
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov esi, eax
mov dword [rbp - 0x79], eax
jmp 0x140028480
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140028373
cmp rcx, 5
jne 0x140028340
mov rcx, qword [rbp - 0x71]
lea rdx, [rbp - 0x69]
xor r9d, r9d
xor r8d, r8d
call sym.cornelius.exe_hwloc_type_sscanf
test eax, eax
js 0x140028a33
jmp 0x140028480
lea rdx, str.indexing
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400283ef
mov rcx, qword [rbp - 0x71]
lea edi, [rax + 1]
movzx eax, byte [rcx]
cmp al, byte [reloc.WS2_32.dll_WSAGetLastError]
jne 0x1400283b8
movzx eax, byte [rcx + 1]
cmp al, byte [reloc.WS2_32.dll_WSAStartup]
jne 0x1400283b8
movzx eax, byte [rcx + 2]
cmp al, byte [0x1400a1212]
jne 0x1400283b8
mov dword [rbp - 0x4d], edi
jmp 0x140028480
movzx eax, byte [rcx]
cmp al, byte [0x1400a3814]
jne 0x140028480
movzx eax, byte [rcx + 1]
cmp al, byte [reloc.WS2_32.dll_WSASetLastError]
jne 0x140028480
movzx eax, byte [rcx + 2]
cmp al, byte [0x1400a3816]
jne 0x140028480
mov dword [rbp - 0x51], edi
jmp 0x140028480
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r12 + rcx - 1]
jne 0x14002841d
cmp rcx, 5
jne 0x1400283f1
lea r8d, [rcx + 5]
xor edx, edx
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov r14d, eax
mov dword [rbp - 0x49], eax
jmp 0x140028480
cmp dword [0x1400c24f0], 0
jne 0x140028451
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140028447
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1400c24f4], eax
mov dword [0x1400c24f0], 1
cmp dword [0x1400c24f4], 0
je 0x140028480
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rbp - 0x61]
lea rdx, str._s:_ignoring_unknown_distance_attribute__s_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
call fcn.140001fc0
mov rax, qword [r15 + 8]
lea r8, [rbp - 0x71]
lea rdx, [rbp - 0x61]
mov rcx, r15
call qword [rax + 0x18]
lea rdx, str.type
test eax, eax
jns 0x140028303
test esi, esi
je 0x1400289d4
mov ebx, dword [rbp - 0x69]
cmp ebx, 0xffffffff
je 0x1400289d4
test edi, edi
je 0x1400289d4
test r14d, r14d
je 0x1400289d4
mov ecx, esi
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rbp - 0x71], rax
mov eax, esi
imul eax, esi
mov ecx, eax
shl rcx, 3
mov r12d, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
test r14, r14
je 0x140028991
test rax, rax
je 0x140028991
mov rax, qword [r15 + 8]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x11]
mov rcx, r15
xor edi, edi
xor esi, esi
call qword [rax + 0x20]
test eax, eax
jle 0x14002870f
mov r8, qword [rbp - 0x39]
lea rdx, [0x1400a38a8]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14002854c
cmp rcx, 8
jne 0x140028530
lea ebx, [rcx - 7]
xor r15d, r15d
jmp 0x140028569
lea rdx, str.u64values
mov rcx, r8
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140028833
xor ebx, ebx
lea r15d, [rax + 1]
mov r14, qword [rbp - 0x59]
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x11]
mov rax, qword [r14 + 8]
call qword [rax + 0x18]
test eax, eax
js 0x1400287ff
mov rdx, qword [rbp - 0x29]
lea r8, str.length
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400287ff
cmp rcx, 7
jne 0x1400285a0
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movsxd r14, eax
lea rdx, [rbp - 0x31]
mov rax, qword [rbp - 0x59]
lea rcx, [rbp - 0x11]
mov r8, r14
mov rax, qword [rax + 8]
call qword [rax + 0x38]
test eax, eax
js 0x1400287d0
test ebx, ebx
je 0x14002865a
mov r15d, dword [rbp - 0x79]
cmp edi, r15d
jae 0x140028746
mov rbx, qword [rbp - 0x31]
lea rdx, [rbp - 0x61]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__strtoui64]
mov rcx, qword [rbp - 0x61]
mov rdx, rax
mov r14, qword [rbp - 0x71]
cmp rcx, rbx
je 0x1400286c5
nop dword [rax]
mov qword [r14 + rdi*8], rdx
inc edi
cmp byte [rcx], 0x20
jne 0x1400286c5
cmp edi, r15d
je 0x1400286c5
lea rbx, [rcx + 1]
xor r8d, r8d
mov rcx, rbx
lea rdx, [rbp - 0x61]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__strtoui64]
mov rcx, qword [rbp - 0x61]
mov rdx, rax
cmp rcx, rbx
jne 0x140028620
jmp 0x1400286c5
test r15d, r15d
je 0x1400286c1
cmp esi, r12d
jae 0x140028775
mov rbx, qword [rbp - 0x31]
lea rdx, [rbp - 0x41]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__strtoui64]
mov rcx, qword [rbp - 0x41]
mov rdx, rax
cmp rcx, rbx
je 0x1400286c1
nop dword [rax + rax]
mov qword [r13 + rsi*8], rdx
inc esi
cmp byte [rcx], 0x20
jne 0x1400286c1
cmp esi, r12d
je 0x1400286c1
lea rbx, [rcx + 1]
xor r8d, r8d
mov rcx, rbx
lea rdx, [rbp - 0x41]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__strtoui64]
mov rcx, qword [rbp - 0x41]
mov rdx, rax
cmp rcx, rbx
jne 0x140028690
mov r14, qword [rbp - 0x71]
mov r15, qword [rbp - 0x59]
lea rcx, [rbp - 0x11]
mov rax, qword [r15 + 8]
call qword [rax + 0x40]
mov rax, qword [r15 + 8]
lea rcx, [rbp - 0x11]
call qword [rax + 0x28]
test eax, eax
js 0x1400287a4
mov rax, qword [r15 + 8]
lea rcx, [rbp - 0x11]
call qword [rax + 0x30]
mov rax, qword [r15 + 8]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x11]
mov rcx, r15
call qword [rax + 0x20]
test eax, eax
jg 0x140028520
mov ebx, dword [rbp - 0x69]
mov eax, dword [rbp - 0x79]
cmp edi, eax
je 0x14002886b
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x1400289bf
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rbp - 0x79]
lea rdx, str._s:_distance2_with_less_than__u_indexes_n
jmp 0x1400289b3
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x1400289bf
mov rax, qword [rbp - 0x59]
mov ecx, 2
mov rbx, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r15d
lea rdx, str._s:_distance2_with_more_than__u_indexes_n
jmp 0x1400289b3
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x1400289bf
mov rax, qword [rbp - 0x59]
mov ecx, 2
mov rbx, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
lea rdx, str._s:_distance2_with_more_than__u_u64values_n
jmp 0x1400289b3
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x1400289bf
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rbp - 0x79]
lea rdx, str._s:_distance2_with_more_than__u_indexes_n
jmp 0x1400289b3
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x1400289bf
mov rax, qword [rbp - 0x59]
mov ecx, 2
mov rbx, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r14d
lea rdx, str._s:_distance2_child_needs_content_of_length__d_n
jmp 0x1400289b3
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x1400289bf
mov rbx, qword [r14 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbx + 0x48]
lea rdx, str._s:_distance2_child_must_have_length_attribute_n
mov rcx, rax
call fcn.140001fc0
jmp 0x1400289bf
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x1400289bf
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rbp - 0x39]
lea rdx, str._s:_distance2_with_unrecognized_child__s_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
call fcn.140001fc0
jmp 0x1400289bf
cmp esi, r12d
je 0x14002889b
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x1400289bf
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
lea rdx, str._s:_distance2_with_less_than__u_u64values_n
jmp 0x1400289b3
cmp eax, 2
jae 0x1400288d8
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x140028970
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rbp - 0x79]
lea rdx, str._s:_ignoring_distances2_with_only__u_objects_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
call fcn.140001fc0
jmp 0x140028970
cmp ebx, 3
je 0x140028915
cmp ebx, 0xd
je 0x140028915
cmp dword [rbp - 0x51], 0
jne 0x140028948
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x140028970
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbx + 0x48]
lea rdx, str._s:_ignoring__PU_or__NUMA_distances2_without_gp_indexing_n
mov rcx, rax
call fcn.140001fc0
jmp 0x140028970
cmp dword [rbp - 0x4d], 0
jne 0x140028948
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x140028970
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbx + 0x48]
lea rdx, str._s:_ignoring_PU_or_NUMA_distances2_without_os_indexing_n
mov rcx, rax
call fcn.140001fc0
jmp 0x140028970
mov edx, dword [rbp - 0x49]
xor r9d, r9d
mov rcx, qword [rbp - 0x19]
mov r8d, eax
mov dword [rsp + 0x30], edx
mov edx, ebx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
call fcn.140021c90
xor r14d, r14d
xor r13d, r13d
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x28]
jmp 0x140028a38
call sym.cornelius.exe_hwloc__xml_verbose
test eax, eax
je 0x1400289bf
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
lea rdx, str._s:_failed_to_allocate_distances_arrays_for__u_objects_n
mov r8, qword [rbx + 0x48]
mov rcx, rax
call fcn.140001fc0
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140028a33
cmp dword [0x1400c24f0], 0
jne 0x140028a08
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400289fe
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1400c24f4], eax
mov dword [0x1400c24f0], 1
cmp dword [0x1400c24f4], 0
je 0x140028a33
mov rbx, qword [r15 + 8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbx + 0x48]
lea rdx, str._s:_distance2_missing_some_attributes_n
mov rcx, rax
call fcn.140001fc0
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14008ccd0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret