Function at 0x180020870
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 0x1800208a2
xor ebp, ebp
jmp 0x1800208b9
mov rax, qword [rcx + 0x10]
cmp dword [rax], 0
ja 0x1800208af
xor ebp, ebp
jmp 0x1800208b9
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 0x1800208df
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 0x180020918
test r12d, 0xfffffff0
jne 0x180020918
cmp dword [rbp + 0x88], esi
jne 0x18002092c
test r13d, r13d
je 0x180020918
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.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x180020ba7
mov eax, r12d
and eax, 8
mov dword [rsp + 0x70], eax
jne 0x180020977
mov rcx, r15
call fcn.180020650
test eax, eax
jns 0x180020977
test r13d, r13d
je 0x180020963
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.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x180020ba7
test r12b, 4
je 0x180020a03
movsxd rax, dword [r15 + 0x58]
cmp eax, 0xffffffff
jne 0x18002098e
xor ecx, ecx
jmp 0x1800209e1
cmp eax, 0xfffffffe
jne 0x180020997
xor ecx, ecx
jmp 0x1800209e1
cmp eax, dword [r15 + 4]
jb 0x1800209c6
mov ecx, 0xfffffffd
sub ecx, eax
cmp ecx, 5
jae 0x1800209d2
mov eax, ecx
shl rax, 5
cmp dword [rax + r15 + 0xe8], esi
jbe 0x1800209d2
mov rax, qword [rax + r15 + 0xf0]
mov rcx, qword [rax]
jmp 0x1800209e1
mov rcx, rax
mov rax, qword [r15 + 0x10]
cmp dword [rax + rcx*4], esi
ja 0x1800209d6
xor ecx, ecx
jmp 0x1800209e1
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 0x180020a03
mov rax, qword [rcx + 0x48]
cmp dword [rax + 0x30], edx
jne 0x180020a41
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x1800209f1
test r12b, 2
jne 0x180020a7f
mov r9, rbx
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call fcn.1800200e0
movsxd rsi, eax
test eax, eax
mov eax, 1
mov ecx, esi
cmovg r14d, eax
test esi, esi
js 0x180020924
cmp rsi, rbx
jl 0x180020a76
test rbx, rbx
jle 0x180020a74
lea ecx, [rbx - 1]
jmp 0x180020a76
test r13d, r13d
je 0x180020a60
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.1800053c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
or eax, 0xffffffff
jmp 0x180020ba7
xor ecx, ecx
movsxd rax, ecx
add rdi, rax
sub rbx, rax
cmp dword [rsp + 0x70], 0
jne 0x180020ad8
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.1800204d0
test eax, eax
movsxd rcx, eax
mov eax, 1
cmovg r14d, eax
test ecx, ecx
js 0x180020924
add esi, ecx
cmp rcx, rbx
jl 0x180020acf
test rbx, rbx
jle 0x180020acd
lea ecx, [rbx - 1]
jmp 0x180020acf
xor ecx, ecx
movsxd rax, ecx
add rdi, rax
sub rbx, rax
mov eax, dword [rbp + 0x68]
test eax, eax
je 0x180020ba5
mov rbp, qword [rbp + 0x78]
test r14d, r14d
je 0x180020b00
cmp rbx, 1
jle 0x180020afe
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.180020340
movsxd rcx, eax
test eax, eax
js 0x180020924
add esi, ecx
cmp rcx, rbx
jl 0x180020b39
test rbx, rbx
jle 0x180020b37
lea ecx, [rbx - 1]
jmp 0x180020b39
xor ecx, ecx
movsxd rax, ecx
add rdi, rax
sub rbx, rax
cmp dword [rsp + 0x70], 0
jne 0x180020b94
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.1800204d0
movsxd rcx, eax
test eax, eax
js 0x180020924
add esi, ecx
cmp rcx, rbx
jl 0x180020b8b
test rbx, rbx
jle 0x180020b89
lea ecx, [rbx - 1]
jmp 0x180020b8b
xor ecx, ecx
movsxd rax, ecx
add rdi, rax
sub rbx, rax
mov eax, dword [rbp + 0x68]
mov r14d, 1
test eax, eax
jne 0x180020ae3
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