Function at 0x413a10
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x438f88]
fldz
push ebx
imul eax, eax
fst qword [ebp - 0x54]
fst qword [ebp - 0x64]
fst qword [ebp - 0x6c]
fstp qword [ebp - 0x5c]
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
imul ecx, esi
push edi
lea edi, [ecx + eax]
add edi, ebx
add edi, edi
add edi, edi
xor edx, edx
add edi, edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
cmp edi, edx
jne 0x413a59
mov dword [ebp - 0x10], edx
jmp 0x413aaa
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x413a92
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 0x413a8a
call fcn.004048c0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov edi, dword [0x43805c]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add edx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, ebx
imul ecx, ebx
lea eax, [edx + eax*8]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x413adc
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [0x438128]
test ebx, ebx
jle 0x413af4
mov ecx, ebx
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x438f88]
mov edi, dword [ebp + 0x20]
mov ecx, dword [0x438068]
push eax
push eax
push edi
push edx
push ecx
push eax
call fcn.00402a50
mov edx, dword [ebp - 0x10]
mov eax, dword [0x43807c]
push esi
push esi
push edi
push edx
push eax
push esi
call fcn.00402a50
fld qword [edi]
add esp, 0x30
call sub.MSVCR100.dll__CIlog
fimul dword [0x438efc]
mov ecx, dword [0x438114]
mov edi, dword [sym.imp.MSVCR100.dll__fseeki64]
push 0
push 0
push 0
push ecx
fstp qword [ebp - 0x74]
call edi
mov edx, dword [0x4380cc]
push 0
push 0
push 0
push edx
call edi
mov eax, dword [0x4380b8]
push 0
push 0
push 0
push eax
call edi
mov ecx, dword [0x438060]
push 0
push 0
push 0
push ecx
call edi
mov edx, dword [0x438058]
add esp, 0x40
push 0
push 0
push 0
push edx
call edi
xor eax, eax
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
cmp dword [0x438efc], eax
jle 0x413ede
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [0x438110]
push eax
push ecx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
test esi, esi
jle 0x413bd2
mov edi, dword [0x43810c]
mov ecx, esi
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
cmp dword [eax + ecx*4], 0
mov dword [ebp - 0x18], 0
jle 0x413e2b
mov edi, dword [0x438f88]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx + eax*4]
lea eax, [ebx*8]
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x413c26
mov ecx, dword [0x438114]
mov edx, dword [0x438008]
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, dword [0x438f88]
add esp, 0x10
mov eax, dword [0x439518]
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
je 0x413c56
mov ecx, dword [0x4380cc]
mov edx, dword [0x438118]
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, dword [0x438f88]
add esp, 0x10
mov eax, ebx
imul eax, esi
add eax, eax
add eax, eax
add eax, eax
je 0x413c83
mov ecx, dword [0x4380b8]
mov edx, dword [0x438180]
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, dword [0x438f88]
add esp, 0x10
mov eax, edi
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
je 0x413cb0
mov ecx, dword [0x438060]
mov edx, dword [0x438080]
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, dword [0x438f88]
add esp, 0x10
mov eax, dword [0x438080]
mov ecx, dword [0x43811c]
mov edx, dword [0x438068]
push edi
push edi
push edi
push eax
push edi
push ebx
mov eax, edi
call fcn.00403140
mov ecx, dword [0x438080]
mov edx, dword [0x43811c]
push edi
push edi
push ecx
mov ecx, dword [0x438100]
push edx
push edi
push ebx
mov edx, edi
mov eax, ebx
call fcn.00403370
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x43811c]
mov edx, dword [0x438100]
push edi
push edi
push eax
push ecx
push edx
push ebx
call fcn.00402a50
add esp, 0x48
test eax, eax
jne 0x414726
mov edi, dword [ebp + 0x20]
fld qword [edi]
call sub.MSVCR100.dll__CIlog
fadd qword [ebp - 0x64]
mov eax, dword [0x438f88]
push eax
push edi
fstp qword [ebp - 0x64]
push eax
call fcn.00404330
mov edi, dword [0x438f88]
mov eax, dword [0x43811c]
mov ecx, dword [0x438180]
mov ebx, dword [ebp - 0x20]
add esp, 0xc
push edi
push edi
push esi
push eax
push ecx
mov ecx, dword [0x438010]
push ebx
push esi
mov eax, ebx
call fcn.00403250
mov edx, dword [0x438010]
add esp, 0x1c
push esi
push esi
push edi
push edx
mov edx, dword [0x438180]
push ebx
mov ebx, dword [0x438120]
push esi
mov ecx, ebx
mov eax, esi
call fcn.00403140
mov ecx, dword [0x438110]
push ebx
push esi
mov edx, ecx
mov eax, esi
call fcn.00403d50
mov eax, dword [0x438008]
mov ecx, dword [0x43803c]
mov edx, dword [0x438118]
mov ebx, dword [0x439518]
push eax
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00403bc0
mov edx, dword [0x43811c]
mov eax, dword [0x438180]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [0x438010]
push edi
push edi
push esi
push edx
push eax
push ebx
push esi
mov eax, ebx
call fcn.00403250
mov ecx, dword [0x438010]
mov edx, dword [0x438008]
add esp, 0x44
push 1
push 1
push edi
push ecx
push ebx
mov ebx, dword [0x438184]
push esi
mov ecx, ebx
mov eax, 1
call fcn.00403140
mov ecx, dword [0x43810c]
push ebx
push 1
mov edx, ecx
mov eax, esi
call fcn.00403d50
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
inc dword [ebp - 0xc]
inc eax
add esp, 0x20
mov dword [ebp - 0x18], eax
cmp eax, dword [ecx + edx*4]
jl 0x413bef
mov edx, dword [ebp + 0x20]
mov eax, dword [0x4380bc]
mov ecx, dword [0x438110]
push esi
push esi
push edx
push eax
push ecx
push esi
call fcn.00402a50
add esp, 0x18
test eax, eax
jne 0x414726
fld1
mov edx, dword [ebp + 0x20]
fdiv qword [edx]
call sub.MSVCR100.dll__CIlog
fadd qword [ebp - 0x6c]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov edi, dword [0x4380bc]
fstp qword [ebp - 0x6c]
add edx, dword [0x438050]
push eax
push edi
push edx
call sub.MSVCR100.dll_memcpy
mov edx, dword [0x43810c]
add esp, 0xc
push edi
mov edi, dword [0x438184]
push 1
push esi
push esi
mov eax, edi
call fcn.004036b0
mov ecx, dword [ebp - 0x28]
add ecx, dword [0x4380b0]
lea ebx, [esi*8]
push ebx
push edi
push ecx
call sub.MSVCR100.dll_memcpy
fld qword [edi]
mov eax, dword [ebp - 8]
fadd qword [ebp - 0x54]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x24], edx
add dword [ebp - 0x28], ebx
fstp qword [ebp - 0x54]
inc eax
add esp, 0x1c
mov dword [ebp - 8], eax
cmp eax, dword [0x438efc]
jl 0x413ba3
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCR100.dll__fseeki64]
mov eax, dword [0x438114]
push 0
push 0
push 0
push eax
call edi
mov ecx, dword [0x4380cc]
push 0
push 0
push 0
push ecx
call edi
mov edx, dword [0x4380b8]
push 0
push 0
push 0
push edx
call edi
mov eax, dword [0x438060]
push 0
push 0
push 0
push eax
call edi
mov ecx, dword [0x438058]
add esp, 0x40
push 0
push 0
push 0
push ecx
call edi
mov edx, dword [0x4380c8]
push 0
push 0
push 0
push edx
call edi
xor eax, eax
add esp, 0x20
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
cmp dword [0x438efc], eax
jle 0x4145f8
lea eax, [esi*8]
mov esi, dword [0x438f88]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x413f7e
mov edi, dword [ebp - 0x14]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
add eax, dword [0x4380b0]
mov ebx, dword [0x438184]
push ecx
push eax
push ebx
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
add eax, dword [0x438050]
add esp, 0xc
push ecx
mov ecx, dword [0x4380bc]
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov edi, dword [ebp + 0xc]
mov eax, dword [0x438120]
add esp, 0xc
push ebx
push edi
mov edx, ebx
push edi
mov ebx, 1
call fcn.004038a0
mov edx, dword [0x4380bc]
mov ebx, dword [0x438120]
add esp, 0xc
push edx
push edi
mov edx, ebx
mov ecx, ebx
mov eax, edi
call fcn.00403d50
mov eax, dword [0x43807c]
push eax
push edi
mov edx, ebx
mov ecx, ebx
mov eax, edi
call fcn.00403e00
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x20]
push ecx
push edi
push edi
push edi
mov edx, ebx
call fcn.004036b0
mov edx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp - 0x10]
push edi
push edi
push edi
mov eax, ebx
call fcn.004036b0
mov eax, dword [0x438188]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
push eax
push 1
push ecx
push edx
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00403a70
mov ebx, dword [0x438104]
mov ecx, esi
imul ecx, esi
add esp, 0x40
test ecx, ecx
jle 0x414059
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], eax
jle 0x4144bb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx + eax*4]
mov edi, dword [sym.imp.MSVCR100.dll_fread]
lea eax, [ebx*8]
test eax, eax
je 0x4140ac
mov ecx, dword [0x438114]
mov edx, dword [0x438008]
push ecx
push 1
push eax
push edx
call edi
mov esi, dword [0x438f88]
add esp, 0x10
mov eax, dword [0x439518]
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
je 0x4140d8
mov ecx, dword [0x4380cc]
mov edx, dword [0x438118]
push ecx
push 1
push eax
push edx
call edi
mov esi, dword [0x438f88]
add esp, 0x10
mov eax, ebx
imul eax, dword [ebp + 0xc]
add eax, eax
add eax, eax
add eax, eax
je 0x414102
mov ecx, dword [0x4380b8]
mov edx, dword [0x438180]
push ecx
push 1
push eax
push edx
call edi
mov esi, dword [0x438f88]
add esp, 0x10
mov eax, esi
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
je 0x41412b
mov ecx, dword [0x438060]
mov edx, dword [0x438080]
push ecx
push 1
push eax
push edx
call edi
mov esi, dword [0x438f88]
add esp, 0x10
mov eax, dword [ebp + 0x20]
push esi
push eax
push esi
call fcn.00404420
mov esi, dword [0x438f88]
mov ecx, dword [0x43811c]
mov edx, dword [0x438080]
add esp, 0xc
push esi
push esi
push esi
push ecx
mov ecx, dword [0x438088]
push edx
push ebx
push esi
mov eax, ebx
call fcn.00403250
mov eax, dword [0x439518]
mov ecx, dword [0x438118]
mov edi, dword [0x43806c]
mov edx, dword [0x43803c]
add esp, 0x1c
push 1
push 1
push eax
push ecx
push eax
push ebx
mov ecx, edi
mov eax, 1
call fcn.00403140
add esp, 0x18
test ebx, ebx
jle 0x4141af
mov eax, dword [0x438008]
mov ecx, edi
sub ecx, eax
mov edx, ebx
nop
fld qword [eax]
add eax, 8
dec edx
fsub qword [ecx + eax - 8]
fstp qword [eax - 8]
jne 0x4141a0
mov eax, dword [ebp + 0xc]
mov edx, dword [0x438180]
mov ecx, dword [0x43816c]
push 1
push 1
push eax
push edx
mov edx, dword [0x438184]
push eax
push ebx
mov eax, 1
call fcn.00403140
mov eax, dword [0x43811c]
mov edx, dword [0x438008]
push 1
push 1
push esi
push eax
push ebx
push ebx
mov ecx, edi
mov eax, 1
call fcn.00403140
fld qword [ebp - 0x5c]
xor ecx, ecx
add esp, 0x30
mov dword [ebp - 0x20], ecx
cmp ebx, 4
jl 0x4142a6
mov ecx, dword [0x43816c]
add ecx, 0x10
mov dword [ebp - 0x3c], ecx
mov ecx, dword [0x438008]
mov edx, edi
sub edx, ecx
mov dword [ebp - 0x28], edx
mov edx, dword [0x43816c]
sub edx, ecx
lea eax, [ecx + 8]
mov ecx, edi
sub ecx, dword [0x43816c]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x20]
fld qword [edi + ecx*8]
mov edx, dword [ebp - 0x3c]
fld qword [eax - 8]
mov ecx, dword [ebp - 0x28]
fmul st(1)
add edx, 0x20
mov dword [ebp - 0x3c], edx
add eax, 0x20
faddp st(2)
fmul qword [edx - 0x30]
fsubp st(1)
fld qword [eax + ecx - 0x20]
mov ecx, dword [ebp - 0x24]
fld qword [eax - 0x20]
fmul st(1)
faddp st(2)
fmul qword [ecx + eax - 0x20]
mov ecx, dword [ebp - 0x50]
fsubp st(1)
fld qword [ecx + edx - 0x20]
mov ecx, dword [ebp - 0x20]
fld qword [eax - 0x18]
add ecx, 4
fmul st(1)
mov dword [ebp - 0x20], ecx
faddp st(2)
fmul qword [edx - 0x20]
fsubp st(1)
fld qword [edi + ecx*8 - 8]
fld qword [eax - 0x10]
fmul st(1)
faddp st(2)
fmul qword [edx - 0x18]
lea edx, [ebx - 3]
fsubp st(1)
cmp ecx, edx
jl 0x41423e
fst qword [ebp - 0x5c]
cmp ecx, ebx
jge 0x4142ee
mov eax, dword [0x438008]
lea edx, [eax + ecx*8]
mov dword [ebp - 0x50], edx
mov edx, edi
sub edx, eax
mov dword [ebp - 0x28], edx
mov edx, dword [0x43816c]
sub edx, eax
mov dword [ebp - 0x24], edx
mov edx, ebx
sub edx, ecx
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x28]
fld qword [ecx + eax]
mov eax, dword [ebp - 0x24]
fld qword [ecx]
add ecx, 8
dec edx
fmul st(1)
faddp st(2)
fmul qword [ecx + eax - 8]
fsubp st(1)
jne 0x4142ce
fstp qword [ebp - 0x5c]
jmp 0x4142f0
fstp st(0)
test ebx, ebx
jle 0x414312
mov eax, dword [0x438008]
mov ecx, dword [0x43816c]
sub ecx, eax
mov edx, ebx
fld qword [eax]
add eax, 8
dec edx
fsub qword [ecx + eax - 8]
fstp qword [eax - 8]
jne 0x414303
mov ecx, dword [0x438068]
mov edx, dword [0x438088]
push esi
push esi
push esi
push ecx
mov ecx, dword [0x438100]
push esi
push esi
mov eax, ebx
call fcn.00403140
mov edx, dword [0x438100]
push 1
push 1
push esi
push edx
mov edx, dword [0x438008]
push ebx
push esi
mov ecx, edi
mov eax, 1
call fcn.00403140
add esp, 0x30
test esi, esi
jle 0x41439f
mov eax, dword [0x438104]
mov ecx, edi
sub ecx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x3c], ecx
fld qword [edi + eax*8]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x20]
fmul qword [edx + ecx]
mov ecx, dword [ebp - 0x3c]
lea edx, [esi*8]
inc eax
fadd qword [ecx]
fstp qword [ecx]
add ecx, edx
mov dword [ebp - 0x3c], ecx
cmp eax, esi
jl 0x414372
add dword [ebp - 0x20], 8
dec dword [ebp - 0x28]
jne 0x41436a
lea eax, [esi*8]
test eax, eax
je 0x4143cd
mov edx, dword [0x4380c8]
push edx
push 1
push eax
push edi
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x414671
mov esi, dword [0x438f88]
mov eax, dword [0x438088]
mov ecx, dword [0x438100]
mov edx, dword [0x438080]
mov edi, dword [0x43811c]
push esi
push esi
push esi
push eax
push ebx
push esi
mov eax, esi
call fcn.00403140
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x438088]
mov edx, dword [0x438180]
push eax
push eax
push esi
push ecx
push ebx
mov ebx, dword [0x438040]
push esi
mov ecx, ebx
call fcn.00403140
mov eax, dword [ebp + 0xc]
mov edx, dword [0x4380bc]
push ebx
push eax
push eax
mov eax, dword [0x438124]
push esi
call fcn.004036b0
mov edx, dword [0x438124]
add esp, 0x40
push edx
push esi
mov edx, ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, edi
call fcn.004038a0
mov ebx, dword [0x438100]
add esp, 0xc
push edi
push esi
mov edx, ebx
mov ecx, ebx
mov eax, esi
call fcn.00403e00
mov eax, dword [0x438068]
push eax
push esi
push esi
push esi
mov eax, edi
mov edx, ebx
call fcn.004036b0
mov edx, dword [0x438068]
push edi
push esi
push esi
push esi
mov eax, ebx
call fcn.004036b0
mov ecx, dword [0x438068]
push ebx
push esi
mov edx, edi
mov eax, esi
call fcn.00403e00
mov ecx, dword [0x438104]
push edi
push esi
mov edx, ecx
mov eax, esi
call fcn.00403d50
mov eax, dword [ebp - 0x18]
inc eax
add esp, 0x38
inc dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x40]
cmp eax, dword [ecx]
jl 0x414076
mov ebx, dword [0x438104]
mov eax, dword [0x438068]
mov edi, dword [0x43811c]
mov edx, esi
imul edx, esi
add edx, edx
add edx, edx
add edx, edx
push edx
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x40]
add esp, 4
fild dword [ecx]
mov ecx, esi
mov eax, esi
fstp qword [esp]
push edi
call fcn.00403510
add esp, 0xc
push edi
push esi
mov edx, ebx
mov ecx, ebx
mov eax, esi
call fcn.00403e00
mov edx, dword [ebp - 0x44]
push edx
push esi
push esi
push esi
mov eax, edi
mov edx, ebx
call fcn.004036b0
mov eax, dword [0x438100]
mov edx, dword [ebp - 0x44]
push edi
push esi
push esi
push esi
call fcn.004036b0
mov eax, dword [0x4380c0]
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
push eax
mov eax, dword [0x438100]
push 1
push ecx
push edi
mov edx, ebx
call fcn.00403a70
add esp, 0x38
xor eax, eax
test edi, edi
jle 0x4145d3
fld qword [0x4361d8]
fld qword [ebx + eax*8]
inc eax
fmul st(1)
fstp qword [ebx + eax*8 - 8]
cmp eax, edi
jl 0x414551
mov eax, dword [0x43805c]
fstp st(0)
mov ecx, ebx
sub ecx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], edi
xor eax, eax
jmp 0x414593
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
xor eax, eax
jmp 0x414593
mov ebx, dword [ebp - 0x14]
fld qword [ebx + eax*8]
mov edx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x20]
fmul qword [edx + ebx]
lea edx, [edi*8]
inc eax
fadd qword [ecx]
fstp qword [ecx]
add ecx, edx
cmp eax, edi
jl 0x414590
add dword [ebp - 0x20], 8
dec dword [ebp - 0x40]
jne 0x414580
mov eax, dword [0x438128]
mov ecx, dword [ebp - 0x14]
sub ecx, eax
fld qword [ecx + eax]
add eax, 8
dec edi
fadd qword [eax - 8]
fstp qword [eax - 8]
jne 0x4145c4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x2c], ecx
add dword [ebp - 0x30], edx
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [0x438efc]
jl 0x413f68
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov edx, dword [0x438014]
mov eax, dword [0x43805c]
push ebx
push ebx
push ecx
push edx
push eax
push ebx
call fcn.00402a50
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 0x20], eax
test ebx, ebx
jle 0x414642
mov edx, dword [0x43805c]
fldz
lea edi, [ebx*8 + 8]
fcom qword [edx]
fnstsw ax
test ah, 0x41
je 0x4146cb
inc ecx
add edx, edi
cmp ecx, ebx
jl 0x41462c
fstp st(0)
mov edi, dword [0x43805c]
push ebx
push edi
push ebx
call fcn.004018a0
add esp, 0xc
test eax, eax
jne 0x4146cd
push ebx
lea ecx, [ebp - 0x54]
push ecx
push edi
push ebx
call fcn.00401980
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x4146d2
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x4146c3
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 0x4146a7
push 5
call dword [sym.imp.MSVCR100.dll_exit]
fstp st(0)
mov eax, 1
cmp dword [ebp - 0x20], 0
jne 0x4146e3
test eax, eax
jne 0x4146e3
mov dword [ebp - 0x34], 1
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
mov eax, esi
call fcn.00414750
add esp, 0xc
test eax, eax
jne 0x414702
mov dword [ebp - 0x34], eax
jmp 0x414726
mov eax, dword [ebp + 0x1c]
fld qword [eax]
mov edx, dword [ebp + 0x18]
fstp qword [edx]
fld qword [0x4380a8]
fadd qword [ebp - 0x64]
fadd qword [ebp - 0x74]
fsub qword [ebp - 0x6c]
fadd qword [ebp - 0x5c]
fmul qword [0x4362d0]
fstp qword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x414737
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret