Function at 0x4ee0c0
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 0x4ee4b8
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 0x4ee108
test esi, esi
jne 0x4ee1d0
mov rax, qword [r12]
mov esi, dword [rax]
mov eax, 1
jmp 0x4ee13c
add rax, 1
cmp ebx, eax
jbe 0x4ee200
mov rdx, qword [r12 + rax*8]
cmp dword [rdx], esi
je 0x4ee130
mov esi, ebx
lea rcx, [rsi*4]
call sub.msvcrt.dll_malloc
mov r9, rax
test rax, rax
je 0x4ee4c4
xor edx, edx
nop dword [rax]
mov rax, qword [r12 + rdx*8]
mov eax, dword [rax]
mov dword [r9 + rdx*4], eax
add rdx, 1
cmp rsi, rdx
jne 0x4ee168
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.004ecb90
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp esi, ebx
je 0x4ee2b0
mov dword [rsp + 0x20], esi
mov r9d, ebx
mov r8, r14
xor edx, edx
mov rcx, r12
sub ebx, esi
call fcn.004eca60
mov rax, qword [r12]
mov esi, dword [rax]
cmp ebx, 1
jne 0x4ee126
nop dword [rax]
cmp esi, 0xffffffff
je 0x4ee144
mov edx, dword [r13 + 0x2cc]
xor r9d, r9d
test edx, edx
je 0x4ee180
mov eax, dword [rsp + 0x110]
and eax, 1
mov dword [rsp + 0x5c], eax
je 0x4ee180
lea rax, [rsp + 0x8c]
mov dword [rsp + 0x8c], 0
mov qword [rsp + 0x68], rax
test byte [rsp + 0x110], 2
je 0x4ee268
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 0x4ee2c7
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.004ece30
xor r9d, r9d
jmp 0x4ee180
mov rcx, r12
call fcn.0052ed18
mov rcx, r14
call fcn.0052ed18
xor eax, eax
jmp 0x4ee1b8
cmp esi, 3
mov rbp, qword [fcn.0052ef40]
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, [0x00721153]
lea rdi, [0x0072114a]
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 0x4ee39c
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 0x4ee3ab
mov rax, qword [r12]
test sil, sil
jne 0x4ee377
mov r13d, dword [rax + 0x10]
jmp 0x4ee37e
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 0x4ee4af
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 0x4ee448
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 0x4ee410
mov esi, dword [rsp + 0x70]
mov r13, qword [rsp + 0xe0]
mov r15, qword [rsp + 0xe8]
mov r12, qword [rsp + 0xf8]
jmp 0x4ee273
mov r15d, dword [rax + 0x10]
jmp 0x4ee426
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x16
mov rcx, r12
call fcn.0052ed18
mov rcx, r14
call fcn.0052ed18
mov eax, 0xffffffff
jmp 0x4ee1b8