Function at 0x14002d160
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 [0x1400b59e8]
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 0x14002d1c1
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 0x14002d220
lea rcx, [r15 + 1]
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x61]
call fcn.14002cee0
test eax, eax
js 0x14002db8b
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 0x14002d4cb
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 0x14002d288
nop
inc rdi
cmp byte [rdi], 0x20
je 0x14002d280
movzx eax, byte [rdi]
test al, al
je 0x14002d4cb
cmp al, 0x5b
jne 0x14002d382
inc rdi
lea r8, [rbp - 0x39]
mov rcx, rdi
lea rdx, [rbp - 0x61]
mov r9d, 0x28
call sym.xmr_stak_rx.exe_hwloc_type_sscanf
test eax, eax
js 0x14002d565
cmp dword [rbp - 0x61], 0xd
jne 0x14002d545
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 0x14002d310
mov rdx, qword [rbp - 0x49]
add rdx, 0x70
mov dword [rax], reloc.WS2_32.dll_listen
add rdx, r12
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
cmp qword [rdx], rsi
je 0x14002d30d
mov rdx, qword [rdx]
add rdx, 0x18
cmp qword [rdx], rsi
jne 0x14002d301
mov qword [rdx], r15
mov edx, 0x5d
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov qword [rbp - 0x69], rax
test rax, rax
je 0x14002d525
mov edx, 0x28
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14002d36e
mov rcx, qword [rbp - 0x69]
cmp rax, rcx
jae 0x14002d372
test r15, r15
je 0x14002d372
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.14002cee0
test eax, eax
js 0x14002d648
mov rcx, qword [rbp - 0x69]
mov r10d, dword [rbp - 0x75]
inc rcx
mov qword [rbp - 0x69], rcx
jmp 0x14002d4bf
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 0x14002d401
mov r9d, 0x28
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x61]
mov rcx, rdi
call sym.xmr_stak_rx.exe_hwloc_type_sscanf
test eax, eax
js 0x14002d5c2
mov r13d, dword [rbp - 0x61]
cmp r13d, 0x11
ja 0x14002d3d9
mov eax, 0x2c001
bt eax, r13d
jb 0x14002d5a5
cmp r13d, 0x10
je 0x14002d5a5
mov edx, 0x3a
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov qword [rbp - 0x69], rax
test rax, rax
je 0x14002d585
lea rdi, [rax + 1]
lea eax, [r13 - 4]
mov dword [r15 + 0x38], r13d
mov qword [r15 + 0x3c], 0xffffffffffffffff
cmp eax, 7
ja 0x14002d426
mov eax, dword [rbp - 0x31]
mov dword [r15 + 0x3c], eax
mov eax, dword [rbp - 0x25]
mov dword [r15 + 0x40], eax
jmp 0x14002d436
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 0x14002d61a
test eax, eax
je 0x14002d601
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 0x14002d4a5
inc rcx
mov dword [rsp + 0x20], edi
lea r8, [r15 + 0x38]
lea rdx, [rbp - 0x69]
call fcn.14002cee0
test eax, eax
js 0x14002d648
mov rcx, qword [rbp - 0x69]
mov r10d, dword [rbp - 0x75]
lea eax, [r10 + 1]
cmp eax, 0x80
jae 0x14002d5db
inc r10d
mov dword [rbp - 0x75], r10d
mov rdi, rcx
cmp byte [rcx], sil
jne 0x14002d250
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 0x14002d697
cmp dword [rbp - 0x79], esi
je 0x14002d511
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.140001e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
jmp 0x14002db83
cmp dword [rbp - 0x79], esi
je 0x14002d63c
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 0x14002d631
cmp dword [rbp - 0x79], esi
je 0x14002d63c
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 0x14002d631
cmp dword [rbp - 0x79], esi
je 0x14002d63c
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 0x14002d631
cmp dword [rbp - 0x79], esi
je 0x14002d63c
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 0x14002d631
cmp dword [rbp - 0x79], esi
je 0x14002d63c
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 0x14002d631
cmp dword [rbp - 0x79], esi
je 0x14002d63c
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 0x14002d631
test edi, edi
je 0x14002d63c
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.140001e00
jmp 0x14002d63c
cmp dword [rbp - 0x79], esi
je 0x14002d63c
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 0x14002d631
cmp dword [rbp - 0x79], esi
je 0x14002d63c
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.140001e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
cmp qword [rbx], 0
je 0x14002d666
nop
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 0x14002d650
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 0x14002d684
inc esi
add rbx, 0x48
cmp esi, 0x80
jb 0x14002d648
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
or eax, 0xffffffff
jmp 0x14002db83
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 0x14002d6e5
nop dword [rax]
movsxd rax, dword [rdx]
cmp eax, 0xffffffff
je 0x14002d6dc
inc dword [rbp + rax*4 - 0x39]
sub rdx, 0x48
add ecx, 0xffffffff
jne 0x14002d6d0
mov eax, dword [rbp - 0x2d]
test eax, eax
jne 0x14002d71d
cmp dword [rbp - 0x79], esi
je 0x14002d709
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.140001e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
jmp 0x14002db83
cmp eax, 1
jle 0x14002d755
cmp dword [rbp - 0x79], esi
je 0x14002d741
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.140001e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
jmp 0x14002db83
cmp dword [rbp - 0x35], 1
jle 0x14002d78e
cmp dword [rbp - 0x79], esi
je 0x14002d77a
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.140001e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
jmp 0x14002db83
mov r15d, dword [rbp - 5]
cmp r15d, 1
jle 0x14002d7cb
cmp dword [rbp - 0x79], esi
je 0x14002d7b7
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.140001e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
jmp 0x14002db83
test r15d, r15d
je 0x14002d80a
cmp dword [r12 + 8], esi
je 0x14002d80a
cmp dword [rbp - 0x79], esi
je 0x14002d7f6
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.140001e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
jmp 0x14002db83
cmp dword [rbp - 0x31], 1
jle 0x14002d843
cmp dword [rbp - 0x79], esi
je 0x14002d82f
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.140001e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
jmp 0x14002db83
mov ecx, esi
cmp r9d, 1
jbe 0x14002dae8
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 0x14002d860
test eax, eax
je 0x14002dae8
lea edx, [r10 - 2]
cmp eax, edx
je 0x14002d8b7
cmp dword [rbp - 0x79], esi
je 0x14002d8a3
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.140001e00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
or eax, 0xffffffff
jmp 0x14002db83
cmp edx, 1
jb 0x14002d8c9
mov r10d, 1
cmp dword [r12 + 8], esi
je 0x14002d8cc
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 0x14002d921
mov eax, r11d
add edi, r11d
nop dword [rax]
mov dword [r8], recv
lea r8, [r8 + 0x48]
sub rax, 1
jne 0x14002d910
cmp edx, 1
jb 0x14002d937
lea eax, [r11 + 1]
lea rax, [rax + rax*8]
mov dword [r12 + rax*8 + 0x38], 1
test r10d, r10d
je 0x14002d955
lea eax, [r11 + 1]
mov r15d, 1
add eax, ebx
lea rax, [rax + rax*8]
mov dword [r12 + rax*8 + 0x38], reloc.WS2_32.dll_listen
test r9d, r9d
je 0x14002d9f6
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 0x14002d996
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 0x14002d9d1
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 0x14002d9f6
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 0x14002da13
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 0x14002dab7
cmp dword [r12 + 8], esi
jne 0x14002dab7
test r15d, r15d
je 0x14002da4e
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.140001e00
mov eax, dword [rbp - 0x75]
lea rcx, [r12 + 0xc0]
lea rdx, [r12 + 0x78]
lea r8, [rax + rax*8]
shl r8, 3
call sub.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], reloc.WS2_32.dll_listen
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 0x14002db50
mov ebx, r10d
lea r13, [r12 + 0x50]
nop dword [rax + rax]
mov ecx, dword [r14 - 0x10]
cmp ecx, 0xc
jne 0x14002daf0
cmp dword [r14 - 0xc], 0xffffffff
jne 0x14002db30
mov dword [r14 - 0xc], edi
dec edi
jmp 0x14002db30
mov edi, dword [rbp - 9]
jmp 0x14002da17
lea eax, [rcx - 4]
cmp eax, 7
ja 0x14002db1f
cmp qword [r14], rsi
jne 0x14002db30
mov ecx, dword [r14 - 0xc]
cmp ecx, 1
jne 0x14002db0f
mov qword [r14], 0x8000
jmp 0x14002db30
mov eax, 0x40000
add ecx, ecx
shl eax, cl
cdqe
mov qword [r14], rax
jmp 0x14002db30
cmp ecx, 0xd
jne 0x14002db30
cmp qword [r14], rsi
jne 0x14002db30
mov qword [r14], 0x40000000
mov r8d, dword [r14 - 0x14]
mov r9d, r15d
mov rdx, r13
mov rcx, r12
call fcn.14002c610
add r13, 0x48
add r14, 0x48
sub rbx, 1
jne 0x14002dad0
mov r8d, dword [r12 + 8]
lea rdx, [r12 + 0x10]
mov r9d, r15d
mov rcx, r12
call fcn.14002c610
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.140087840
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret