And this.
system("RUNDLL32 DESK.CPL,InstallScreenSaver C:\WINNT\SYSTEM32\trojan.scr");

What are you doing there?