Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x174
mov eax, dword [0x478018]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, dword [0x47b6a4]
mov edx, dword [0x47b6ac]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov ecx, 8
mov esi, 0x47b6d8
mov edi, 0x47b6b8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x47b6a8]
mov dword [esp + 0x48], eax
mov eax, dword [0x47b6b0]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x54], eax
xor edi, edi
push ecx
mov eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], 4
mov dword [esp + 0x54], edx
call fcn.004014a0
mov edx, dword [ebp + 8]
add esp, 4
push edx
mov eax, ebx
call fcn.00401880
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40110e
jmp 0x4010a0
push ebx
push str.Reading__s_..._n
call dword [sym.imp.MSVCR90.dll_printf]
push 0x473a0c
push ebx
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x401239
fldz
sub esp, 8
fstp dword [esp + 4]
lea eax, [esp + 0x4c]
fld dword [0x4770a0]
lea edx, [esp + 0x44]
fstp dword [esp]
mov ecx, edi
push eax
call fcn.00401990
add esp, 0xc
push edi
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x34]
add esp, 4
push ecx
call fcn.00401880
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4010a0
mov edi, dword [esp + 0x3c]
push str.Clustering_..._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
mov dword [esp + 0x30], edi
test edi, edi
je 0x401214
mov edx, dword [esp + 0x30]
mov edi, dword [edx]
push edi
lea eax, [esp + 0x48]
call fcn.00401d60
fld dword [0x47b6bc]
fst dword [esp + 0x44]
mov esi, eax
fcomp qword [0x477098]
mov eax, dword [edi + 4]
mov dword [0x47b6d0], eax
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4011e0
cmp dword [esi + 0x10], 0
jne 0x40116d
mov ebx, esi
call fcn.00402520
mov eax, dword [esi + 0x14]
call fcn.00407470
push 0x47b6b8
push esi
mov dword [esi + 0x14], 0
call fcn.00402900
mov edx, dword [esi + 0x14]
add esp, 8
xor al, al
mov bl, 1
mov dword [esp + 0x38], edx
call fcn.00401f40
test eax, eax
jg 0x4011e0
fld dword [0x47b6bc]
sub esp, 8
fmul qword [0x477090]
fstp dword [0x47b6bc]
mov ecx, dword [edi]
fld dword [0x47b6bc]
fstp qword [esp]
push ecx
push str.0_significant_protos_for__s._Retrying_clustering_with_MinSamples___f___n
call dword [sym.imp.MSVCR90.dll_printf]
fld dword [0x47b6bc]
fcomp qword [0x477098]
add esp, 0x10
fnstsw ax
test ah, 0x41
je 0x401160
fld dword [esp + 0x40]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x34]
fstp dword [0x47b6bc]
mov ecx, dword [edi]
push edx
call fcn.00401ef0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
jne 0x401128
mov edi, dword [esp + 0x3c]
push edi
call fcn.00401c80
add esp, 4
test esi, esi
jne 0x40128a
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.004076a7
mov esp, ebp
pop ebp
ret
push ebx
lea edx, [esp + 0x7c]
push str.Unable_to_open__s
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x78]
push eax
push str._nError:__s__n
call fcn.00406b70
push 0xbb8
push str.Code__d
push 2
lea ecx, [esp + 0x48]
push str.signal_termination_handler
push ecx
mov dword [esp + 0x50], str.Signal_termination_handler_called
call fcn.00406a30
add esp, 0x1c
push 3
call dword [sym.imp.MSVCR90.dll_exit]
mov edi, dword [esp + 0x34]
push edi
mov ecx, esi
call fcn.004012e0
add esp, 4
call fcn.004023f0
mov eax, dword [esp + 0x38]
call fcn.00407470
mov eax, edi
call fcn.00401eb0
push 0x47669c
call dword [sym.imp.MSVCR90.dll_printf]
mov ecx, dword [esp + 0x180]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004076a7
mov esp, ebp
pop ebp
ret