Function at 0x18001eb80
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x1800aad48]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, rcx
mov qword [rbp - 0x59], rdx
xor esi, esi
mov qword [rbp - 0x61], rdx
lea rcx, str.HWLOC_SYNTHETIC_VERBOSE
mov dword [rbp - 0x79], esi
mov edi, esi
mov r15, rdx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov dword [rbp - 0x71], 1
test rax, rax
je 0x18001ebe1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edi, eax
mov dword [rbp - 0x79], eax
mov dword [r12 + 8], esi
lea r8, [r12 + 0x38]
mov qword [r12 + 0x20], rsi
lea r9, [r12 + 0x50]
lea r14, [r12 + 0x48]
mov dword [r8], esi
lea rbx, [r12 + 0x70]
mov qword [r9], rsi
mov qword [r14], rsi
mov qword [rbx], rsi
mov dword [r12 + 0x34], 1
mov qword [r12 + 0x60], rsi
cmp byte [r15], 0x28
jne 0x18001ec40
lea rcx, [r15 + 1]
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x61]
call fcn.18001e900
test eax, eax
js 0x18001f5bb
mov r15, qword [rbp - 0x61]
mov qword [rbp - 0x59], r15
mov qword [r12 + 0x10], rsi
mov r10d, 1
mov qword [r12 + 0x20], rsi
mov rdi, r15
mov dword [rbp - 0x75], r10d
mov qword [rsp + 0x120], r13
cmp byte [r15], sil
je 0x18001eeee
nop dword [rax + rax]
lea eax, [r10 - 1]
or r13d, 0xffffffff
lea rcx, [rax + rax*8]
mov dword [rbp - 0x61], r13d
lea r15, [rcx*8]
lea rax, [r12 + 0x30]
mov qword [rbp - 0x49], r15
add rax, r15
mov qword [rbp - 0x51], rax
mov dword [rax], esi
cmp byte [rdi], 0x20
jne 0x18001eca8
nop
inc rdi
cmp byte [rdi], 0x20
je 0x18001eca0
movzx eax, byte [rdi]
test al, al
je 0x18001eeee
cmp al, 0x5b
jne 0x18001eda4
inc rdi
lea r8, [rbp - 0x39]
mov rcx, rdi
lea rdx, [rbp - 0x61]
mov r9d, 0x28
call sym.xmrstakrx_opencl_backend.dll_hwloc_type_sscanf
test eax, eax
js 0x18001ef88
cmp dword [rbp - 0x61], 0xd
jne 0x18001ef68
mov eax, dword [r15 + r12 + 0x34]
mov ecx, 0x20
add dword [r12 + 8], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x18001ed30
mov rdx, qword [rbp - 0x49]
add rdx, 0x70
mov dword [rax], 0xd
add rdx, r12
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
cmp qword [rdx], rsi
je 0x18001ed2d
mov rdx, qword [rdx]
add rdx, 0x18
cmp qword [rdx], rsi
jne 0x18001ed21
mov qword [rdx], r15
mov edx, 0x5d
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov qword [rbp - 0x69], rax
test rax, rax
je 0x18001ef48
mov edx, 0x28
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x18001ed90
mov rcx, qword [rbp - 0x69]
cmp rax, rcx
jae 0x18001ed94
test r15, r15
je 0x18001ed94
lea rcx, [rax + 1]
mov r8, r15
mov eax, dword [rbp - 0x79]
lea r9, [r12 + 0x10]
lea rdx, [rbp - 0x51]
mov dword [rsp + 0x20], eax
call fcn.18001e900
test eax, eax
js 0x18001f070
mov rcx, qword [rbp - 0x69]
mov r10d, dword [rbp - 0x75]
inc rcx
mov qword [rbp - 0x69], rcx
jmp 0x18001eee2
mov eax, r10d
lea rcx, [rax + rax*8]
lea r15, [r12 + rcx*8]
mov qword [r15 + 0x50], rsi
mov qword [r15 + 0x60], rsi
mov qword [r15 + 0x70], rsi
movzx eax, byte [rdi]
sub al, 0x30
cmp al, 9
jbe 0x18001ee24
mov r9d, 0x28
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x61]
mov rcx, rdi
call sym.xmrstakrx_opencl_backend.dll_hwloc_type_sscanf
test eax, eax
js 0x18001efe5
mov r13d, dword [rbp - 0x61]
cmp r13d, 0x11
ja 0x18001edfb
mov eax, 0x2c001
bt eax, r13d
jb 0x18001efc8
cmp r13d, 0x10
je 0x18001efc8
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov qword [rbp - 0x69], rax
test rax, rax
je 0x18001efa8
lea rdi, [rax + 1]
lea eax, [r13 - 4]
mov dword [r15 + 0x38], r13d
mov qword [r15 + 0x3c], 0xffffffffffffffff
cmp eax, 7
ja 0x18001ee49
mov eax, dword [rbp - 0x31]
mov dword [r15 + 0x3c], eax
mov eax, dword [rbp - 0x25]
mov dword [r15 + 0x40], eax
jmp 0x18001ee59
mov eax, dword [r15 + 0x3c]
cmp r13d, 0xc
cmove eax, dword [rbp - 0x39]
mov dword [r15 + 0x3c], eax
xor r8d, r8d
lea rdx, [rbp - 0x69]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov rcx, qword [rbp - 0x69]
cmp rcx, rdi
je 0x18001f03d
test eax, eax
je 0x18001f024
mov rdx, qword [rbp - 0x51]
lea r9, [r15 + 0x50]
mov edi, dword [rbp - 0x79]
mov qword [r9], rsi
mov qword [r15 + 0x60], rsi
mov dword [rdx], eax
mov edx, dword [rbp - 0x71]
imul edx, eax
mov qword [r15 + 0x48], rsi
mov dword [r15 + 0x34], edx
cmp byte [rcx], 0x28
mov dword [rbp - 0x71], edx
jne 0x18001eec8
inc rcx
mov dword [rsp + 0x20], edi
lea r8, [r15 + 0x38]
lea rdx, [rbp - 0x69]
call fcn.18001e900
test eax, eax
js 0x18001f070
mov rcx, qword [rbp - 0x69]
mov r10d, dword [rbp - 0x75]
lea eax, [r10 + 1]
cmp eax, 0x80
jae 0x18001effe
inc r10d
mov dword [rbp - 0x75], r10d
mov rdi, rcx
cmp byte [rcx], sil
jne 0x18001ec70
lea r9d, [r10 - 1]
mov eax, r9d
lea rdx, [r9*8 + 7]
add rdx, rax
mov eax, dword [r12 + rdx*8]
inc eax
lea rdx, [r12 + rdx*8]
test eax, 0xfffffffb
je 0x18001f0c7
cmp dword [rbp - 0x79], esi
je 0x18001ef34
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.Synthetic_string_cannot_use_non_PU_type_for_last_level_n
call fcn.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18001f5b3
cmp dword [rbp - 0x79], esi
je 0x18001f05f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_doesnt_have_a_closing____after_attached_object_type_at__s_n
jmp 0x18001f054
cmp dword [rbp - 0x79], esi
je 0x18001f05f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_disallowed_attached_object_type_at__s_n
jmp 0x18001f054
cmp dword [rbp - 0x79], esi
je 0x18001f05f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_unknown_attached_object_type_at__s_n
jmp 0x18001f054
cmp dword [rbp - 0x79], esi
je 0x18001f05f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_doesnt_have_a__:_after_object_type_at__s_n
jmp 0x18001f054
cmp dword [rbp - 0x79], esi
je 0x18001f05f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_disallowed_object_type_at__s_n
jmp 0x18001f054
cmp dword [rbp - 0x79], esi
je 0x18001f05f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_unknown_object_type_at__s_n
jmp 0x18001f054
test edi, edi
je 0x18001f05f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x80
lea rdx, str.Too_many_synthetic_levels__max__d_n
mov rcx, rax
call fcn.1800053c0
jmp 0x18001f05f
cmp dword [rbp - 0x79], esi
je 0x18001f05f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_with_disallow_0_number_of_objects_at__s_n
jmp 0x18001f054
cmp dword [rbp - 0x79], esi
je 0x18001f05f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Synthetic_string_doesnt_have_a_number_of_objects_at__s_n
mov r8, rdi
mov rcx, rax
call fcn.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
nop dword [rax + rax]
cmp qword [rbx], 0
je 0x18001f096
nop word [rax + rax]
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x18]
mov qword [rbx], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [rbx], 0
jne 0x18001f080
mov rcx, qword [rbx - 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rbx - 0x40], 0
je 0x18001f0b4
inc esi
add rbx, 0x48
cmp esi, 0x80
jb 0x18001f070
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
or eax, 0xffffffff
jmp 0x18001f5b3
mov dword [rdx], 3
mov ecx, r9d
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
test r9d, r9d
je 0x18001f115
nop dword [rax]
movsxd rax, dword [rdx]
cmp eax, 0xffffffff
je 0x18001f10c
inc dword [rbp + rax*4 - 0x39]
sub rdx, 0x48
add ecx, 0xffffffff
jne 0x18001f100
mov eax, dword [rbp - 0x2d]
test eax, eax
jne 0x18001f14d
cmp dword [rbp - 0x79], esi
je 0x18001f139
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Synthetic_string_missing_ending_number_of_PUs_n
call fcn.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18001f5b3
cmp eax, 1
jle 0x18001f185
cmp dword [rbp - 0x79], esi
je 0x18001f171
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.Synthetic_string_cannot_have_several_PU_levels_n
call fcn.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18001f5b3
cmp dword [rbp - 0x35], 1
jle 0x18001f1be
cmp dword [rbp - 0x79], esi
je 0x18001f1aa
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.Synthetic_string_cannot_have_several_package_levels_n
call fcn.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18001f5b3
mov r15d, dword [rbp - 5]
cmp r15d, 1
jle 0x18001f1fb
cmp dword [rbp - 0x79], esi
je 0x18001f1e7
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.Synthetic_string_cannot_have_several_NUMA_node_levels_n
call fcn.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18001f5b3
test r15d, r15d
je 0x18001f23a
cmp dword [r12 + 8], esi
je 0x18001f23a
cmp dword [rbp - 0x79], esi
je 0x18001f226
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.Synthetic_string_cannot_have_NUMA_nodes_both_as_a_level_and_attached_n
call fcn.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18001f5b3
cmp dword [rbp - 0x31], 1
jle 0x18001f273
cmp dword [rbp - 0x79], esi
je 0x18001f25f
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.Synthetic_string_cannot_have_several_core_levels_n
call fcn.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18001f5b3
mov ecx, esi
cmp r9d, 1
jbe 0x18001f518
lea r8, [r12 + 0x80]
dec r9d
mov rdx, r8
nop dword [rax]
cmp dword [rdx], 0xffffffff
lea eax, [rcx + 1]
lea rdx, [rdx + 0x48]
cmovne eax, ecx
mov ecx, eax
sub r9, 1
jne 0x18001f290
test eax, eax
je 0x18001f518
lea edx, [r10 - 2]
cmp eax, edx
je 0x18001f2e7
cmp dword [rbp - 0x79], esi
je 0x18001f2d3
lea ecx, [r9 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Synthetic_string_cannot_mix_unspecified_and_specified_types_for_levels_n
call fcn.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18001f5b3
cmp edx, 1
jb 0x18001f2f9
mov r10d, 1
cmp dword [r12 + 8], esi
je 0x18001f2fc
mov r10d, esi
mov edi, dword [rbp - 9]
sub edx, r10d
cmp edx, 1
mov ebx, esi
mov eax, edx
setae bl
sub eax, ebx
mov r13d, eax
mov dword [rbp - 0x71], eax
cmp r13d, 1
mov eax, esi
setae al
sub r13d, eax
mov eax, 4
cmp r13d, eax
mov r9d, r13d
mov r11d, r13d
cmova r9d, eax
sub r11d, r9d
je 0x18001f351
mov eax, r11d
add edi, r11d
nop dword [rax]
mov dword [r8], 0xc
lea r8, [r8 + 0x48]
sub rax, 1
jne 0x18001f340
cmp edx, 1
jb 0x18001f367
lea eax, [r11 + 1]
lea rax, [rax + rax*8]
mov dword [r12 + rax*8 + 0x38], 1
test r10d, r10d
je 0x18001f385
lea eax, [r11 + 1]
mov r15d, 1
add eax, ebx
lea rax, [rax + rax*8]
mov dword [r12 + rax*8 + 0x38], 0xd
test r9d, r9d
je 0x18001f426
lea ecx, [r11 + 1]
mov edx, esi
add ecx, ebx
add ecx, r10d
cmp r9d, 3
setae dl
add edx, ecx
lea r8d, [rdx + 1]
lea r11d, [r8 + 1]
cmp r9d, 3
jb 0x18001f3c6
lea rcx, [rcx + rcx*8]
mov dword [r12 + rcx*8 + 0x38], 6
mov qword [r12 + rcx*8 + 0x3c], 3
lea rcx, [rdx + rdx*8]
mov dword [r12 + rcx*8 + 0x38], 5
mov qword [r12 + rcx*8 + 0x3c], 2
cmp r9d, 2
jb 0x18001f401
lea rcx, [r8 + r8*8]
mov dword [r12 + rcx*8 + 0x38], 4
mov dword [r12 + rcx*8 + 0x3c], 1
mov dword [r12 + rcx*8 + 0x40], 1
cmp r9d, 4
jb 0x18001f426
lea rcx, [r11 + r11*8]
mov dword [r12 + rcx*8 + 0x38], 9
mov dword [r12 + rcx*8 + 0x3c], 1
mov dword [r12 + rcx*8 + 0x40], 2
cmp dword [rbp - 0x71], 1
jb 0x18001f443
lea ecx, [r13 + 1]
lea eax, [rbx + r10]
add ecx, eax
lea rcx, [rcx + rcx*8]
mov dword [r12 + rcx*8 + 0x38], 2
mov r10d, dword [rbp - 0x75]
test r15d, r15d
mov r15d, dword [rbp - 0x79]
jne 0x18001f4e8
cmp dword [r12 + 8], esi
jne 0x18001f4e8
test r15d, r15d
je 0x18001f47e
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.Inserting_a_NUMA_level_with_a_single_object_at_depth_1_n
call fcn.1800053c0
mov eax, dword [rbp - 0x75]
lea rcx, [r12 + 0xc0]
lea rdx, [r12 + 0x78]
lea r8, [rax + rax*8]
shl r8, 3
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov r10d, dword [rbp - 0x75]
mov eax, dword [r12 + 0x34]
inc r10d
mov dword [r12 + 0x7c], eax
mov eax, dword [r12 + 0x30]
mov dword [rbp - 0x75], r10d
mov dword [r12 + 0x80], 0xd
mov qword [r12 + 0x98], rsi
mov qword [r12 + 0xa8], rsi
mov qword [r12 + 0x90], rsi
mov dword [r12 + 0x78], eax
mov dword [r12 + 0x30], 1
test r10d, r10d
je 0x18001f580
mov ebx, r10d
lea r13, [r12 + 0x50]
nop dword [rax]
mov ecx, dword [r14 - 0x10]
cmp ecx, 0xc
jne 0x18001f520
cmp dword [r14 - 0xc], 0xffffffff
jne 0x18001f560
mov dword [r14 - 0xc], edi
dec edi
jmp 0x18001f560
mov edi, dword [rbp - 9]
jmp 0x18001f447
lea eax, [rcx - 4]
cmp eax, 7
ja 0x18001f54f
cmp qword [r14], rsi
jne 0x18001f560
mov ecx, dword [r14 - 0xc]
cmp ecx, 1
jne 0x18001f53f
mov qword [r14], 0x8000
jmp 0x18001f560
mov eax, 0x40000
add ecx, ecx
shl eax, cl
cdqe
mov qword [r14], rax
jmp 0x18001f560
cmp ecx, 0xd
jne 0x18001f560
cmp qword [r14], rsi
jne 0x18001f560
mov qword [r14], 0x40000000
mov r8d, dword [r14 - 0x14]
mov r9d, r15d
mov rdx, r13
mov rcx, r12
call fcn.18001e030
add r13, 0x48
add r14, 0x48
sub rbx, 1
jne 0x18001f500
mov r8d, dword [r12 + 8]
lea rdx, [r12 + 0x10]
mov r9d, r15d
mov rcx, r12
call fcn.18001e030
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [r12], rax
mov eax, dword [rbp - 0x75]
dec eax
lea rax, [rax + rax*8]
mov dword [r12 + rax*8 + 0x30], esi
xor eax, eax
mov r13, qword [rsp + 0x120]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18005aca0
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret