Function at 0x417990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x439264], 5
push ebx
push esi
push edi
mov dword [ebp - 4], 0x64
jne 0x417a07
mov ebx, dword [0x437c5c]
mov edi, dword [ebx + 0x80]
test edi, edi
jne 0x4179bd
xor esi, esi
jmp 0x417a01
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4179f5
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x4179ed
call fcn.004048c0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push edi
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebx + 0x84], esi
mov ecx, dword [ebp + 8]
fld qword [0x4394f0]
mov edi, dword [ebp - 0x14]
mov eax, ecx
imul eax, eax, 0x320
mov dword [ebp - 0xc], eax
mov eax, ecx
xor ebx, ebx
imul eax, eax, 0xfa0
mov dword [ebp - 8], 0x514
mov dword [ebp - 0x10], eax
mov dword [0x438f00], ebx
cmp ebx, dword [ebp - 4]
jl 0x417aa7
mov eax, dword [ebp - 0xc]
fstp st(0)
add eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCR100.dll_realloc]
add dword [ebp - 4], 0x1f4
add dword [ebp - 8], 0x1964
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x438ec4]
push eax
call esi
add esp, 8
test eax, eax
je 0x417c13
cmp dword [0x438da0], 0
mov dword [0x438ec4], eax
je 0x417aba
mov ecx, dword [ebp - 4]
mov eax, dword [0x438000]
lea edx, [ecx*8]
push edx
push eax
call esi
add esp, 8
test eax, eax
je 0x417c74
fld qword [0x4394f0]
mov dword [0x438000], eax
cmp dword [0x438da0], 0
je 0x417add
mov eax, dword [0x438000]
lea esi, [eax + ebx*8]
jmp 0x417ae8
mov ecx, dword [ebp - 8]
mov edx, dword [0x438178]
push ecx
push edx
call esi
add esp, 8
test eax, eax
je 0x417c9c
fld qword [0x4394f0]
mov dword [0x438178], eax
mov esi, ebx
imul esi, esi, 0xd
add esi, dword [0x438178]
mov eax, dword [0x439264]
mov edx, dword [0x438ec4]
mov ecx, ebx
imul ecx, dword [ebp + 8]
add eax, 0xfffffffe
lea ecx, [edx + ecx*8]
cmp eax, 6
ja case.0x417b04.4
jmp dword [eax*4 + 0x417f30]
push 0
fstp st(0)
push esi
push 1
push 2
mov eax, ecx
call fcn.00422fb0
add esp, 0x10
jmp 0x417b67
mov eax, dword [ebp + 0xc]
fstp st(0)
push 0
push esi
push eax
push ecx
mov eax, 2
call fcn.00426b00
add esp, 0x10
jmp 0x417b67
push ecx
fstp st(0)
push 2
xor edx, edx
mov ecx, esi
call fcn.00423ac0
jmp 0x417b64
push esi
fstp st(0)
push 2
xor edx, edx
call fcn.00424bb0
jmp 0x417b64
push 0
fstp st(0)
push 2
mov edx, esi
call fcn.00425980
add esp, 8
mov ebx, dword [0x438f00]
fld qword [0x4394f0]
mov edi, eax
mov ecx, dword [0x439264]
mov eax, edi
cmp ecx, 8
jne 0x417b8d
cmp ebx, dword [0x437ba0]
jl 0x417b8d
lea eax, [edi + 1]
test eax, eax
jne 0x417bdc
cmp dword [0x438da0], eax
je 0x417bb1
mov ecx, dword [0x438000]
fld qword [ecx + ebx*8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x417a38
cmp ebx, 1
jle 0x417bd6
cmp dword [0x438da0], 0
je 0x417bd6
mov eax, dword [0x438000]
fld qword [eax + ebx*8 - 8]
fcomp qword [eax + ebx*8]
fnstsw ax
test ah, 0x41
je 0x417cc4
inc ebx
jmp 0x417a32
cmp eax, 0xa
je 0x417d01
mov esi, dword [0x437c5c]
cmp ecx, 5
jne 0x417d2c
mov eax, dword [esi + 0x84]
fstp st(0)
test eax, eax
je 0x417d51
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
jmp 0x417d51
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x417c6c
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
lea esp, [esp]
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 0x417c50
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.00404c60
inc dword [0x437d8c]
je 0x417c94
call fcn.004048c0
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.00404c60
inc dword [0x437d8c]
je 0x417cbc
call fcn.004048c0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push 3
fstp st(0)
push str.The_level__d_file_is_not_sorted__n
call dword [sym.imp.MSVCR100.dll_printf]
mov ecx, dword [ebp + 0x10]
push 3
push str.The_level__d_file_is_not_sorted__n
push ecx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x14
call fcn.00404c60
inc dword [0x437d8c]
je 0x417cf9
call fcn.004048c0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
push ebx
fstp st(0)
push str.problem_at_line__ld_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
call fcn.00404c60
inc dword [0x437d8c]
je 0x417d24
call fcn.004048c0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
cmp ecx, 9
jne 0x417d4f
mov edx, dword [0x437c5c]
mov eax, dword [edx + 0xa0]
test eax, eax
je 0x417d71
push eax
fstp st(0)
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
jmp 0x417d6b
fstp st(0)
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp dword [0x439264], 2
je 0x417f28
fld qword [0x4394f0]
mov ebx, dword [0x438f00]
dec ebx
mov dword [0x437a48], 0
js 0x417f26
mov edx, dword [ebp + 8]
mov eax, ebx
imul eax, eax, 0xd
mov ecx, edx
neg ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
mov eax, ebx
imul eax, edx
lea ecx, [ebx + 1]
imul ecx, edx
add eax, eax
add ecx, ecx
add eax, eax
add eax, eax
add ecx, ecx
add ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jmp 0x417dc5
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x438ec4]
add ecx, eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x10], ecx
cmp edx, 4
jl 0x417e2b
mov edx, dword [ebp + 8]
add edx, 0xfffffffc
shr edx, 2
inc edx
lea edi, [edx*4]
fld qword [ecx]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x417df8
inc esi
fld qword [ecx + 8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x417e07
inc esi
fld qword [ecx + 0x10]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x417e16
inc esi
fld qword [ecx + 0x18]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x417e25
inc esi
add ecx, 0x20
dec edx
jne 0x417dea
cmp edi, dword [ebp + 8]
jge 0x417e49
mov edx, dword [ebp + 8]
sub edx, edi
fld qword [ecx]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x417e43
inc esi
add ecx, 8
dec edx
jne 0x417e35
test esi, esi
je 0x417f12
cmp dword [0x438da0], 0
fstp st(0)
mov eax, dword [0x438f00]
je 0x417e78
mov edx, dword [0x438000]
push 1
push 1
push edx
mov edx, ebx
call fcn.00404000
add esp, 0xc
jmp 0x417ed0
dec eax
cmp ebx, eax
jge 0x417ea7
mov ecx, dword [ebp - 8]
mov edx, dword [0x438178]
sub eax, ebx
lea esi, [ecx + edx + 0xd]
mov edi, eax
mov edi, edi
mov eax, esi
mov edx, 0xfffffff3
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x417e97
add esi, 0xd
dec edi
jne 0x417e90
mov ecx, dword [0x438f00]
mov edx, dword [0x438178]
imul ecx, ecx, 0xd
mov eax, 0x4392b0
sub ecx, eax
lea edx, [ecx + edx - 0xd]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417ec1
jmp 0x417ed0
mov eax, dword [0x438f00]
mov ecx, dword [ebp - 0xc]
add ecx, dword [0x438ec4]
sub eax, ebx
mov esi, 1
sub eax, esi
imul eax, dword [ebp + 8]
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add dword [0x437a48], esi
fld qword [0x4394f0]
add esp, 0xc
sub dword [0x438f00], esi
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], 0xd
add dword [ebp - 4], eax
add dword [ebp - 0xc], eax
dec ebx
jns 0x417dbf
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret