Advertisement
szymski

Untitled

Jul 27th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. idc.Message("Creating functions\n")
  2.  
  3. # For functions
  4. start = 0x004A5470
  5. end = 0x004A5E28
  6.  
  7. # For procedures
  8. start = 0x004A43F0
  9. end = 0x004A543A
  10.  
  11. # For conditions
  12. start = 0x004A5FE8
  13. end = 0x004A6380
  14.  
  15. addr = start
  16.  
  17. while addr <= end:
  18. idc.MakeDword(addr)
  19. funcAddr = idc.Dword(addr)
  20. #idc.DelFunction(funcAddr)
  21. idc.MakeFunction(funcAddr)
  22.  
  23. funcName = idc.GetFunctionName(funcAddr)
  24. if not "script" in funcName:
  25. idc.MakeName(funcAddr, "script_cond_" + funcName)
  26.  
  27. print(funcName)
  28.  
  29. addr += 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement