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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
xor eax, eax
cmp dword [0x42f9c0], eax
push ebx
mov ebx, dword [0x430d2c]
sete al
push esi
mov ecx, ebx
push edi
mov edi, 0x429da4
sub ecx, eax
mov eax, 0x42f8a0
mov dword [ebp - 0x14], ecx
call fcn.00403b20
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
mov esi, eax
push esi
push 1
push 6
push str.GRHMLM
mov dword [ebp - 0x20], esi
call edi
add esp, 0x10
cmp eax, 1
je 0x41c22a
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41c222
call fcn.00403eb0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
push str.8.00
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x80]
add esp, 4
push esi
push 1
lea eax, [ebp - 0x80]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
je 0x41c276
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41c26e
call fcn.00403eb0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 1
push 4
push 0x430d3c
call edi
add esp, 0x10
cmp eax, 1
je 0x41c2b2
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41c2aa
call fcn.00403eb0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [0x430d3c]
add eax, eax
add eax, eax
add eax, eax
je 0x41c2fc
mov ecx, dword [0x42fe3c]
push esi
push 1
push eax
push ecx
call edi
add esp, 0x10
cmp eax, 1
je 0x41c2fc
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41c2f4
call fcn.00403eb0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov edi, dword [0x430b90]
add edi, edi
add edi, edi
jne 0x41c30d
mov dword [ebp - 0x34], edi
jmp 0x41c354
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x41c345
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 0x41c33d
call fcn.00403eb0
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 [ebp - 0x34], esi
test ebx, ebx
jle 0x41c39a
mov esi, dword [0x430b90]
mov edi, dword [0x430d28]
inc esi
mov dword [ebp - 0x44], ebx
test esi, esi
jle 0x41c38c
mov ebx, dword [ebp - 0x34]
mov ecx, edi
mov edx, esi
mov eax, dword [ecx]
cmp eax, 0xffffff9d
je 0x41c386
test eax, eax
je 0x41c386
mov dword [ebx + eax*4 - 4], 1
add ecx, 4
dec edx
jne 0x41c373
lea eax, [esi*4]
add edi, eax
dec dword [ebp - 0x44]
jne 0x41c368
mov edx, dword [0x430b90]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0xc], ecx
test edx, edx
jle 0x41c3bf
mov esi, dword [ebp - 0x34]
mov edi, edi
cmp dword [esi + eax*4], 1
jne 0x41c3ba
inc ecx
mov dword [ebp - 0xc], ecx
inc eax
cmp eax, edx
jl 0x41c3b0
mov ebx, dword [ebp - 0x14]
cmp ebx, ecx
jle 0x41c3cb
mov dword [ebp - 0x78], ebx
jmp 0x41c3d0
mov ebx, ecx
mov dword [ebp - 0x78], ecx
lea esi, [ebx + ebx*2]
add esi, esi
add esi, esi
add esi, esi
mov dword [ebp - 0x28], esi
jne 0x41c3e2
xor edi, edi
jmp 0x41c458
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x41c44c
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 0x41c444
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 0x41c428
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea esi, [ebx*8]
lea eax, [esi + edi]
lea ecx, [esi + eax]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x58], ecx
test esi, esi
jne 0x41c476
xor edi, edi
jmp 0x41c4f0
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x41c4e4
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 0x41c4dc
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 0x41c4c0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [edi + ebx*4]
xor esi, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x4c], ecx
test ebx, ebx
jle 0x41c533
nop
push 0x328
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x41c5bb
push 0x328
push 0
push edi
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x2c]
mov dword [edx + esi*4], edi
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x41c500
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp eax, ebx
jg 0x41c615
mov ecx, dword [ebp - 0x20]
push ecx
push 1
lea edx, [ebp - 0x28]
push 4
push edx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x41ce77
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41c5b3
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 0x41c597
push 5
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 0x41c60d
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 0x41c5f1
push 3
call dword [sym.imp.MSVCR100.dll_exit]
mov edi, dword [ebp + 8]
lea edi, [edi*8 + 8]
nop
test edi, edi
jne 0x41c628
xor esi, esi
jmp 0x41c644
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x41c665
push edi
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + ebx*4], esi
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x41c620
mov eax, dword [ebp - 0x14]
lea esi, [eax*8]
test esi, esi
jne 0x41c6c4
xor ebx, ebx
jmp 0x41c740
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 0x41c6bc
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
jmp 0x41c6a0
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 0x41c6a0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41c734
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 0x41c72c
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 ebx, [ebx]
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 0x41c710
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edx, dword [0x42ff38]
push 0
push 0
push 0
push edx
mov dword [ebp - 0x40], ebx
call dword [sym.imp.MSVCR100.dll__fseeki64]
xor esi, esi
add esp, 0x10
cmp dword [ebp + 8], esi
jle 0x41c8aa
mov edi, dword [ebp - 0x14]
lea eax, [edi*8]
test eax, eax
je 0x41c786
mov ecx, dword [0x42ff38]
push ecx
push 1
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
xor eax, eax
cmp edi, 4
jl 0x41c859
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x430b98]
mov ecx, dword [0x42fb44]
lea edi, [edx + 0xc]
sub edx, dword [0x42fb44]
add eax, 0x18
mov dword [ebp - 0x54], edx
mov edx, dword [0x430b98]
sub edx, dword [ebp - 0x40]
add ecx, 8
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffffc
shr edx, 2
mov dword [ebp - 0x18], eax
inc edx
lea eax, [ebx + 8]
lea ebx, [edx*4]
mov dword [ebp - 0x1c], ebx
cmp dword [ecx - 4], 1
jl 0x41c7e9
fld qword [eax - 8]
mov ebx, dword [ebp - 0x18]
fsub qword [ebx - 0x18]
fstp qword [eax - 8]
mov ebx, dword [edi - 0xc]
fld qword [eax - 8]
fstp qword [ebx + esi*8]
cmp dword [ecx], 1
jl 0x41c801
fld qword [eax]
mov ebx, dword [ebp - 0x10]
fsub qword [ebx + eax]
fstp qword [eax]
mov ebx, dword [edi - 8]
fld qword [eax]
fstp qword [ebx + esi*8]
cmp dword [ecx + 4], 1
jl 0x41c81b
fld qword [eax + 8]
mov ebx, dword [ebp - 0x18]
fsub qword [ebx - 8]
fstp qword [eax + 8]
mov ebx, dword [ebp - 0x54]
fld qword [eax + 8]
mov ebx, dword [ebx + ecx]
fstp qword [ebx + esi*8]
cmp dword [ecx + 8], 1
jl 0x41c838
fld qword [eax + 0x10]
mov ebx, dword [ebp - 0x18]
fsub qword [ebx]
fstp qword [eax + 0x10]
mov ebx, dword [edi]
fld qword [eax + 0x10]
add dword [ebp - 0x18], 0x20
fstp qword [ebx + esi*8]
add eax, 0x20
add ecx, 0x10
add edi, 0x10
dec edx
jne 0x41c7d7
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x40]
cmp eax, edi
jge 0x41c8a0
mov edx, dword [0x42fb44]
lea ecx, [ebx + eax*8]
mov ebx, dword [0x430b98]
sub ebx, dword [ebp - 0x40]
lea edx, [edx + eax*4 + 4]
mov dword [ebp - 0x10], ebx
jmp 0x41c87b
mov ebx, dword [ebp - 0x10]
cmp dword [edx], 1
jl 0x41c887
fld qword [ecx]
fsub qword [ecx + ebx]
fstp qword [ecx]
mov ebx, dword [ebp - 0x4c]
fld qword [ecx]
mov ebx, dword [ebx + eax*4]
inc eax
fstp qword [ebx + esi*8]
add ecx, 8
add edx, 4
cmp eax, edi
jl 0x41c878
mov ebx, dword [ebp - 0x40]
inc esi
cmp esi, dword [ebp + 8]
jl 0x41c764
mov eax, dword [0x42ff38]
push eax
call fcn.00403ac0
add esp, 4
cmp dword [ebp - 0x14], 0
jle 0x41cc21
mov eax, dword [ebp + 8]
fild dword [ebp + 8]
mov esi, dword [ebp - 0x3c]
lea ecx, [eax + eax*8]
mov dword [ebp - 0x7c], ecx
fst qword [ebp - 0x94]
lea ecx, [eax*8]
sub ecx, eax
mov dword [ebp - 0x88], ecx
lea ecx, [eax + eax*2]
add ecx, ecx
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x44]
sub ecx, esi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x58]
lea ebx, [eax + eax*4]
lea edx, [eax + eax*4]
sub ecx, esi
lea eax, [eax + eax*2]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
add ebx, ebx
sub ecx, eax
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x54], ecx
jmp 0x41c936
fld qword [ebp - 0x94]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
cmp edi, 4
jl 0x41c9b0
lea edx, [edi - 4]
shr edx, 2
inc edx
lea ecx, [edx*4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
fld qword [eax]
add eax, 0x20
dec edx
fadd qword [esi]
fstp qword [esi]
fld qword [eax - 0x20]
fmul st(0), st(0)
fadd qword [ecx + esi]
fstp qword [ecx + esi]
fld qword [eax - 0x18]
fadd qword [esi]
fstp qword [esi]
fld qword [eax - 0x18]
fmul st(0), st(0)
fadd qword [ecx + esi]
fstp qword [ecx + esi]
fld qword [eax - 0x10]
fadd qword [esi]
fstp qword [esi]
fld qword [eax - 0x10]
fmul st(0), st(0)
fadd qword [ecx + esi]
fstp qword [ecx + esi]
fld qword [eax - 8]
fadd qword [esi]
fstp qword [esi]
fld qword [eax - 8]
fmul st(0), st(0)
fadd qword [ecx + esi]
fstp qword [ecx + esi]
jne 0x41c961
jmp 0x41c9b3
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], edi
jge 0x41c9d4
mov edx, edi
sub edx, dword [ebp - 0x1c]
fld qword [eax]
add eax, 8
dec edx
fadd qword [esi]
fstp qword [esi]
fld qword [eax - 8]
fmul st(0), st(0)
fadd qword [ecx + esi]
fstp qword [ecx + esi]
jne 0x41c9bd
fld qword [esi]
fdiv st(1)
fld st(0)
fxch st(1)
fstp qword [esi]
fld st(0)
fmulp st(2)
fmulp st(1)
fsubr qword [ecx + esi]
fldz
fcom st(1)
fnstsw ax
test ah, 1
je 0x41ca11
cmp edi, 2
jl 0x41ca11
lea edx, [edi - 1]
fstp st(0)
mov dword [ebp - 0x38], edx
fild dword [ebp - 0x38]
fdivp st(1)
call sub.MSVCR100.dll__CIsqrt
mov eax, dword [ebp - 0x48]
fstp qword [eax + esi]
jmp 0x41ca19
mov ecx, dword [ebp - 0x48]
fstp st(1)
fstp qword [ecx + esi]
mov ecx, 1
cmp edi, ecx
jle 0x41ca7c
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
fld qword [edi]
fld qword [edi + ecx*8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x41ca3d
inc ecx
cmp ecx, edx
jl 0x41ca28
jmp 0x41ca7c
fld qword [edi + ecx*8]
fcomp qword [edi]
fnstsw ax
test ah, 5
jp 0x41ca4d
fld qword [edi]
jmp 0x41ca50
fld qword [edi + ecx*8]
sub esp, 8
fstp qword [esp]
push edx
push edi
call fcn.004045a0
push eax
push edi
mov dword [ebp - 0x38], eax
call fcn.00404530
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
sub ecx, eax
push ecx
lea edx, [edi + eax*8]
push edx
call fcn.00404530
add esp, 0x20
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + eax]
mov edi, dword [eax]
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], edx
lea edx, [eax*8]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x60], edx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x68], edx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x5c], edx
lea edx, [eax*4]
mov dword [ebp - 0x64], edx
mov edx, dword [ebp - 0x50]
add eax, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], eax
add ecx, 0x10
mov dword [ebp - 0x38], 0xa
mov edi, edi
mov eax, 0x51eb851f
imul dword [ebp - 0x1c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp + 8]
fld qword [edi + eax*8]
mov eax, 0x51eb851f
imul edx
fstp qword [ecx - 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
fld qword [edi + eax*8]
mov eax, 0x51eb851f
imul dword [ebp - 0x6c]
fstp qword [ecx - 8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
fld qword [edi + eax*8]
mov eax, 0x51eb851f
imul dword [ebp - 0x70]
fstp qword [ecx]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
fld qword [edi + eax*8]
mov eax, 0x51eb851f
imul dword [ebp - 0x64]
fstp qword [ecx + 8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
fld qword [edi + eax*8]
mov eax, 0x51eb851f
imul dword [ebp - 0x5c]
fstp qword [ecx + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
fld qword [edi + eax*8]
mov eax, 0x51eb851f
imul dword [ebp - 0x68]
fstp qword [ecx + 0x18]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
fld qword [edi + eax*8]
mov eax, 0x51eb851f
imul dword [ebp - 0x60]
fstp qword [ecx + 0x20]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
fld qword [edi + eax*8]
mov eax, 0x51eb851f
imul dword [ebp - 0x30]
fstp qword [ecx + 0x28]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
fld qword [edi + eax*8]
mov eax, 0x51eb851f
imul dword [ebp - 0x24]
fstp qword [ecx + 0x30]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
fld qword [edi + eax*8]
add dword [ebp - 0x1c], ebx
fstp qword [ecx + 0x38]
add dword [ebp - 0x6c], ebx
add dword [ebp - 0x70], ebx
add dword [ebp - 0x64], ebx
add dword [ebp - 0x5c], ebx
add dword [ebp - 0x68], ebx
add dword [ebp - 0x60], ebx
add dword [ebp - 0x30], ebx
add dword [ebp - 0x24], ebx
add ecx, 0x50
dec dword [ebp - 0x38]
jne 0x41cae0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add dword [ebp - 0x10], 4
add eax, eax
add eax, eax
add eax, eax
fld qword [edi + eax - 8]
add esi, 8
dec dword [ebp - 0x54]
fstp qword [ecx + 0x320]
jne 0x41c930
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.MSVCR100.dll_fwrite]
push ebx
mov edi, 1
push edi
lea eax, [ebp - 0x28]
push 4
push eax
mov dword [ebp - 0x28], edx
call esi
add esp, 0x10
cmp eax, edi
je 0x41cca4
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
add dword [0x42fba4], edi
je 0x41cc9c
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 ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ecx, esi
cmp ecx, 3
jbe 0x41cc80
push 5
call dword [sym.imp.MSVCR100.dll_exit]
cmp dword [0x430cb0], edi
jl 0x41ccf3
mov esi, 0xd
mov edx, dword [0x430c18]
cmp dword [edx + edi*4], 0
jle 0x41ccdc
mov eax, dword [0x430ca0]
push ebx
push 1
add eax, esi
push 0xd
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x41cd74
inc edi
add esi, 0xd
cmp edi, dword [0x430cb0]
jle 0x41ccb1
mov esi, dword [sym.imp.MSVCR100.dll_fwrite]
mov edi, 1
mov eax, dword [ebp - 0x28]
add eax, eax
add eax, eax
add eax, eax
je 0x41cdd4
mov edx, dword [ebp - 0x3c]
push ebx
push edi
push eax
push edx
call esi
add esp, 0x10
cmp eax, edi
je 0x41cdd4
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
add dword [0x42fba4], edi
je 0x41cd6c
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 0x41cd50
push 5
call dword [sym.imp.MSVCR100.dll_exit]
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41cdcc
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 ebx, [ebx]
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 0x41cdb0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp - 0x28]
add eax, eax
add eax, eax
add eax, eax
je 0x41ce49
mov ecx, dword [ebp - 0x58]
push ebx
push edi
push eax
push ecx
call esi
add esp, 0x10
cmp eax, edi
je 0x41ce49
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
add dword [0x42fba4], edi
je 0x41ce41
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 0x41ce25
push 5
call dword [sym.imp.MSVCR100.dll_exit]
xor esi, esi
cmp dword [ebp - 0x28], esi
jle 0x41ce77
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + esi*4]
push ebx
push 1
push 0x328
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x41cefa
inc esi
cmp esi, dword [ebp - 0x28]
jl 0x41ce53
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x41cf54
mov edx, dword [ebp - 0x20]
push edx
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x41d625
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41cef2
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 0x41ced6
push 5
call dword [sym.imp.MSVCR100.dll_exit]
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41cf4c
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 0x41cf30
push 5
call dword [sym.imp.MSVCR100.dll_exit]
jle 0x41cf68
mov edi, dword [ebp - 0x44]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x41cf7e
mov edi, dword [ebp - 0x3c]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x430bbc]
mov esi, edx
imul esi, ecx
add esi, esi
add esi, esi
add esi, esi
jne 0x41cf98
xor ebx, ebx
jmp 0x41d019
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41d004
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 0x41cffc
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
mov edi, edi
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 0x41cfe0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push ebx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x430bbc]
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [0x430b90], edi
jle 0x41d07b
mov ecx, dword [0x42fde0]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + edi*4], 0
je 0x41d06b
xor eax, eax
test edx, edx
jle 0x41d068
mov esi, dword [0x430b90]
mov ecx, dword [ebp - 0x30]
add esi, esi
add esi, esi
add esi, esi
lea ecx, [ecx]
imul edx, dword [ebp - 0x24]
fld qword [ecx]
add edx, eax
inc eax
add ecx, esi
fstp qword [ebx + edx*8]
mov edx, dword [0x430bbc]
cmp eax, edx
jl 0x41d050
inc dword [ebp - 0x24]
add dword [ebp - 0x30], 8
inc edi
cmp edi, dword [0x430b90]
jl 0x41d02f
mov ecx, dword [ebp - 0xc]
xor edi, edi
test ecx, ecx
jle 0x41d3bb
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
sub ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x58]
sub ecx, eax
mov dword [ebp - 0x48], ecx
mov ecx, 8
sub ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x74], ecx
jmp 0x41d0b6
mov edx, dword [0x430bbc]
mov esi, dword [ebp - 0x10]
mov ecx, edx
imul ecx, edi
lea eax, [ebx + ecx*8]
xor ecx, ecx
test edx, edx
mov edx, dword [ebp - 0x18]
jle 0x41d0ed
lea ebx, [ebx]
fld qword [eax]
inc ecx
fadd qword [esi]
add eax, 8
fstp qword [esi]
fld qword [eax - 8]
fmul st(0), st(0)
fadd qword [esi + edx]
fstp qword [esi + edx]
cmp ecx, dword [0x430bbc]
jl 0x41d0d0
fild dword [0x430bbc]
fdivr qword [esi]
fld st(0)
fxch st(1)
fstp qword [esi]
fild dword [0x430bbc]
fmul st(1)
fmulp st(1)
fsubr qword [esi + edx]
fldz
fcom st(1)
fnstsw ax
test ah, 1
je 0x41d135
mov eax, dword [0x430bbc]
cmp eax, 2
jl 0x41d135
dec eax
fstp st(0)
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdivp st(1)
call sub.MSVCR100.dll__CIsqrt
mov edx, dword [ebp - 0x48]
fstp qword [esi + edx]
jmp 0x41d13d
mov eax, dword [ebp - 0x48]
fstp st(1)
fstp qword [esi + eax]
mov edx, dword [0x430bbc]
mov ecx, edx
imul ecx, edi
lea esi, [ebx + ecx*8]
mov ecx, 1
mov dword [ebp - 8], edx
cmp edx, ecx
jle 0x41d1ab
fld qword [esi]
fld qword [esi + ecx*8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x41d16c
inc ecx
cmp ecx, edx
jl 0x41d157
jmp 0x41d1ab
fld qword [esi + ecx*8]
fcomp qword [esi]
fnstsw ax
test ah, 5
jp 0x41d17c
fld qword [esi]
jmp 0x41d17f
fld qword [esi + ecx*8]
sub esp, 8
fstp qword [esp]
push edx
push esi
call fcn.004045a0
push eax
push esi
mov dword [ebp - 0x50], eax
call fcn.00404530
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 8]
sub eax, ecx
push eax
lea edx, [esi + ecx*8]
push edx
call fcn.00404530
add esp, 0x20
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + edi*4]
mov dword [ebp - 0x50], esi
mov ecx, 2
add esi, 0x10
lea edx, [ecx - 2]
imul edx, dword [0x430bbc]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx - 1]
fstp qword [esi - 0x10]
imul edx, dword [0x430bbc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
mov edx, ecx
fstp qword [esi - 8]
imul edx, dword [0x430bbc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 1]
fstp qword [esi]
imul edx, dword [0x430bbc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 2]
fstp qword [esi + 8]
imul edx, dword [0x430bbc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 3]
fstp qword [esi + 0x10]
imul edx, dword [0x430bbc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
add esi, 0x50
fld qword [ebx + edx*8]
lea edx, [ecx + 4]
fstp qword [esi - 0x38]
imul edx, dword [0x430bbc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 5]
fstp qword [esi - 0x30]
imul edx, dword [0x430bbc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 6]
fstp qword [esi - 0x28]
imul edx, dword [0x430bbc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 7]
fstp qword [esi - 0x20]
imul edx, dword [0x430bbc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x430bbc]
imul eax, edi
add edx, eax
add ecx, 0xa
fld qword [ebx + edx*8]
lea edx, [ecx - 2]
fstp qword [esi - 0x18]
cmp edx, 0x64
jl 0x41d1bc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x74]
lea edx, [eax + ecx]
imul edx, dword [0x430bbc]
mov ecx, dword [ebp - 0x50]
inc edi
fld qword [edx + ebx - 8]
add eax, 8
fstp qword [ecx + 0x320]
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0xc]
jl 0x41d0b0
mov esi, dword [ebp - 0x20]
push esi
push 1
lea edx, [ebp - 0xc]
push 4
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x41d434
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41d42c
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
jmp 0x41d410
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 0x41d410
push 5
call dword [sym.imp.MSVCR100.dll_exit]
xor edi, edi
cmp dword [0x430b90], edi
jle 0x41d47d
xor esi, esi
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + edi*4], 0
jle 0x41d46e
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x430c14]
push ecx
push 1
lea eax, [esi + edx + 0xd]
push 0xd
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x41d504
inc edi
add esi, 0xd
cmp edi, dword [0x430b90]
jl 0x41d440
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
add eax, eax
je 0x41d564
mov ecx, dword [ebp - 0x3c]
push esi
push 1
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x41d564
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41d4fc
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 0x41d4e0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41d55c
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 ebx, [ebx]
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 0x41d540
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
add eax, eax
je 0x41d5e4
mov ecx, dword [ebp - 0x58]
push esi
push 1
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x41d5e4
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41d5dc
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
jmp 0x41d5c0
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 0x41d5c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
xor esi, esi
cmp dword [ebp - 0xc], esi
jle 0x41d617
mov edi, dword [ebp - 0x2c]
mov edi, edi
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi + esi*4]
push ecx
push 1
push 0x328
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x41d6b1
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x41d5f0
test ebx, ebx
je 0x41d625
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov edi, dword [ebp - 0x14]
test edi, edi
jle 0x41d65c
xor esi, esi
test edi, edi
jle 0x41d64b
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x41d646
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
inc esi
cmp esi, edi
jl 0x41d635
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x41d65c
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ebx, dword [ebp - 0x78]
mov edi, dword [ebp - 0x2c]
xor esi, esi
test ebx, ebx
jle 0x41d67e
mov eax, dword [edi + esi*4]
test eax, eax
je 0x41d679
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
inc esi
cmp esi, ebx
jl 0x41d668
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x41d68f
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
test edi, edi
je 0x41d69d
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x41d703
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 0x41d6e7
push 5
call dword [sym.imp.MSVCR100.dll_exit]
int3