It was written by the author of the world-famous WinAmp, but unlike him, completely free (winamp pro still a commercial product).
You can download it from the site http://foobar2000.org/
It supports almost all reasonable and unreasonable audio formats.
Install the plug-in for APE (foo_input_monkey.dll) - here it is: http://www.foobar2000.org/components/foo_input_monkey.zip. Download, unpack and put it in the Foobar2000 / components to all other dll-file
To play .ape file in foobar2000 edit the contents of a text file as a .cue (open with notepad) and replace the file extension in a row
FILE "NameFile.wav" WAVE
FILE "NameFile.ape" WAVE
Then open the cue in foobar-e and he will pick up ape-way (of course he should be in the same directory as the cue).
for all lossless-format there are plugins for WinAmp and other players. More players there are Apollo and AIMP, but it also needed plugins.