Warner Bros. has won the bidding war for the rights to the book “Houses of Deceit,” with negotiations for Ben Affleck to produce under way.

The pic was written by BuzzFeed investigative reporter Ken Bensinger and is being heralded as the definitive account of American FIFA exec Chuck Blazer’s role in one of the largest sports and public corruption scandals in the history of sports.

Gavin O’Connor is attached to direct and will co-write with Anthony Tambakis.

Guymon Casady and Darin Friedman are producing via Entertainment 360, the production arm of Management 360. Affleck is producing with Matt Damon and their Warners-based Pearl Street Films.

Chantal Nong and Cate Adams will oversee for the studio.

O’Connor is repped by WME and Morris Yorn. Tambakis is repped by Ellen Goldsmith-Vein at Gotham. Bensinger is repped by Manask at the Office for Literary Adaptation and Stuart Krichevsky Literary Agency.