Function at 0x6cdec0
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 0x6ce650
call fcn.006d0c10
lea rcx, str.HWLOC_XML_USERDATA_NOT_DECODED
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6cdef9
mov dword [rbx + 0x280], 1
lea rcx, [0x00911ccf]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6ce3e0
mov rcx, rbx
call fcn.006d2760
mov rcx, rbx
call fcn.006d2ae0
mov rcx, rbx
call fcn.006d2c10
mov rcx, rbx
call fcn.006d4350
mov rcx, rbx
call fcn.006d7620
mov dword [rbx + 0xbc], 0
call fcn.006d4800
mov qword [rbx + 0x188], rax
call fcn.006d4800
mov rsi, qword [rbx + 0x2c0]
mov qword [rbx + 0x190], rax
test rsi, rsi
je 0x6cdf88
mov rax, qword [rsi]
mov eax, dword [rax]
sub eax, 1
cmp eax, 1
ja 0x6cdf7f
mov rax, qword [rsi + 0x38]
test rax, rax
je 0x6cdf7f
mov rcx, rsi
call rax
mov rsi, qword [rsi + 0x18]
test rsi, rsi
jne 0x6cdf64
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rsi, qword [rax]
mov rcx, qword [rsi + 0xb8]
test rcx, rcx
je 0x6ce612
call fcn.006d59c0
test eax, eax
jne 0x6ce612
cmp qword [rbx + 0x250], 0
je 0x6cdfc7
mov eax, dword [rbx + 0xb4]
test eax, eax
jne 0x6ce2d5
mov rcx, qword [rsi + 0xd0]
lea rsi, [rbx + 0x2e0]
call fcn.006d59c0
test eax, eax
jne 0x6ce241
mov rcx, qword [rbx + 0x2f0]
call fcn.00710f20
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.006d5f10
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.006d5f10
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.006d5f10
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.006d5f10
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.006c6a00
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.006c6750
test byte [rbx + 0x20], 1
je 0x6ce3c0
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov rsi, qword [rcx]
mov eax, dword [rsi]
cmp eax, 0x11
ja 0x6ce312
mov edx, eax
mov edx, dword [rbx + rdx*4 + 0x6c]
cmp edx, 1
je 0x6ce330
cmp edx, 3
je 0x6ce531
xor edx, edx
mov rcx, rbx
call fcn.006cbd20
test eax, eax
js 0x6ce61e
mov rsi, qword [rbx + 0x2c0]
test rsi, rsi
je 0x6ce124
nop
mov rax, qword [rsi]
mov eax, dword [rax]
sub eax, 1
cmp eax, 1
jbe 0x6ce11b
mov rax, qword [rsi + 0x38]
test rax, rax
je 0x6ce11b
mov rcx, rsi
call rax
mov rsi, qword [rsi + 0x18]
test rsi, rsi
jne 0x6ce100
mov rcx, rbx
call fcn.006d7a40
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rax, qword [rax]
mov rdx, qword [rax]
call fcn.006c9310
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rdx, qword [rax]
call fcn.006c9350
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rsi, qword [rax]
test rsi, rsi
je 0x6ce6c1
mov rcx, qword [rsi + 0xb8]
call fcn.006d59c0
test eax, eax
jne 0x6ce697
mov rcx, qword [rsi + 0xc8]
call fcn.006d59c0
mov ebp, eax
test eax, eax
jne 0x6ce670
xor edx, edx
mov rcx, rbx
call fcn.006cbd20
test eax, eax
js 0x6ce61e
mov rcx, rbx
call fcn.006c9470
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.006c70c0
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rax, qword [rax]
mov rdx, qword [rax]
call fcn.006c68b0
mov rcx, rbx
call fcn.006c5e20
mov rax, qword [rbx + 0x2c0]
test rax, rax
je 0x6ce1fb
mov rax, qword [rax]
mov ecx, 4
lea rdi, [0x009115ee]
mov rsi, qword [rax + 8]
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x6ce555
mov rcx, rbx
call fcn.006d7720
lea rcx, str.HWLOC_DEBUG_CHECK
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6ce21c
mov rcx, rbx
call fcn.006cce40
mov rcx, rbx
call fcn.006d19a0
mov rcx, rbx
call fcn.006d1630
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.006ca950
mov rbp, rax
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rax, qword [rax]
mov rcx, qword [rax + 0xb8]
call fcn.006d4910
mov qword [rbp + 0xb8], rax
call fcn.006d47a0
xor edx, edx
mov qword [rbp + 0xc8], rax
mov rcx, rax
call fcn.006d54d0
mov rax, qword [rbp + 0x28]
mov r8, rbp
mov rcx, rbx
movdqu xmm0, xmmword [rbx + 0x2e0]
lea r9, [0x006c88b0]
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.006cb270
jmp 0x6ce00c
lea rcx, str.HWLOC_THISSYSTEM_ALLOWED_RESOURCES
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6ce5d0
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
je 0x6ce5d0
mov rcx, rbx
call qword [rbx + 0x250]
mov rax, qword [rbx + 0x18]
mov rax, qword [rax]
mov rsi, qword [rax]
jmp 0x6cdfc7
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 0x6ce0e1
cmp qword [rdi + 0x58], 0
jne 0x6ce0e1
mov qword [rdi + 0x48], 0
mov qword [rcx], rdi
mov rdx, qword [rsi + 0x90]
test rdx, rdx
je 0x6ce36e
lea rcx, [rdi + 0x90]
mov r8, rdi
call fcn.006c5d90
mov rdx, qword [rsi + 0xa0]
test rdx, rdx
je 0x6ce389
lea rcx, [rdi + 0xa0]
mov r8, rdi
call fcn.006c5d90
mov rdx, qword [rsi + 0xb0]
test rdx, rdx
je 0x6ce3a4
lea rcx, [rdi + 0xb0]
mov r8, rdi
call fcn.006c5d90
mov rcx, rsi
call fcn.006c8ae0
mov rcx, rsi
call fcn.00710f20
jmp 0x6ce0e1
mov rax, qword [rbx + 0x18]
mov rcx, rbx
mov rax, qword [rax]
mov rdx, qword [rax]
call fcn.006c6830
jmp 0x6ce0b4
cmp qword [rbx + 0x2c0], 0
jne 0x6cdf0e
lea rcx, str.HWLOC_FSROOT
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6ce434
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.006d2d40
cmp qword [rbx + 0x2c0], 0
jne 0x6cdf0e
lea rcx, [0x00911cf3]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6ce488
lea r9, [0x00911d04]
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.006d2d40
cmp qword [rbx + 0x2c0], 0
jne 0x6cdf0e
lea rcx, [0x00911d08]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6ce4d8
mov qword [rsp + 0x20], rax
mov r8d, 0xffffffff
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x30], 0
lea r9, [0x009115e4]
mov qword [rsp + 0x28], 0
call fcn.006d2d40
cmp qword [rbx + 0x2c0], 0
jne 0x6cdf0e
lea rcx, [0x00911d18]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6cdf0e
mov qword [rsp + 0x20], rax
mov r8d, 0xffffffff
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x30], 0
lea r9, [0x009115ee]
mov qword [rsp + 0x28], 0
call fcn.006d2d40
jmp 0x6cdf0e
cmp eax, 0xf
je 0x6ce5e0
cmp eax, 0x10
jne 0x6ce0e1
mov rax, qword [rsi + 0x28]
cmp dword [rax], 4
je 0x6ce330
jmp 0x6ce0e1
mov rax, qword [rbx + 0x18]
lea r9, [0x009110ee]
lea r8, [0x00911ddc]
mov rax, qword [rax]
mov rcx, qword [rax]
lea rdx, [rcx + 0xe0]
add rcx, 0xd8
call fcn.006c9d70
mov rcx, rbx
call fcn.006d8550
mov rsi, rax
test rax, rax
je 0x6ce1fb
mov rax, qword [rbx + 0x18]
mov r9, rsi
lea r8, [0x00911de9]
mov rax, qword [rax]
mov rcx, qword [rax]
lea rdx, [rcx + 0xe0]
add rcx, 0xd8
call fcn.006c9d70
mov rcx, rsi
call fcn.00710f20
jmp 0x6ce1fb
test byte [rbx + 0x20], 4
jne 0x6ce2fa
jmp 0x6ce303
mov rax, qword [rsi + 0x28]
movzx eax, word [rax + 6]
movzx edx, ah
cmp edx, 0x12
ja 0x6ce600
mov r8d, 0x4080e
bt r8, rdx
jb 0x6ce0e1
and eax, 0xfffffffd
cmp ax, 0xc04
je 0x6ce0e1
jmp 0x6ce330
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov rcx, rbx
mov ebp, 0xffffffff
call fcn.006d7720
mov rcx, rbx
call fcn.006ccc30
mov rcx, rbx
call fcn.006cc4b0
mov rcx, rbx
call fcn.006d2c50
jmp 0x6ce236
call qword [sym.imp.msvcrt.dll__errno]
mov ebp, 0xffffffff
mov dword [rax], 0x10
jmp 0x6ce236
mov ecx, 2
call qword [fcn.007116c0]
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 0x6ce61e
mov ecx, 2
call qword [fcn.007116c0]
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 0x6ce61e
mov ecx, 2
call qword [fcn.007116c0]
mov r8d, 0x21
mov edx, 1
lea rcx, str.Topology_became_empty__aborting__n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x6ce61e