Function at 0x6a6af0
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov edx, dword [rcx + 0xb8]
mov rbx, rcx
test edx, edx
jne 0x6a7280
call fcn.006a9840
lea rcx, str.HWLOC_XML_USERDATA_NOT_DECODED
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6a6b29
mov dword [rbx + 0x280], 1
lea rcx, [0x00d0b98f]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6a7010
mov rcx, rbx
call fcn.006ab390
mov rcx, rbx
call fcn.006ab710
mov rcx, rbx
call fcn.006ab840
mov rcx, rbx
call fcn.006acf80
mov rcx, rbx
call fcn.006b0250
mov dword [rbx + 0xbc], 0
call fcn.006ad430
mov qword [rbx + 0x188], rax
call fcn.006ad430
mov rsi, qword [rbx + 0x2c0]
mov qword [rbx + 0x190], rax
test rsi, rsi
je 0x6a6bb8
mov rax, qword [rsi]
mov eax, dword [rax]
sub eax, 1
cmp eax, 1
ja 0x6a6baf
mov rax, qword [rsi + 0x38]
test rax, rax
je 0x6a6baf
mov rcx, rsi
call rax
mov rsi, qword [rsi + 0x18]
test rsi, rsi
jne 0x6a6b94
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rsi, qword [rax]
mov rcx, qword [rsi + 0xb8]
test rcx, rcx
je 0x6a7242
call fcn.006ae5f0
test eax, eax
jne 0x6a7242
cmp qword [rbx + 0x250], 0
je 0x6a6bf7
mov eax, dword [rbx + 0xb4]
test eax, eax
jne 0x6a6f05
mov rcx, qword [rsi + 0xd0]
lea rsi, [rbx + 0x2e0]
call fcn.006ae5f0
test eax, eax
jne 0x6a6e71
mov rcx, qword [rbx + 0x2f0]
call fcn.00911ec8
mov qword [rbx + 0x2e0], 0
mov qword [rbx + 0x2e8], 0
mov qword [rsi + 0x10], 0
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0xb8]
mov r8, qword [rax + 0xc0]
mov rdx, rcx
call fcn.006aeb40
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0xc8]
mov r8, qword [rax + 0xd0]
mov rdx, rcx
call fcn.006aeb40
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x188]
mov rax, qword [rax]
mov rdx, rcx
mov rax, qword [rax]
mov r8, qword [rax + 0xb8]
call fcn.006aeb40
mov rax, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x190]
mov rax, qword [rax]
mov rdx, rcx
mov rax, qword [rax]
mov r8, qword [rax + 0xc8]
call fcn.006aeb40
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.0069f630
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.0069f380
test byte [rbx + 0x20], 1
je 0x6a6ff0
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rsi, qword [rcx]
mov eax, dword [rsi]
cmp eax, 0x11
ja 0x6a6f42
mov edx, eax
mov edx, dword [rbx + rdx*4 + 0x6c]
cmp edx, 1
je 0x6a6f60
cmp edx, 3
je 0x6a7161
xor edx, edx
mov rcx, rbx
call fcn.006a4950
test eax, eax
js 0x6a724e
mov rsi, qword [rbx + 0x2c0]
test rsi, rsi
je 0x6a6d54
nop
mov rax, qword [rsi]
mov eax, dword [rax]
sub eax, 1
cmp eax, 1
jbe 0x6a6d4b
mov rax, qword [rsi + 0x38]
test rax, rax
je 0x6a6d4b
mov rcx, rsi
call rax
mov rsi, qword [rsi + 0x18]
test rsi, rsi
jne 0x6a6d30
mov rcx, rbx
call fcn.006b0670
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rax, qword [rax]
mov rdx, qword [rax]
call fcn.006a1f40
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rdx, qword [rax]
call fcn.006a1f80
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rsi, qword [rax]
test rsi, rsi
je 0x6a72f1
mov rcx, qword [rsi + 0xb8]
call fcn.006ae5f0
test eax, eax
jne 0x6a72c7
mov rcx, qword [rsi + 0xc8]
call fcn.006ae5f0
mov ebp, eax
test eax, eax
jne 0x6a72a0
xor edx, edx
mov rcx, rbx
call fcn.006a4950
test eax, eax
js 0x6a724e
mov rcx, rbx
call fcn.006a20a0
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.0069fcf0
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rax, qword [rax]
mov rdx, qword [rax]
call fcn.0069f4e0
mov rcx, rbx
call fcn.0069ea50
mov rax, qword [rbx + 0x2c0]
test rax, rax
je 0x6a6e2b
mov rax, qword [rax]
mov ecx, 4
lea rdi, [0x00d0b2ae]
mov rsi, qword [rax + 8]
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x6a7185
mov rcx, rbx
call fcn.006b0350
lea rcx, str.HWLOC_DEBUG_CHECK
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6a6e4c
mov rcx, rbx
call fcn.006a5a70
mov rcx, rbx
call fcn.006aa5d0
mov rcx, rbx
call fcn.006aa260
mov dword [rbx + 0xb8], 1
mov eax, ebp
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor r8d, r8d
mov edx, 0xd
mov rcx, rbx
call fcn.006a3580
mov rbp, rax
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0xb8]
call fcn.006ad540
mov qword [rbp + 0xb8], rax
call fcn.006ad3d0
xor edx, edx
mov qword [rbp + 0xc8], rax
mov rcx, rax
call fcn.006ae100
mov rax, qword [rbp + 0x28]
mov r8, rbp
mov rcx, rbx
movdqu xmm0, xmmword [rbx + 0x2e0]
lea r9, [0x006a14e0]
movups xmmword [rax], xmm0
mov rdx, qword [rsi + 0x10]
mov qword [rax + 0x10], rdx
xor edx, edx
mov qword [rbx + 0x2e0], 0
mov qword [rbx + 0x2e8], 0
mov qword [rsi + 0x10], 0
call fcn.006a3ea0
jmp 0x6a6c3c
lea rcx, str.HWLOC_THISSYSTEM_ALLOWED_RESOURCES
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6a7200
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
je 0x6a7200
mov rcx, rbx
call qword [rbx + 0x250]
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rsi, qword [rax]
jmp 0x6a6bf7
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rsi, qword [rcx]
nop dword [rax + rax]
mov rdi, qword [rsi + 0x78]
test rdi, rdi
je 0x6a6d11
cmp qword [rdi + 0x58], 0
jne 0x6a6d11
mov qword [rdi + 0x48], 0
mov qword [rcx], rdi
mov rdx, qword [rsi + 0x90]
test rdx, rdx
je 0x6a6f9e
lea rcx, [rdi + 0x90]
mov r8, rdi
call fcn.0069e9c0
mov rdx, qword [rsi + 0xa0]
test rdx, rdx
je 0x6a6fb9
lea rcx, [rdi + 0xa0]
mov r8, rdi
call fcn.0069e9c0
mov rdx, qword [rsi + 0xb0]
test rdx, rdx
je 0x6a6fd4
lea rcx, [rdi + 0xb0]
mov r8, rdi
call fcn.0069e9c0
mov rcx, rsi
call fcn.006a1710
mov rcx, rsi
call fcn.00911ec8
jmp 0x6a6d11
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rax, qword [rax]
mov rdx, qword [rax]
call fcn.0069f460
jmp 0x6a6ce4
cmp qword [rbx + 0x2c0], 0
jne 0x6a6b3e
lea rcx, str.HWLOC_FSROOT
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6a7064
lea r9, str.linux
mov r8d, 1
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.006ab970
cmp qword [rbx + 0x2c0], 0
jne 0x6a6b3e
lea rcx, [0x00d0b9b3]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6a70b8
lea r9, [0x00d0b9c4]
mov r8d, 1
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.006ab970
cmp qword [rbx + 0x2c0], 0
jne 0x6a6b3e
lea rcx, [0x00d0b9c8]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6a7108
mov qword [rsp + 0x20], rax
mov r8d, 0xffffffff
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x30], 0
lea r9, [0x00d0b2a4]
mov qword [rsp + 0x28], 0
call fcn.006ab970
cmp qword [rbx + 0x2c0], 0
jne 0x6a6b3e
lea rcx, [0x00d0b9d8]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6a6b3e
mov qword [rsp + 0x20], rax
mov r8d, 0xffffffff
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x30], 0
lea r9, [0x00d0b2ae]
mov qword [rsp + 0x28], 0
call fcn.006ab970
jmp 0x6a6b3e
cmp eax, 0xf
je 0x6a7210
cmp eax, 0x10
jne 0x6a6d11
mov rax, qword [rsi + 0x28]
cmp dword [rax], 4
je 0x6a6f60
jmp 0x6a6d11
mov rax, qword [rbx + 0x18]
lea r9, [0x00d0adae]
lea r8, [0x00d0ba9c]
mov rax, qword [rax]
mov rcx, qword [rax]
lea rdx, [rcx + 0xe0]
add rcx, 0xd8
call fcn.006a29a0
mov rcx, rbx
call fcn.006b1180
mov rsi, rax
test rax, rax
je 0x6a6e2b
mov rax, qword [rbx + 0x18]
mov r9, rsi
lea r8, [0x00d0baa9]
mov rax, qword [rax]
mov rcx, qword [rax]
lea rdx, [rcx + 0xe0]
add rcx, 0xd8
call fcn.006a29a0
mov rcx, rsi
call fcn.00911ec8
jmp 0x6a6e2b
test byte [rbx + 0x20], 4
jne 0x6a6f2a
jmp 0x6a6f33
mov rax, qword [rsi + 0x28]
movzx eax, word [rax + 6]
movzx edx, ah
cmp edx, 0x12
ja 0x6a7230
mov r8d, 0x4080e
bt r8, rdx
jb 0x6a6d11
and eax, 0xfffffffd
cmp ax, 0xc04
je 0x6a6d11
jmp 0x6a6f60
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov rcx, rbx
mov ebp, 0xffffffff
call fcn.006b0350
mov rcx, rbx
call fcn.006a5860
mov rcx, rbx
call fcn.006a50e0
mov rcx, rbx
call fcn.006ab880
jmp 0x6a6e66
call qword [sym.imp.msvcrt.dll__errno]
mov ebp, 0xffffffff
mov dword [rax], 0x10
jmp 0x6a6e66
mov ecx, 2
call qword [fcn.00912130]
mov r8d, 0x33
mov edx, 1
lea rcx, str.Topology_does_not_contain_any_NUMA_node__aborting__n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x6a724e
mov ecx, 2
call qword [fcn.00912130]
mov r8d, 0x2c
mov edx, 1
lea rcx, str.Topology_does_not_contain_any_PU__aborting__n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x6a724e
mov ecx, 2
call qword [fcn.00912130]
mov r8d, 0x21
mov edx, 1
lea rcx, str.Topology_became_empty__aborting__n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x6a724e