Samurai Warriors 2 - Empire cover artAI generated
PS2PlayStation 2

Samurai Warriors 2 - Empire

AI contributions: Welcome

0

Code

55.08%
decompiled of 3,166,376 bytes
  • 6.38% matching
  • 48.70% partially matching
  • 44.92% to do

Data

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

Functions

23.78%
matching of 10,632 functions
  • 2,528 matching
  • 8,104 to do

code +0.31% · data ±0% ·

gen6_180000.c: 30 generated functions with 64-bit GS packet fields

Areas

Empire mode Code: 8.75% matching, 71.30% partially matching (743,828 bytes)Empire mode · 80.05%emp_cq_main.c Code: 8.38% matching, 91.62% 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: 8.63% matching, 80.74% partially matching (73,256 bytes) Estimated range 0x32D7E0-0x33F608; 310 function(s) decompiledemp_ev_preda…89.36%emp_ev_still.c Code: 10.54% matching, 58.27% partially matching (69,536 bytes) Estimated range 0x31C840-0x32D7E0; 337 function(s) decompiledemp_ev_still…68.80%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: 3.73% matching, 36.80% partially matching (53,256 bytes) Estimated range 0x382E28-0x38FE30; 92 function(s) decompiledemp_free_s…40.53%emp_zuroku.c Code: 3.88% matching, 67.14% 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: 5.42% matching, 43.68% partially matching (33,928 bytes) Estimated range 0x3958A8-0x39DD30; 99 function(s) decompiledemp_zur…49.10%StationEmp.c Code: 3.47% matching, 53.51% partially matching (33,176 bytes) Estimated range 0x3ACA98-0x3B4C30; 71 function(s) decompiledStationE…56.98%emp_war_wllt.c Code: 14.81% matching, 76.53% partially matching (30,144 bytes) Estimated range 0x3E6768-0x3EDD28; 158 function(s) decompiledemp_war_…91.33%emp_war_tl.c Code: 15.05% matching, 58.78% partially matching (23,600 bytes) Estimated range 0x3DEC78-0x3E48A8; 125 function(s) decompiledemp_w…73.83%emp_ending.c Code: 9.53% matching, 79.71% partially matching (17,464 bytes) Estimated range 0x3B4C30-0x3B9068; 68 function(s) decompiledemp…89.23%emp_ending_nenpyou.c Code: 6.67% matching, 63.07% partially matching (15,120 bytes) Estimated range 0x3B9068-0x3BCB78; 40 function(s) decompiledemp…69.74%emp_zuroku_bushou.c Code: 0.61% matching, 46.21% partially matching (10,456 bytes) Estimated range 0x392FD0-0x3958A8; 10 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, 37.61% partially matching (2,680 bytes) Estimated range 0x3E48A8-0x3E5320; 5 function(s) decompiledScenes Code: 10.41% matching, 54.55% partially matching (699,768 bytes)Scenes · 64.96%StateEdit.c Code: 7.33% matching, 59.50% partially matching (85,952 bytes) Estimated range 0x36DE68-0x382E28; 308 function(s) decompiledStateEdit.c66.84%SceneTitle.c Code: 0.75% matching, 23.02% partially matching (80,632 bytes) Estimated range 0x268448-0x27BF40; 92 function(s) decompiledSceneTitle…23.77%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, 18.77% partially matching (75,264 bytes) Estimated range 0x2877B8-0x299DB8; 26 function(s) decompiledScenePreB…19.81%StateConquest.c Code: 14.49% matching, 85.48% partially matching (56,408 bytes) Estimated range 0x2F1798-0x2FF3F0; 401 function(s) decompiledStateCon…99.98%StateShop.c Code: 30.51% matching, 22.81% partially matching (49,352 bytes) Estimated range 0x299DB8-0x2A5E80; 64 function(s) decompiledStateSh…53.31%StateStartUp.c Code: 22.06% matching, 63.79% partially matching (48,448 bytes) Estimated range 0x362128-0x36DE68; 273 function(s) decompiledStateSt…85.85%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: 15.74% matching, 57.68% partially matching (36,080 bytes) Estimated range 0x3EDD28-0x3F6A18; 170 function(s) decompiledSceneTu…73.43%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: 22.96% matching, 49.21% partially matching (23,768 bytes) Estimated range 0x1E10A0-0x1E6D78; 39 function(s) decompiledSta…72.16%SceneLoading.c Code: 5.12% matching, 36.02% partially matching (23,456 bytes) Estimated range 0x2EBBF8-0x2F1798; 21 function(s) decompiledSce…41.13%StateDemo.c Code: 5.75% matching, 60.57% partially matching (20,024 bytes) Estimated range 0x1BE248-0x1C3080; 75 function(s) decompiledSta…66.32%StateSetupEmpMogi.c Code: 15.40% matching, 60.26% 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: 3.54% matching, 37.21% partially matching (578,424 bytes)Interface and system · 40.75%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, 18.01% partially matching (99,568 bytes) Estimated range 0x24FF58-0x268448; 101 function(s) decompiledSecretSorts.c19.67%JapanMap.c Code: 9.61% matching, 52.71% partially matching (60,776 bytes) Estimated range 0x39DD30-0x3ACA98; 300 function(s) decompiledJapanMap.c62.31%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, 60.70% partially matching (35,400 bytes) Estimated range 0x234490-0x23CED8; 136 function(s) decompiledSeMan…68.66%Battlefield Code: 3.11% matching, 38.73% partially matching (516,868 bytes)Battlefield · 41.84%StgTexture.c Code: 2.00% matching, 23.37% partially matching (76,040 bytes) Estimated range 0x1EF238-0x201B40; 105 function(s) decompiledStgTexture.c25.37%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, 6.50% partially matching (54,952 bytes) Estimated range 0x2DE550-0x2EBBF8; 29 function(s) decompiledRelayCamera…6.67%ObjAction.c Code: 2.85% matching, 70.22% partially matching (47,224 bytes) Estimated range 0x27BF40-0x2877B8; 93 function(s) decompiledObjAction…73.06%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.33% matching, 43.44% partially matching (41,840 bytes) Estimated range 0x22A120-0x234490; 62 function(s) decompiledDistant…45.77%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, 66.62% partially matching (28,480 bytes) Estimated range 0x1890D0-0x190010; 103 function(s) decompiledFiel…76.39%StgAmbient.c Code: 0.37% matching, 10.01% partially matching (26,048 bytes) Estimated range 0x2132D8-0x219898; 19 function(s) decompiledStgAmbi…10.38%MiniMap.c Code: 0.10% matching, 10.55% partially matching (16,080 bytes) Estimated range 0x20F408-0x2132D8; 11 function(s) decompiledEvents and scripts Code: 5.02% matching, 37.68% partially matching (378,408 bytes)Events and scripts · 42.70%BriefingCmnParts.c Code: 1.84% matching, 17.28% partially matching (116,392 bytes) Estimated range 0x2C1EA8-0x2DE550; 123 function(s) decompiledBriefingCmnPar…19.12%ev_config.c Code: 4.50% matching, 31.89% partially matching (55,496 bytes) Estimated range 0x201B40-0x20F408; 125 function(s) decompiledev_config.c36.38%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, 42.02% partially matching (34,368 bytes) Estimated range 0x23CED8-0x245518; 49 function(s) decompiledsc_sys…42.85%sc_ctrl.c Code: 6.75% matching, 48.41% partially matching (31,784 bytes) Estimated range 0x1814A8-0x1890D0; 80 function(s) decompiledsc_ctrl…55.16%SeasonAnime.c Code: 17.71% matching, 49.48% partially matching (31,624 bytes) Estimated range 0x3D70F0-0x3DEC78; 167 function(s) decompiledSeasonA…67.19%ev_message.c Code: 4.01% matching, 25.83% partially matching (26,760 bytes) Estimated range 0x1DA818-0x1E10A0; 42 function(s) decompiledev_mess…29.84%MovieTelop.c Code: 2.27% matching, 29.24% partially matching (24,624 bytes) Estimated range 0x1E9208-0x1EF238; 37 function(s) decompiledMovieTe…31.51%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: 2.05% matching, 27.19% partially matching (246,168 bytes)Models and motion · 29.24%HorseModel.c Code: 2.60% matching, 24.13% partially matching (95,952 bytes) Estimated range 0x2AA7D8-0x2C1EA8; 135 function(s) decompiledHorseModel.c26.73%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.73% matching, 22.06% partially matching (43,584 bytes) Estimated range 0x245518-0x24FF58; 54 function(s) decompiledItemModel.c22.80%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: 1.19% matching, 22.24% partially matching (18,776 bytes) Estimated range 0x2A5E80-0x2AA7D8; 24 function(s) decompiledFlagM…23.43%(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.41%54.55%—699,768
Empire mode (18)8.75%71.30%—743,828
Battlefield (12)3.11%38.73%—516,868
Models and motion (5)2.05%27.19%—246,168
Events and scripts (9)5.02%37.68%—378,408
Interface and system (6)3.54%37.21%—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 (302)

WhenDecompiledMatchingDataCommit
55.08% +0.31%6.38%100%653c685 gen6_180000.c: 30 generated functions with 64-bit GS packet fields
54.78% +0.59%6.38% +0.01%100%f6215d5 gen4/gen5_180000.c: 46 more generated functions (hex float arguments, goto, pointer loads through PS2_PTR)
54.18% +0.66%6.36% +0.02%100%4687504 gen3_180000.c: 48 generated functions with float prototypes, size-checked
53.52% +1.05%6.35% +0.03%100%019c62c gen2_180000.c: 106 generated functions following the port rules (pointer locals, arrays), size-checked
52.47%6.32% +0.03%100%a596c02 Resolve every ARG_UNKNOWN from the disassembly; fix swapped and missing call arguments
52.47%6.29% +1.57%100%434cdd3 Restore matching tags lost while the matcher could not find sw2e_draw.h
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

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)