Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Searching for a function

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
GenericDM
How do I cheat?
Reputation: 0

Joined: 01 Apr 2018
Posts: 8

PostPosted: Sat Apr 21, 2018 3:42 pm    Post subject: Searching for a function Reply with quote

I'm looking for a referenced function in a game and I know the general memory area it's in, but I can't figure out how or if there's a way to searched for referenced functions in only one area of memory. A way to do that would be helpful if anyone knows how. Smile
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sat Apr 21, 2018 6:59 pm    Post subject: Reply with quote

Lua has
Code:
DissectCode class: (Inheritance: Object)
getDissectCode() : Creates or returns the current code DissectCode object

properties:
methods:
  clear() : Clears all data
  dissect(modulename) : Dissects the memory of a module
  dissect(base,size) : Dissect the specified memory region

  addReference(fromAddress, ToAddress, type, OPTIONAL isstring):
    Adds a reference. Type can be jtCall, jtUnconditional, jtConditional, jtMemory
    In case of jtMemory setting isstring to true will add it to the referenced strings list

  deleteReference(fromAddress, ToAddress)


  getReferences(address) : Returns a table containing the addresses that reference this address and the type
  getReferencedStrings(): Returns a table of addresses and their strings that have been referenced. Use getReferences to find out which addresses that are
  getReferencedFunctions(): Returns a table of functions that have been referenced. Use getReferences to find out which callers that are

  saveToFile(filename)
  loadFromFile(filename)



so presumably you could use something like this in the lua engine window

Code:
local dc = getDissectCode()
dc.saveToFile('savedDissect.dc') -- save whatever exists
dc.clear()
dc.dissect(base, size)
--dc.loadFromFile('savedDissect.dc')

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
GenericDM
How do I cheat?
Reputation: 0

Joined: 01 Apr 2018
Posts: 8

PostPosted: Sat Apr 21, 2018 7:32 pm    Post subject: Reply with quote

Thank you! I will see if this works in a little while Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites