tempa = Win32API.new("kernel32", "GetModuleHandle", "p", "l").call("RGSS103J.dll")
tempb = Win32API.new("kernel32", "RtlMoveMemory", "lpi", "v")
tempc = Win32API.new("kernel32", "VirtualProtect", "lllp", "i")
tempd = 0.chr * 4
tempe = "\xC7\x86\x5C\x01\x00\x00\x01\x00\x00\x00\xEB\x0D\x90"
tempf = "\x33\xC0\x40\x89\x86\xEC\x00\x00\x00"
tempg = tempa + 0x00002A82
temph = tempa + 0x00015524
if tempa!=0
if tempc.call(tempg, tempe.size, 0x40, tempd)!=0
tempb.call(tempg, tempe, tempe.size)
tempc.call(tempg, tempe.size, tempd.unpack("L").first, tempd)
if tempc.call(temph, tempf.size, 0x40, tempd)!=0
tempb.call(temph, tempf, tempf.size)
tempc.call(temph, tempf.size, tempd.unpack("L").first, tempd)
end
end
end
tempa = tempb = tempc = tempd = tempe = tempf = tempg =temph = nil
GC.start
tempa = Win32API.new("kernel32", "GetModuleHandle", "p", "l").call("RGSS103J.dll")
tempb = Win32API.new("kernel32", "RtlMoveMemory", "lpi", "v")
tempc = Win32API.new("kernel32", "VirtualProtect", "lllp", "i")
tempd = 0.chr * 4
tempe = "\xC7\x86\x5C\x01\x00\x00\x01\x00\x00\x00\xEB\x0D\x90"
tempf = "\x33\xC0\x40\x89\x86\xEC\x00\x00\x00"
tempg = tempa + 0x00002A82
temph = tempa + 0x00015524
if tempa!=0
if tempc.call(tempg, tempe.size, 0x40, tempd)!=0
tempb.call(tempg, tempe, tempe.size)
tempc.call(tempg, tempe.size, tempd.unpack("L").first, tempd)
if tempc.call(temph, tempf.size, 0x40, tempd)!=0
tempb.call(temph, tempf, tempf.size)
tempc.call(temph, tempf.size, tempd.unpack("L").first, tempd)
end
end
end
tempa = tempb = tempc = tempd = tempe = tempf = tempg =temph = nil
GC.start