All pastes #613200 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-10 21:16 UTC
rendered paste body
//int __usercall sendFileToDevice<eax>(AMRecoveryModeDevice *amrd<ecx>,void *filename) @ 10009410
	//the address of AMRestorePerformRecoveryModeRestore is 10009F30
	sendFileToDevice=cmdsend((void *)((char *)GetProcAddress(hGetProcIDDLL, "AMRestorePerformRecoveryModeRestore")-0x10009F30+0x10009410));
	
	//int __usercall performOperation<eax>(AMRestoreModeDevice *device<esi>,void *message<ebx>) @ 100129C0
	//the address of AMRestorePerformRecoveryModeRestore is 10009F30
	performOperation=rcmdsend((void *)((char *)GetProcAddress(hGetProcIDDLL, "AMRestorePerformRecoveryModeRestore")-0x10009F30+0x100129C0));
	
	// @ 0x10012830 i think
	//the address of AMRestorePerformRecoveryModeRestore is 10009F30
	socketForPort=ricmdsend((void *)((char *)GetProcAddress(hGetProcIDDLL, "AMRestorePerformRecoveryModeRestore")-0x10009F30+0x10012830));