If you are unwilling to learn how the engine work, just forget about it.
“Porting” a game usually means either running a VM to emulate old code or simply rewrite everything… Usually a VM would be illegal (depending where original code comes from) so the only way is re-write to game, you cannot simply execute STL code in Unreal neither any other game engine.