Function at 0x6a1cc0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r13, rcx
mov r12d, edx
mov qword [rsp + 0xd0], r8
mov rsi, r9
cmp edx, 1
jbe 0x6a1f99
mov edx, dword [rcx + 0x29c]
test edx, edx
je 0x6a1d84
mov eax, dword [rsp + 0xe8]
and eax, 1
mov dword [rsp + 0x40], eax
je 0x6a1d84
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x6c], 0
mov qword [rsp + 0x50], rax
test byte [rsp + 0xe8], 2
je 0x6a1d3a
lea rax, [rcx + 0x2a8]
mov qword [rsp + 0x50], rax
mov eax, dword [rcx + 0x2a4]
mov dword [rsp + 0x40], eax
mov eax, dword [r13 + 0x2a0]
test eax, eax
jne 0x6a1dd0
mov rax, qword [rsp + 0x50]
mov r9, rsi
mov edx, r12d
mov rcx, r13
mov dword [rsp + 0x38], 1
mov r8, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x20], eax
call fcn.006a0ca0
mov rax, qword [rsp + 0xd0]
mov edx, dword [rsp + 0xe0]
mov r8d, r12d
mov rcx, r13
mov r9, qword [rsp + 0xd0]
mov rax, qword [rax]
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
mov edx, dword [rax]
call fcn.006a0ac0
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0xd0]
mov ecx, 2
mov rbx, qword [fcn.00701940]
lea rdi, [0x00aed16a]
mov rax, qword [rax]
mov eax, dword [rax]
cmp eax, 0xd
setne dl
cmp eax, 3
setne al
and edx, eax
mov r14d, edx
mov byte [rsp + 0x47], dl
call rbx
mov r8d, 0x2f
mov edx, 1
lea rcx, str.Trying_to_group_objects_using_distance_matrix:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
test r14b, r14b
mov ecx, 2
lea rax, [0x00aed173]
cmove rdi, rax
call rbx
mov r8d, 8
mov edx, 1
mov rcx, rdi
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0x58], rax
lea eax, [r12 - 1]
mov rbp, rdi
lea r15, [rdi + rax*8 + 8]
lea rdi, str.___5d
mov qword [rsp + 0x48], r15
jmp 0x6a1eb4
mov esi, dword [rax + 0xf0]
mov ecx, 2
add rbp, 8
call rbx
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_fprintf
cmp rbp, r15
je 0x6a1ec2
mov rax, qword [rbp]
test r14b, r14b
jne 0x6a1e90
mov esi, dword [rax + 0x10]
jmp 0x6a1e96
mov ecx, 2
mov rsi, qword [rsp + 0xd8]
mov edi, r12d
lea rbp, str.___5lld
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
mov qword [rsp + 0xc0], r13
mov r13, qword [rsp + 0x58]
cmp byte [rsp + 0x47], 0
mov rax, qword [r13]
je 0x6a1f90
mov r15d, dword [rax + 0xf0]
mov ecx, 2
call rbx
mov r8d, r15d
lea rdx, str.____5d
mov r15d, edi
mov rcx, rax
sub r15d, r12d
call sub.msvcrt.dll_fprintf
nop word [rax + rax]
mov eax, r15d
mov ecx, 2
add r15d, 1
mov r14, qword [rsi + rax*8]
call rbx
mov rdx, rbp
mov r8, r14
mov rcx, rax
call sub.msvcrt.dll_fprintf
cmp edi, r15d
jne 0x6a1f30
mov ecx, 2
add r13, 8
add edi, r12d
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
cmp r13, qword [rsp + 0x48]
jne 0x6a1ef5
mov r13, qword [rsp + 0xc0]
jmp 0x6a1d49
mov r15d, dword [rax + 0x10]
jmp 0x6a1f0b
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, qword [rsp + 0xd0]
mov dword [rax], 0x16
call fcn.00701710
mov rcx, rsi
call fcn.00701710
mov eax, 0xffffffff
jmp 0x6a1dbd