Function at 0x18002cd30
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 [0x18009d5d8]
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 0x18002cd91
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 0x18002cdf0
lea rcx, [r15 + 1]
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x61]
call fcn.18002cab0
test eax, eax
js 0x18002d76b
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 0x18002d09e
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 0x18002ce58
nop
inc rdi
cmp byte [rdi], 0x20
je 0x18002ce50
movzx eax, byte [rdi]
test al, al
je 0x18002d09e
cmp al, 0x5b
jne 0x18002cf54
inc rdi
lea r8, [rbp - 0x39]
mov rcx, rdi
lea rdx, [rbp - 0x61]
mov r9d, 0x28
call sym.xmrstak_cuda_backend.dll_hwloc_type_sscanf
test eax, eax
js 0x18002d138
cmp dword [rbp - 0x61], 0xd
jne 0x18002d118
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 0x18002cee0
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 0x18002cedd
mov rdx, qword [rdx]
add rdx, 0x18
cmp qword [rdx], rsi
jne 0x18002ced1
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 0x18002d0f8
mov edx, 0x28
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
test rax, rax
je 0x18002cf40
mov rcx, qword [rbp - 0x69]
cmp rax, rcx
jae 0x18002cf44
test r15, r15
je 0x18002cf44
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.18002cab0
test eax, eax
js 0x18002d220
mov rcx, qword [rbp - 0x69]
mov r10d, dword [rbp - 0x75]
inc rcx
mov qword [rbp - 0x69], rcx
jmp 0x18002d092
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 0x18002cfd4
mov r9d, 0x28
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x61]
mov rcx, rdi
call sym.xmrstak_cuda_backend.dll_hwloc_type_sscanf
test eax, eax
js 0x18002d195
mov r13d, dword [rbp - 0x61]
cmp r13d, 0x11
ja 0x18002cfab
mov eax, 0x2c001
bt eax, r13d
jb 0x18002d178
cmp r13d, 0x10
je 0x18002d178
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov qword [rbp - 0x69], rax
test rax, rax
je 0x18002d158
lea rdi, [rax + 1]
lea eax, [r13 - 4]
mov dword [r15 + 0x38], r13d
mov qword [r15 + 0x3c], 0xffffffffffffffff
cmp eax, 7
ja 0x18002cff9
mov eax, dword [rbp - 0x31]
mov dword [r15 + 0x3c], eax
mov eax, dword [rbp - 0x25]
mov dword [r15 + 0x40], eax
jmp 0x18002d009
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 0x18002d1ed
test eax, eax
je 0x18002d1d4
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 0x18002d078
inc rcx
mov dword [rsp + 0x20], edi
lea r8, [r15 + 0x38]
lea rdx, [rbp - 0x69]
call fcn.18002cab0
test eax, eax
js 0x18002d220
mov rcx, qword [rbp - 0x69]
mov r10d, dword [rbp - 0x75]
lea eax, [r10 + 1]
cmp eax, 0x80
jae 0x18002d1ae
inc r10d
mov dword [rbp - 0x75], r10d
mov rdi, rcx
cmp byte [rcx], sil
jne 0x18002ce20
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 0x18002d277
cmp dword [rbp - 0x79], esi
je 0x18002d0e4
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.1800100d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18002d763
cmp dword [rbp - 0x79], esi
je 0x18002d20f
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 0x18002d204
cmp dword [rbp - 0x79], esi
je 0x18002d20f
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 0x18002d204
cmp dword [rbp - 0x79], esi
je 0x18002d20f
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 0x18002d204
cmp dword [rbp - 0x79], esi
je 0x18002d20f
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 0x18002d204
cmp dword [rbp - 0x79], esi
je 0x18002d20f
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 0x18002d204
cmp dword [rbp - 0x79], esi
je 0x18002d20f
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 0x18002d204
test edi, edi
je 0x18002d20f
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.1800100d0
jmp 0x18002d20f
cmp dword [rbp - 0x79], esi
je 0x18002d20f
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 0x18002d204
cmp dword [rbp - 0x79], esi
je 0x18002d20f
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.1800100d0
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 0x18002d246
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 0x18002d230
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 0x18002d264
inc esi
add rbx, 0x48
cmp esi, 0x80
jb 0x18002d220
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
or eax, 0xffffffff
jmp 0x18002d763
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 0x18002d2c5
nop dword [rax]
movsxd rax, dword [rdx]
cmp eax, 0xffffffff
je 0x18002d2bc
inc dword [rbp + rax*4 - 0x39]
sub rdx, 0x48
add ecx, 0xffffffff
jne 0x18002d2b0
mov eax, dword [rbp - 0x2d]
test eax, eax
jne 0x18002d2fd
cmp dword [rbp - 0x79], esi
je 0x18002d2e9
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.1800100d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18002d763
cmp eax, 1
jle 0x18002d335
cmp dword [rbp - 0x79], esi
je 0x18002d321
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.1800100d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18002d763
cmp dword [rbp - 0x35], 1
jle 0x18002d36e
cmp dword [rbp - 0x79], esi
je 0x18002d35a
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.1800100d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18002d763
mov r15d, dword [rbp - 5]
cmp r15d, 1
jle 0x18002d3ab
cmp dword [rbp - 0x79], esi
je 0x18002d397
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.1800100d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18002d763
test r15d, r15d
je 0x18002d3ea
cmp dword [r12 + 8], esi
je 0x18002d3ea
cmp dword [rbp - 0x79], esi
je 0x18002d3d6
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.1800100d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18002d763
cmp dword [rbp - 0x31], 1
jle 0x18002d423
cmp dword [rbp - 0x79], esi
je 0x18002d40f
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.1800100d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18002d763
mov ecx, esi
cmp r9d, 1
jbe 0x18002d6c8
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 0x18002d440
test eax, eax
je 0x18002d6c8
lea edx, [r10 - 2]
cmp eax, edx
je 0x18002d497
cmp dword [rbp - 0x79], esi
je 0x18002d483
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.1800100d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x18002d763
cmp edx, 1
jb 0x18002d4a9
mov r10d, 1
cmp dword [r12 + 8], esi
je 0x18002d4ac
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 0x18002d501
mov eax, r11d
add edi, r11d
nop dword [rax]
mov dword [r8], 0xc
lea r8, [r8 + 0x48]
sub rax, 1
jne 0x18002d4f0
cmp edx, 1
jb 0x18002d517
lea eax, [r11 + 1]
lea rax, [rax + rax*8]
mov dword [r12 + rax*8 + 0x38], 1
test r10d, r10d
je 0x18002d535
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 0x18002d5d6
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 0x18002d576
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 0x18002d5b1
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 0x18002d5d6
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 0x18002d5f3
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 0x18002d698
cmp dword [r12 + 8], esi
jne 0x18002d698
test r15d, r15d
je 0x18002d62e
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.1800100d0
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 0x18002d730
mov ebx, r10d
lea r13, [r12 + 0x50]
nop dword [rax]
mov ecx, dword [r14 - 0x10]
cmp ecx, 0xc
jne 0x18002d6d0
cmp dword [r14 - 0xc], 0xffffffff
jne 0x18002d710
mov dword [r14 - 0xc], edi
dec edi
jmp 0x18002d710
mov edi, dword [rbp - 9]
jmp 0x18002d5f7
lea eax, [rcx - 4]
cmp eax, 7
ja 0x18002d6ff
cmp qword [r14], rsi
jne 0x18002d710
mov ecx, dword [r14 - 0xc]
cmp ecx, 1
jne 0x18002d6ef
mov qword [r14], 0x8000
jmp 0x18002d710
mov eax, 0x40000
add ecx, ecx
shl eax, cl
cdqe
mov qword [r14], rax
jmp 0x18002d710
cmp ecx, 0xd
jne 0x18002d710
cmp qword [r14], rsi
jne 0x18002d710
mov qword [r14], 0x40000000
mov r8d, dword [r14 - 0x14]
mov r9d, r15d
mov rdx, r13
mov rcx, r12
call fcn.18002c1e0
add r13, 0x48
add r14, 0x48
sub rbx, 1
jne 0x18002d6b0
mov r8d, dword [r12 + 8]
lea rdx, [r12 + 0x10]
mov r9d, r15d
mov rcx, r12
call fcn.18002c1e0
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.180076910
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret