Jump to content

How can modify this function [IDA]


Pradeep6868

4 posts in this topic

Recommended Posts

Posted

I have this function DRSaveGame$$IsCarOwned and I think this can be hacked to unlock all the car but not sure what to modify 
 

01001B87CC DRSaveGame$$IsCarOwned                  ; CODE XREF: SelectCarState$$Init+504p
__text:00000001001B87CC                                         ; SelectCarState$$IsCarOwned+28j ...
__text:00000001001B87CC
__text:00000001001B87CC var_10          = -0x10
__text:00000001001B87CC var_s0          =  0
__text:00000001001B87CC
__text:00000001001B87CC                 STP             X20, X19, [SP,#-0x10+var_10]!
__text:00000001001B87D0                 STP             X29, X30, [SP,#0x10+var_s0]
__text:00000001001B87D4                 ADD             X29, SP, #0x10
__text:00000001001B87D8                 MOV             X19, X1
__text:00000001001B87DC                 LDR             X1, [X0,#0x178]
__text:00000001001B87E0                 CBZ             X1, loc_1001B8808
__text:00000001001B87E4                 MOV             W0, #0x18
__text:00000001001B87E8                 BL              sub_1013F59AC
__text:00000001001B87EC                 MOV             X8, X1
__text:00000001001B87F0                 LDR             X3, [X8]
__text:00000001001B87F4                 MOV             X1, X19
__text:00000001001B87F8                 MOV             X2, X8
__text:00000001001B87FC                 LDP             X29, X30, [SP,#0x10+var_s0]
__text:00000001001B8800                 LDP             X20, X19, [SP+0x10+var_10],#0x20
__text:00000001001B8804                 BR              X3
__text:00000001001B8808 ; ---------------------------------------------------------------------------
__text:00000001001B8808
__text:00000001001B8808 loc_1001B8808                           ; CODE XREF: DRSaveGame$$IsCarOwned+14j
__text:00000001001B8808                 BL              sub_1013E7174
__text:00000001001B8808 ; End of function DRSaveGame$$IsCarOwned


 

Posted
13 minutes ago, Joka said:

20008052 C0035FD6

wowwww it workeddd thankk youuu so much 🤩 

12 minutes ago, Crimson said:

When ever you get a function that starts with isxxxxxx or hasxxxxx, think of it like a yes or no question. :) 

thank you bro, it means a lot. :D

Archived

This topic is now archived and is closed to further replies.

×
  • 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