Function at 0x414b10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
add esi, dword [ebp + 0x10]
push edi
imul esi, ebx
add esi, esi
add esi, esi
add esi, esi
mov edi, eax
jne 0x414b34
mov dword [ebp - 4], esi
jmp 0x414b7f
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x414b6d
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 0x414b65
call fcn.00403eb0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
imul edi, ebx
mov edx, dword [ebp - 4]
imul eax, ebx
mov dword [ebp - 0x14], eax
lea eax, [edx + eax*8]
mov dword [ebp - 0x28], eax
test edi, edi
jle 0x414ba9
mov ecx, edi
mov edi, dword [ebp + 0x2c]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor esi, esi
cmp dword [ebp + 8], 2
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
jne 0x414bda
mov ecx, dword [0x430d3c]
xor eax, eax
test ecx, ecx
jle 0x414bd2
mov edi, dword [ebp + 0x1c]
cmp dword [edi + eax*4], 0xffffffff
je 0x414bcd
inc esi
inc eax
cmp eax, ecx
jl 0x414bc3
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x3c], ecx
jmp 0x414be0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0x14], 0
mov dword [ebp - 8], 0
jle 0x414f15
mov ecx, dword [0x42fb9c]
fld1
mov eax, dword [0x430c8c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x430bac]
sub ecx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [ecx + edx], 0
jne 0x414efc
xor eax, eax
xor ecx, ecx
xor edi, edi
cmp dword [ebp - 8], 2
mov dword [ebp - 0xc], eax
jl 0x414c43
mov edx, dword [0x430c8c]
add ecx, dword [edx + eax*4]
add edi, dword [edx + eax*4 + 4]
mov edx, dword [ebp - 8]
add eax, 2
dec edx
cmp eax, edx
jl 0x414c2b
cmp eax, dword [ebp - 8]
jge 0x414c54
mov edx, dword [0x430c8c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0xc], eax
add edi, ecx
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0xc], edi
cmp dword [ecx], 0
mov dword [ebp - 0x30], 0
jle 0x414edc
mov eax, dword [ebp + 0x10]
mov edx, dword [0x430b90]
imul eax, ebx
inc edx
imul edx, dword [ebp - 8]
mov dword [ebp - 0x40], eax
mov eax, dword [0x430d28]
lea ecx, [eax + edx*4]
mov edx, dword [0x42fe3c]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], ecx
lea ecx, [edx + eax*8]
mov dword [ebp - 0x38], ecx
lea ebx, [ebx]
mov ecx, dword [ebp - 0x34]
mov edi, dword [ecx]
xor eax, eax
xor edx, edx
test edi, edi
jle 0x414cbc
mov ecx, dword [ebp + 0x20]
cmp dword [ecx + eax*4], 0
je 0x414cb7
inc edx
inc eax
cmp eax, edi
jl 0x414cad
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp + 8]
jne 0x414cea
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
mov edi, dword [ebp - 0x38]
imul ecx, ebx
fld qword [edi]
mov edi, dword [ebp + 0x2c]
add ecx, edx
fstp qword [edi + ecx*8]
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x1c]
mov dword [edi + esi*4], ecx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jle 0x414d03
mov edi, dword [ebp - 4]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jle 0x414d1c
mov edi, dword [ebp - 0x28]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 1
jne 0x414d31
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
imul eax, ebx
add eax, edx
fstp qword [ecx + eax*8]
jmp 0x414d48
cmp eax, 2
jne 0x414d46
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
imul eax, ebx
add eax, edx
fstp qword [ecx + eax*8]
jmp 0x414d48
fstp st(0)
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x30]
push ebx
push ebx
push eax
push edx
mov edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, edi
mov eax, ebx
call fcn.00402f30
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push edi
push ebx
mov edx, ecx
call fcn.004036f0
add esp, 0x20
xor eax, eax
cmp dword [ebp - 0x14], 4
jl 0x414e74
mov ebx, dword [ebp - 4]
lea ecx, [ebx + 0x18]
mov edx, 2
sub ebx, edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], edx
lea ecx, [edi + 8]
mov dword [ebp - 0x44], ebx
lea ecx, [ecx]
mov edi, dword [0x430d3c]
mov ebx, dword [ebp - 0x10]
imul edi, eax
fld qword [ebx - 0x18]
mov ebx, dword [ebp + 0x28]
add edi, esi
dec edx
add ecx, 0x20
fstp qword [ebx + edi*8]
mov edi, dword [0x430d3c]
fld qword [ecx - 0x28]
mov ebx, dword [ebp + 0x34]
imul edi, eax
add edi, esi
add eax, 4
fstp qword [ebx + edi*8]
mov ebx, dword [ebp - 0x44]
mov edi, edx
imul edi, dword [0x430d3c]
fld qword [ebx + ecx - 0x20]
mov ebx, dword [ebp + 0x28]
add edi, esi
fstp qword [ebx + edi*8]
imul edx, dword [0x430d3c]
fld qword [ecx - 0x20]
mov edi, dword [ebp + 0x34]
mov ebx, dword [ebp - 0x10]
add edx, esi
fstp qword [edi + edx*8]
mov edi, dword [ebp - 0x2c]
fld qword [ebx - 8]
mov ebx, dword [ebp + 0x28]
mov edx, edi
imul edx, dword [0x430d3c]
add edx, esi
fstp qword [ebx + edx*8]
mov ebx, dword [ebp + 0x34]
fld qword [ecx - 0x18]
mov edx, edi
imul edx, dword [0x430d3c]
add edx, esi
inc edi
fstp qword [ebx + edx*8]
mov ebx, dword [ebp - 0x10]
mov edx, edi
imul edx, dword [0x430d3c]
fld qword [ebx]
mov ebx, dword [ebp + 0x28]
add dword [ebp - 0x10], 0x20
add edx, esi
fstp qword [ebx + edx*8]
imul edi, dword [0x430d3c]
fld qword [ecx - 0x10]
mov edx, dword [ebp + 0x34]
add edi, esi
fstp qword [edx + edi*8]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x14]
add edx, 4
add edi, 0xfffffffd
mov dword [ebp - 0x2c], edx
cmp eax, edi
jl 0x414da0
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x30]
cmp eax, dword [ebp - 0x14]
jge 0x414eb5
mov edx, dword [ebp - 4]
lea ecx, [edi + eax*8]
sub edx, edi
mov edi, dword [0x430d3c]
fld qword [ecx + edx]
mov ebx, dword [ebp + 0x28]
imul edi, eax
add edi, esi
add ecx, 8
fstp qword [ebx + edi*8]
mov edi, dword [0x430d3c]
fld qword [ecx - 8]
mov ebx, dword [ebp + 0x34]
imul edi, eax
add edi, esi
inc eax
fstp qword [ebx + edi*8]
cmp eax, dword [ebp - 0x14]
jl 0x414e81
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], eax
jne 0x414ec0
inc esi
mov eax, dword [ebp - 0x30]
fld1
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x34], 4
add dword [ebp - 0x38], 8
inc eax
mov dword [ebp - 0x30], eax
cmp eax, dword [edx]
jl 0x414ca0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, 1
cmp eax, ecx
jne 0x414eed
add dword [ebp - 0x20], ecx
cmp eax, 2
jne 0x414ef5
add dword [ebp - 0x24], ecx
add dword [ebp - 0x18], 4
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
add dword [ebp - 0x1c], 4
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0x14]
jl 0x414c0f
mov edx, dword [ebp - 4]
fstp st(0)
pop edi
pop esi
pop ebx
test edx, edx
je 0x414f26
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov esp, ebp
pop ebp
ret