# ht2-rev: reconstructing Hard Truck 2's king.exe in C++

> ht2-rev reconstructs Hard Truck 2: King of the Road's king.exe as C++ source for a 32-bit Windows build. The work grew from a byte-matching disassembly and translates the helicopter step and trailer hitch solver from x87 instructions, with tests against the original machine code. It extracts resources from the user's executable at build time and runs with an installed game.

- Type: Case study
- Targets: Binary · Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/KudryavtsevDmitry/ht2-rev>
- Primary source: <https://github.com/KudryavtsevDmitry/ht2-rev/blob/53627ed25560a0958b5c5a4525dde652bb2a8ed3/README.md>
- Catalog page: <https://awesomerea.org/resources/hard-truck-2-king-exe-case/>
- Record JSON: <https://awesomerea.org/resources/hard-truck-2-king-exe-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/hard-truck-2-king-exe-case/index.md)

## Requirements & limits

- **Prerequisites:** Building requires the user's original king.exe for resources; running requires an installed game.
- **Prerequisites:** Building requires VS 2022 Build Tools with the v142 x86 toolset, Windows 10 SDK, DirectX 7 SDK libraries, and Python with pefile.
- **Limits:** About 2,300 calls still use original labels and untyped call helpers.
- **License:** No licence file in the repository.

## Primary sources

1. <https://github.com/KudryavtsevDmitry/ht2-rev/blob/53627ed25560a0958b5c5a4525dde652bb2a8ed3/README.md>
2. <https://github.com/KudryavtsevDmitry/ht2-rev/blob/53627ed25560a0958b5c5a4525dde652bb2a8ed3/CONVERSION_LOG.md>

## More in Games

- [Hunchback: an in-progress ZX Spectrum disassembly](https://awesomerea.org/resources/hunchback-spectrum-disassembly-case/index.md) · Case study
- [Hungry Horace: a SkoolKit ZX Spectrum disassembly](https://awesomerea.org/resources/hungry-horace-disassembly-case/index.md) · Case study
- [IEStrikers: decompiling Inazuma Eleven Strikers](https://awesomerea.org/resources/iestrikers-case/index.md) · Case study
- [IGI-RE: functional decompilation of Project I.G.I.](https://awesomerea.org/resources/igi-re-case/index.md) · Case study
- [Ikachan3: decompiling the Nintendo 3DS release](https://awesomerea.org/resources/ikachan3-case/index.md) · Case study
- [Indy 500: a first-pass labeled Atari 2600 disassembly](https://awesomerea.org/resources/indy-500-atari-2600-disassembly-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
