Jump to content

[Question] Help needed with IDA


Go to solution Solved by Archangel04,

5 posts in this topic

Recommended Posts

Posted (edited)

Hi guys,

 

While working on IDA Pro, in the game Star Wars Commander (v4.0.0), I found a function with 

 

making this zero can also work

 

 _BuildingTypeVO_get_Time_m11804         ; CODE XREF: _ContractUtils_GetBuildingContractTotalTime_m15483+13Cp

__text:000DA834                                         ; _GameUtils_CrystalCostToInstantUpgrade_m15608+5Ep ...
__text:000DA834                 LDR             R0, [R0,#0x74]
__text:000DA836                 BX              LR
__text:000DA836 ; End of function _BuildingTypeVO_get_Time_m11804
__text:000DA836
__text:000DA838
__text:000DA838 ; =============== S U B R O U T I N E =======================================
__text:000DA838
__text:000DA838
__text:000DA838 _BuildingTypeVO_set_Time_m11805
__text:000DA838                 STR             R1, [R0,#0x74]
__text:000DA83A                 BX              LR
__text:000DA83A ; End of function _BuildingTypeVO_set_Time_m11805
__text:000DA83A
__text:000DA83C
 
i can patch the binary at a point where it says LDR R0 [R0,#0x74]. (in BOLD)
it is in Thumb Hex form, and if i change hex to 00 68 it will become LDR R0 [R0].
Is this binary okay?
Similarly, i can make the STR one R1, [R0]
Updated by Sk04

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines