Function at 0x7025f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov r14, qword [rsp + 0x100]
mov r13, rcx
mov r15, rdx
mov ebx, r8d
mov r12, r9
cmp r8d, 1
jbe 0x7029e8
mov qword [rsp + 0x50], r9
lea eax, [r8 - 1]
xor esi, esi
lea rdx, [r9 + rax*8 + 8]
mov rax, r9
nop dword [rax]
cmp qword [rax], 1
adc esi, 0
add rax, 8
cmp rax, rdx
jne 0x702638
test esi, esi
jne 0x702700
mov rax, qword [r12]
mov esi, dword [rax]
mov eax, 1
jmp 0x70266c
add rax, 1
cmp ebx, eax
jbe 0x702730
mov rdx, qword [r12 + rax*8]
cmp dword [rdx], esi
je 0x702660
mov esi, ebx
lea rcx, [rsi*4]
call sub.msvcrt.dll_malloc
mov r9, rax
test rax, rax
je 0x7029f4
xor eax, eax
nop dword [rax]
mov rdx, qword [r12 + rax*8]
mov edx, dword [rdx]
mov dword [r9 + rax*4], edx
add rax, 1
cmp rsi, rax
jne 0x702698
mov esi, 0xffffffff
mov qword [rsp + 0x38], r14
mov r8d, esi
mov rdx, r15
mov rcx, r13
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebx
call fcn.00700f00
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp esi, ebx
je 0x7027e0
mov dword [rsp + 0x20], esi
mov r9d, ebx
mov r8, r14
xor edx, edx
mov rcx, r12
sub ebx, esi
call fcn.00700e10
mov rax, qword [r12]
mov esi, dword [rax]
cmp ebx, 1
jne 0x702656
nop dword [rax]
cmp esi, 0xffffffff
je 0x702674
mov edx, dword [r13 + 0x2cc]
xor r9d, r9d
test edx, edx
je 0x7026b0
mov eax, dword [rsp + 0x110]
and eax, 1
mov dword [rsp + 0x5c], eax
je 0x7026b0
lea rax, [rsp + 0x8c]
mov dword [rsp + 0x8c], 0
mov qword [rsp + 0x68], rax
test byte [rsp + 0x110], 2
je 0x702798
lea rax, [r13 + 0x2d8]
mov qword [rsp + 0x68], rax
mov eax, dword [r13 + 0x2d4]
mov dword [rsp + 0x5c], eax
mov eax, dword [r13 + 0x2d0]
test eax, eax
jne 0x7027f7
mov rax, qword [rsp + 0x68]
mov r9, r14
mov r8, r12
mov edx, ebx
mov dword [rsp + 0x38], 1
mov rcx, r13
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x20], eax
call fcn.00701340
xor r9d, r9d
jmp 0x7026b0
mov rcx, r12
call fcn.00745380
mov rcx, r14
call fcn.00745380
xor eax, eax
jmp 0x7026e8
cmp esi, 3
mov rbp, qword [fcn.00745b20]
mov ecx, 2
setne dl
cmp esi, 0xd
setne al
mov edi, edx
and edi, eax
call rbp
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 dil, dil
mov byte [rsp + 0x7b], dil
lea rax, [0x0095db9a]
lea rdi, [0x0095db91]
mov qword [rsp + 0x70], rbp
mov ecx, 2
cmove rdi, rax
call rbp
mov r8d, 8
mov edx, 1
mov rcx, rdi
mov r9, rax
lea rdi, str.___5d
call sub.msvcrt.dll_fwrite
mov eax, ebx
mov dword [rsp + 0x7c], esi
mov rbp, qword [rsp + 0x70]
lea rax, [r12 + rax*8]
mov dword [rsp + 0xf0], ebx
movzx esi, byte [rsp + 0x7b]
mov qword [rsp + 0x60], rax
mov rbx, rax
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xf8], r12
jmp 0x7028cc
mov r13d, dword [rax + 0xf0]
mov ecx, 2
add r12, 8
call rbp
mov r8d, r13d
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_fprintf
cmp rbx, r12
je 0x7028db
mov rax, qword [r12]
test sil, sil
jne 0x7028a7
mov r13d, dword [rax + 0x10]
jmp 0x7028ae
mov esi, dword [rsp + 0x7c]
mov r12, qword [rsp + 0xf8]
mov ecx, 2
lea rbp, str.___5lld
mov r13, qword [rsp + 0xe0]
mov ebx, dword [rsp + 0xf0]
mov rdi, qword [rsp + 0x70]
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xe8], r15
mov qword [rsp + 0xf8], r12
mov r12, qword [rsp + 0x50]
mov dword [rsp + 0x70], esi
mov esi, ebx
nop dword [rax]
cmp byte [rsp + 0x7b], 0
mov rax, qword [r12]
je 0x7029df
mov r15d, dword [rax + 0xf0]
mov ecx, 2
call rdi
mov r8d, r15d
lea rdx, str.____5d
mov r15d, esi
mov rcx, rax
sub r15d, ebx
call sub.msvcrt.dll_fprintf
nop dword [rax]
mov eax, r15d
mov ecx, 2
add r15d, 1
mov r13, qword [r14 + rax*8]
call rdi
mov rdx, rbp
mov rcx, rax
mov r8, r13
call sub.msvcrt.dll_fprintf
cmp esi, r15d
jne 0x702978
mov ecx, 2
add r12, 8
add esi, ebx
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
cmp qword [rsp + 0x60], r12
jne 0x702940
mov esi, dword [rsp + 0x70]
mov r13, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xe8]
mov r12, qword [rsp + 0xf8]
jmp 0x7027a3
mov r15d, dword [rax + 0x10]
jmp 0x702956
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov rcx, r12
call fcn.00745380
mov rcx, r14
call fcn.00745380
mov eax, 0xffffffff
jmp 0x7026e8