Function at 0x14017f180
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x138
mov r12, rcx
mov rbx, rdx
call fcn.14017c520
movzx ecx, byte [rbx + 2]
movzx r9d, word [rbx]
mov esi, dword [r12 + 0x328]
mov r13, rax
test esi, esi
je 0x14017f20d
mov edx, dword [r12 + 0x32c]
test edx, edx
je 0x14017f208
mov rax, qword [r12 + 0x330]
sub edx, 1
lea rdx, [rdx + rdx*2]
lea rdx, [rax + rdx*8 + 0x18]
jmp 0x14017f1e1
add rax, 0x18
cmp rax, rdx
je 0x14017f208
cmp dword [rax], r9d
jne 0x14017f1d8
cmp ecx, dword [rax + 4]
jb 0x14017f1d8
cmp ecx, dword [rax + 8]
ja 0x14017f1d8
mov rdx, qword [rax + 0x10]
mov rcx, r13
call fcn.14017c730
jmp 0x14017f37b
mov esi, 1
mov dword [rsp + 0x20], ecx
lea r14, [rsp + 0x30]
mov edx, 0x100
lea r8, str.HWLOC_PCI__04x__02x_LOCALCPUS
mov rcx, r14
call fcn.14017f150
mov rcx, r14
call sub.msvcrt.dll_getenv
mov r14, rax
test rax, rax
je 0x14017f25d
mov eax, dword [r12 + 0x328]
or eax, dword [0x1407b2e70]
je 0x14017f3e0
cmp byte [r14], 0
mov esi, 1
jne 0x14017f370
mov rax, qword [r12 + 0x2f8]
test rax, rax
je 0x14017f3c8
mov r8, r13
mov rdx, rbx
mov rcx, rax
call qword [rax + 0x48]
test eax, eax
js 0x14017f3c8
mov rdx, r13
mov rcx, r12
call fcn.140171900
mov r14, rax
test rax, rax
je 0x14017f3b0
test esi, esi
jne 0x14017f38e
cmp dword [rax + 0x30], 1
jle 0x14017f38e
cmp dword [rax], 0xd
jne 0x14017f38e
cmp dword [rax + 0x50], 1
jne 0x14017f38e
mov rdx, qword [rax + 0x48]
cmp dword [rdx + 0x68], 2
jne 0x14017f38e
cmp dword [rdx], 1
jne 0x14017f38e
mov eax, dword [rdx + 0x50]
test eax, eax
jne 0x14017f38e
mov rax, qword [rdx + 0x48]
cmp dword [rax + 0x68], 2
jne 0x14017f38e
mov rax, qword [rdx + 0xd8]
mov edx, dword [rdx + 0xe0]
test edx, edx
je 0x14017f38e
sub edx, 1
lea r8, [0x14047784f]
shl rdx, 4
lea r9, [rax + rdx + 0x10]
jmp 0x14017f321
add rax, 0x10
cmp r9, rax
je 0x14017f38e
mov rsi, qword [rax]
mov ecx, 9
mov rdi, r8
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x14017f318
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14017f38e
lea rdx, str.Xeon
call sub.msvcrt.dll_strstr
test rax, rax
je 0x14017f38e
call fcn.14016f840
test eax, eax
je 0x14017f41b
mov rax, qword [r14 + 0x48]
mov rax, qword [rax + 0x58]
mov r14, qword [rax + 0x78]
jmp 0x14017f38e
mov rdx, r14
mov rcx, r13
call fcn.14017cce0
mov rdx, r13
mov rcx, r12
call fcn.140171900
mov r14, rax
test rax, rax
je 0x14017f3b0
mov rcx, r13
call fcn.14017c5b0
mov rax, r14
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.140175740
mov r14, rax
jmp 0x14017f38e
mov rcx, r12
call fcn.140173140
mov rcx, r13
mov rdx, rax
call fcn.14017c730
jmp 0x14017f282
mov ecx, 2
mov esi, 1
call qword [fcn.140225420]
mov r8, r14
lea rdx, str.Environment_variable__s_is_deprecated__please_use_HWLOC_PCI_LOCALITY_instead._n
mov rcx, rax
call sub.msvcrt.dll_fprintf
cmp byte [r14], 0
mov dword [0x1407b2e70], 1
je 0x14017f25d
jmp 0x14017f370
mov rsi, qword [fcn.140225420]
mov ecx, 2
call rsi
mov r8d, 0x4d
mov edx, 1
lea rcx, [0x140477860]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
lea r8, [0x1404778ae]
lea rdx, str._hwloc__s_has_encountered_an_incorrect_PCI_locality_information._n
mov rcx, rax
call sub.msvcrt.dll_fprintf
movzx edi, byte [rbx + 2]
movzx r12d, word [rbx]
mov ecx, 2
call rsi
lea rdx, str._PCI_bus__04x:_02x_is_supposedly_close_to_2nd_NUMA_node_of_1st_package__n
mov r9d, edi
mov r8d, r12d
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov ecx, 2
call rsi
mov r8d, 0x42
mov edx, 1
lea rcx, str._however_hwloc_believes_this_is_impossible_on_this_architecture._n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov r8d, 0x47
mov edx, 1
lea rcx, str._Therefore_the_PCI_bus_will_be_moved_to_1st_NUMA_node_of_2nd_package._n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1404779e0]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov r8d, 0x4d
mov edx, 1
lea rcx, str._If_you_feel_this_fixup_is_wrong__disable_it_by_setting_in_your_environment_n
mov r9, rax
call sub.msvcrt.dll_fwrite
movzx r12d, byte [rbx + 2]
movzx ebx, word [rbx]
mov ecx, 2
call rsi
lea rdx, str._HWLOC_PCI__04x__02x_LOCALCPUS__empty_value___and_report_the_problem_n
mov r9d, r12d
mov r8d, ebx
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov ecx, 2
call rsi
mov r8d, 0x4b
mov edx, 1
lea rcx, str._to_the_hwlocs_user_mailing_list_together_with_the_XML_output_of_lstopo._n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1404779e0]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov r8d, 0x53
mov edx, 1
lea rcx, str._You_may_silence_this_message_by_setting_HWLOC_HIDE_ERRORS1_in_your_environment._n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov r8d, 0x4d
mov edx, 1
lea rcx, [0x140477860]
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x14017f35f