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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov ecx, dword [0x438f88]
fldz
push ebx
fst qword [ebp - 0x70]
mov ebx, dword [ebp + 0x10]
fst qword [ebp - 0x78]
push esi
fstp qword [ebp - 0x68]
mov esi, ecx
imul esi, ecx
mov eax, ebx
imul eax, ebx
push edi
mov edx, esi
lea edi, [eax + edx]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x5c], edi
lea edx, [ecx + ebx*2]
mov ecx, dword [ebp + 0xc]
imul edx, ebx
add edi, ecx
imul edi, ecx
add edx, esi
add edi, edx
add edi, edi
add edi, edi
add edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4c], 0
jne 0x41244e
mov dword [ebp - 0x18], edi
jmp 0x41249f
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x412487
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 0x41247f
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 - 0x48]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov edi, dword [0x438f88]
lea edx, [eax*8]
imul eax, ecx
imul ecx, ecx
add edi, ebx
imul edi, ebx
mov dword [ebp - 0x20], edx
add edx, dword [ebp - 0x18]
add eax, esi
mov dword [ebp - 0x28], edx
lea edx, [edx + edi*8]
mov edi, dword [0x43805c]
lea eax, [edx + eax*8]
mov dword [ebp - 0x30], edx
lea edx, [eax + ecx*8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], edx
test ecx, ecx
jle 0x4124ea
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x43807c]
push ebx
push ebx
push esi
push eax
push ecx
push ebx
call fcn.00402a50
fld qword [esi]
add esp, 0x18
call sub.MSVCR100.dll__CIlog
fimul dword [0x438efc]
mov edx, dword [0x4380b8]
mov esi, dword [sym.imp.MSVCR100.dll__fseeki64]
xor edi, edi
push edi
push edi
push edi
push edx
fstp qword [ebp - 0x80]
call esi
mov eax, dword [0x438060]
push edi
push edi
push edi
push eax
call esi
mov ecx, dword [0x438058]
push edi
push edi
push edi
push ecx
call esi
add esp, 0x30
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
cmp dword [0x438efc], edi
jle 0x412759
mov dword [ebp - 0x44], edi
jmp 0x412560
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov esi, dword [0x438110]
push edx
push eax
push esi
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp + 0x18]
add esp, 0xc
cmp dword [ecx + edi*4], 0
mov dword [ebp - 8], 0
jle 0x4126f2
mov edi, dword [0x438f88]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [edx + eax*4]
mov eax, esi
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
je 0x4125c7
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, esi
add eax, eax
add eax, eax
add eax, eax
je 0x4125f4
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 esi
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 esi
mov edx, edi
mov eax, esi
call fcn.00403370
mov eax, dword [ebp + 0x24]
mov ecx, dword [0x43811c]
mov edx, dword [0x438100]
push edi
push edi
push eax
push ecx
push edx
push esi
call fcn.00402a50
add esp, 0x48
test eax, eax
jne 0x4139e8
mov edi, dword [ebp + 0x24]
fld qword [edi]
call sub.MSVCR100.dll__CIlog
fadd qword [ebp - 0x70]
mov eax, dword [0x438f88]
push eax
push edi
fstp qword [ebp - 0x70]
push eax
call fcn.00404330
mov edi, dword [0x438f88]
mov eax, dword [0x43811c]
mov ecx, dword [0x438180]
add esp, 0xc
push edi
push edi
push ebx
push eax
push ecx
mov ecx, dword [0x438010]
push esi
push ebx
mov eax, esi
call fcn.00403250
mov edx, dword [0x438010]
add esp, 0x1c
push ebx
push ebx
push edi
push edx
mov edx, dword [0x438180]
push esi
mov esi, dword [0x438120]
push ebx
mov ecx, esi
mov eax, ebx
call fcn.00403140
push esi
mov esi, dword [0x438110]
push ebx
mov edx, esi
mov ecx, esi
mov eax, ebx
call fcn.00403d50
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
inc dword [ebp - 0xc]
inc eax
add esp, 0x20
mov dword [ebp - 8], eax
cmp eax, dword [ecx + edx*4]
jl 0x412591
mov edi, edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [0x438120]
push ebx
push ebx
push eax
push ecx
push esi
push ebx
call fcn.00402a50
add esp, 0x18
test eax, eax
jne 0x4139e8
fld1
mov edx, dword [ebp + 0x24]
fdiv qword [edx]
call sub.MSVCR100.dll__CIlog
fadd qword [ebp - 0x78]
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x438120]
mov edx, dword [0x438050]
fstp qword [ebp - 0x78]
mov esi, dword [ebp - 0x44]
push eax
push ecx
lea eax, [esi + edx]
push eax
call sub.MSVCR100.dll_memcpy
add esi, dword [ebp - 0x20]
inc edi
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 0x44], esi
cmp edi, dword [0x438efc]
jl 0x412560
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x10]
lea edi, [ecx + edx*2]
imul edi, esi
add edi, edi
add edi, edi
add edi, edi
jne 0x412775
mov dword [ebp - 0x24], edi
jmp 0x4127c3
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x4127ae
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 0x4127a6
call fcn.004048c0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp - 0x44]
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov ecx, esi
imul ecx, dword [ebp - 0x14]
lea edi, [edx + ecx*8]
mov edx, esi
imul edx, esi
lea eax, [edi + ecx*8]
lea esi, [eax + edx*8]
mov dword [ebp - 0x5c], eax
lea eax, [esi + edx*8]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
test ecx, ecx
jle 0x4127f9
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
test edx, edx
jle 0x41280d
mov ecx, edx
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [0x4380b8]
mov esi, dword [sym.imp.MSVCR100.dll__fseeki64]
xor edi, edi
push edi
push edi
push edi
push ecx
call esi
mov edx, dword [0x438060]
push edi
push edi
push edi
push edx
call esi
mov eax, dword [0x438058]
push edi
push edi
push edi
push eax
call esi
add esp, 0x30
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
cmp dword [0x438efc], edi
jle 0x412a31
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x2c]
add eax, dword [0x438050]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
test ecx, ecx
jle 0x412875
mov edi, dword [0x438110]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
cmp dword [ecx + edx*4], 0
mov dword [ebp - 8], 0
jle 0x4129e8
lea esp, [esp]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov edi, dword [eax + ecx*4]
mov eax, edi
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
je 0x4128bf
mov edx, dword [0x4380b8]
push edx
push 1
push eax
mov eax, dword [0x438180]
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov eax, dword [0x438f88]
mov ecx, eax
imul ecx, edi
add ecx, ecx
add ecx, ecx
add ecx, ecx
je 0x4128ef
mov edx, dword [0x438060]
mov eax, dword [0x438080]
push edx
push 1
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_fread]
mov eax, dword [0x438f88]
add esp, 0x10
mov ecx, dword [ebp + 0x24]
push eax
push ecx
push eax
call fcn.00404420
mov esi, dword [0x438f88]
mov edx, dword [0x43811c]
mov ecx, dword [0x438040]
add esp, 0xc
push ebx
push ebx
push esi
push edx
mov edx, dword [0x438180]
push edi
push edi
mov eax, ebx
call fcn.00403140
mov eax, dword [0x438040]
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [0x438124]
push ebx
push ebx
push edi
call fcn.004036b0
mov ecx, dword [0x438124]
mov eax, dword [0x438040]
mov edx, dword [ebp - 0x18]
push ecx
push ebx
push ebx
push edi
call fcn.004036b0
mov edx, dword [0x438180]
mov eax, dword [0x438040]
push edx
mov edx, dword [0x438110]
push ebx
push edi
push ebx
call fcn.00403a70
mov eax, dword [0x438040]
mov ecx, dword [0x438080]
add esp, 0x48
push ebx
push ebx
push esi
push eax
push ecx
mov ecx, dword [0x438124]
push edi
push esi
mov eax, ebx
call fcn.00403250
add esp, 0x1c
push ebx
call fcn.00403590
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
add esp, 4
push edx
push eax
mov eax, dword [0x438010]
push eax
push eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ecx, esi
mov ebx, esi
call fcn.00403030
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x3c]
push edx
mov edx, ecx
call fcn.00403d50
add esp, 0x20
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
inc dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + edx*4]
jl 0x412890
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x5c]
push eax
mov eax, dword [0x438110]
push esi
push eax
push eax
mov eax, dword [ebp + 0x10]
push ebx
push ebx
mov ecx, ebx
call fcn.00403030
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x44]
push esi
push eax
mov edx, ecx
call fcn.00403d50
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x2c], ecx
mov ebx, dword [ebp + 0x10]
inc eax
add esp, 0x20
mov dword [ebp - 4], eax
cmp eax, dword [0x438efc]
jl 0x412850
mov edx, dword [0x438188]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push edx
push edi
push edi
push esi
call fcn.004037a0
mov eax, dword [ebp - 0x40]
mov edx, dword [0x438188]
push eax
push esi
push edi
push esi
call fcn.00403980
mov ecx, dword [0x438188]
mov edx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x3c]
push edx
push edi
mov edi, dword [ebp - 0x48]
push esi
mov eax, edi
call fcn.004037a0
mov eax, dword [ebp - 0x14]
mov edx, dword [0x4380c0]
push edi
mov edi, dword [ebp - 0x58]
push esi
push eax
push esi
mov eax, edi
call fcn.004036b0
mov ecx, dword [0x43805c]
add esp, 0x40
push edi
push esi
mov edx, ecx
mov eax, esi
call fcn.00403d50
push edi
push esi
call fcn.00401730
add esp, 0x10
cmp dword [ebp - 0x24], 0
je 0x412ac0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ecx, dword [0x438f88]
mov esi, dword [ebp - 0x14]
lea edx, [ecx + ebx]
imul esi, esi
imul edx, dword [0x4380fc]
imul edx, ecx
lea edi, [edx + esi*2]
add edi, edi
add edi, edi
add edi, edi
jne 0x412aec
mov dword [ebp - 0x24], edi
jmp 0x412b72
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x412b57
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 0x412b4f
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 0x412b33
push 3
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [ebp - 0x44]
push edi
push 0
push ecx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x44]
mov ecx, dword [0x438f88]
add esp, 0xc
mov dword [ebp - 0x24], edx
mov eax, dword [0x4380fc]
mov edi, dword [ebp - 0x24]
imul eax, ecx
mov edx, eax
imul eax, ecx
imul edx, ebx
lea edx, [edi + edx*8]
lea edi, [edx + eax*8]
lea eax, [edi + esi*8]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], eax
test esi, esi
jle 0x412ba9
mov ecx, esi
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x4380b8]
mov esi, dword [sym.imp.MSVCR100.dll__fseeki64]
xor edi, edi
push edi
push edi
push edi
push ecx
call esi
mov edx, dword [0x438060]
push edi
push edi
push edi
push edx
call esi
mov eax, dword [0x438058]
push edi
push edi
push edi
push eax
call esi
add esp, 0x30
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
cmp dword [0x438efc], edi
jle 0x412efd
mov esi, dword [0x438f88]
mov dword [ebp - 0x44], edi
mov edi, dword [0x438100]
jmp 0x412c00
mov edx, dword [ebp - 0x44]
add edx, dword [0x438050]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + eax*4], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], 0
jle 0x412d68
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + eax*4]
mov eax, ecx
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x2c], ecx
je 0x412c5f
mov ecx, dword [0x4380b8]
mov edx, dword [0x438180]
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fread]
mov esi, dword [0x438f88]
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
mov eax, esi
imul eax, ecx
add eax, eax
add eax, eax
add eax, eax
je 0x412c8c
mov ecx, dword [0x438060]
mov edx, dword [0x438080]
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fread]
mov esi, dword [0x438f88]
add esp, 0x10
mov eax, dword [ebp + 0x24]
push esi
push eax
push esi
call fcn.00404420
mov esi, dword [0x438f88]
mov ecx, dword [0x43811c]
mov edx, dword [0x438080]
mov eax, dword [ebp - 0x2c]
mov edi, dword [0x438100]
add esp, 0xc
push esi
push esi
push esi
push ecx
push edx
push eax
push esi
mov ecx, edi
call fcn.00403250
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x438080]
add esp, 0x1c
push esi
push esi
push esi
push edi
push ecx
mov ecx, dword [0x438088]
push esi
mov eax, esi
call fcn.00403140
mov ecx, dword [0x438088]
mov eax, esi
imul eax, esi
lea edx, [eax*8]
imul eax, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x50]
push ecx
lea eax, [edx + eax*8]
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x438180]
add esp, 0x24
push ebx
push ebx
push esi
push edi
push ecx
mov ecx, dword [0x438040]
push esi
mov eax, ebx
call fcn.00403140
mov eax, dword [0x438040]
mov ecx, esi
imul ecx, dword [ebp - 8]
mov edx, esi
imul ecx, ebx
imul edx, ebx
add edx, edx
add edx, edx
add edx, edx
push edx
mov edx, dword [ebp - 0x24]
push eax
lea eax, [edx + ecx*8]
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
inc dword [ebp - 0xc]
inc eax
add esp, 0x24
mov dword [ebp - 8], eax
cmp eax, dword [ecx + edx*4]
jl 0x412c23
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
cmp dword [eax + ecx*4], 0
mov dword [ebp - 8], 0
jle 0x412ee4
mov eax, esi
imul eax, esi
add eax, eax
mov edx, dword [ebp - 0x50]
add eax, eax
add eax, eax
mov dword [ebp - 0x58], eax
mov eax, esi
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
jmp 0x412db0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x438124]
push ecx
push edx
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x40]
mov eax, dword [0x438088]
add esp, 0xc
push ecx
push edx
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [0x438124]
mov eax, dword [0x438040]
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
push ebx
push ebx
push esi
call fcn.004036b0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
add esp, 0x10
cmp dword [edx + eax*4], 0
mov dword [ebp - 0x34], 0
jle 0x412ec2
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
mov ecx, dword [0x438124]
push edx
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [0x438040]
add esp, 0xc
push edx
mov edx, dword [0x438124]
push esi
push esi
mov eax, edi
call fcn.004038a0
fld qword [0x436280]
add esp, 4
fstp qword [esp]
push edi
mov ecx, esi
mov eax, esi
call fcn.00403510
mov eax, dword [ebp - 0x34]
add esp, 0xc
cmp dword [ebp - 8], eax
jne 0x412e77
mov ecx, dword [0x438088]
push ecx
push esi
mov edx, edi
mov ecx, edi
mov eax, esi
call fcn.00403d50
add esp, 8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x54]
push edx
push eax
push edi
push edi
push esi
push esi
mov ecx, esi
mov ebx, esi
mov eax, esi
call fcn.00403030
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x5c]
push eax
mov edx, ecx
call fcn.00403d50
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x38], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
inc eax
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, dword [ecx + edx*4]
jl 0x412e13
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 8]
add dword [ebp - 0x3c], ecx
add dword [ebp - 0x40], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + edx*4]
jl 0x412db0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x44], ecx
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x438efc]
jl 0x412c00
mov edx, dword [0x4380c0]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
push edx
push edi
push edi
push esi
call fcn.004037a0
mov eax, dword [ebp - 0x48]
mov edx, dword [0x4380c0]
push eax
push esi
push edi
push esi
call fcn.00403980
mov eax, dword [ebp - 0x24]
add esp, 0x20
test eax, eax
je 0x412f3e
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
fld qword [0x4361d8]
mov edi, dword [0x43805c]
sub esp, 8
fstp qword [esp]
push edi
mov ecx, esi
mov eax, esi
call fcn.00403510
mov ecx, dword [ebp + 0x24]
mov edx, dword [0x438014]
add esp, 0xc
push esi
push esi
push ecx
push edx
push edi
push esi
call fcn.00402a50
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 0x48], eax
test esi, esi
jle 0x412f9e
mov edx, dword [0x43805c]
fldz
lea edi, [esi*8 + 8]
fcom qword [edx]
fnstsw ax
test ah, 0x41
je 0x412fc9
inc ecx
add edx, edi
cmp ecx, esi
jl 0x412f8c
fstp st(0)
mov edi, dword [0x43805c]
push esi
push edi
push esi
call fcn.004018a0
add esp, 0xc
test eax, eax
jne 0x412fcb
push esi
lea eax, [ebp - 0x60]
push eax
push edi
push esi
call fcn.00401980
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x412fd0
fstp st(0)
mov eax, 1
cmp dword [ebp - 0x48], 0
jne 0x4139e8
test eax, eax
jne 0x4139e8
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x4c], 1
cmp eax, edi
je 0x4139e8
mov esi, dword [sym.imp.MSVCR100.dll__fseeki64]
cmp eax, 2
jne 0x413010
mov ecx, dword [0x4380c8]
push edi
push edi
push edi
push ecx
call esi
add esp, 0x10
cmp dword [ebp - 0x10], edi
jle 0x41302f
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov esi, dword [sym.imp.MSVCR100.dll__fseeki64]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor edi, edi
mov edx, dword [0x438114]
push edi
push edi
push edi
push edx
call esi
mov eax, dword [0x4380cc]
push edi
push edi
push edi
push eax
call esi
mov ecx, dword [0x4380b8]
push edi
push edi
push edi
push ecx
call esi
mov edx, dword [0x438058]
push edi
push edi
push edi
push edx
call esi
add esp, 0x40
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
cmp dword [0x438efc], edi
jle 0x4132ac
mov esi, dword [0x438184]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
nop
mov eax, dword [0x438050]
add eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x1c], eax
push ebx
mov edx, ecx
mov eax, ebx
call fcn.00403d50
add esp, 8
test ebx, ebx
jle 0x4130b4
mov edi, dword [0x43810c]
mov ecx, ebx
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + eax*4], 0
mov dword [ebp - 8], 0
jle 0x413228
jmp 0x4130d0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
mov edi, dword [edx + eax*4]
mov esi, dword [sym.imp.MSVCR100.dll_fread]
lea eax, [edi*8]
test eax, eax
je 0x413100
mov ecx, dword [0x438114]
mov edx, dword [0x438008]
push ecx
push 1
push eax
push edx
call esi
add esp, 0x10
mov eax, dword [0x439518]
imul eax, edi
add eax, eax
add eax, eax
add eax, eax
je 0x413126
mov ecx, dword [0x4380cc]
mov edx, dword [0x438118]
push ecx
push 1
push eax
push edx
call esi
add esp, 0x10
mov eax, edi
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
je 0x413149
mov ecx, dword [0x4380b8]
mov edx, dword [0x438180]
push ecx
push 1
push eax
push edx
call esi
add esp, 0x10
mov eax, dword [0x438f88]
mov ecx, dword [ebp + 0x24]
push eax
push ecx
push eax
call fcn.00404420
mov edx, dword [0x438118]
mov eax, dword [0x439518]
mov esi, dword [0x43806c]
add esp, 0xc
push edx
mov edx, dword [0x43803c]
push 1
push eax
push edi
mov eax, esi
call fcn.004036b0
mov eax, dword [0x438008]
add esp, 0x10
test edi, edi
jle 0x4131a0
mov ecx, esi
sub ecx, eax
mov edx, edi
fld qword [eax]
add eax, 8
dec edx
fsub qword [ecx + eax - 8]
fstp qword [eax - 8]
jne 0x413191
mov esi, dword [0x438f88]
mov ecx, dword [0x43811c]
mov edx, dword [0x438180]
push esi
push esi
push ebx
push ecx
mov ecx, dword [0x438010]
push edx
push edi
push ebx
mov eax, edi
call fcn.00403250
mov eax, dword [0x438010]
mov edx, dword [0x438008]
add esp, 0x1c
push 1
push 1
push esi
mov esi, dword [0x438184]
push eax
push edi
push ebx
mov ecx, esi
mov eax, 1
call fcn.00403140
add esp, 0x18
test ebx, ebx
jle 0x41320f
mov eax, dword [0x43810c]
mov ecx, esi
sub ecx, eax
mov edx, ebx
fld qword [ecx + eax]
add eax, 8
dec edx
fadd qword [eax - 8]
fstp qword [eax - 8]
jne 0x413200
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
inc dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + edx*4]
jl 0x4130d0
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x43810c]
push eax
push 1
push ebx
push ebx
mov eax, esi
call fcn.004036b0
mov edx, dword [ebp - 0x44]
add edx, dword [0x4380b0]
lea edi, [ebx*8]
push edi
push esi
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0x1c
test ebx, ebx
jle 0x413290
mov edx, dword [ebp - 0x28]
mov eax, esi
sub eax, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ebx
xor eax, eax
mov ecx, edx
fld qword [esi + eax*8]
mov edi, dword [ebp - 0x58]
fmul qword [edi + edx]
lea edi, [ebx*8]
inc eax
fadd qword [ecx]
fstp qword [ecx]
add ecx, edi
cmp eax, ebx
jl 0x41326d
add edx, 8
dec dword [ebp - 0x5c]
jne 0x413269
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x48], ecx
add dword [ebp - 0x44], edi
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x438efc]
jl 0x413080
fild dword [0x438efc]
mov edx, dword [ebp - 0x28]
fld1
sub esp, 8
fdivrp st(1)
mov ecx, ebx
mov esi, ebx
mov eax, ebx
fstp qword [esp]
push edx
call fcn.00403510
mov ecx, dword [0x438f88]
imul ecx, ecx
xor edi, edi
add esp, 0xc
cmp ecx, edi
jle 0x4132ee
mov edi, dword [ebp - 0x30]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor edi, edi
mov eax, dword [0x438114]
mov esi, dword [sym.imp.MSVCR100.dll__fseeki64]
push edi
push edi
push edi
push eax
call esi
mov ecx, dword [0x4380cc]
push edi
push edi
push edi
push ecx
call esi
mov edx, dword [0x4380b8]
push edi
push edi
push edi
push edx
call esi
mov eax, dword [0x438060]
push edi
push edi
push edi
push eax
call esi
mov ecx, dword [0x438058]
add esp, 0x40
push edi
push edi
push edi
push ecx
call esi
add esp, 0x10
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
cmp dword [0x438efc], edi
jle 0x4137bb
lea edx, [ebx*8]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x5c]
mov ecx, dword [0x4380b0]
add ecx, dword [ebp - 0x3c]
push eax
mov eax, dword [0x438184]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x38]
add edx, dword [0x438050]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp dword [eax + ecx*4], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], 0
jle 0x41379c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
mov edi, dword [edx + eax*4]
mov esi, dword [sym.imp.MSVCR100.dll_fread]
lea eax, [edi*8]
test eax, eax
je 0x4133c5
mov ecx, dword [0x438114]
mov edx, dword [0x438008]
push ecx
push 1
push eax
push edx
call esi
add esp, 0x10
mov eax, dword [0x439518]
imul eax, edi
add eax, eax
add eax, eax
add eax, eax
je 0x4133eb
mov ecx, dword [0x4380cc]
mov edx, dword [0x438118]
push ecx
push 1
push eax
push edx
call esi
add esp, 0x10
mov eax, edi
imul eax, ebx
add eax, eax
add eax, eax
add eax, eax
je 0x41340e
mov ecx, dword [0x4380b8]
mov edx, dword [0x438180]
push ecx
push 1
push eax
push edx
call esi
add esp, 0x10
mov ecx, dword [0x438f88]
mov eax, ecx
imul eax, edi
add eax, eax
add eax, eax
add eax, eax
je 0x41343d
mov ecx, dword [0x438060]
mov edx, dword [0x438080]
push ecx
push 1
push eax
push edx
call esi
mov ecx, dword [0x438f88]
add esp, 0x10
mov eax, dword [ebp + 0x24]
push ecx
push eax
push ecx
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 edi
push esi
mov eax, edi
call fcn.00403250
mov eax, dword [0x438118]
mov ecx, dword [0x439518]
mov edx, dword [0x43803c]
add esp, 0x1c
push eax
mov eax, dword [0x43806c]
push 1
push ecx
push edi
call fcn.004036b0
add esp, 0x10
test edi, edi
jle 0x4134bf
mov eax, dword [0x438008]
mov ecx, dword [0x43806c]
sub ecx, eax
mov edx, edi
lea ebx, [ebx]
fld qword [eax]
add eax, 8
dec edx
fsub qword [eax + ecx - 8]
fstp qword [eax - 8]
jne 0x4134b0
mov edx, dword [0x438180]
push edx
mov edx, dword [0x438184]
push 1
push ebx
mov ebx, dword [0x43816c]
push edi
mov eax, ebx
call fcn.004036b0
mov eax, dword [0x43811c]
mov ecx, dword [0x43806c]
mov edx, dword [0x438008]
push 1
push 1
push esi
push eax
push edi
push edi
mov eax, 1
call fcn.00403140
fld qword [ebp - 0x68]
xor edx, edx
add esp, 0x28
mov dword [ebp - 0x48], edx
cmp edi, 4
jl 0x4135b0
mov edx, dword [0x438008]
lea ecx, [ebx + 0x10]
mov ebx, dword [0x43806c]
sub ebx, edx
mov dword [ebp - 0x44], ebx
mov ebx, dword [0x43816c]
sub ebx, edx
lea eax, [edx + 8]
mov edx, dword [0x43806c]
sub edx, dword [0x43816c]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x48]
mov ebx, dword [0x43806c]
fld qword [ebx + edx*8]
mov ebx, dword [ebp - 0x44]
fld qword [eax - 8]
add edx, 4
fmul st(1)
add eax, 0x20
add ecx, 0x20
faddp st(2)
fmul qword [ecx - 0x30]
fsubp st(1)
fld qword [ebx + eax - 0x20]
mov ebx, dword [ebp - 0x40]
fld qword [eax - 0x20]
fmul st(1)
faddp st(2)
fmul qword [ebx + eax - 0x20]
mov ebx, dword [ebp - 0x58]
fsubp st(1)
fld qword [ebx + ecx - 0x20]
mov ebx, dword [0x43806c]
fld qword [eax - 0x18]
fmul st(1)
faddp st(2)
fmul qword [ecx - 0x20]
fsubp st(1)
fld qword [ebx + edx*8 - 8]
lea ebx, [edi - 3]
fld qword [eax - 0x10]
fmul st(1)
faddp st(2)
fmul qword [ecx - 0x18]
fsubp st(1)
cmp edx, ebx
jl 0x413548
fst qword [ebp - 0x68]
mov ebx, dword [0x438008]
cmp edx, edi
jge 0x4135f8
mov ecx, dword [0x43806c]
sub ecx, ebx
mov dword [ebp - 0x44], ecx
mov ecx, dword [0x43816c]
sub ecx, ebx
mov dword [ebp - 0x40], ecx
mov ecx, edi
lea eax, [ebx + edx*8]
sub ecx, edx
mov edx, dword [ebp - 0x44]
fld qword [eax + edx]
mov edx, dword [ebp - 0x40]
fld st(0)
add eax, 8
dec ecx
fmul qword [eax - 8]
faddp st(2)
fmul qword [eax + edx - 8]
fsubp st(1)
jne 0x4135d7
fstp qword [ebp - 0x68]
jmp 0x4135fa
fstp st(0)
test edi, edi
jle 0x41361f
mov ecx, dword [0x43816c]
mov eax, ebx
sub ecx, ebx
mov edx, edi
lea ebx, [ebx]
fld qword [eax]
add eax, 8
dec edx
fsub qword [eax + ecx - 8]
fstp qword [eax - 8]
jne 0x413610
mov eax, dword [0x438068]
mov ebx, dword [0x438100]
mov edx, dword [0x438088]
push esi
push esi
push esi
push eax
push esi
push esi
mov ecx, ebx
mov eax, edi
call fcn.00403140
mov edx, dword [0x438008]
push 1
push 1
push esi
push ebx
mov ebx, dword [0x43806c]
push edi
push esi
mov ecx, ebx
mov eax, 1
call fcn.00403140
mov eax, dword [0x43811c]
push ebx
push esi
mov edx, ebx
push esi
mov ebx, 1
call fcn.004038a0
add esp, 0x3c
cmp dword [ebp + 8], 2
jne 0x4136ae
lea eax, [esi*8]
test eax, eax
je 0x4136ae
mov ecx, dword [0x4380c8]
mov edx, dword [0x43806c]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, ebx
jne 0x413967
mov esi, dword [0x438f88]
mov eax, dword [0x43811c]
mov ecx, dword [ebp - 0x30]
push eax
push esi
mov edx, ecx
mov eax, esi
call fcn.00403d50
mov ecx, dword [0x438088]
mov edx, dword [0x438080]
push esi
push esi
push esi
push ecx
mov ecx, dword [0x438100]
push edi
push esi
mov eax, esi
call fcn.00403140
mov ebx, dword [ebp + 0x10]
mov edx, dword [0x438088]
push ebx
push ebx
push esi
push edx
mov edx, dword [0x438180]
push edi
mov edi, dword [0x438040]
push esi
mov ecx, edi
mov eax, ebx
call fcn.00403140
mov eax, dword [0x438124]
mov edx, dword [ebp - 0x1c]
push edi
push ebx
push ebx
push esi
call fcn.004036b0
mov eax, dword [0x438124]
add esp, 0x48
push eax
mov eax, dword [0x438100]
push esi
push esi
mov edx, edi
call fcn.00403c60
mov ebx, dword [0x438068]
mov edi, dword [0x43811c]
mov edx, dword [0x438100]
add esp, 0xc
push ebx
push esi
push esi
push esi
mov eax, edi
call fcn.004036b0
mov eax, dword [0x438100]
push edi
push esi
push esi
push esi
mov edx, ebx
call fcn.004036b0
mov ecx, dword [0x438100]
push ecx
push esi
mov edx, edi
mov ecx, ebx
mov eax, esi
call fcn.00403e00
mov ecx, dword [ebp - 0x30]
push edi
push esi
mov edx, ecx
mov eax, esi
call fcn.00403d50
mov eax, dword [ebp - 8]
inc eax
add esp, 0x30
inc dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
cmp eax, dword [edx + ecx*4]
jl 0x413395
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x3c], edx
add dword [ebp - 0x38], ecx
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x438efc]
jl 0x413356
fild dword [0x439508]
mov ecx, dword [ebp - 0x30]
fld1
mov edi, dword [0x438f88]
fdivrp st(1)
sub esp, 8
mov esi, edi
mov eax, edi
fstp qword [esp]
push ecx
mov ecx, edi
call fcn.00403510
add esp, 0xc
cmp dword [ebp + 0xc], 0
jle 0x413800
mov ecx, dword [ebp + 0xc]
mov edi, dword [0x438128]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, esi
mov edx, dword [0x43807c]
mov esi, dword [ebp - 0x28]
push edx
push ebx
mov edx, esi
mov ecx, esi
mov eax, ebx
call fcn.00403e00
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x4380bc]
push ebx
push ebx
push ebx
mov edx, esi
call fcn.004036b0
mov ecx, dword [0x4380bc]
mov esi, dword [0x438120]
mov edx, dword [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
mov eax, esi
call fcn.004036b0
fild dword [0x438efc]
add esp, 0x20
mov ecx, ebx
fstp qword [esp]
push esi
mov esi, ebx
mov eax, ebx
call fcn.00403510
mov edx, dword [0x438188]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push edx
mov edx, dword [0x438128]
push 1
push eax
mov eax, dword [0x438120]
push ecx
call fcn.00403a70
mov edx, dword [ebp + 0x24]
mov eax, dword [0x438088]
mov ecx, dword [0x438068]
push edi
push edi
push edx
push eax
push ecx
push edi
call fcn.00402a50
mov edx, dword [0x438068]
mov esi, dword [0x438f88]
mov edi, dword [ebp - 0x30]
push edx
push esi
mov edx, edi
mov ecx, edi
mov eax, esi
call fcn.00403e00
mov eax, dword [0x438088]
push eax
mov eax, dword [0x43811c]
push esi
push esi
push esi
mov edx, edi
call fcn.004036b0
mov ecx, dword [0x43811c]
mov edi, dword [0x438100]
mov edx, dword [0x438088]
add esp, 0x40
push ecx
push esi
push esi
push esi
mov eax, edi
call fcn.004036b0
fild dword [0x439508]
add esp, 8
mov ecx, esi
mov eax, esi
fstp qword [esp]
push edi
call fcn.00403510
mov edx, dword [0x4380c0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov esi, dword [0x438128]
add esp, 0xc
push edx
push 1
push eax
push ecx
mov edx, esi
mov eax, edi
call fcn.00403a70
xor eax, eax
add esp, 0x10
cmp dword [ebp + 0xc], eax
jle 0x413945
fld qword [0x4361d8]
mov ecx, dword [ebp + 0xc]
fld qword [esi + eax*8]
inc eax
fmul st(1)
fstp qword [esi + eax*8 - 8]
cmp eax, ecx
jl 0x413935
fstp st(0)
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
push eax
push ecx
mov eax, ebx
call fcn.00414750
add esp, 0xc
test eax, eax
jne 0x4139c4
mov dword [ebp - 0x4c], eax
jmp 0x4139e8
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 0x4139bc
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 ecx, [ecx]
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 0x4139a0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp + 0x20]
fld qword [eax]
mov edx, dword [ebp + 0x1c]
fstp qword [edx]
fld qword [0x4380a8]
fadd qword [ebp - 0x70]
fadd qword [ebp - 0x80]
fsub qword [ebp - 0x78]
fadd qword [ebp - 0x68]
fmul qword [0x4362d0]
fstp qword [eax]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4139f9
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret