Function at 0x1800189c0
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 [0x1800aad48]
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 0x18001911a
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 0x180018a7e
cmp rcx, 7
jne 0x180018a50
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 0x180018bc0
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180018ab3
cmp rcx, 5
jne 0x180018a80
mov rcx, qword [rbp - 0x71]
lea rdx, [rbp - 0x69]
xor r9d, r9d
xor r8d, r8d
call sym.xmrstakrx_opencl_backend.dll_hwloc_type_sscanf
test eax, eax
js 0x180019179
jmp 0x180018bc0
lea rdx, str.indexing
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180018b2f
mov rcx, qword [rbp - 0x71]
lea edi, [rax + 1]
movzx eax, byte [rcx]
cmp al, byte [0x180092518]
jne 0x180018af8
movzx eax, byte [rcx + 1]
cmp al, byte [0x180092519]
jne 0x180018af8
movzx eax, byte [rcx + 2]
cmp al, byte [0x18009251a]
jne 0x180018af8
mov dword [rbp - 0x4d], edi
jmp 0x180018bc0
movzx eax, byte [rcx]
cmp al, byte [0x180094ab4]
jne 0x180018bc0
movzx eax, byte [rcx + 1]
cmp al, byte [0x180094ab5]
jne 0x180018bc0
movzx eax, byte [rcx + 2]
cmp al, byte [0x180094ab6]
jne 0x180018bc0
mov dword [rbp - 0x51], edi
jmp 0x180018bc0
xor ecx, ecx
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [r12 + rcx - 1]
jne 0x180018b5d
cmp rcx, 5
jne 0x180018b31
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 0x180018bc0
cmp dword [0x1800b031c], 0
jne 0x180018b91
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180018b87
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800b0318], eax
mov dword [0x1800b031c], 1
cmp dword [0x1800b0318], 0
je 0x180018bc0
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.1800053c0
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 0x180018a43
test esi, esi
je 0x18001911a
mov ebx, dword [rbp - 0x69]
cmp ebx, 0xffffffff
je 0x18001911a
test edi, edi
je 0x18001911a
test r14d, r14d
je 0x18001911a
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 0x1800190d7
test rax, rax
je 0x1800190d7
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 0x180018e4f
mov r8, qword [rbp - 0x39]
lea rdx, [0x180094b48]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180018c8c
cmp rcx, 8
jne 0x180018c70
lea ebx, [rcx - 7]
xor r15d, r15d
jmp 0x180018ca9
lea rdx, str.u64values
mov rcx, r8
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180018f73
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 0x180018f3f
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 0x180018f3f
cmp rcx, 7
jne 0x180018ce0
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 0x180018f10
test ebx, ebx
je 0x180018d9a
mov r15d, dword [rbp - 0x79]
cmp edi, r15d
jae 0x180018e86
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 0x180018e05
nop dword [rax]
mov qword [r14 + rdi*8], rdx
inc edi
cmp byte [rcx], 0x20
jne 0x180018e05
cmp edi, r15d
je 0x180018e05
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 0x180018d60
jmp 0x180018e05
test r15d, r15d
je 0x180018e01
cmp esi, r12d
jae 0x180018eb5
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 0x180018e01
nop dword [rax + rax]
mov qword [r13 + rsi*8], rdx
inc esi
cmp byte [rcx], 0x20
jne 0x180018e01
cmp esi, r12d
je 0x180018e01
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 0x180018dd0
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 0x180018ee4
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 0x180018c60
mov ebx, dword [rbp - 0x69]
mov eax, dword [rbp - 0x79]
cmp edi, eax
je 0x180018fab
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180019105
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 0x1800190f9
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180019105
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 0x1800190f9
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180019105
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 0x1800190f9
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180019105
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 0x1800190f9
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180019105
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 0x1800190f9
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180019105
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.1800053c0
jmp 0x180019105
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180019105
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.1800053c0
jmp 0x180019105
cmp esi, r12d
je 0x180018fdb
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180019105
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 0x1800190f9
cmp eax, 2
jae 0x180019018
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x1800190b6
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.1800053c0
jmp 0x1800190b6
cmp ebx, 3
je 0x18001905a
cmp ebx, 0xd
je 0x18001905a
mov edx, dword [rbp - 0x51]
test edx, edx
jne 0x18001908e
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x1800190b6
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.1800053c0
jmp 0x1800190b6
mov ecx, dword [rbp - 0x4d]
test ecx, ecx
jne 0x18001908e
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x1800190b6
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.1800053c0
jmp 0x1800190b6
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.1800126b0
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 0x18001917c
call sym.xmrstakrx_opencl_backend.dll_hwloc__xml_verbose
test eax, eax
je 0x180019105
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.1800053c0
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 0x180019179
cmp dword [0x1800b031c], 0
jne 0x18001914e
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180019144
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800b0318], eax
mov dword [0x1800b031c], 1
cmp dword [0x1800b0318], 0
je 0x180019179
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.1800053c0
or eax, 0xffffffff
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18005aca0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret