Function at 0x140026fb0
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 [0x1400b59e8]
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 0x14002770a
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 0x14002706e
cmp rcx, 7
jne 0x140027040
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 0x1400271b0
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x1400270a3
cmp rcx, 5
jne 0x140027070
mov rcx, qword [rbp - 0x71]
lea rdx, [rbp - 0x69]
xor r9d, r9d
xor r8d, r8d
call sym.xmr_stak_rx.exe_hwloc_type_sscanf
test eax, eax
js 0x140027769
jmp 0x1400271b0
lea rdx, str.indexing
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14002711f
mov rcx, qword [rbp - 0x71]
lea edi, [rax + 1]
movzx eax, byte [rcx]
cmp al, byte [reloc.WS2_32.dll_WSAGetLastError]
jne 0x1400270e8
movzx eax, byte [rcx + 1]
cmp al, byte [reloc.WS2_32.dll_WSAStartup]
jne 0x1400270e8
movzx eax, byte [rcx + 2]
cmp al, byte [0x14009bfc2]
jne 0x1400270e8
mov dword [rbp - 0x4d], edi
jmp 0x1400271b0
movzx eax, byte [rcx]
cmp al, byte [0x14009e5c4]
jne 0x1400271b0
movzx eax, byte [rcx + 1]
cmp al, byte [reloc.WS2_32.dll_WSASetLastError]
jne 0x1400271b0
movzx eax, byte [rcx + 2]
cmp al, byte [0x14009e5c6]
jne 0x1400271b0
mov dword [rbp - 0x51], edi
jmp 0x1400271b0
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r12 + rcx - 1]
jne 0x14002714d
cmp rcx, 5
jne 0x140027121
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 0x1400271b0
cmp dword [0x1400c15a4], 0
jne 0x140027181
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140027177
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1400c15a0], eax
mov dword [0x1400c15a4], 1
cmp dword [0x1400c15a0], 0
je 0x1400271b0
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.140001e00
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 0x140027033
test esi, esi
je 0x14002770a
mov ebx, dword [rbp - 0x69]
cmp ebx, 0xffffffff
je 0x14002770a
test edi, edi
je 0x14002770a
test r14d, r14d
je 0x14002770a
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 0x1400276c7
test rax, rax
je 0x1400276c7
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 0x14002743f
mov r8, qword [rbp - 0x39]
lea rdx, [0x14009e658]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14002727c
cmp rcx, 8
jne 0x140027260
lea ebx, [rcx - 7]
xor r15d, r15d
jmp 0x140027299
lea rdx, str.u64values
mov rcx, r8
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140027563
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 0x14002752f
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 0x14002752f
cmp rcx, 7
jne 0x1400272d0
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 0x140027500
test ebx, ebx
je 0x14002738a
mov r15d, dword [rbp - 0x79]
cmp edi, r15d
jae 0x140027476
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 0x1400273f5
nop dword [rax]
mov qword [r14 + rdi*8], rdx
inc edi
cmp byte [rcx], 0x20
jne 0x1400273f5
cmp edi, r15d
je 0x1400273f5
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 0x140027350
jmp 0x1400273f5
test r15d, r15d
je 0x1400273f1
cmp esi, r12d
jae 0x1400274a5
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 0x1400273f1
nop dword [rax + rax]
mov qword [r13 + rsi*8], rdx
inc esi
cmp byte [rcx], 0x20
jne 0x1400273f1
cmp esi, r12d
je 0x1400273f1
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 0x1400273c0
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 0x1400274d4
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 0x140027250
mov ebx, dword [rbp - 0x69]
mov eax, dword [rbp - 0x79]
cmp edi, eax
je 0x14002759b
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276f5
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 0x1400276e9
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276f5
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 0x1400276e9
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276f5
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 0x1400276e9
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276f5
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 0x1400276e9
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276f5
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 0x1400276e9
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276f5
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.140001e00
jmp 0x1400276f5
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276f5
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.140001e00
jmp 0x1400276f5
cmp esi, r12d
je 0x1400275cb
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276f5
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 0x1400276e9
cmp eax, 2
jae 0x140027608
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276a6
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.140001e00
jmp 0x1400276a6
cmp ebx, 3
je 0x14002764a
cmp ebx, 0xd
je 0x14002764a
mov edx, dword [rbp - 0x51]
test edx, edx
jne 0x14002767e
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276a6
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.140001e00
jmp 0x1400276a6
mov ecx, dword [rbp - 0x4d]
test ecx, ecx
jne 0x14002767e
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276a6
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.140001e00
jmp 0x1400276a6
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.140020ca0
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 0x14002776c
call sym.xmr_stak_rx.exe_hwloc__xml_verbose
test eax, eax
je 0x1400276f5
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.140001e00
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 0x140027769
cmp dword [0x1400c15a4], 0
jne 0x14002773e
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140027734
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1400c15a0], eax
mov dword [0x1400c15a4], 1
cmp dword [0x1400c15a0], 0
je 0x140027769
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.140001e00
or eax, 0xffffffff
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140087840
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret