Samurai Warriors 2 - Empire cover artAI generated
PS2PlayStation 2

Samurai Warriors 2 - Empire

AI contributions: Welcome

0

Code

52.47%
decompiled of 3,166,376 bytes
  • 4.71% matching
  • 47.76% partially matching
  • 47.53% to do

Data

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

Functions

17.91%
matching of 10,632 functions
  • 1,904 matching
  • 8,728 to do

code ±0% · data ±0% ·

sw2e_draw.h: shared drawing prototypes; complete stack arguments dropped by Ghidra (ARG_UNKNOWN where not yet traced)

Areas

Empire mode Code: 5.14% matching, 70.00% partially matching (743,828 bytes)Empire mode · 75.13%emp_cq_main.c Code: 0.05% matching, 99.95% partially matching (122,972 bytes) Estimated range 0x2FF3F0-0x31C840; 419 function(s) decompiledemp_cq_main.c100%emp_FldBase.c Code: 14.17% matching, 79.78% partially matching (97,112 bytes) Estimated range 0x33F608-0x357160; 555 function(s) decompiledemp_FldBase.c93.95%emp_ev_predata.c Code: 7.14% matching, 73.14% partially matching (73,256 bytes) Estimated range 0x32D7E0-0x33F608; 304 function(s) decompiledemp_ev_preda…80.28%emp_ev_still.c Code: 8.84% matching, 47.48% partially matching (69,536 bytes) Estimated range 0x31C840-0x32D7E0; 316 function(s) decompiledemp_ev_still…56.32%emp_ev_station.c Code: 0.00% matching, 78.61% partially matching (60,472 bytes) Estimated range 0x3C84B8-0x3D70F0; 202 function(s) decompiledemp_ev_stati…78.61%emp_free_setup.c Code: 0.00% matching, 28.61% partially matching (53,256 bytes) Estimated range 0x382E28-0x38FE30; 74 function(s) decompiledemp_free_s…28.61%emp_zuroku.c Code: 1.79% matching, 69.23% partially matching (47,424 bytes) Estimated range 0x3BCB78-0x3C84B8; 190 function(s) decompiledemp_zuro…71.02%emp_war_fix.c Code: 17.64% matching, 82.29% partially matching (45,000 bytes) Estimated range 0x357160-0x362128; 341 function(s) decompiledemp_war_fix…99.93%emp_zuroku_graph.c Code: 0.00% matching, 39.77% partially matching (33,928 bytes) Estimated range 0x3958A8-0x39DD30; 90 function(s) decompiledemp_zur…39.77%StationEmp.c Code: 0.00% matching, 55.10% partially matching (33,176 bytes) Estimated range 0x3ACA98-0x3B4C30; 68 function(s) decompiledStationE…55.10%emp_war_wllt.c Code: 13.75% matching, 66.83% partially matching (30,144 bytes) Estimated range 0x3E6768-0x3EDD28; 149 function(s) decompiledemp_war_…80.57%emp_war_tl.c Code: 0.00% matching, 67.59% partially matching (23,600 bytes) Estimated range 0x3DEC78-0x3E48A8; 123 function(s) decompiledemp_w…67.59%emp_ending.c Code: 0.00% matching, 84.65% partially matching (17,464 bytes) Estimated range 0x3B4C30-0x3B9068; 67 function(s) decompiledemp…84.65%emp_ending_nenpyou.c Code: 0.00% matching, 59.47% partially matching (15,120 bytes) Estimated range 0x3B9068-0x3BCB78; 39 function(s) decompiledemp…59.47%emp_zuroku_bushou.c Code: 0.00% matching, 44.22% partially matching (10,456 bytes) Estimated range 0x392FD0-0x3958A8; 9 function(s) decompiledemp_sc.c Code: 0.00% matching, 46.22% partially matching (5,192 bytes) Estimated range 0x3E5320-0x3E6768; 13 function(s) decompiledemp_cq_text.c Code: 3.16% matching, 43.16% partially matching (3,040 bytes) Estimated range 0x38FE30-0x390A10; 7 function(s) decompiledemp_zuroku_movie.c Code: 0.00% matching, 38.81% partially matching (2,680 bytes) Estimated range 0x3E48A8-0x3E5320; 5 function(s) decompiledScenes Code: 8.15% matching, 54.20% partially matching (699,768 bytes)Scenes · 62.35%StateEdit.c Code: 6.94% matching, 53.53% partially matching (85,952 bytes) Estimated range 0x36DE68-0x382E28; 299 function(s) decompiledStateEdit.c60.48%SceneTitle.c Code: 0.75% matching, 22.80% partially matching (80,632 bytes) Estimated range 0x268448-0x27BF40; 90 function(s) decompiledSceneTitle…23.55%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: 0.00% matching, 17.60% partially matching (75,264 bytes) Estimated range 0x2877B8-0x299DB8; 21 function(s) decompiledScenePreB…17.60%StateConquest.c Code: 5.39% matching, 94.59% partially matching (56,408 bytes) Estimated range 0x2F1798-0x2FF3F0; 401 function(s) decompiledStateCon…99.98%StateShop.c Code: 30.28% matching, 16.58% partially matching (49,352 bytes) Estimated range 0x299DB8-0x2A5E80; 52 function(s) decompiledStateSh…46.86%StateStartUp.c Code: 22.06% matching, 57.84% partially matching (48,448 bytes) Estimated range 0x362128-0x36DE68; 269 function(s) decompiledStateSt…79.90%StateBattleInitialize.c Code: 7.35% matching, 55.51% partially matching (36,800 bytes) Estimated range 0x1CDFC8-0x1D6F88; 84 function(s) decompiledStateBa…62.86%SceneTutorial.c Code: 6.96% matching, 53.39% partially matching (36,080 bytes) Estimated range 0x3EDD28-0x3F6A18; 153 function(s) decompiledSceneTu…60.35%StatePreBattle.c Code: 3.87% matching, 74.33% partially matching (35,944 bytes) Estimated range 0x2214B8-0x22A120; 81 function(s) decompiledStateP…78.20%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: 0.00% matching, 72.16% partially matching (23,768 bytes) Estimated range 0x1E10A0-0x1E6D78; 39 function(s) decompiledSta…72.16%SceneLoading.c Code: 5.12% matching, 35.13% partially matching (23,456 bytes) Estimated range 0x2EBBF8-0x2F1798; 20 function(s) decompiledSce…40.25%StateDemo.c Code: 3.60% matching, 62.72% partially matching (20,024 bytes) Estimated range 0x1BE248-0x1C3080; 75 function(s) decompiledSta…66.32%StateSetupEmpMogi.c Code: 10.93% matching, 64.74% partially matching (9,664 bytes) Estimated range 0x390A10-0x392FD0; 34 function(s) decompiledSta…75.66%StateTreasures.c Code: 100% matching, 0.00% partially matching (9,440 bytes) Estimated range 0x1E6D78-0x1E9208; 24 function(s) decompiledSta…100%Interface and system Code: 2.80% matching, 37.57% partially matching (578,424 bytes)Interface and system · 40.37%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.66% matching, 17.29% partially matching (99,568 bytes) Estimated range 0x24FF58-0x268448; 97 function(s) decompiledSecretSorts.c18.95%JapanMap.c Code: 3.90% matching, 56.19% partially matching (60,776 bytes) Estimated range 0x39DD30-0x3ACA98; 295 function(s) decompiledJapanMap.c60.08%cmnparts.c Code: 0.92% matching, 93.39% partially matching (47,192 bytes) Estimated range 0x1A1BF0-0x1AD448; 110 function(s) decompiledcmnpart…94.30%SeManager.c Code: 7.95% matching, 60.34% partially matching (35,400 bytes) Estimated range 0x234490-0x23CED8; 135 function(s) decompiledSeMan…68.29%Battlefield Code: 2.93% matching, 37.50% partially matching (516,868 bytes)Battlefield · 40.43%StgTexture.c Code: 2.00% matching, 19.84% partially matching (76,040 bytes) Estimated range 0x1EF238-0x201B40; 99 function(s) decompiledStgTexture.c21.84%BgManager.c Code: 4.69% matching, 14.20% 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.00% matching, 3.76% partially matching (54,952 bytes) Estimated range 0x2DE550-0x2EBBF8; 19 function(s) decompiledRelayCamera…3.76%ObjAction.c Code: 1.83% matching, 71.10% partially matching (47,224 bytes) Estimated range 0x27BF40-0x2877B8; 92 function(s) decompiledObjAction…72.93%effect.c Code: 4.06% matching, 36.62% partially matching (44,872 bytes) Estimated range 0x1C3080-0x1CDFC8; 87 function(s) decompiledeffect.c40.68%DistantView.c Code: 2.10% matching, 42.72% partially matching (41,840 bytes) Estimated range 0x22A120-0x234490; 58 function(s) decompiledDistant…44.82%Bullet.c Code: 0.35% matching, 99.65% 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.78% matching, 61.33% partially matching (28,480 bytes) Estimated range 0x1890D0-0x190010; 102 function(s) decompiledFiel…71.11%StgAmbient.c Code: 0.37% matching, 7.86% partially matching (26,048 bytes) Estimated range 0x2132D8-0x219898; 17 function(s) decompiledStgAmbi…8.23%MiniMap.c Code: 0.10% matching, 7.76% partially matching (16,080 bytes) Estimated range 0x20F408-0x2132D8; 9 function(s) decompiledEvents and scripts Code: 4.05% matching, 34.62% partially matching (378,408 bytes)Events and scripts · 38.67%BriefingCmnParts.c Code: 0.80% matching, 11.19% partially matching (116,392 bytes) Estimated range 0x2C1EA8-0x2DE550; 97 function(s) decompiledBriefingCmnPar…11.99%ev_config.c Code: 4.50% matching, 29.70% partially matching (55,496 bytes) Estimated range 0x201B40-0x20F408; 119 function(s) decompiledev_config.c34.19%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, 34.99% partially matching (34,368 bytes) Estimated range 0x23CED8-0x245518; 43 function(s) decompiledsc_sys…35.82%sc_ctrl.c Code: 6.75% matching, 47.24% partially matching (31,784 bytes) Estimated range 0x1814A8-0x1890D0; 79 function(s) decompiledsc_ctrl…53.99%SeasonAnime.c Code: 10.73% matching, 56.46% partially matching (31,624 bytes) Estimated range 0x3D70F0-0x3DEC78; 167 function(s) decompiledSeasonA…67.19%ev_message.c Code: 4.01% matching, 24.51% partially matching (26,760 bytes) Estimated range 0x1DA818-0x1E10A0; 41 function(s) decompiledev_mess…28.52%MovieTelop.c Code: 1.36% matching, 19.75% partially matching (24,624 bytes) Estimated range 0x1E9208-0x1EF238; 27 function(s) decompiledMovieTe…21.12%ev_main.c Code: 7.40% matching, 41.44% partially matching (14,480 bytes) Estimated range 0x1D6F88-0x1DA818; 39 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: 1.58% matching, 26.41% partially matching (246,168 bytes)Models and motion · 27.99%HorseModel.c Code: 1.68% matching, 24.18% partially matching (95,952 bytes) Estimated range 0x2AA7D8-0x2C1EA8; 132 function(s) decompiledHorseModel.c25.86%MotionManager.c Code: 2.18% matching, 8.32% partially matching (52,160 bytes) Estimated range 0x1748E8-0x1814A8; 30 function(s) decompiledMotionManag…10.50%ItemModel.c Code: 0.62% matching, 21.18% partially matching (43,584 bytes) Estimated range 0x245518-0x24FF58; 50 function(s) decompiledItemModel.c21.81%ModelManager.c Code: 2.42% matching, 71.87% partially matching (35,696 bytes) Estimated range 0x1B56D8-0x1BE248; 59 function(s) decompiledModel…74.29%FlagModel.c Code: 0.00% matching, 13.80% partially matching (18,776 bytes) Estimated range 0x2A5E80-0x2AA7D8; 15 function(s) decompiledFlagM…13.80%(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)8.15%54.20%—699,768
Empire mode (18)5.14%70.00%—743,828
Battlefield (12)2.93%37.50%—516,868
Models and motion (5)1.58%26.41%—246,168
Events and scripts (9)4.05%34.62%—378,408
Interface and system (6)2.80%37.57%—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-27

Reports up to this one (296)

WhenDecompiledMatchingDataCommit
52.47%4.71% -1.47%100%b5fe55f sw2e_draw.h: shared drawing prototypes; complete stack arguments dropped by Ghidra (ARG_UNKNOWN where not yet traced)
52.47% -0.18%6.18%100%18f2425 gen_*.c: drop 28 generated functions that lose a return value or arguments
52.65% +4.46%6.19% +0.30%100%8fa867d gen_*.c: simple functions generated from Ghidra, kept when within 10% of the original size
48.20% +0.16%5.89%100%53eb147 window_boxes3.c: menu box set-ups by page (generated)
48.04% +0.37%5.89%100%14c614f window_boxes1/2.c: more screen box set-ups (generated)
47.67% +0.19%5.89%100%4f43d70 window_boxes1.c: screen window box set-ups (generated, widths from the disassembly)
47.48% +0.15%5.89%100%38fc4d3 troop_ai3.c mounted group steps; ui_layouts.c window boxes by page
47.33% +0.20%5.89%100%2ef31c1 troop_ai3.c: officer attack choices, guards, group moves
47.13% +0.13%5.89%100%413b66d event_test_menu.c: ending steps, titles and comments
47.00% +0.19%5.89%100%47ce3c3 event_test_menu.c: event sprites, Empire ending steps
46.81% +0.14%5.88% +0.01%100%7178fcf event_test_menu.c: event choice windows and tabs
46.67% +0.18%5.88%100%1995e72 event_test_menu.c: event list menu by officer
46.49% +0.27%5.88% +0.01%100%d64494d custom_officer_draw.c: officer creation screen drawing
46.22% +0.41%5.87% +0.02%100%b0b11ac emp_story_cond2.c: story event conditions, event runner, after-effects
45.81% +0.04%5.85% +0.01%100%0f7f04d emp_cmd_pick.c: battle command steps and kinds
45.77% +0.34%5.84% +0.03%100%2d94e9d emp_cmd_pick.c: officer choice command, battle line-ups and set-ups
45.42% +0.42%5.81% +0.02%100%5ae89ec emp_rand_events.c: scene/event starters, turn events, merchants, rumours
45.00% +0.05%5.79%100%b0b4ce2 emp_state_bits.c: event flags, province pairs, seen bits
44.95%5.79% +0.04%100%47bb5f4 emp_cmd_state.c: fix an escape in the text copy
44.95% +0.04%5.75% -0.03%100%59a60c5 emp_cmd_state.c: buffers, text copy, Empire flags

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)