Samurai Warriors 2 - Empire cover artAI generated
PS2PlayStation 2

Samurai Warriors 2 - Empire

AI contributions: Welcome

0

Code

1.52%
decompiled of 3,166,376 bytes
  • 0.16% matching
  • 1.37% partially matching
  • 98.48% to do

Data

95.15%
decompiled of 2,155,890,688 bytes
  • 2,051,296,606 done
  • 104,594,082 to do

Functions

0.50%
matching of 10,586 functions
  • 53 matching
  • 10,533 to do

code ±0% · data ±0% ·

Progress: report function counts (53 of 10,586 matching)

Areas

Empire mode Code: 0.00% matching, 0.00% partially matching (740,744 bytes)Empire mode · 0.00%emp_cq_main.c Code: 0.00% matching, 0.00% partially matching (119,888 bytes) Estimated range 0x2FF3F0-0x31C840; 0 function(s) decompiledemp_cq_main.c0.00%emp_FldBase.c Code: 0.00% matching, 0.00% partially matching (97,112 bytes) Estimated range 0x33F608-0x357160; 0 function(s) decompiledemp_FldBase.c0.00%emp_ev_predata.c Code: 0.00% matching, 0.00% partially matching (73,256 bytes) Estimated range 0x32D7E0-0x33F608; 0 function(s) decompiledemp_ev_preda…0.00%emp_ev_still.c Code: 0.00% matching, 0.00% partially matching (69,536 bytes) Estimated range 0x31C840-0x32D7E0; 0 function(s) decompiledemp_ev_still…0.00%emp_ev_station.c Code: 0.00% matching, 0.00% partially matching (60,472 bytes) Estimated range 0x3C84B8-0x3D70F0; 0 function(s) decompiledemp_ev_stati…0.00%emp_free_setup.c Code: 0.00% matching, 0.00% partially matching (53,256 bytes) Estimated range 0x382E28-0x38FE30; 0 function(s) decompiledemp_free_s…0.00%emp_zuroku.c Code: 0.00% matching, 0.00% partially matching (47,424 bytes) Estimated range 0x3BCB78-0x3C84B8; 0 function(s) decompiledemp_zuro…0.00%emp_war_fix.c Code: 0.00% matching, 0.00% partially matching (45,000 bytes) Estimated range 0x357160-0x362128; 0 function(s) decompiledemp_war_fix…0.00%emp_zuroku_graph.c Code: 0.00% matching, 0.00% partially matching (33,928 bytes) Estimated range 0x3958A8-0x39DD30; 0 function(s) decompiledemp_zur…0.00%StationEmp.c Code: 0.00% matching, 0.00% partially matching (33,176 bytes) Estimated range 0x3ACA98-0x3B4C30; 0 function(s) decompiledStationE…0.00%emp_war_wllt.c Code: 0.00% matching, 0.00% partially matching (30,144 bytes) Estimated range 0x3E6768-0x3EDD28; 0 function(s) decompiledemp_war_…0.00%emp_war_tl.c Code: 0.00% matching, 0.00% partially matching (23,600 bytes) Estimated range 0x3DEC78-0x3E48A8; 0 function(s) decompiledemp_w…0.00%emp_ending.c Code: 0.00% matching, 0.00% partially matching (17,464 bytes) Estimated range 0x3B4C30-0x3B9068; 0 function(s) decompiledemp…0.00%emp_ending_nenpyou.c Code: 0.00% matching, 0.00% partially matching (15,120 bytes) Estimated range 0x3B9068-0x3BCB78; 0 function(s) decompiledemp…0.00%emp_zuroku_bushou.c Code: 0.00% matching, 0.00% partially matching (10,456 bytes) Estimated range 0x392FD0-0x3958A8; 0 function(s) decompiledemp_sc.c Code: 0.00% matching, 0.00% partially matching (5,192 bytes) Estimated range 0x3E5320-0x3E6768; 0 function(s) decompiledemp_cq_text.c Code: 0.00% matching, 0.00% partially matching (3,040 bytes) Estimated range 0x38FE30-0x390A10; 0 function(s) decompiledemp_zuroku_movie.c Code: 0.00% matching, 0.00% partially matching (2,680 bytes) Estimated range 0x3E48A8-0x3E5320; 0 function(s) decompiledScenes Code: 0.66% matching, 5.99% partially matching (699,688 bytes)Scenes · 6.65%StateEdit.c Code: 0.00% matching, 0.00% partially matching (85,952 bytes) Estimated range 0x36DE68-0x382E28; 0 function(s) decompiledStateEdit.c0.00%SceneTitle.c Code: 0.00% matching, 0.00% partially matching (80,632 bytes) Estimated range 0x268448-0x27BF40; 0 function(s) decompiledSceneTitle…0.00%StateInitialize.c Code: 0.00% matching, 0.00% partially matching (76,760 bytes) Estimated range 0x154290-0x166E68; 0 function(s) decompiledStateInit…0.00%ScenePreBattle.c Code: 0.00% matching, 0.00% partially matching (75,264 bytes) Estimated range 0x2877B8-0x299DB8; 0 function(s) decompiledScenePreB…0.00%StateConquest.c Code: 0.00% matching, 0.00% partially matching (56,408 bytes) Estimated range 0x2F1798-0x2FF3F0; 0 function(s) decompiledStateCon…0.00%StateShop.c Code: 2.45% matching, 41.14% partially matching (49,352 bytes) Estimated range 0x299DB8-0x2A5E80; 42 function(s) decompiledStateSh…43.59%StateStartUp.c Code: 0.00% matching, 0.00% partially matching (48,448 bytes) Estimated range 0x362128-0x36DE68; 0 function(s) decompiledStateSt…0.00%StateBattleInitialize.c Code: 0.00% matching, 0.00% partially matching (36,800 bytes) Estimated range 0x1CDFC8-0x1D6F88; 0 function(s) decompiledStateBa…0.00%SceneTutorial.c Code: 0.00% matching, 0.00% partially matching (36,080 bytes) Estimated range 0x3EDD28-0x3F6A18; 0 function(s) decompiledSceneTu…0.00%StatePreBattle.c Code: 0.00% matching, 0.00% partially matching (35,944 bytes) Estimated range 0x2214B8-0x22A120; 0 function(s) decompiledStateP…0.00%StatePostBattle.c Code: 0.00% matching, 0.00% partially matching (31,776 bytes) Estimated range 0x219898-0x2214B8; 0 function(s) decompiledStateP…0.00%StateConfig.c Code: 9.14% matching, 56.97% partially matching (23,768 bytes) Estimated range 0x1E10A0-0x1E6D78; 33 function(s) decompiledSta…66.11%SceneLoading.c Code: 0.00% matching, 0.00% partially matching (23,456 bytes) Estimated range 0x2EBBF8-0x2F1798; 0 function(s) decompiledSce…0.00%StateDemo.c Code: 0.00% matching, 0.00% partially matching (20,024 bytes) Estimated range 0x1BE248-0x1C3080; 0 function(s) decompiledSta…0.00%StateSetupEmpMogi.c Code: 0.00% matching, 0.00% partially matching (9,664 bytes) Estimated range 0x390A10-0x392FD0; 0 function(s) decompiledSta…0.00%StateTreasures.c Code: 13.16% matching, 86.54% partially matching (9,360 bytes) Estimated range 0x1E6D78-0x1E9208; 24 function(s) decompiledSta…99.70%Interface and system Code: 0.05% matching, 0.02% partially matching (578,424 bytes)Interface and system · 0.07%font.c Code: 0.00% matching, 0.00% partially matching (193,992 bytes) Estimated range 0x124CC8-0x154290; 0 function(s) decompiledfont.c0.00%file.c Code: 0.22% matching, 0.06% partially matching (141,496 bytes) Estimated range 0x102410-0x124CC8; 6 function(s) decompiledfile.c0.28%SecretSorts.c Code: 0.00% matching, 0.00% partially matching (99,568 bytes) Estimated range 0x24FF58-0x268448; 0 function(s) decompiledSecretSorts.c0.00%JapanMap.c Code: 0.00% matching, 0.00% partially matching (60,776 bytes) Estimated range 0x39DD30-0x3ACA98; 0 function(s) decompiledJapanMap.c0.00%cmnparts.c Code: 0.00% matching, 0.00% partially matching (47,192 bytes) Estimated range 0x1A1BF0-0x1AD448; 0 function(s) decompiledcmnpart…0.00%SeManager.c Code: 0.00% matching, 0.00% partially matching (35,400 bytes) Estimated range 0x234490-0x23CED8; 0 function(s) decompiledSeMan…0.00%Battlefield Code: 0.00% matching, 0.00% partially matching (513,712 bytes)Battlefield · 0.00%StgTexture.c Code: 0.00% matching, 0.00% partially matching (76,040 bytes) Estimated range 0x1EF238-0x201B40; 0 function(s) decompiledStgTexture.c0.00%BgManager.c Code: 0.00% matching, 0.00% partially matching (59,024 bytes) Estimated range 0x3F6A18-0x4050A8; 0 function(s) decompiledBgManager.c0.00%Weapon.c Code: 0.00% matching, 0.00% partially matching (55,936 bytes) Estimated range 0x166E68-0x1748E8; 0 function(s) decompiledWeapon.c0.00%RelayCamera.c Code: 0.00% matching, 0.00% partially matching (54,952 bytes) Estimated range 0x2DE550-0x2EBBF8; 0 function(s) decompiledRelayCamera…0.00%ObjAction.c Code: 0.00% matching, 0.00% partially matching (47,224 bytes) Estimated range 0x27BF40-0x2877B8; 0 function(s) decompiledObjAction…0.00%effect.c Code: 0.00% matching, 0.00% partially matching (44,872 bytes) Estimated range 0x1C3080-0x1CDFC8; 0 function(s) decompiledeffect.c0.00%DistantView.c Code: 0.00% matching, 0.00% partially matching (41,840 bytes) Estimated range 0x22A120-0x234490; 0 function(s) decompiledDistant…0.00%Bullet.c Code: 0.00% matching, 0.00% partially matching (33,424 bytes) Estimated range 0x1AD448-0x1B56D8; 0 function(s) decompiledBullet…0.00%Stage.c Code: 0.00% matching, 0.00% partially matching (29,792 bytes) Estimated range 0x190010-0x197470; 0 function(s) decompiledStage…0.00%Field.c Code: 0.00% matching, 0.00% partially matching (28,480 bytes) Estimated range 0x1890D0-0x190010; 0 function(s) decompiledFiel…0.00%StgAmbient.c Code: 0.00% matching, 0.00% partially matching (26,048 bytes) Estimated range 0x2132D8-0x219898; 0 function(s) decompiledStgAmbi…0.00%MiniMap.c Code: 0.00% matching, 0.00% partially matching (16,080 bytes) Estimated range 0x20F408-0x2132D8; 0 function(s) decompiledMiniMap…0.00%Events and scripts Code: 0.00% matching, 0.00% partially matching (378,408 bytes)Events and scripts · 0.00%BriefingCmnParts.c Code: 0.00% matching, 0.00% partially matching (116,392 bytes) Estimated range 0x2C1EA8-0x2DE550; 0 function(s) decompiledBriefingCmnPar…0.00%ev_config.c Code: 0.00% matching, 0.00% partially matching (55,496 bytes) Estimated range 0x201B40-0x20F408; 0 function(s) decompiledev_config.c0.00%sc_ubase.c Code: 0.00% matching, 0.00% partially matching (42,880 bytes) Estimated range 0x197470-0x1A1BF0; 0 function(s) decompiledsc_ubase…0.00%sc_sysmsg.c Code: 0.00% matching, 0.00% partially matching (34,368 bytes) Estimated range 0x23CED8-0x245518; 0 function(s) decompiledsc_sys…0.00%sc_ctrl.c Code: 0.00% matching, 0.00% partially matching (31,784 bytes) Estimated range 0x1814A8-0x1890D0; 0 function(s) decompiledsc_ctrl…0.00%SeasonAnime.c Code: 0.00% matching, 0.00% partially matching (31,624 bytes) Estimated range 0x3D70F0-0x3DEC78; 0 function(s) decompiledSeasonA…0.00%ev_message.c Code: 0.00% matching, 0.00% partially matching (26,760 bytes) Estimated range 0x1DA818-0x1E10A0; 0 function(s) decompiledev_mess…0.00%MovieTelop.c Code: 0.00% matching, 0.00% partially matching (24,624 bytes) Estimated range 0x1E9208-0x1EF238; 0 function(s) decompiledMovieTe…0.00%ev_main.c Code: 0.00% matching, 0.00% partially matching (14,480 bytes) Estimated range 0x1D6F88-0x1DA818; 0 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: 0.00% matching, 0.00% partially matching (246,168 bytes)Models and motion · 0.00%HorseModel.c Code: 0.00% matching, 0.00% partially matching (95,952 bytes) Estimated range 0x2AA7D8-0x2C1EA8; 0 function(s) decompiledHorseModel.c0.00%MotionManager.c Code: 0.00% matching, 0.00% partially matching (52,160 bytes) Estimated range 0x1748E8-0x1814A8; 0 function(s) decompiledMotionManag…0.00%ItemModel.c Code: 0.00% matching, 0.00% partially matching (43,584 bytes) Estimated range 0x245518-0x24FF58; 0 function(s) decompiledItemModel.c0.00%ModelManager.c Code: 0.00% matching, 0.00% partially matching (35,696 bytes) Estimated range 0x1B56D8-0x1BE248; 0 function(s) decompiledModel…0.00%FlagModel.c Code: 0.00% matching, 0.00% partially matching (18,776 bytes) Estimated range 0x2A5E80-0x2AA7D8; 0 function(s) decompiledFlagM…0.00%(start-up and main loop) Code: 0.09% matching, 13.99% partially matching (9,232 bytes) Runtime start-up, scene manager and main loop. Estimated range 0x100000-0x102410; 4 function(s) decompiled
All areas as a table
AreaMatchingPartially matchingDataSize (bytes)
(start-up and main loop)0.09%13.99%—9,232
Scenes (16)0.66%5.99%—699,688
Empire mode (18)0.00%0.00%—740,744
Battlefield (12)0.00%0.00%—513,712
Models and motion (5)0.00%0.00%—246,168
Events and scripts (9)0.00%0.00%—378,408
Interface and system (6)0.05%0.02%—578,424
Game data (17)0.00%0.00%95.15%0

History

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

Reports up to this one (34)

WhenDecompiledMatchingDataCommit
1.52%0.16%95.15%0750a05 Progress: report function counts (53 of 10,586 matching)
1.52%0.16% +0.01%95.15%8957b46 Matching: 52 functions (controller array from its real base, split tests, early returns)
1.52%0.14% +0.01%95.15%b350afc Matching: 50 functions (controller reads inlined as in the original)
1.52%0.13%95.15%8a58b26 Matching: 49 functions (local order, a helper that returns its argument by accident)
1.52%0.13% +0.08%95.15%3aeb421 Matching: 47 functions (globals grouped into objects, settings flags as bitfields, if/else shapes)
1.52%0.04% +0.03%95.15%a5cd65e Matching: 30 functions byte-identical with CodeWarrior for PS2 3.0.1 build 210 (-O4, tailcall off, no_branch_likely)
1.52%0.02% +0.02%95.15%8a42885 Matching: first 18 functions verified byte-identical with CodeWarrior for PS2 3.0 (-O4, tailcall off)
1.52% +0.21%0.00%95.15%d89e6bc Code: finish StateShop.c: skill purchase, offer lists (skills, mounts, officers), prices and bargains
1.32% +0.18%0.00%95.15%834a428 Code: shop hire, buy-mount and sell screens with their confirmation boxes; gold and price helpers
1.14% +0.15%0.00%95.15%93a48c3 Code: shop helpers and mode handlers (main menu, skill slots, skill list, two lists)
0.99% +0.14%0.00%95.15%28c2d1d Code: decompile scene 0x0E, the shop (StateShop.c): enter, leave, update, draw, mode switch
0.84% +0.16%0.00%95.15%8463f4a Code: finish StateTreasures.c: main menu, mode transitions, officer list, sub-menu, mount list and skill grid
0.68% +0.13%0.00%95.15%6e86617 Code: decompile scene 0x0D, the Treasures gallery (StateTreasures.c): enter, leave, update, draw, mode requests and small mode handlers
0.55% +0.08%0.00%95.15%5f28dfa Code: StateConfig.c settings helpers (copy, apply and compare the display, pad and sound settings)
0.47% +0.21%0.00%95.15%ba98be4 Code: options menu pages 5, 7, 9 and 10 (display options, sound settings and sound test, controller settings, button set-up); all 11 page handlers done
0.26% +0.06%0.00%95.15%b90e37b Code: options menu pages 1, 3, 6 and 8 (sub-menu, save/load settings, controller choice, screen position)
0.20% +0.08%0.00%95.15%1f1dd21 Code: options menu page 0, page opener and helpers (StateConfig.c); fix a call Ghidra showed without its argument
0.12%0.00%95.15%d09dac8 Progress: split the code map into ~70 areas by original source file, grouped in 6 themes (estimated ranges)
0.12% +0.07%0.00%95.15%3df3fb0 Code: decompile scene 0x0C, the options menu (StateConfig.c): enter, update, step, draw, leave
0.05% +0.02%0.00%95.15%b6d5863 Code: scene table (24 scenes) and source-file map; decompile the scene loader and manager init; C syntax check with GCC

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)