Function at 0x18002ea20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
cmp dword [rcx + 4], 0
mov r12d, r9d
mov rbx, r8
mov rdi, rdx
mov r15, rcx
ja 0x18002ea52
xor ebp, ebp
jmp 0x18002ea69
mov rax, qword [rcx + 0x10]
cmp dword [rax], 0
ja 0x18002ea5f
xor ebp, ebp
jmp 0x18002ea69
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax]
mov rbp, qword [rcx]
lea rcx, str.HWLOC_SYNTHETIC_VERBOSE
xor esi, esi
xor r14d, r14d
xor r13d, r13d
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18002ea8f
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r13d, eax
cmp dword [r15 + 0xb8], esi
je 0x18002eac8
test r12d, 0xfffffff0
jne 0x18002eac8
cmp dword [rbp + 0x88], esi
jne 0x18002eadc
test r13d, r13d
je 0x18002eac8
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.Cannot_export_to_synthetic_unless_topology_is_symmetric__root__symmetric_subtree_must_be_set_._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 0x18002ed57
mov eax, r12d
and eax, 8
mov dword [rsp + 0x70], eax
jne 0x18002eb27
mov rcx, r15
call fcn.18002e800
test eax, eax
jns 0x18002eb27
test r13d, r13d
je 0x18002eb13
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.Cannot_export_to_synthetic_unless_memory_is_attached_symmetrically._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 0x18002ed57
test r12b, 4
je 0x18002ebb3
movsxd rax, dword [r15 + 0x58]
cmp eax, 0xffffffff
jne 0x18002eb3e
xor ecx, ecx
jmp 0x18002eb91
cmp eax, 0xfffffffe
jne 0x18002eb47
xor ecx, ecx
jmp 0x18002eb91
cmp eax, dword [r15 + 4]
jb 0x18002eb76
mov ecx, 0xfffffffd
sub ecx, eax
cmp ecx, 5
jae 0x18002eb82
mov eax, ecx
shl rax, 5
cmp dword [rax + r15 + 0xe8], esi
jbe 0x18002eb82
mov rax, qword [rax + r15 + 0xf0]
mov rcx, qword [rax]
jmp 0x18002eb91
mov rcx, rax
mov rax, qword [r15 + 0x10]
cmp dword [rax + rcx*4], esi
ja 0x18002eb86
xor ecx, ecx
jmp 0x18002eb91
mov rax, qword [r15 + 0x18]
mov rcx, qword [rax + rcx*8]
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x48]
mov rcx, qword [rcx + 0x38]
mov edx, dword [rax + 0x30]
test rcx, rcx
je 0x18002ebb3
mov rax, qword [rcx + 0x48]
cmp dword [rax + 0x30], edx
jne 0x18002ebf1
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x18002eba1
test r12b, 2
jne 0x18002ec2f
mov r9, rbx
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call fcn.18002e290
movsxd rsi, eax
test eax, eax
mov eax, 1
mov ecx, esi
cmovg r14d, eax
test esi, esi
js 0x18002ead4
cmp rsi, rbx
jl 0x18002ec26
test rbx, rbx
jle 0x18002ec24
lea ecx, [rbx - 1]
jmp 0x18002ec26
test r13d, r13d
je 0x18002ec10
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.Cannot_export_to_synthetic_v1_if_memory_is_attached_to_parents_at_different_depths._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 0x18002ed57
xor ecx, ecx
movsxd rax, ecx
add rdi, rax
sub rbx, rax
cmp dword [rsp + 0x70], 0
jne 0x18002ec88
mov dword [rsp + 0x30], r13d
mov r9, rdi
mov dword [rsp + 0x28], r14d
mov r8, rbp
mov edx, r12d
mov qword [rsp + 0x20], rbx
mov rcx, r15
call fcn.18002e680
test eax, eax
movsxd rcx, eax
mov eax, 1
cmovg r14d, eax
test ecx, ecx
js 0x18002ead4
add esi, ecx
cmp rcx, rbx
jl 0x18002ec7f
test rbx, rbx
jle 0x18002ec7d
lea ecx, [rbx - 1]
jmp 0x18002ec7f
xor ecx, ecx
movsxd rax, ecx
add rdi, rax
sub rbx, rax
mov eax, dword [rbp + 0x68]
test eax, eax
je 0x18002ed55
mov rbp, qword [rbp + 0x78]
test r14d, r14d
je 0x18002ecb0
cmp rbx, 1
jle 0x18002ecae
mov byte [rdi], 0x20
inc rdi
dec rbx
mov byte [rdi], 0
inc esi
mov qword [rsp + 0x28], rbx
mov r9d, eax
mov r8, rbp
mov qword [rsp + 0x20], rdi
mov edx, r12d
mov rcx, r15
call fcn.18002e4f0
movsxd rcx, eax
test eax, eax
js 0x18002ead4
add esi, ecx
cmp rcx, rbx
jl 0x18002ece9
test rbx, rbx
jle 0x18002ece7
lea ecx, [rbx - 1]
jmp 0x18002ece9
xor ecx, ecx
movsxd rax, ecx
add rdi, rax
sub rbx, rax
cmp dword [rsp + 0x70], 0
jne 0x18002ed44
mov eax, 1
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
mov r9, rdi
mov r8, rbp
mov qword [rsp + 0x20], rbx
mov edx, r12d
mov rcx, r15
call fcn.18002e680
movsxd rcx, eax
test eax, eax
js 0x18002ead4
add esi, ecx
cmp rcx, rbx
jl 0x18002ed3b
test rbx, rbx
jle 0x18002ed39
lea ecx, [rbx - 1]
jmp 0x18002ed3b
xor ecx, ecx
movsxd rax, ecx
add rdi, rax
sub rbx, rax
mov eax, dword [rbp + 0x68]
mov r14d, 1
test eax, eax
jne 0x18002ec93
mov eax, esi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret