i have a source code for an old detected aimbot, i wanna make it work again, i'm gonna use this to help me learn more C++, i think the only thing i need to do is switch out this coding and i'd be fine from what i've learned so far

Code:
void SpeedDetectionBypass(){
	short* speedDetection;
	speedDetection = (short*)spdPatch;
	VirtualProtect((LPVOID)spdPatch,sizeof(short),nProtect,&oProtect);
	*speedDetection = 0;
	VirtualProtect((LPVOID)spdPatch,sizeof(short),oProtect,&nProtect);
}
could i switch that out to this and it would work?

Code:
void __cdecl PushToConsole( const char* De_Man_Out )
{
	DWORD *Client = ( DWORD* )( get ur own numbers... );
	void* LazyMan = ( void* )*( DWORD* )( *Client + 0x208 );
 
	__asm
	{
		push De_Man_Out;
		call LazyMan;
		add esp, 4;
	}
}
will thank who ever helps out