Samurai Warriors 2 - Empire cover artAI generated
PS2PlayStation 2

Samurai Warriors 2 - Empire

AI contributions: Welcome

0

Code

62.65%
decompiled of 3,166,376 bytes
  • 6.64% matching
  • 56.01% partially matching
  • 37.35% to do

Data

100%
decompiled of 2,155,890,688 bytes
  • 2,155,890,688 done
  • 0 to do

Functions

24.35%
matching of 10,639 functions
  • 2,591 matching
  • 8,048 to do

code +0.40% · data ±0% ·

PC port: through Empire mode's set-up screens to the forces screen

Areas

Empire mode Code: 9.17% matching, 76.54% partially matching (743,860 bytes)Empire mode · 85.71%emp_cq_main.c Code: 8.77% matching, 91.23% partially matching (123,004 bytes) Estimated range 0x2FF3F0-0x31C840; 421 function(s) decompiledemp_cq_main.c100%emp_FldBase.c Code: 15.19% matching, 80.03% partially matching (97,112 bytes) Estimated range 0x33F608-0x357160; 557 function(s) decompiledemp_FldBase.c95.22%emp_ev_predata.c Code: 8.85% matching, 82.78% partially matching (73,256 bytes) Estimated range 0x32D7E0-0x33F608; 319 function(s) decompiledemp_ev_preda…91.62%emp_ev_still.c Code: 11.23% matching, 58.46% partially matching (69,536 bytes) Estimated range 0x31C840-0x32D7E0; 338 function(s) decompiledemp_ev_still…69.68%emp_ev_station.c Code: 2.22% matching, 82.56% partially matching (60,472 bytes) Estimated range 0x3C84B8-0x3D70F0; 209 function(s) decompiledemp_ev_stati…84.78%emp_free_setup.c Code: 4.15% matching, 66.39% partially matching (53,256 bytes) Estimated range 0x382E28-0x38FE30; 120 function(s) decompiledemp_free_s…70.53%emp_zuroku.c Code: 3.88% matching, 74.59% partially matching (47,424 bytes) Estimated range 0x3BCB78-0x3C84B8; 197 function(s) decompiledemp_zuro…78.47%emp_war_fix.c Code: 18.20% matching, 81.72% partially matching (45,000 bytes) Estimated range 0x357160-0x362128; 341 function(s) decompiledemp_war_fix…99.93%emp_zuroku_graph.c Code: 6.13% matching, 58.87% partially matching (33,928 bytes) Estimated range 0x3958A8-0x39DD30; 110 function(s) decompiledemp_zur…65.00%StationEmp.c Code: 4.24% matching, 71.11% partially matching (33,176 bytes) Estimated range 0x3ACA98-0x3B4C30; 85 function(s) decompiledStationE…75.36%emp_war_wllt.c Code: 14.81% matching, 80.79% partially matching (30,144 bytes) Estimated range 0x3E6768-0x3EDD28; 159 function(s) decompiledemp_war_…95.59%emp_war_tl.c Code: 15.05% matching, 64.61% partially matching (23,600 bytes) Estimated range 0x3DEC78-0x3E48A8; 127 function(s) decompiledemp_w…79.66%emp_ending.c Code: 9.89% matching, 75.58% partially matching (17,464 bytes) Estimated range 0x3B4C30-0x3B9068; 68 function(s) decompiledemp…85.48%emp_ending_nenpyou.c Code: 6.67% matching, 61.46% partially matching (15,120 bytes) Estimated range 0x3B9068-0x3BCB78; 42 function(s) decompiledemp…68.12%emp_zuroku_bushou.c Code: 0.61% matching, 87.22% partially matching (10,456 bytes) Estimated range 0x392FD0-0x3958A8; 13 function(s) decompiledemp_sc.c Code: 3.70% matching, 42.53% partially matching (5,192 bytes) Estimated range 0x3E5320-0x3E6768; 13 function(s) decompiledemp_cq_text.c Code: 9.47% matching, 36.84% partially matching (3,040 bytes) Estimated range 0x38FE30-0x390A10; 7 function(s) decompiledemp_zuroku_movie.c Code: 1.19% matching, 96.72% partially matching (2,680 bytes) Estimated range 0x3E48A8-0x3E5320; 6 function(s) decompiledScenes Code: 10.81% matching, 62.95% partially matching (699,768 bytes)Scenes · 73.76%StateEdit.c Code: 7.95% matching, 72.17% partially matching (85,952 bytes) Estimated range 0x36DE68-0x382E28; 335 function(s) decompiledStateEdit.c80.11%SceneTitle.c Code: 0.75% matching, 47.09% partially matching (80,632 bytes) Estimated range 0x268448-0x27BF40; 128 function(s) decompiledSceneTitle…47.85%StateInitialize.c Code: 3.04% matching, 94.86% partially matching (76,760 bytes) Estimated range 0x154290-0x166E68; 108 function(s) decompiledStateInit…97.91%ScenePreBattle.c Code: 1.04% matching, 31.69% partially matching (75,264 bytes) Estimated range 0x2877B8-0x299DB8; 39 function(s) decompiledScenePreB…32.73%StateConquest.c Code: 14.86% matching, 85.12% partially matching (56,408 bytes) Estimated range 0x2F1798-0x2FF3F0; 401 function(s) decompiledStateCon…99.98%StateShop.c Code: 30.38% matching, 33.51% partially matching (49,352 bytes) Estimated range 0x299DB8-0x2A5E80; 78 function(s) decompiledStateSh…63.89%StateStartUp.c Code: 23.71% matching, 63.90% partially matching (48,448 bytes) Estimated range 0x362128-0x36DE68; 275 function(s) decompiledStateSt…87.61%StateBattleInitialize.c Code: 7.35% matching, 63.78% partially matching (36,800 bytes) Estimated range 0x1CDFC8-0x1D6F88; 91 function(s) decompiledStateBa…71.13%SceneTutorial.c Code: 18.18% matching, 70.59% partially matching (36,080 bytes) Estimated range 0x3EDD28-0x3F6A18; 180 function(s) decompiledSceneTu…88.77%StatePreBattle.c Code: 3.87% matching, 77.04% partially matching (35,944 bytes) Estimated range 0x2214B8-0x22A120; 85 function(s) decompiledStateP…80.91%StatePostBattle.c Code: 1.31% matching, 90.08% partially matching (31,776 bytes) Estimated range 0x219898-0x2214B8; 47 function(s) decompiledStateP…91.39%StateConfig.c Code: 27.53% matching, 46.38% partially matching (23,768 bytes) Estimated range 0x1E10A0-0x1E6D78; 42 function(s) decompiledSta…73.91%SceneLoading.c Code: 5.12% matching, 51.91% partially matching (23,456 bytes) Estimated range 0x2EBBF8-0x2F1798; 33 function(s) decompiledSce…57.03%StateDemo.c Code: 5.75% matching, 62.64% partially matching (20,024 bytes) Estimated range 0x1BE248-0x1C3080; 77 function(s) decompiledSta…68.40%StateSetupEmpMogi.c Code: 15.40% matching, 68.71% partially matching (9,664 bytes) Estimated range 0x390A10-0x392FD0; 36 function(s) decompiledSta…84.11%StateTreasures.c Code: 92.88% matching, 7.12% partially matching (9,440 bytes) Estimated range 0x1E6D78-0x1E9208; 24 function(s) decompiledSta…100%Interface and system Code: 3.43% matching, 42.56% partially matching (578,424 bytes)Interface and system · 45.98%font.c Code: 1.74% matching, 35.11% partially matching (193,992 bytes) Estimated range 0x124CC8-0x154290; 145 function(s) decompiledfont.c36.85%file.c Code: 3.92% matching, 22.90% partially matching (141,496 bytes) Estimated range 0x102410-0x124CC8; 233 function(s) decompiledfile.c26.82%SecretSorts.c Code: 1.75% matching, 27.48% partially matching (99,568 bytes) Estimated range 0x24FF58-0x268448; 114 function(s) decompiledSecretSorts.c29.23%JapanMap.c Code: 8.40% matching, 79.00% partially matching (60,776 bytes) Estimated range 0x39DD30-0x3ACA98; 327 function(s) decompiledJapanMap.c87.40%cmnparts.c Code: 2.61% matching, 91.69% partially matching (47,192 bytes) Estimated range 0x1A1BF0-0x1AD448; 110 function(s) decompiledcmnpart…94.30%SeManager.c Code: 7.95% matching, 76.29% partially matching (35,400 bytes) Estimated range 0x234490-0x23CED8; 151 function(s) decompiledSeMan…84.25%Battlefield Code: 3.58% matching, 43.19% partially matching (516,868 bytes)Battlefield · 46.77%StgTexture.c Code: 2.00% matching, 35.91% partially matching (76,040 bytes) Estimated range 0x1EF238-0x201B40; 124 function(s) decompiledStgTexture.c37.91%BgManager.c Code: 5.12% matching, 13.76% partially matching (59,024 bytes) Estimated range 0x3F6A18-0x4050A8; 72 function(s) decompiledBgManager.c18.89%Weapon.c Code: 3.32% matching, 52.62% partially matching (55,936 bytes) Estimated range 0x166E68-0x1748E8; 87 function(s) decompiledWeapon.c55.94%RelayCamera.c Code: 0.17% matching, 8.68% partially matching (54,952 bytes) Estimated range 0x2DE550-0x2EBBF8; 37 function(s) decompiledRelayCamera…8.85%ObjAction.c Code: 3.05% matching, 72.56% partially matching (47,224 bytes) Estimated range 0x27BF40-0x2877B8; 99 function(s) decompiledObjAction…75.61%effect.c Code: 8.91% matching, 42.65% partially matching (44,872 bytes) Estimated range 0x1C3080-0x1CDFC8; 100 function(s) decompiledeffect.c51.56%DistantView.c Code: 2.37% matching, 54.69% partially matching (41,840 bytes) Estimated range 0x22A120-0x234490; 79 function(s) decompiledDistant…57.07%Bullet.c Code: 0.61% matching, 99.39% partially matching (36,580 bytes) Estimated range 0x1AD448-0x1B56D8; 34 function(s) decompiledBullet…100%Stage.c Code: 8.16% matching, 46.20% partially matching (29,792 bytes) Estimated range 0x190010-0x197470; 126 function(s) decompiledStag…54.36%Field.c Code: 9.94% matching, 61.17% partially matching (28,480 bytes) Estimated range 0x1890D0-0x190010; 102 function(s) decompiledFiel…71.11%StgAmbient.c Code: 0.37% matching, 19.18% partially matching (26,048 bytes) Estimated range 0x2132D8-0x219898; 25 function(s) decompiledStgAmbi…19.55%MiniMap.c Code: 0.10% matching, 29.65% partially matching (16,080 bytes) Estimated range 0x20F408-0x2132D8; 17 function(s) decompiledEvents and scripts Code: 5.18% matching, 53.51% partially matching (378,408 bytes)Events and scripts · 58.69%BriefingCmnParts.c Code: 2.17% matching, 41.27% partially matching (116,392 bytes) Estimated range 0x2C1EA8-0x2DE550; 183 function(s) decompiledBriefingCmnPar…43.44%ev_config.c Code: 5.13% matching, 38.67% partially matching (55,496 bytes) Estimated range 0x201B40-0x20F408; 135 function(s) decompiledev_config.c43.80%sc_ubase.c Code: 8.43% matching, 91.36% partially matching (42,880 bytes) Estimated range 0x197470-0x1A1BF0; 150 function(s) decompiledsc_ubase…99.79%sc_sysmsg.c Code: 0.84% matching, 58.43% partially matching (34,368 bytes) Estimated range 0x23CED8-0x245518; 56 function(s) decompiledsc_sys…59.26%sc_ctrl.c Code: 6.75% matching, 66.49% partially matching (31,784 bytes) Estimated range 0x1814A8-0x1890D0; 92 function(s) decompiledsc_ctrl…73.23%SeasonAnime.c Code: 18.06% matching, 51.96% partially matching (31,624 bytes) Estimated range 0x3D70F0-0x3DEC78; 169 function(s) decompiledSeasonA…70.02%ev_message.c Code: 4.01% matching, 43.48% partially matching (26,760 bytes) Estimated range 0x1DA818-0x1E10A0; 56 function(s) decompiledev_mess…47.49%MovieTelop.c Code: 1.36% matching, 64.21% partially matching (24,624 bytes) Estimated range 0x1E9208-0x1EF238; 50 function(s) decompiledMovieTe…65.58%ev_main.c Code: 7.40% matching, 60.22% partially matching (14,480 bytes) Estimated range 0x1D6F88-0x1DA818; 45 function(s) decompiledGame data Code: 0.00% matching, 0.00% partially matching (0 bytes) Files on the disc, by format (data only)Game data · 0.00%Models and motion Code: 2.03% matching, 35.16% partially matching (246,168 bytes)Models and motion · 37.19%HorseModel.c Code: 2.60% matching, 31.74% partially matching (95,952 bytes) Estimated range 0x2AA7D8-0x2C1EA8; 149 function(s) decompiledHorseModel.c34.34%MotionManager.c Code: 2.21% matching, 17.31% partially matching (52,160 bytes) Estimated range 0x1748E8-0x1814A8; 58 function(s) decompiledMotionManag…19.52%ItemModel.c Code: 0.62% matching, 29.63% partially matching (43,584 bytes) Estimated range 0x245518-0x24FF58; 62 function(s) decompiledItemModel.c30.25%ModelManager.c Code: 2.42% matching, 74.65% partially matching (35,696 bytes) Estimated range 0x1B56D8-0x1BE248; 60 function(s) decompiledModel…77.07%FlagModel.c Code: 1.19% matching, 39.97% partially matching (18,776 bytes) Estimated range 0x2A5E80-0x2AA7D8; 33 function(s) decompiledFlagM…41.16%(start-up and main loop) Code: 36.92% matching, 56.50% partially matching (9,232 bytes) Runtime start-up, scene manager and main loop. Estimated range 0x100000-0x102410; 50 function(s) decompiled
All areas as a table
AreaMatchingPartially matchingDataSize (bytes)
(start-up and main loop)36.92%56.50%—9,232
Scenes (16)10.81%62.95%—699,768
Empire mode (18)9.17%76.54%—743,860
Battlefield (12)3.58%43.19%—516,868
Models and motion (5)2.03%35.16%—246,168
Events and scripts (9)5.18%53.51%—378,408
Interface and system (6)3.43%42.56%—578,424
Game data (21)0.00%0.00%100%0

History

DecompiledMatchingDataClick the chart to see the project at that commit.
0%25%50%75%100%2026-11-262026-11-28

Reports up to this one (334)

WhenDecompiledMatchingDataCommit
62.65% +0.40%6.64%100%6b60b82 PC port: through Empire mode's set-up screens to the forces screen
62.25% +0.46%6.64%100%c4c43e6 PC port: the main menu after Start and the way into Empire mode
61.79% +0.01%6.64%100%b8f571c PC port: the movie player, an MPEG-2 decoder and the IPU pictures
61.78% +0.08%6.64%100%3bff9a8 PC port: the title screen
61.69% +0.10%6.64%100%b5a0591 PC port: the first picture, the memory card message box drawn by UPP's reference renderer
61.59% +0.04%6.64%100%3587847 PC port: the first scene runs and frames are swapped to the runtime
61.55% +0.04%6.64%100%e79ec6d PC port: the start-up runs to the end and the scene manager enters the first scene
61.51% +0.01%6.64%100%040c0fb PC port, second round: the game boots on the PC up to its own start-up code
61.50%6.64% +0.07%100%0275093 Matching tags refreshed: 2,589 functions match (14 more, from the type fixes and mc_state.c)
61.50%6.57%100%f27dba5 PC port, Sony library replacements (first round): C library heap and string functions, IOP boot and module loading, CD search and read through the platform, DMA channels, libgraph start-up (PAL interl
61.50% +0.16%6.57%100%e015c2e gen25_180000.c: 19 more generated functions (an argument whose register is not written since the previous call takes that call's argument: the callee keeps it)
61.34% +0.45%6.57%100%d66ad64 gen24_180000.c: 54 more generated functions (arguments loaded from globals traced at the call sites; K&R declarations and pointer/integer declarations of other files replaced by the shared prototypes)
60.89% +0.23%6.57%100%79371f6 gen23_180000.c: 16 more generated functions (wider argument tracing at the call sites: constants built with lui/addiu, a parameter plus an offset, loads from a parameter; Ghidra's function pointers wr
60.66% +0.68%6.57%100%3558828 gen22_180000.c: 38 more generated functions (parameters a function passes on added, extra arguments its callees do not read removed, whole-expression address conversions); hand-written declarations th
59.98% +0.65%6.57%100%798dd2f Generated code: float constants are single precision (Ghidra prints them without the f, so about 47 generated functions computed in emulated double precision); 9 generated functions whose calls differ
59.34% +0.50%6.57%100%2ec87ab gen18_180000.c, gen20_180000.c: 29 more generated functions (the generator now uses the shared prototypes; candidates also include void functions with a switch, functions with more than eight paramete
58.84% -0.04%6.57% +0.13%100%d70c56e All source files use the shared prototypes (src/sw2e_protos.h, now with per-file guards and basic C types): local declarations removed and every call checked against its callee's definition. About 30
58.88% -0.25%6.44%100%a1969c1 Older generated files (gen_*.c) use the real prototypes too; 42 functions with unknown arguments or a dropped float parameter removed; wrappers 0x35DAF0/0x35DEC0/0x35DB20 pass their arguments on, 0x19
59.13%6.44%100%1a1db10 func_0019FB00 returns u32 (callers do not mask it); func_002D8240 keeps the address in a local pointer
59.13% -0.92%6.43% -0.01%100%b0b652f Generated files use real prototypes (src/sw2e_protos.h from tools/make_protos.py): calls fixed against the callees' definitions (146 missing arguments recovered from the machine code, extra arguments

Badges

For your README. They show the default version and update with every report.

Decompiled
[![Decompiled](https://decompilati.onl/badge/samurai-warriors-2-empire.svg)](https://decompilati.onl/projects/samurai-warriors-2-empire)
Matching
[![Matching](https://decompilati.onl/badge/samurai-warriors-2-empire/matching.svg)](https://decompilati.onl/projects/samurai-warriors-2-empire)
Data
[![Data](https://decompilati.onl/badge/samurai-warriors-2-empire/data.svg)](https://decompilati.onl/projects/samurai-warriors-2-empire)
Functions
[![Functions](https://decompilati.onl/badge/samurai-warriors-2-empire/functions.svg)](https://decompilati.onl/projects/samurai-warriors-2-empire)