Samurai Warriors 2 - Empire cover artAI generated
PS2PlayStation 2

Samurai Warriors 2 - Empire

AI contributions: Welcome

0

Code

59.94%
decompiled of 3,166,376 bytes
  • 6.45% matching
  • 53.49% partially matching
  • 40.06% to do

Data

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

Functions

23.83%
matching of 10,632 functions
  • 2,534 matching
  • 8,098 to do

code +0.16% · data ±0% ·

gen16_180000.c: 6 generated functions

Areas

Empire mode Code: 8.75% matching, 74.61% partially matching (743,828 bytes)Empire mode · 83.36%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, 81.98% partially matching (73,256 bytes) Estimated range 0x32D7E0-0x33F608; 315 function(s) decompiledemp_ev_preda…90.61%emp_ev_still.c Code: 10.54% matching, 61.08% partially matching (69,536 bytes) Estimated range 0x31C840-0x32D7E0; 342 function(s) decompiledemp_ev_still…71.62%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, 43.06% partially matching (53,256 bytes) Estimated range 0x382E28-0x38FE30; 96 function(s) decompiledemp_free_s…46.79%emp_zuroku.c Code: 3.88% matching, 73.54% partially matching (47,424 bytes) Estimated range 0x3BCB78-0x3C84B8; 196 function(s) decompiledemp_zuro…77.42%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, 58.21% partially matching (33,928 bytes) Estimated range 0x3958A8-0x39DD30; 108 function(s) decompiledemp_zur…63.63%StationEmp.c Code: 3.47% matching, 61.71% partially matching (33,176 bytes) Estimated range 0x3ACA98-0x3B4C30; 78 function(s) decompiledStationE…65.18%emp_war_wllt.c Code: 14.81% matching, 81.20% partially matching (30,144 bytes) Estimated range 0x3E6768-0x3EDD28; 160 function(s) decompiledemp_war_…96.01%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.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, 57.25% partially matching (15,120 bytes) Estimated range 0x3B9068-0x3BCB78; 40 function(s) decompiledemp…63.92%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.41% matching, 59.80% partially matching (699,768 bytes)Scenes · 70.21%StateEdit.c Code: 7.33% matching, 68.69% partially matching (85,952 bytes) Estimated range 0x36DE68-0x382E28; 323 function(s) decompiledStateEdit.c76.03%SceneTitle.c Code: 0.75% matching, 27.60% partially matching (80,632 bytes) Estimated range 0x268448-0x27BF40; 103 function(s) decompiledSceneTitle…28.36%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, 26.85% partially matching (75,264 bytes) Estimated range 0x2877B8-0x299DB8; 36 function(s) decompiledScenePreB…27.90%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, 31.63% partially matching (49,352 bytes) Estimated range 0x299DB8-0x2A5E80; 75 function(s) decompiledStateSh…62.14%StateStartUp.c Code: 22.06% matching, 69.11% partially matching (48,448 bytes) Estimated range 0x362128-0x36DE68; 276 function(s) decompiledStateSt…91.17%StateBattleInitialize.c Code: 7.35% matching, 62.35% partially matching (36,800 bytes) Estimated range 0x1CDFC8-0x1D6F88; 91 function(s) decompiledStateBa…69.70%SceneTutorial.c Code: 15.74% matching, 73.94% partially matching (36,080 bytes) Estimated range 0x3EDD28-0x3F6A18; 180 function(s) decompiledSceneTu…89.68%StatePreBattle.c Code: 3.87% matching, 76.15% partially matching (35,944 bytes) Estimated range 0x2214B8-0x22A120; 83 function(s) decompiledStateP…80.02%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, 51.36% partially matching (23,768 bytes) Estimated range 0x1E10A0-0x1E6D78; 41 function(s) decompiledSta…74.32%SceneLoading.c Code: 5.12% matching, 47.07% partially matching (23,456 bytes) Estimated range 0x2EBBF8-0x2F1798; 23 function(s) decompiledSce…52.18%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.57% matching, 40.20% partially matching (578,424 bytes)Interface and system · 43.77%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, 23.36% partially matching (99,568 bytes) Estimated range 0x24FF58-0x268448; 110 function(s) decompiledSecretSorts.c25.02%JapanMap.c Code: 9.95% matching, 66.10% partially matching (60,776 bytes) Estimated range 0x39DD30-0x3ACA98; 318 function(s) decompiledJapanMap.c76.05%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, 71.41% partially matching (35,400 bytes) Estimated range 0x234490-0x23CED8; 148 function(s) decompiledSeMan…79.37%Battlefield Code: 3.44% matching, 41.66% partially matching (516,868 bytes)Battlefield · 45.10%StgTexture.c Code: 2.00% matching, 35.72% partially matching (76,040 bytes) Estimated range 0x1EF238-0x201B40; 123 function(s) decompiledStgTexture.c37.72%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.79% partially matching (54,952 bytes) Estimated range 0x2DE550-0x2EBBF8; 31 function(s) decompiledRelayCamera…6.97%ObjAction.c Code: 2.85% matching, 70.08% partially matching (47,224 bytes) Estimated range 0x27BF40-0x2877B8; 92 function(s) decompiledObjAction…72.93%effect.c Code: 8.06% matching, 41.18% partially matching (44,872 bytes) Estimated range 0x1C3080-0x1CDFC8; 96 function(s) decompiledeffect.c49.24%DistantView.c Code: 2.10% matching, 49.77% partially matching (41,840 bytes) Estimated range 0x22A120-0x234490; 66 function(s) decompiledDistant…51.87%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, 11.73% partially matching (26,048 bytes) Estimated range 0x2132D8-0x219898; 22 function(s) decompiledStgAmbi…12.10%MiniMap.c Code: 0.10% matching, 13.83% partially matching (16,080 bytes) Estimated range 0x20F408-0x2132D8; 14 function(s) decompiledEvents and scripts Code: 5.08% matching, 49.29% partially matching (378,408 bytes)Events and scripts · 54.37%BriefingCmnParts.c Code: 2.05% matching, 31.51% partially matching (116,392 bytes) Estimated range 0x2C1EA8-0x2DE550; 159 function(s) decompiledBriefingCmnPar…33.56%ev_config.c Code: 4.50% matching, 37.35% partially matching (55,496 bytes) Estimated range 0x201B40-0x20F408; 133 function(s) decompiledev_config.c41.85%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, 57.91% partially matching (34,368 bytes) Estimated range 0x23CED8-0x245518; 55 function(s) decompiledsc_sys…58.75%sc_ctrl.c Code: 6.75% matching, 62.21% partially matching (31,784 bytes) Estimated range 0x1814A8-0x1890D0; 88 function(s) decompiledsc_ctrl…68.95%SeasonAnime.c Code: 17.71% matching, 50.80% partially matching (31,624 bytes) Estimated range 0x3D70F0-0x3DEC78; 168 function(s) decompiledSeasonA…68.50%ev_message.c Code: 4.01% matching, 49.06% partially matching (26,760 bytes) Estimated range 0x1DA818-0x1E10A0; 58 function(s) decompiledev_mess…53.06%MovieTelop.c Code: 2.27% matching, 53.82% partially matching (24,624 bytes) Estimated range 0x1E9208-0x1EF238; 49 function(s) decompiledMovieTe…56.09%ev_main.c Code: 7.40% matching, 54.03% partially matching (14,480 bytes) Estimated range 0x1D6F88-0x1DA818; 43 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.06% matching, 32.78% partially matching (246,168 bytes)Models and motion · 34.84%HorseModel.c Code: 2.60% matching, 30.94% partially matching (95,952 bytes) Estimated range 0x2AA7D8-0x2C1EA8; 148 function(s) decompiledHorseModel.c33.54%MotionManager.c Code: 2.33% matching, 11.42% partially matching (52,160 bytes) Estimated range 0x1748E8-0x1814A8; 42 function(s) decompiledMotionManag…13.75%ItemModel.c Code: 0.62% matching, 26.43% partially matching (43,584 bytes) Estimated range 0x245518-0x24FF58; 60 function(s) decompiledItemModel.c27.06%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, 36.64% partially matching (18,776 bytes) Estimated range 0x2A5E80-0x2AA7D8; 28 function(s) decompiledFlagM…37.84%(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%59.80%—699,768
Empire mode (18)8.75%74.61%—743,828
Battlefield (12)3.44%41.66%—516,868
Models and motion (5)2.06%32.78%—246,168
Events and scripts (9)5.08%49.29%—378,408
Interface and system (6)3.57%40.20%—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 (313)

WhenDecompiledMatchingDataCommit
59.94% +0.16%6.45%100%5b5c98e gen16_180000.c: 6 generated functions
59.78% -0.09%6.45%100%14f610d Generated files: remove 5 functions passing integer values to float parameters
59.87% +0.27%6.45%100%bef09a8 gen15_180000.c: 17 generated functions (callers kept when a callee's arity is wrong)
59.60% +0.29%6.45%100%41cc043 gen13_170000.c, gen14_180000.c: 32 generated functions (stored addresses read and written as ps2ptr)
59.31% +0.42%6.44%100%5417db0 gen12_180000.c: 17 generated functions (pointer sign conversions cast)
58.90% +1.70%6.44% +0.01%100%b26555d gen11_180000.c: 127 generated functions (pointer and PS2 address conversions repaired in the port's form)
57.20% +1.18%6.44%100%a32b02e gen10_180000.c: 90 generated functions (size within 25 %, calls and return values checked against the machine code)
56.01% +0.29%6.44% +0.05%100%811eb8f gen9_180000.c: 18 generated functions (scratchpad variables read through their address); remove 24 generated functions with lost return values or arguments
55.72% -0.28%6.39%100%8ab9abb Generated files: remove 13 functions whose calls dropped stack or pass-through arguments
56.01% +0.85%6.39% +0.01%100%5ee81c1 gen8_180000.c: 49 generated functions (integer offsets index globals, PS2 addresses converted at use)
55.16% +0.07%6.38%100%e1e2b4f gen7_180000.c: 7 generated functions using pointer tables
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

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)