Files
ulw-execute 3910630c25 docs: mark release-difference facts verified; fix doc inconsistencies
Owner confirmed the differing sizes/export counts/RVAs are just a different
release of the same official game. Remove the "pending re-check against
clean-release binary" / "contaminated install" caveats throughout and state
those numbers (module sizes, export counts, gameMain RVA 0x9e20) as verified
facts. Drop the stale 3,369,104-byte gamekdm figure in favor of the
consistent 3.19 MB. Genuine format/behavior UNVERIFIED markers (undecoded
.arc/.ifs/.ttc/etc. formats, Kinect dispatch/sync) are preserved.
2026-11-28 21:01:37 -05:00

9.1 KiB

00 - Overview and High-Level Architecture

This is the entry point to the full technical specification of DanceEvolution Arcade (official e-amusement model KDM) and of the reconstruction codebase that rebuilds its main logic DLL from static and dynamic analysis. Every claim here is cited to a real artifact. Where something could not be checked, it is marked UNVERIFIED. No copyrighted creative asset (song audio, video, lyric, or art) is reproduced; only file structure and code behavior are described.

The sibling sections (01..09, listed in the Specification map below) drill into each area. This file gives the shape of the whole thing: what the game is, the platform it runs on, the module stack, and the three "dimensions" the spec is organized around.


What DanceEvolution Arcade is

DanceEvolution Arcade (DEA) is a Konami arcade dance game driven by a Kinect sensor: the player dances in front of a depth camera and the game scores the match between the tracked body pose and the choreography. The game logic lives in gamekdm.dll, a 3.19 MB PE32 (x86) DLL whose single export is gameMain (docs/companion-inventory.md, per-module table). The export is at RVA 0x9e20 / VA 0x10009e20 (re/rvadb.json).

The build specified here is the clean KDM-2016021900 release (docs/companion-inventory.md title and "What the clean release contains"). The official artifacts ground its DEA/KDM identity without any launcher, hook, or emulator evidence: prop/eamuse-config.xml carries the e-amusement model; the clean release has no ea3-config.xml; arkkdm.dll exposes the arkKDM* API prefix; and the official file stems are arkkdm.dll and gamekdm.dll (contents/prop/eamuse-config.xml, contents/modules/arkkdm.dll, contents/modules/gamekdm.dll; docs/companion-inventory.md per-module table).


Platform

DEA targets Win32 x86 and is built on Konami's AVS2 middleware stack:

  • AVS2 core is libavs-win32.dll (505.14 KB in the clean-release listing), the root of the official nine-module dependency graph. libacio.dll and arkkdmtest.dll are the other shipped roots; neither imports another shipped module (docs/companion-inventory.md, per-module table and dependency DAG).
  • ea3 (e-amusement v3) extension is libavs-win32-ea3.dll (364.14 KB), importing libavs-win32.dll (docs/companion-inventory.md, dependency DAG).
  • ARK engine is arkkdm.dll plus the AFP asset/graphics pipeline (libafp-win32.dll, libafputils-win32.dll). gamekdm.dll imports libavs-win32.dll, libafputils-win32.dll, and libafp-win32.dll (inventory gamekdm.dll row).
  • Kinect v1 is reached through Kinect10.dll, an external Microsoft Kinect-for-Windows NUI v1 runtime dependency named by gamekdm.dll's import table. It is not shipped in contents/modules/ and is never a game module (docs/companion-inventory.md, "External (non-shipped) dependencies").

Boot sequence (official arkkdm.dll entry)

The AVS2 runtime enters the official game DLL arkkdm.dll through its standard exports dll_entry_init and dll_entry_main. dll_entry_main internally loads gamekdm.dll (with an arkkdmtest.dll test-build fallback), resolves gameMain, and calls gameMain(hInstance) using arkkdm.dll's captured HINSTANCE (docs/companion-inventory.md, "Boot/entry into the game"). The entry ordinals are 253/254, with RVAs 0x767c0/0x767b0; gameMain is at RVA 0x9e20 / VA 0x10009e20 (re/rvadb.json).


Module stack

The clean release ships exactly 9 Konami modules under contents/modules/ (docs/companion-inventory.md, "What the clean release contains"). Their shipped-module dependency DAG is acyclic and stacks like this:

   game logic       gamekdm.dll (gameMain)
                     |       |       |
                 libavs  libafp  libafputils
                                  |       |
                                  +-- libafp

   game entry       arkkdm.dll
                 /      |       |       |       \
             libavs  ea3.dll  ess.dll  libacio  libafp
                        |      /  |
                        +-----+   +-- libavs

   test harness      arkkdmtest.dll (root)
   shipped roots     libavs-win32.dll, libacio.dll, arkkdmtest.dll

   external only     Kinect10.dll (Microsoft NUI v1 runtime; not shipped)

The complete official set is libavs-win32.dll, libavs-win32-ea3.dll, libafp-win32.dll, libafputils-win32.dll, ess.dll, libacio.dll, arkkdm.dll, arkkdmtest.dll, and gamekdm.dll (inventory "IN-SCOPE reconstruct set"). Key shipped edges are gamekdm.dll -> libavs-win32.dll, libafputils-win32.dll, libafp-win32.dll; arkkdm.dll -> libavs-win32.dll, libavs-win32-ea3.dll, ess.dll, libacio.dll, libafp-win32.dll; libafp-win32.dll -> libavs-win32.dll; libavs-win32-ea3.dll -> libavs-win32.dll. Kinect10.dll is shown only as gamekdm.dll's external Microsoft runtime import and is excluded from the nine-node graph (docs/companion-inventory.md, dependency DAG).


The three dimensions of this spec

The specification is deliberately split along three axes. Every sibling section belongs to one of them. Keeping them separate prevents the common RE-doc failure of mixing "how the shipped game behaves" with "what we rebuilt."

  1. The GAME - observable product behavior and platform: what DEA does for a player, the Kinect data path, the AVS2/ARK/ea3 middleware it rides on, the official AVS2 entry path, and the asset formats. Grounded in the clean release's binaries and contents/{data,arkdata,prop} trees (docs/companion-inventory.md).

  2. The ORIGINAL binary codebase - the shipped DLLs as reverse-engineering subjects: the nine-module inventory and dependency DAG, the gamekdm function/global map (9,728 functions in re/rvadb.json), and the subsystem breakdown decoded from Ghidra. This is "what Konami shipped," read back from disassembly.

  3. The RECONSTRUCTION codebase - the hand-reviewed C/C++ under src/ and include/ that rebuilds gamekdm.dll behavior, plus the RE workflow, tool setup, and build/cutover process that produces it. orig/ holds the owner's legally-possessed binary inputs and is never committed (docs/provenance.md).

Specification map

Sibling sections (relative links; files 01..09 are the planned companions to this overview). Each is tagged with its primary dimension:

# Section Dimension
00 Overview and high-level architecture (this file) all three
01 Runtime environment and official AVS2 startup GAME
02 Official module inventory and dependency DAG ORIGINAL
03 Kinect / NUI data pipeline GAME
04 Skeleton validity gate and menu hand-cursor GAME / ORIGINAL
05 Data and configuration formats GAME
06 gamekdm subsystems ORIGINAL
07 Official companion DLL API surfaces ORIGINAL
08 ABI, calling conventions, and struct layouts ORIGINAL / RECONSTRUCTION
09 Reconstruction codebase and workflow RECONSTRUCTION

The companion documents these sections build on are already in the repo: docs/companion-inventory.md (feeds 02), docs/provenance.md (feeds 08), docs/pipeline.md, docs/cutover.md, docs/reconstruction-loop.md, and docs/conventions.md (feed 08/09), plus game-internals.md (feeds 03/04).


Reconstruction codebase at a glance

The reconstruction lives under src/ (subdirs: entry, game, gs, hybrid, mm, movie, particle, platform, pure, render, ui, util) and include/ (abi, gk), built via the top-level CMakeLists.txt. The parts already fleshed out from RE are concrete: src/game/ holds validity.cpp, box_distance.cpp, and nui_elevation.cpp, the exact gate math decoded from FUN_10018570, FUN_100e4140/FUN_101ab6d0, and the validity box DAT_103d3230 (game-internals.md §2, §6). The hand-reviewed source in src//include/ is authoritative; decompiler dumps and the orig/ binary are working inputs only and stay out of git (docs/provenance.md).

The RE spine is re/rvadb.json: 9,728 function records (function_count = 9728), each a record with rva, name, callers/callees, globals_touched, and a status field (e.g. FUN_10018570, the validity transform, is present in the DB). This is the index every ORIGINAL-dimension section cites against.


How to read this spec

  • A claim without a citation is a bug. Report it.
  • An official contents/ artifact path, a clean-release binary result, or a repository evidence record explicitly marked with its verification state is an acceptable evidence form.
  • GAME-DIR for this build is the owner's local copy of KDM-2016021900 (.../KDM-2016021900/contents); its absolute path is redacted in committed docs per docs/companion-inventory.md.
  • Creative assets are described structurally only; no song media or art is reproduced anywhere in this spec.