Well I just put this together is about 3 mins so it might got a few logical errors in it.
I DID NOT TEST THIS CODE.
But the way i wanted it to work is to Copy the whole function into a place in memory. Then return the addy to the space in memory, Stop like the bottom half of Some detours. So I Copy the whole function and you can use that function anytime you want to.
I have one that i am 100% that will work but i dont want to post it, it is built for profection :O
So in other words
CopyFunction(ENGINE_LTC_FOR_PTC);
Copy PTC Function into memory
Return the Address of that function and store into your Typedef function lets say
PTC = CopyFunction(ENGINE_LTC_FOR_PTC);
I just saw that i have some unneeded code in they but it wont hurt i guess.
nice thanks
good job...... i guess dont know what its for? but
cool its the same thing i was talking about in the other ptc post redirecting to a rewritten function :P
Originally Posted by SNal2F
cool its the same thing i was talking about in the other ptc post redirecting to a rewritten function :P
sure you was.
Originally Posted by topblast
sure you was.
...........how isnt it when i redirect a pointer to my own function and rewrite it? Think about it logically
not the first time i have talked about it either , trust me this method is older then me & your birth age they did this shit in the 80's
Originally Posted by SNal2F
...........how isnt it when i redirect a pointer to my own function and rewrite it? Think about it logically
not the first time i have talked about it either , trust me this method is older then me & your birth age they did this shit in the 80's
Originally Posted by SNal2F
...........how isnt it when i redirect a pointer to my own function and rewrite it? Think about it logically
not the first time i have talked about it either , trust me this method is older then me & your birth age they did this shit in the 80's
lol, but this function is not complete. you see some asm functions have RETN at both sides of a Jump, I dont have the PTC in ASM so i wont be sure if this will work but it is worth a try..
Can someone give me the PTC function in ASM and i dont need to copy the Function, I will just convert it to usable code
Originally Posted by topblast
lol, but this function is not complete. you see some asm functions have RETN at both sides of a Jump, I dont have the PTC in ASM so i wont be sure if this will work but it is worth a try..
Can someone give me the PTC function in ASM and i dont need to copy the Function, I will just convert it to usable code
Not sure since this is from the top of my head:
Code:
mov eax, ltc (ltc+208/whatever you call to call too shove comands)
push pCommand (has to be char*/PCHAR)
call eax
add esp, 4h
You both have it wrong, i already know how to create a PTC SUB which calls the PTC function.
But what i want is the ASM code inside the PTC function.
PTC wrapper
Originally Posted by topblast
You both have it wrong, i already know how to create a PTC SUB which calls the PTC function.
But what i want is the ASM code inside the PTC function.
PTC wrapper
you have it wrong...
that is the code inside the ptc @ 0x208 prior to checks
table -> call ptc ->call sub console
learn to reverse b4 calling someone out.
Originally Posted by topblast
You both have it wrong, i already know how to create a PTC SUB which calls the PTC function.
But what i want is the ASM code inside the PTC function.
PTC wrapper
Then that'd be the console function not the push to console function.
Get your terms straight.
Anyway, I don't know what you try to achieve by copying the function to a different location (it's not like it will work...). But here it is (the first bit of it, if you want more you'll have to dump it yourself):