Function at 0x40edd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
fld qword [0x430d18]
push ebx
fld qword [0x42e1a8]
push esi
fmul st(1)
push edi
fldz
mov dword [ebp - 8], 0x64
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40ee03
fstp st(0)
fld qword [0x42e2a8]
fmul st(1)
cmp dword [0x430cb8], 5
faddp st(1)
fstp qword [ebp - 0x24]
jne 0x40ee69
mov edi, dword [0x42fb48]
mov ebx, dword [edi + 0x48]
test ebx, ebx
jne 0x40ee22
xor esi, esi
jmp 0x40ee66
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ee5a
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x40ee52
call fcn.00403eb0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push ebx
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [edi + 0x4c], esi
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x1c]
mov eax, ecx
imul eax, eax, 0x320
mov dword [ebp - 0x14], eax
mov eax, ecx
xor esi, esi
imul eax, eax, 0xfa0
mov dword [ebp - 0xc], 0x514
mov dword [ebp - 0x10], eax
mov dword [0x42fde4], esi
cmp esi, dword [ebp - 8]
jl 0x40eefb
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.MSVCR100.dll_realloc]
add dword [ebp - 8], 0x1f4
add dword [ebp - 0xc], 0x1964
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x42fde0]
push eax
call edi
add esp, 8
test eax, eax
je 0x40f02d
cmp dword [0x430a60], 0
mov dword [0x42fde0], eax
je 0x40ef0e
mov ecx, dword [ebp - 8]
mov eax, dword [0x42fb90]
lea edx, [ecx*8]
push edx
push eax
call edi
add esp, 8
test eax, eax
je 0x40f087
mov dword [0x42fb90], eax
cmp dword [0x430a60], 0
je 0x40ef2b
mov eax, dword [0x42fb90]
lea ecx, [eax + esi*8]
jmp 0x40ef36
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x42fa00]
push ecx
push edx
call edi
add esp, 8
test eax, eax
je 0x40f0af
mov dword [0x42fa00], eax
mov ecx, esi
imul ecx, ecx, 0xd
add ecx, dword [0x42fa00]
mov edi, dword [ebp + 8]
mov eax, dword [0x42fde0]
mov edx, esi
imul edx, edi
lea eax, [eax + edx*8]
mov edx, dword [0x430cb8]
add edx, 0xfffffffe
cmp edx, 6
ja case.0x40ef54.4
jmp dword [edx*4 + 0x40f42c]
push ecx
push ecx
push 1
call fcn.0041fea0
add esp, 0xc
jmp 0x40efa5
mov ebx, dword [ebp + 0xc]
push ecx
push eax
mov eax, 1
call fcn.0041fda0
add esp, 8
jmp 0x40efa5
push eax
mov ebx, ecx
mov eax, 1
call fcn.0041dbc0
jmp 0x40efa2
push 1
mov edx, eax
call fcn.0041e3c0
jmp 0x40efa2
mov edx, ecx
push 1
mov ecx, eax
call fcn.0041eeb0
add esp, 4
mov esi, dword [0x42fde4]
mov ebx, eax
mov ecx, dword [0x430cb8]
mov eax, ebx
cmp ecx, 8
jne 0x40efc5
cmp esi, dword [0x42fab0]
jl 0x40efc5
lea eax, [ebx + 1]
test eax, eax
jne 0x40eff3
cmp dword [0x430a60], eax
je 0x40efed
mov ecx, dword [0x42fb90]
fld qword [ecx + esi*8]
fld qword [0x430d18]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x40ee94
inc esi
jmp 0x40ee8e
test esi, esi
je 0x40f0d7
cmp eax, 0xa
je 0x40f110
cmp ecx, 9
jne 0x40f148
mov ecx, dword [0x42fb48]
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x40f18d
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
jmp 0x40f18d
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x40f07f
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x40f063
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x40f0a7
call fcn.00403eb0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x40f0cf
call fcn.00403eb0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.Something_the_matter_in_reading_your_level_2_data_file_n
call esi
add esp, 4
push 0x427955
push 0x428e48
call esi
add esp, 8
call fcn.00404240
inc dword [0x42fba4]
je 0x40f108
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
inc esi
push esi
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.Error_at_line__ld_n
call esi
push 0x427955
push 0x428e48
call esi
add esp, 0x10
call fcn.00404240
inc dword [0x42fba4]
je 0x40f140
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov edx, dword [0x42fb48]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [0x430cb8]
add esp, 4
cmp eax, 5
jne 0x40f17e
mov ecx, dword [0x42fb48]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40f187
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
jmp 0x40f187
cmp eax, 2
je 0x40f338
mov esi, dword [0x42fde4]
lea ecx, [esi - 1]
mov dword [0x42fd28], 0
mov dword [ebp - 0xc], ecx
test ecx, ecx
js 0x40f33e
mov eax, ecx
imul eax, eax, 0xd
mov dword [ebp - 0x14], eax
mov eax, ecx
imul eax, edi
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 8], eax
mov eax, edi
neg eax
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 1]
imul eax, edi
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x10], eax
jmp 0x40f1e0
mov ecx, dword [ebp - 8]
fld qword [ebp - 0x24]
add ecx, dword [0x42fde0]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], ecx
cmp edx, 4
jl 0x40f23d
add edx, 0xfffffffc
shr edx, 2
inc edx
lea edi, [edx*4]
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x40f213
inc ebx
fcom qword [ecx + 8]
fnstsw ax
test ah, 0x41
jne 0x40f21e
inc ebx
fcom qword [ecx + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40f229
inc ebx
fcom qword [ecx + 0x18]
fnstsw ax
test ah, 0x41
jne 0x40f234
inc ebx
add ecx, 0x20
dec edx
jne 0x40f209
mov edx, dword [ebp + 8]
cmp edi, edx
jge 0x40f256
mov edx, dword [ebp + 8]
sub edx, edi
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x40f250
inc ebx
add ecx, 8
dec edx
jne 0x40f246
mov edi, dword [ebp - 0xc]
fstp st(0)
test ebx, ebx
je 0x40f31d
mov edx, dword [ebp - 0x10]
add edx, dword [0x42fde0]
mov eax, dword [ebp - 0x18]
sub esi, edi
dec esi
imul esi, dword [ebp + 8]
add esi, esi
add esi, esi
add esi, esi
push esi
push edx
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
mov esi, dword [0x42fde4]
add esp, 0xc
cmp dword [0x430a60], 0
je 0x40f2b0
mov ecx, dword [0x42fb90]
push 1
push 1
push ecx
mov eax, esi
mov edx, edi
call fcn.004038f0
add esp, 0xc
jmp 0x40f310
lea eax, [esi - 1]
cmp edi, eax
jge 0x40f2e9
mov edx, dword [0x42fa00]
mov ecx, dword [ebp - 0x14]
sub eax, edi
lea ebx, [ecx + edx + 0xd]
mov dword [ebp - 0xc], eax
lea esp, [esp]
mov eax, ebx
mov edx, 0xfffffff3
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x40f2d7
add ebx, 0xd
dec dword [ebp - 0xc]
jne 0x40f2d0
mov ecx, dword [0x42fa00]
mov edx, esi
imul edx, edx, 0xd
mov eax, 0x430cf0
sub edx, eax
lea edx, [edx + ecx - 0xd]
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x40f300
lea ebx, [ebx]
inc dword [0x42fd28]
dec esi
mov dword [0x42fde4], esi
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], eax
add dword [ebp - 0x10], eax
sub dword [ebp - 0x14], 0xd
dec edi
mov dword [ebp - 0xc], edi
test edi, edi
jns 0x40f1e0
jmp 0x40f33e
mov esi, dword [0x42fde4]
lea edx, [esi - 1]
xor edi, edi
test edx, edx
jle 0x40f424
mov ecx, dword [0x42fb90]
xor ebx, ebx
cmp dword [0x430a60], 0
je 0x40f3ec
fld qword [ecx + edi*8 + 8]
fcomp qword [ecx + edi*8]
fnstsw ax
test ah, 5
jp 0x40f415
mov eax, dword [ebp + 0x10]
push str._It_looks_like_your_level_2_file_is_not_sorted._Please_sort_this_file_n_and_re_run._n
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str._It_looks_like_your_level_2_file_is_not_sorted._Please_sort_this_file_n_and_re_run._n
call esi
add esp, 0xc
push 0x427955
push 0x428e48
call esi
add esp, 8
call fcn.00404240
inc dword [0x42fba4]
je 0x40f3e4
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ecx, esi
cmp ecx, 3
jbe 0x40f3c8
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [0x42fa00]
add eax, ebx
lea ecx, [eax + 0xd]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jg 0x40f372
mov esi, dword [0x42fde4]
mov ecx, dword [0x42fb90]
inc edi
lea edx, [esi - 1]
add ebx, 0xd
cmp edi, edx
jl 0x40f353
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret