Recomp / Games / Windows

Mafia-RE

Byte-exact decompilation of Mafia: The City of Lost Heaven v1.2, using the original compilers and reccmp to score accuracy per binary.

Matching decomp Not stated wip

Get new releases by RSS

More like this: 3D Pinball Space Cadet Disassembly · 3S Decomp · Abyss Engine

Stars76+11 ★ this week
Commits, 30 days82
Latest release—
Last pushDec 1, 2026

GitHub figures as of 2026-12-02, refreshed daily.

About Mafia-RE

Mafia-RE is a byte-exact decompilation of the 2002 PC game Mafia: The City of Lost Heaven. The aim is C++ source that, when built with the same Microsoft compilers and linkers the original developers used, produces files identical to the shipped game. The repository bundles those old toolchains, mainly Visual C++ 6.0 plus the DirectX 8 SDKs, and uses reccmp, a comparison tool from the Lego Island decompilation community, to score how closely each rebuilt function matches the original. Progress is reported per binary and per function.

The main target is version 1.2, the last official patch and the version sold on Steam. Patch 1.1, version 1.0 and Steam's 2010 rebuild of the setup program are covered where they differ, with the differences switched by build flags. You do not need the game to build the source, but you need your own copy of version 1.2 to compare the result with the original. A modern Visual Studio build is also possible; it runs but does not match byte for byte.

The game is split across several files, and they are at different stages. The project reports the data and joystick libraries and the setup program as done and identical to the originals, and every source file of the LS3DF engine library as written, with most functions compiling to the original instructions. The main Game.exe is about half written; the rebuilt executable reaches the main menu, plays the intro cutscene and enters the game. Because no unprotected copy of the 1.2 executable survives, it is compared against a copy reconstructed from the retail files. There are no releases, since the output is source code rather than a ready-made port, and no open issues. It is the only Mafia project on this site.

Written by Recomp from the project's README, releases and issue tracker, checked 2026-11-13.

Facts

Original
Mafia: The City of Lost Heaven (2002)
Platform
Windows
Method
Matching decomp
Provenance
Not stated what this means
Status
wip
Licence
none
Team
Marvisak
Started
2025-02
Runs on
Windows
Needs the original
Yes: you supply your own legally obtained copy

How to get it legally

This project ships code only. Build or download it from the official repository, then supply data from a copy of Mafia: The City of Lost Heaven you own. Recomp never links to ROMs, discs or game data.

This project was decompiled by Marvisak. Facts last checked 2026-10-17. Suggest a correction

Sources

Something wrong or out of date? Send a correction.

Recomp is free and ad-free. Support it with a shirt or stickers.

Windows · 1995 · ★ 78

3D Pinball Space Cadet Disassembly

3D Pinball for Windows: Space Cadet

Archived disassembly of the Windows pinball game; the author points to the SpaceCadetPinball project for a working version.

Decompilation Human-led

PlayStation 2 · ★ 291

3S Decomp

Street Fighter III: 3rd Strike (PS2)

Decompilation of Street Fighter III: 3rd Strike for PlayStation 2, aiming to recreate source that could allow ports.

Decompilation Not stated
+3 ★ this week

Windows · 2000 · ★ 337

Abyss Engine

Diablo II

Clean-room reimplementation of the Diablo II engine written in C, aiming to recreate the original game. Last updated April 2024.

Clean-room Not stated

Game Boy Advance · 2003 · ★ 16

Advance Wars 2: Black Hole Rising decompilation

Advance Wars 2: Black Hole Rising

Work-in-progress matching decompilation of Advance Wars 2: Black Hole Rising for GBA; builds still need the original as a base.

Matching decomp Not stated

Game Boy Advance · 2001 · ★ 12

Advance Wars decompilation

Advance Wars

Archived decompilation of the US Advance Wars for GBA that builds a byte-identical copy of the original.

Matching decomp Human-led

Nintendo 64 · 1998 · ★ 32

AeroGauge decompilation

AeroGauge

Early-stage decompilation of the US version of the N64 racing game AeroGauge that builds a ROM from source.

Matching decomp Human-led