Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {$lua}
- if syntaxcheck then return end
- [ENABLE]
- function debugger_onBreakpoint()
- local rip = RIP
- if rip == addr_00 then
- Brand = readString( readQword( RAX ), 60000, true )
- elseif rip == addr_01 then
- Temp = readString( RCX, 60000, true )
- if Stat == '' or Stat == nil then
- Stat = Temp
- else
- Stat = Stat .. " | " .. Temp
- end
- Stat = Stat:gsub( "\r\n", " | " )
- elseif rip == addr_02 then
- Name = readString( readQword( RAX ), 60000, true )
- FName = readInteger( RDI + 0x18 )
- elseif rip == addr_03 then
- if readQword( RAX ) ~= 0 then
- Desc_1 = readString( readQword( RAX ), 80000, true )
- Desc_1 = Desc_1:gsub( "\n", " | " )
- else
- Desc_1 = " "
- end
- elseif rip == addr_04 then
- if readQword( RAX ) ~= 0 then
- Desc_2 = readString( readQword( RAX ), 60000, true )
- Desc_2 = Desc_2:gsub( "\n", " | " )
- else
- Desc_2 = " "
- end
- elseif rip == addr_05 then
- Weight = readFloatLocal( debug_getXMMPointer(0) )
- elseif rip == addr_06 then
- Price = readFloatLocal( debug_getXMMPointer(0) )
- elseif rip == addr_07 then
- print( string.format( "%08X\t%s\t%s\t%s\t%s\t%s\t%s\t%s", FName, Name, Brand, Desc_1, Stat, Desc_2, Price, Weight ) )
- --outputDebugString( string.format( "%08X\t%s\t%s\t%s\t%s\t%s\t%s\t%s", FName, Name, Brand, Desc_1, Stat, Desc_2, Price, Weight ) )
- Stat = ''
- Temp = ''
- end
- debug_continueFromBreakpoint( co_run )
- return 1
- end
- debugProcess()
- gameModule = getAddressSafe( "IndianaEpicGameStore-Win64-Shipping.exe" )
- Stat = ''
- Temp = ''
- addr_00 = gameModule + 0x8647E5 -- GetBrand
- addr_01 = gameModule + 0x864448 -- GetStats
- addr_02 = gameModule + 0x8647C4 -- GetName
- addr_03 = gameModule + 0x864826 -- Desc_A
- addr_04 = gameModule + 0x864888 -- Desc_B
- addr_05 = gameModule + 0x8648E0 -- Weight
- addr_06 = gameModule + 0x864B59 -- Price
- addr_07 = gameModule + 0x8DC507 -- stop
- debug_setBreakpoint( addr_00 )
- debug_setBreakpoint( addr_01 )
- debug_setBreakpoint( addr_02 )
- debug_setBreakpoint( addr_03 )
- debug_setBreakpoint( addr_04 )
- debug_setBreakpoint( addr_05 )
- debug_setBreakpoint( addr_06 )
- debug_setBreakpoint( addr_07 )
- [DISABLE]
- debugger_onBreakpoint = nil
- debug_removeBreakpoint( addr_07 )
- debug_removeBreakpoint( addr_06 )
- debug_removeBreakpoint( addr_05 )
- debug_removeBreakpoint( addr_04 )
- debug_removeBreakpoint( addr_03 )
- debug_removeBreakpoint( addr_02 )
- debug_removeBreakpoint( addr_01 )
- debug_removeBreakpoint( addr_00 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement