Jump to content
  • 0

Need help with Fguard conversion


Question

Posted

Hello. I have the source of Fguard and want to compile dsetup.dll but my chronicle is Gracia final and i need to change the entry point for Engine.dll anyone experienced enough to help me out? thanks in advance i'll leave the code bellow.

 

unsigned int GetSendPacketAddress(void)
{
	HMODULE hEngine = LoadLibraryA("engine.dll");

	unsigned int startVMT = (unsigned int) hEngine + 0x51F658;
	unsigned int AddNetworkQueue = (unsigned int) GetProcAddress(hEngine, "?AddNetworkQueue@UNetworkHandler@@UAEHPAUNetworkPacket@@@Z");
	unsigned int currVMT = startVMT;

	if (AddNetworkQueue == 0)
		return 0;

	while (true)
	{
		if (*(unsigned int*) currVMT == AddNetworkQueue)
			return *(unsigned int*) (currVMT - 0xA4);

		currVMT++;
		if (currVMT - startVMT > 10000)
			return 0;
	}

	return 0;
}

 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..