Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 08:45

  • Please register to post and access all features, it's quick, easy and FREE!


[Help] Bot programmiern

Reply
 
Old 03/29/2009, 16:00   #16
 
elite*gold: 281
Join Date: Oct 2007
Posts: 6,248
Received Thanks: 882
Quote:
Originally Posted by kalhacker9000 View Post

laufen tut er mittlerweile....bloß so schnell das ich innerhalb von 3 sekunden über ganz kal laufe
aber sehen tu ich das nich
hab anstatt Player[0].Z-MyHeightDetour(blabla) einfach nur Player[0].Z-(blabla) genommen. jetzt ist aber das problem das sich die Z. Koordinate nie verändert. Wenn ich in temp stehe und mich nach naroot teleportiere steht immer noch 19630 da....auch bei /test
mach halt nen pointer für deine z coord



Mahatma is offline  
Old 03/29/2009, 18:13   #17
 
elite*gold: 0
Join Date: Dec 2006
Posts: 647
Received Thanks: 342
stimmt ja das gibts ja auch noch ._.
omg ich bin aber auch behindert...
ich weiß jetzt nich genau wie ich den pointer für die Z. Koordinate finde aber ich hab das vom ug "hack": MemcpyEx((DWORD)&high,0x006F3840,4);
und dann in meiner uce das: 04AC9170 da wird auch alles angezeigt....obwohl ich mir bei MemcpyEx((DWORD)&high,0x006F3840,4); nicht sicher bin weil wenn ich z.B. printf("Current high: %d",high); drunter schreibe steht da 0
wie binde ich denn die 04AC9170 mit ein?
ich guck ma hier im forum vllt finde ich ja was


edit:
aber baka müsste ja gewusst haben was er da tut oder nich? Z. Koordinate wird ja angezeigt aber nur von der startposition und dann "freezed" sie sich quasi ein.

edit2:
Z: Adress: 006F3840 Offset: 00004640
ich denke ich brauch das zweite?

edit3:
PHP Code:
MemcpyEx(DWORD(((DWORD)*zpointer)+0x00004640),4);
printf("Z: %d",zpointer); 
???
ich werds mal testen


kalhacker9000 is offline  
Old 03/29/2009, 19:22   #18
 
elite*gold: 281
Join Date: Oct 2007
Posts: 6,248
Received Thanks: 882
probier ma so:
MemcpyEx((DWORD)zcoord,(DWORD(((DWORD)*zpointer)+0 x4640)),4);

am anfang muss immer destination (= ziel stehen) und als zweiter source (in unsrem fall der pointer) stehen
Mahatma is offline  
Old 03/29/2009, 19:40   #19
 
elite*gold: 0
Join Date: Dec 2006
Posts: 647
Received Thanks: 342
PHP Code:
                  if ((i==3)&&((type==0x14)||(type==0x15)))

                          
Player[0].Z+=(signed char)MemcpyEx((DWORD)zcoord,(DWORD(((DWORD)*zpointer)+0x00004640)),4); 
also ungefähr so?

edit:
klappt nicht er ändert immer noch nich die coordinate .... liegt das an der zeile "if ((i==3)&&((type==0x14)||(type==0x15)))" ??
oder an dem Player[0].Z+=

weil die coordinate wird ja angezeigt aber nich die wenn sie sich verändert


kalhacker9000 is offline  
Old 03/29/2009, 19:54   #20
 
elite*gold: 20
Join Date: Feb 2008
Posts: 994
Received Thanks: 172
Quote:
Originally Posted by kalhacker9000 View Post
PHP Code:
                  if ((i==3)&&((type==0x14)||(type==0x15)))

                          
Player[0].Z+=(signed char)MemcpyEx((DWORD)zcoord,(DWORD(((DWORD)*zpointer)+0x00004640)),4); 
also ungefähr so?
neee das würde ich lassen wie vorher

die sache ist ihr / du / ich sollte(n) erstmal kapieren wozu die myheigh funktion dient...

Code:
                                        int difx=Player[0].X-Mob[target].X;

                                        int dify=Player[0].Y-Mob[target].Y;

                                        int difz=Player[0].Z-MyHeightDetour(Player[0].X,Player[0].Y);
denn Player[0].Z ist ja scheinbar der z wert der immer bei jedem schritt ausgelesen wird - also immer der aktuellste - jedoch verstehe ich nicht was mit Player[0].X,Player[0].Y in der myheigh funktion passiert.... denn Player[0].X,Player[0].Y werden ya auch wie Player[0].Z ständig bei jedem schrit ausglesen bzw "gespeichert"


btw hier noch link - ne neuere version
BorSti is offline  
Old 03/30/2009, 13:13   #21
 
elite*gold: 0
Join Date: Dec 2006
Posts: 647
Received Thanks: 342
ja das ist ja schön und gut (@BorSti) ich würde es ja auch lassen wie vorher aber er ändert den Z wert ja nicht. MyHeightDetour dient ja erst ab bot = 1 ... z.B.
da die coordinaten aber schon direkt am anfang ausgegeben werden also im Fensternamen steht X Y Z und sich die Z Coordinate nicht ändert dürfte int difz ja dann fürn ***** sein....weil die Z koordinate wird ja ausgegeben aber nunmal nur am anfang und dann die neue Z coordinate nichtmehr. am liebsten würde ich baka selber fragen aber der scheint ja nichmehr wirklich aktiv zu sein...
trotzdem vielen dank für eure antworten
kalhacker9000 is offline  
Old 03/30/2009, 14:44   #22
 
elite*gold: 0
Join Date: Dec 2006
Posts: 647
Received Thanks: 342
PHP Code:
 /*
=================================
KalOnline PacketHack
Public Version 1.0
=================================
Based on KalHack11 by BakaBug
Modified/Addons by Diamond.
=================================
*/

#include <windows.h>
#include "main.h"
#include <stdio.h>
#include <fcntl.h> 
#include <io.h>
#include <process.h>
// basic file operations
#include <iostream>
#include <fstream>
#include <math.h>

using namespace std;
#pragma pack(1)



char command[255]={0};
charsomething;
DWORD weaponID;
DWORD speedvalue;
DWORDspeedpointer = (DWORD*)0x006F3840;
DWORD fparty;
DWORD fduel;
DWORD ftrade;
DWORD fstudent1;
charfstudent;
DWORD poliID;
DWORD taliID;
DWORD weapID;
DWORD bot=0;
DWORD high;
DWORD trade=0;
DWORD weap1ID;
DWORD weap2ID;
DWORD stone1ID;
DWORD stone2ID;
DWORD armorID;
DWORD dropID;
DWORD droptimes;
DWORD pimps;
DWORD ebID;
DWORD ebtimes;
char lvl[255]={100};
DWORD coordinate1;
DWORD coordinate2;
DWORD storms;
int PID1;
DWORD playerID;
DWORD aniID;
DWORD danceID;
DWORD type;
DWORDzpointer = (DWORD*)0x006F3840;
int usedrop;
DWORD item2drop;
DWORD useID;
DWORD PID;
int pot;
DWORD MedID;
int number;
int limithp;
DWORD maxhp;
int attackhackstate 0;
char mytext[255] = "";
int q 0;
//DWORD* currentmppointer = (DWORD*)0x0070EB30;
DWORD MMedID;
int limitmp;
DWORD maxmp;
int pick 0;
int behead 0;
int player 0;
DWORD mob 0;
int abcd 0;
int playerormob 1;
DWORD knakattack 0;
DWORD nr;
DWORD handle;
DWORD knackattack=0;
DWORD nr1;
DWORD nr2;
DWORD nr3;
DWORD knackkattack=0;
DWORD nr4;
DWORD attacked=0;
DWORD mstorm=0;
DWORD pstorm=0;
DWORD yes;
DWORD no;
int dancehackon;
int Studenthack;
int flhack;
char answer;
DWORD buff=0;
DWORD id;
DWORD Anihack=0;
DWORD setmix;
DWORD mix;
DWORD waffe;
DWORD waffe2;
DWORD armor;
DWORD stein;
DWORD stein2;
DWORD coord=0;
DWORD X;
DWORD Y;
DWORD d3f5;
int playerx,mobsx,hp,mp;
int last_u=0;
DWORD temp={0};
DWORD lastweapon={0};
DWORD target;
DWORD botstate=0;
DWORD FightBack[500]={0};
DWORD start_x,start_y,lastmove;
DWORD attackcount=0;
DWORD storms1=0;
DWORD zcoord;
DWORD storms12=0;
DWORD tempo=0;
DWORD storm;
DWORD setstorm=0;
DWORD kocp=0;
DWORD p1;
DWORD p2;
DWORD p3;



char SendText[] = "PACKET TYPE:0x%02x FORMAT:%s\n";
char RecvText[] = "RECV TYPE: 0x%02x DATA: \n";
DWORD MyHeightBack;
int MySendBack=0x004F2010+6;
int MyRecvBack=0x004F2121+7;

struct SPlayer
{
DWORD PID;
DWORD X;
DWORD Y;
DWORD Z;
BYTE Classe;
char name[255];
};
SPlayer Player[500]={0};

struct SMob
{
DWORD MID;
DWORD X;
DWORD Y;
DWORD Z;
BYTE Classe;
DWORD HP;
};
SMob Mob[500]={0};

struct SItem
{
DWORD Item;
DWORD X;
DWORD Y;
};
SItem Item[500]={0};


int Naked MyHeightDetour(DWORD x,DWORD y)

{

        
__asm

        
{

          
push    ebp

      mov     ebp
esp

      sub     esp
94h

        
}

        
//show info

        //printf("Height 0x%08x 0x%08x %f\n ",x,y);

        
__asm

        
{

          
jmp     MyHeightBack //back to original

        
}

}

int Naked SendDetour(DWORD type,LPCSTR format,...)
{
        
__asm 
        
{
                
push    ebp
                mov     ebp
esp
                sub     esp
14h
        
}
 
Color(15);
printf(SendText,type,format);
/*//#
        va_list args;
#
        va_start(args, format);  Initialize variable arguments. 
#
 
#
        int i,s;
#
        char* something;
#
        for (i=0;i<strlen(format);i++)
#
        {
#
         switch (format[i])
#
         {
#
          case 'U': //??? 4bytes
#
                  temp=va_arg( args, DWORD);
#
                  last_u=temp;
#
                break;
#
          case 'b': //BYTE
#
                  if ((i==1)&&((type==0x14)||(type==0x15)))
#
                          Player[0].X+=(signed char)va_arg( args, DWORD);
#
                  if ((i==2)&&((type==0x14)||(type==0x15)))
#
                          Player[0].Y+=(signed char)va_arg( args, DWORD);
#
                  if ((i==3)&&((type==0x14)||(type==0x15)))
#
                          Player[0].Z+=(signed char)va_arg( args, DWORD);
#
                  if (type==0x0F)
#
                  {
#
                        temp=va_arg( args, DWORD);
#
                  }
#
                  if (type==0x10)
#
                  {
#
                         temp=va_arg( args, DWORD);
#
                  }
#
            break;
#
          case 'd': //DWORD
#
                if (type==0x0F)
#
                  //printf(" %d: %d\n",i+1,va_arg( args, DWORD));
#
                  temp=va_arg( args, DWORD);
#
                  if ((i==2)&&(type==0x0F))
#
                  {
#
                          printf("Attack [%08x,",temp);
#
                          s=temp;
#
                  }
#
                  if ((i==3)&&(type==0x0F))
#
                  {
#
                          //yeah the item id
#
                          lastweapon=temp;
#
                          printf("%08x]\n",temp);
#
                          attackcount++;
#
                          if (attackcount>=4)
#
                          {
#
                                  if (mp>50)
#
                                  {
#
                                          //send skill
#
                                         SendDetour(0x10,"Ubbd",last_u,3,1,s);
#
                                        // SendDetour(0x2b,"Ubd",last_u,3,s);
#
                                  }
#
                                  attackcount=0;
#
                          }
#
                  }
#
            break;       
#
          case 'w': //WORD
#
                 // printf(" %d: %d\n",i+1,(WORD)va_arg( args, DWORD));
#
                 temp=va_arg( args, DWORD);
#
            break;
#
          case 's': //WORD
#
                 // printf(" %d: %s\n",i+1,va_arg( args, char*));
#
                  something=va_arg( args, char*);
#
                  if (type==0x11)
#
                  {
#
                  printf("Chat: %s\n",something);
#
                   if (strcmp("/attack",something) == 0)
#
                  {     
#
                          botstate=1;//active
#
                          start_x=Player[0].X;
#
                          start_y=Player[0].Y;
#
                          printf("ACTIVE BOT !\n");
#
                   }
#
                    if (strcmp("/bot 0\0",something) == 0)
#
                  {     
#
                          botstate=0; //deactive
#
                          printf("DEACTIVE BOT !\n");
#
                        }
#
                        if (strcmp("/test\0",something) == 0)
#
                  {     
#
                          botstate=0; //deactive
#
                          //printf("%d\n",MyHeightDetour(Player[0].X,Player[0].Y));
#
                        }
#
                  if (strcmp("/attack_all\0",something) == 0)
#
                  {     
#
                        printf("CHEAT ATTACK ALL\n");
#
                        //yeah test attack all in near..
#
                        int ii;
#
                        for (ii=0;ii<800;ii++)
#
                        {
#
                        //check if x !=0
#
                                if (Mob[ii].X != 0)
#
                                {
#
                                        printf("MOB [%08x]\r",Mob[ii].MID);
#
                                        int xx;
#
                                        for (xx=0;xx<5;xx++)
#
                                        {
#
                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);
#
                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);
#
                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);
#
                                                SendDetour(0x15,"Ubbb",last_u,1,1,-30);
#
                                        }
#
                                }
#
                                //walk squar
#
                    }
#
                  }
#
                  }
#
            break;
#
         }
#
        }
#
        va_end(args);                    Reset variable arguments.      
#
        //jump to original..
#
 
#
        __asm
#
        {
#
                jmp MySendBack;
#
        }
#
        // .recv 6b  änderung des appender
#
}*/
        
if (type == 0x25)

        {

                
printf("SEND TELPORT TO TOWN !!!\n");

                
botstate=0;

                
Sleep(1000);

        }
va_list args;

        
va_start(argsformat);

int i,s;
charsomething;
for (
i=0;i<strlen(format);i++)
{
switch (
format[i])
{
case 
'U'//??? 4bytes
temp=va_argargsDWORD);
last_u=temp;
break;
case 
'b'//BYTE
temp =(DWORD)va_argargsDWORD);
if ((
i==1)&&((type==0x14)||(type==0x15)))
Player[0].X+=(signed char)va_argargsDWORD);
if ((
i==2)&&((type==0x14)||(type==0x15)))
Player[0].Y+=(signed char)va_argargsDWORD);
if ((
i==3)&&((type==0x14)||(type==0x15)))
Player[0].Z+=(signed char)va_argargsDWORD);


                  if (
type==0x0f)

                  {

                        
temp=va_argargsDWORD);

                  }

                  if (
type==0x10)

                  {

                         
temp=va_argargsDWORD);

                  }

            break;

          case 
'd'//DWORD

                
if (type==0x0f)

                  
//printf(" %d: %d\n",i+1,va_arg( args, DWORD));

                  
temp=va_argargsDWORD);

                  if ((
i==2)&&(type==0x0f))

                  {

                          
printf("Attack [%08x,",temp);

                          
s=temp;

                  }

                  if ((
i==3)&&(type==0x0F))

                  {

                          
//yeah the item id

                          
lastweapon=temp;

                          
printf("%08x]\n",temp);

                          
attackcount++;

                          if (
attackcount>=4)

                          {

                                  if (
mp>50)

                                  {

                                          
//send skill

                                         
SendDetour(0x10,"Ubbd",last_u,3,1,s);

                                        
// SendDetour(0x2b,"Ubd",last_u,3,s);

                                  
}

                                  
attackcount=0;

                          }

                  }

            break;        



          case 
'w'//WORD

                 // printf(" %d: %d\n",i+1,(WORD)va_arg( args, DWORD));

                 
temp=va_argargsDWORD);

            break;

/*case 's': //WORD
// printf(" %d: %s\n",i+1,va_arg( args, char*));
something=va_arg( args, char*);
if (type==0x11)
{
                  if (type==0x11)

                  {

                  printf("Chat: %s\n",something);

                   if (strcmp(".ah",something) == 0)

                  {   
                      attackhackstate=1;
                      SendDetour(0x11,"s","[PServer Hackit] Attack for Archer started!...");
                      }
                  if (strcmp(".ah1",something) == 0)
                  {
                      SendDetour(0x11,"s","[PServer Hackit] You have to set the skillnumber @cmd!!!");
                  }
                  if (strcmp(".ah2",something) == 0)
                  {
                      SendDetour(0x11,"s","[PServer Hackit] You have to set the skillnumbers @cmd!!!");
                  }    
                  if (strcmp(".ah3",something) == 0)
                  {
                      SendDetour(0x11,"s","[PServer Hackit] You have to set the skillnumbers @cmd!!!");
                  }
                  if (strcmp(".ah4",something) == 0)
                  {
                      SendDetour(0x11,"s","[PServer Hackit] You have to set the skillnumbers @cmd!!!");
                  }
                  if (strcmp(".help",something) == 0)
                  {
                      SendDetour(0x11,"s","*[PServer Hackit.Help] ------Welcome to PServer Hackit by Diamond------");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .bon = behead on");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .pickon = autopick on");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah = Archer attack on");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah1 = Set 1 skillnumber for Attackhack");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah2 = Set 2 skillnumbers for Attackhack");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah3 = Set 3 skillnumbers for Attackhack");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah4 = Set 4 skillnumbers for Attackhack");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] ------All other Commands @cmd...Type in help...xD------");
                  }
                  if (strcmp(".bon",something) == 0)
                  {
                      behead=1;
                      SendDetour(0x11,"s","[PServer Hackit] Beheadhack on");
                  }
                  if (strcmp(".pickon",something) == 0)
                  {
                      behead=1;
                      SendDetour(0x11,"s","[PServer Hackit] Autopick on");
                  }
            break;

            case 'm':
                if (i==0)
                {
             //printf("\nHeader(M): \t%d: %x\n",i,type);
                }
            //printf(" %d: \t\t\t%d\n",i+1,(DWORD)va_arg( args, DWORD));

            break;


         }

         if (i == 0 && type == 0x12)
         {
             player = 1;
         }
         
/*         if (i == 0 && type == 0x09)
         {
            Intercept(INST_CALL, 0x004F203D, (DWORD)0x0052E330,5); // Otherwise KOCP will kick you..

            Intercept( INST_JMP , 0x004F2010 , ( DWORD) SendDetour , 5); // Send packets
            //Intercept( INST_JMP , 0x004F2121 , ( DWORD) MyRecvDetour , 5); // Recv packets

            printf("KOCP killed!\n");
         }

        }



        va_end(args);

            __asm

        {

            jmp MySendBack;

        }
}
}
}*/

          
case 's'//WORD

                 // printf(" %d: %s\n",i+1,va_arg( args, char*));

                  
something=va_argargschar*);

                  if (
type==0x11)

                  {

                  
printf("Chat: %s",something);

                   if (
strcmp("xbot 1\0",something) == 0)

                  {     

                          
botstate=1;//active

                          
start_x=Player[0].X;

                          
start_y=Player[0].Y;

                          
printf("ACTIVE BOT !\n");

                   }

                    if (
strcmp("xbot 0\0",something) == 0)

                  {     

                          
botstate=0//deactive

                          
printf("DEACTIVE BOT !\n");

                        }
                    if (
strcmp("xend\0",something) == 0)

                  {     

                        
printf("Kal close in 3 seconds...");
                        
Sleep(3000);
                        

                        }

                        if (
strcmp("xtest\0",something) == 0)

                  {     

                          
botstate=0//deactive

                          
printf("Height test: X:%d Y: %d Z: %d!\n",Player[0].X,Player[0].Y,Player[0].Z);

                        }

                  if (
strcmp("xattack_all\0",something) == 0)

                  {     

                        
printf("CHEAT ATTACK ALL\n");

                        
//yeah test attack all in near..

                        
int ii;

                        for (
ii=0;ii<800;ii++)

                        {

                        
//check if x !=0

                                
if (Mob[ii].!= 0)

                                {

                                        
printf("MOB [%08x]\r",Mob[ii].MID);

                                        
int xx;

                                        for (
xx=0;xx<5;xx++)

                                        {

                                                
//SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);

                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);

                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);

                                                
SendDetour(0x15,"Ubbb",last_u,1,1,-30);

                                        }

                                }

                                
//walk squar

                    
}

                  }

                  }

            break;
}
}
va_end(args); /* Reset variable arguments. */
//jump to original..

__asm
{
jmp MySendBack;
}
// .recv 6b änderung des appender
}

//}
/*void naked Send2Client(format,blabla,...)
{

}*/

int WINAPI MyRecv(charpacket)
{
    
//printf(RecvText,packet[2]);
    
WORD size;
    
memcpy((void*)&size,(void*)((DWORD)packet),2);
    
//size=(WORD)(packet[0]); //hoffe das ist die richtige..
    
if (packet[2] == 0x46)
    {
        
printf("TELPORT TO TOWN !!!\n");
        
botstate=0;
        
Sleep(1000);
    }
    if (
packet[2] == 0x45)
    {
        
int i;
        
//for (i=0;i<size;i++)
        //    printf("%0.2x",(BYTE)packet[i]);
        //printf("\n");
 
        
char myword[1];
        
myword[0]=packet[5];
        
myword[1]=packet[4];
        if (
packet[3] == 0x08)
        {
            
//printf("MP changed [%d]\n",(WORD)(myword[0]));
            
memcpy((void*)&mp,(void*)((DWORD)packet+4),2);
            
printf("MP changed [%d]\n",mp);
        }
        if (
packet[3] == 0x07)
        {
            
memcpy((void*)&hp,(void*)((DWORD)packet+4),2);
            
printf("HP changed [%d]\n",hp);
        }
    }
    if (
packet[2] == 0x3E)
    {
        
//someone attack someon
        //or something attack something :P
        
DWORD attacker=0;
        
DWORD target=0;
        
WORD dmg;
        
WORD dmg2;
        
memcpy((void*)&attacker,(void*)((DWORD)packet+3+1),4);
        
memcpy((void*)&target,(void*)((DWORD)packet+3+1+4),4);
        
memcpy((void*)&dmg,(void*)((DWORD)packet+3+1+4+2),2);
        
memcpy((void*)&dmg2,(void*)((DWORD)packet+3+1+4+2+2),2);
        
//if targe myslef => fight back => update hp
        //add dmg to target / if mob
        
int i;
        for (
i=0;i<500;i++)
        {
            if (
Mob[i].MID==target)
            {
                
Mob[i].HP-=(dmg+dmg2);
                break;
            }
        }
    }
    if (
packet[2] == 0x3d)
    {
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
BYTE state;
        
memcpy((void*)&state,(void*)((DWORD)packet+3+4),1);
        
//if (state==0x08)
        //{
            //someone die !
            
int i;
            for (
i=0;i<500;i++)
            {
            
//check if x =0
                
if (Mob[i].MID == id)
                {
                    if (
state==0x08)
                    {
                            if (
i==target)
                                
SendDetour(0x10,"Ubbd",last_u,1,1,Mob[i].MID);
                    }
                    else
                            
mobsx-=1;
 
                    if (
target==i)
                        if (
botstate != 0)
                            
botstate=1//when bot active
 
                    
Mob[i].X=0//mob not here anymore
                    
break;
                }
            }
        
//}
    
}
    if (
packet[2] == 0x38)
    {
        
//mob dis
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Mob[i].MID == id)
            {
                
//printf("mob away");
                
Mob[i].X=0//mob not here anymore
                
mobsx-=1;
                break;
            }
        }
    }
 
    if ((
packet[2] == 0x24) || (packet[2] == 0x25))
    {
        
//mob move..
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Mob[i].MID == id)
            {
                
signed char x,y/*,z*/=0;
                
memcpy((void*)&(x),(void*)((DWORD)packet+3+4),1);
                
memcpy((void*)&(y),(void*)((DWORD)packet+3+4+1),1);
                
//memcpy((void*)&(z),(void*)((DWORD)packet+3+4+1+1),1);
                
Mob[i].X+=x;
                
Mob[i].Y+=y;
                
//Player[i].Z+=z;
                
break;
            }
        }
    }
    if (
packet[2] == 0x33)
    {
        
//mob apear
 
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Mob[i].== 0)
            {
                
DWORD id;
                
memcpy((void*)&id,(void*)((DWORD)packet+3+2),4);
                
Mob[i].MID=id;
                
memcpy((void*)&(Mob[i].Classe),(void*)((DWORD)packet+3),2);
                
memcpy((void*)&(Mob[i].X),(void*)((DWORD)packet+3+4+2),4);
                
memcpy((void*)&(Mob[i].Y),(void*)((DWORD)packet+3+4+2+4),4);
                
memcpy((void*)&(Mob[i].HP),(void*)((DWORD)packet+3+4+2+4+4+1+1),2);
                
printf("Mob: %d X %d Y %d HP %d\n",Mob[i].Classe,Mob[i].X,Mob[i].Y,Mob[i].HP);
                
mobsx+=1;
                break;
            }
        }
    }
    if (
packet[2] == 0x37)
    {
        
//disapear
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
int i;
        for (
i=0;i<500;i++)
        {
            if (
Player[i].PID == id)
            {
                
printf("Player disapear [PID: %08x Name: %s]\n",id,Player[i].name);
                
Player[i].X=0//deactive !
                
playerx-=1;
                break;
            }
        }
    }
    if ((
packet[2] ==0x22) || (packet[2] == 0x23))
    {
        
//player move.. jetzt noch net..
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Player[i].PID == id)
            {
                
printf("Player     move [PID: %08x Name: %s] [X: %d Y: %d Z: %d]\n",id,Player[i].namePlayer[i].X,Player[i].Y,Player[i].Z);
                
signed char x,y,z=0;
                
memcpy((void*)&(x),(void*)((DWORD)packet+3+4),1);
                
memcpy((void*)&(y),(void*)((DWORD)packet+3+4+1),1);
                
memcpy((void*)&(z),(void*)((DWORD)packet+3+4+1+1),1);
                
Player[i].X+=x;
                
Player[i].Y+=y;
                
Player[i].Z+=z;
                break;
            }
        }
    }
    if (
packet[2] == 0x32)
    {
        
//player apear
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
char name[255]={0};
        
memcpy((void*)&name,(void*)((DWORD)packet+7),16);
        
printf("Player    apear [PID: %08x Name: %s]\n",id,name);
        
//ADD PLAYER
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Player[i].== 0)
            {
                
memcpy((void*)&(Player[i].name),(void*)&name,16);
                
Player[i].PID=id;
                
int aftername;
                
aftername=strlen(Player[i].name);
                
//insert COORDINATES
                
memcpy((void*)&(Player[i].Classe),(void*)((DWORD)packet+7+aftername+1),1);
                
memcpy((void*)&(Player[i].X),(void*)((DWORD)packet+7+aftername+2),4);
                
memcpy((void*)&(Player[i].Y),(void*)((DWORD)packet+7+aftername+2+4),4);
                
memcpy((void*)&(Player[i].Z),(void*)((DWORD)packet+7+aftername+2+4+4),4);
                
FILE *datei;
                
datei fopen("PServer_Log.txt""a");
                
fprintf(datei"Name: %s  ID: %d \n",name,id);
                
fclose(datei);
                
//printf("C: %d X: %d Y:%d Z:%d\n",Player[i].Classe,Player[i].X,Player[i].Y,Player[i].Z);
                
playerx+=1;
                break; 
//ender der schleife
            
}
        }
    }
    return 
0;
}
 
int Naked MyRecvDetour()
{
    
__asm
    
{
        
push edx
        push ecx
        push ebx
        push eax
 
        mov     eax
, [ebp+0x08//my packet ehh ^^
        
push    eax
        call    MyRecv
 
        pop eax
        pop ebx
        pop ecx
        pop edx
 
        mov     eax
, [ebp+0x08]
        
movzx   ecx, [eax+2]
        
mov        edx,MyRecvBack//0x00523272
        
jmp        edx
    
}
}

void MyThread(voidstart_parameter)
{

     
char command[255]={0};
     
scanf("%s%*c",&command);

     if (
strcmp command "hscp" ) == 0)
     {
                    
Intercept(INST_CALL0x004F203D, (DWORD)0x0052E330,5); // Otherwise KOCP will kick you..
                    
InterceptINST_JMP 0x004F2010 , ( DWORDSendDetour 5); // Send packets
                    
InterceptINST_JMP 0x004F2121 , ( DWORDMyRecvDetour 5); // Recv packets
             //Killing HackShield

    // Some Server will kick you if normal HackShield isn't running
    
BYTE Replacer=0x85;
    
DWORD Virutal_add=0x00504DBF-0x00104DBF;

    
MemcpyEx(Virutal_add+0x00104DBF,(DWORD)&Replacer,1);
    
Replacer=0x75;
    
MemcpyEx(Virutal_add+0x00104F66,(DWORD)&Replacer,1);
    
MemcpyEx(Virutal_add+0x0010DB66,(DWORD)&Replacer,1);
    
Replacer=0x61;
    
MemcpyEx(Virutal_add+0x002A2A6D,(DWORD)&Replacer,1);
    
printf("HS got pWnD/KOCP got pWnD\n");
     }
//here is our thread ;)
    
DWORD lastattack;
    while(
true//endless loop
    
{
        
char mytext[255];
 
        if (
playerx != 0)
        {
            
sprintf(mytext,"PServer Hackit_Bot V.1.0 - HP: %d - MP: %d X: %d Y: %d Z: %d - BotState: %d\0",hp,mp,Player[0].X,Player[0].Y,Player[0].Z,botstate);
                
SetConsoleTitleA(mytext);
                if (
botstate == 1)
                {
                    
printf("Search MOB..\n");
                    
//SEARCH NEARES MOB !
                    
int nearest=65530000;
                    
int id=-1;
                    
int i;
                    for (
i=0;i<5;i++)
                        if (
Mob[i].!= 0)
                        {
                            
//MOB HERE CALC NEAR !
                            
int difx=start_x-Mob[i].X;
                            
int dify=start_y-Mob[i].Y;
                            
//
                            
int range=difx*difx+dify*dify;
                            if (
nearest range)
                            {
                                
id=i;
                                
nearest range;
                            }
                        }

                    if (
id!=i)
                    {
                        
//MOB FOUND
                        
target=id;
                        
botstate=2//walk to it !
                        
printf("Walk to MOB..\n");
                    }
                }
 
                if (
botstate == 2)
                {
                    
//WALK TO SELECTED MOB !!
                    
int difx=Player[0].X-Mob[target].X;
                    
int dify=Player[0].Y-Mob[target].Y;
                    
int difz=Player[0].Z-(Player[0].X,Player[0].Y);
                    
float range=(difx*difx+dify*dify)*1.0;
                    if (
sqrt(range) < 50.0)
                    {
                        
botstate=3//ATTACK IT !
                        
printf("attack the MOB..\n");
                        
lastattack=GetTickCount()-800;
                    }
                    else
                    {
                        
//CALC MOVE !
                        
signed char tempx=-(difx/sqrt(range))*30;
                        
signed char tempy=-(dify/sqrt(range))*30;
                        
signed char tempz=-(difz/sqrt(range))*30;
                        if (
playerx 1)
                        {
                            if (
lastattack<GetTickCount()-200)
                            {
                                
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz);
                                
lastattack=GetTickCount();
                            }
                        }
                        else
                            
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz); //NOBODY HERE SPEED UP MAN !
                    
}
                }
                if (
botstate==3)
                {
                    
//attack mob !!
                    
if (lastattack<GetTickCount()-600)
                    {
                        
//ATTACK IT !
                        
SendDetour(0x0F,"Ubdd",last_u,1,Mob[target].MID,lastweapon);
                        
lastattack=GetTickCount();
                    }
                    
//yeah
                    
if (lastmove<GetTickCount()-200)
                    {
                        
int difx=Player[0].X-Mob[target].X;
                        
int dify=Player[0].Y-Mob[target].Y;
                        
int difz=Player[0].Z-(Player[0].X,Player[0].Y);
                        
float range=(difx*difx+dify*dify)*1.0;
                        
signed char tempx=-(difx/sqrt(range))*30;
                        
signed char tempy=-(dify/sqrt(range))*30;
                        
signed char tempz=-(difz/sqrt(range))*30;
                        
//roate vector
                        
tempy = (cos(100*3.16)*(tempx*1.0) - sin(100*3.16)*(tempy*1.0))*1;
                        
tempy = (cos(100*3.16)*(tempy*1.0) + sin(100*3.16)*(tempx*1.0))*1;
                        if (
hp 100)
                        {
                        if (
sqrt(range) < 50.0)
                        {
                            if (
playerx <= 1)
                                
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz);
                        }
                        }
                        else
                        if (
sqrt(range) < 150.0)
                        {
                            
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz);
                            
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz);
                            
//THIS IS RUN AWAY !
                        
}
 
                        
lastmove=GetTickCount();
                    }
                }
        }
        
Sleep(10);
    }
}
void Pot (voidpParams)
    {
        
int fad 0;
        while( 
)
        {
            if (
strcmp command "startpot" ) == 0)
            {

                 
printf("Pot got startet!\n");
                 
pot 1;
                 while( 
pot == )
                 {
                    
fad 0;
                    if (
hp <= limithp)
                    {
                        
SendDetour(0x21,"d",MedID);
                        
fad 1;
                    }
                    if (
mp <= limitmp)
                    {
                        
SendDetour(0x21,"d",MMedID);
                        
fad 1;
                    }
                    if (
fad == 1)
                    {
                        
Sleep(1300);
                    }
                    
Sleep (25);
                    if (
hp==0)
                    {
                        
attackhackstate 0;
                    }
                    
Sleep(10);
                 }
            }
            if (
hp==0)
            {
                
attackhackstate 0;
            }
        
Sleep(100);
        }
        
Sleep(100);
    }
    



void Main()
{
    
Console();
    
Color(15);
    
fprintf (stdout"====================================================== \n");
    
fprintf (stdout"Pserver Bot V1.0 Beta.....not tested yet...xD\n");
    
fprintf (stdout"Based on Bakabugs Kalhack11....Modified by Diamond. THX to:\n");
    
fprintf (stdout"Bakabug\n");
    
fprintf (stdout"BorSti\n");
    
fprintf (stdout"ZeroTen\n");
    
fprintf (stdout"Mahatma\n");
    
fprintf (stdout"So...Now good luck with this shit....\n");
    
fprintf (stdout"Type in Hackshield at the beginning to start Packethack!");
    
fprintf (stdout"====================================================== \n");
    
_beginthread(MyThread,0,NULL);
    
_beginthread(Pot,0,NULL);



    
/* Some server will kick you if you hook the functions at the beginning
       so just type 'kocp' if Kal is loaded

    Intercept( INST_JMP , 0x004F2010 , ( DWORD) SendDetour , 5);
    Intercept( INST_JMP , 0x004F2121 , ( DWORD) MyRecvDetour , 5);*/

}



BOOL WINAPI DllMain(HINSTANCE hInst,DWORD reason,LPVOID)
    {
    if (
reason == DLL_PROCESS_ATTACH)
        {
        
hLThis hInst;
        
char system[MAX_PATH];
        
GetSystemDirectoryA(system,sizeof(system));
        
strcat_s(system,"\\winmm.dll");
        
hL LoadLibraryA(system);
        if (!
hL) return false;

        
Main();


        
p[0] = GetProcAddress(hL,"CloseDriver");
        
p[1] = GetProcAddress(hL,"DefDriverProc");
        
p[2] = GetProcAddress(hL,"DriverCallback");
        
p[3] = GetProcAddress(hL,"DrvGetModuleHandle");
        
p[4] = GetProcAddress(hL,"GetDriverModuleHandle");
        
p[5] = GetProcAddress(hL,"MigrateAllDrivers");
        
p[6] = GetProcAddress(hL,"MigrateSoundEvents");
        
p[7] = GetProcAddress(hL,"NotifyCallbackData");
        
p[8] = GetProcAddress(hL,"OpenDriver");
        
p[9] = GetProcAddress(hL,"PlaySound");
        
p[10] = GetProcAddress(hL,"PlaySoundA");
        
p[11] = GetProcAddress(hL,"PlaySoundW");
        
p[12] = GetProcAddress(hL,"SendDriverMessage");
        
p[13] = GetProcAddress(hL,"WOW32DriverCallback");
        
p[14] = GetProcAddress(hL,"WOW32ResolveMultiMediaHandle");
        
p[15] = GetProcAddress(hL,"WOWAppExit");
        
p[16] = GetProcAddress(hL,"WinmmLogoff");
        
p[17] = GetProcAddress(hL,"WinmmLogon");
        
p[18] = GetProcAddress(hL,"[email protected]");
        
p[19] = GetProcAddress(hL,"[email protected]");
        
p[20] = GetProcAddress(hL,"aux32Message");
        
p[21] = GetProcAddress(hL,"auxGetDevCapsA");
        
p[22] = GetProcAddress(hL,"auxGetDevCapsW");
        
p[23] = GetProcAddress(hL,"auxGetNumDevs");
        
p[24] = GetProcAddress(hL,"auxGetVolume");
        
p[25] = GetProcAddress(hL,"auxOutMessage");
        
p[26] = GetProcAddress(hL,"auxSetVolume");
        
p[27] = GetProcAddress(hL,"gfxAddGfx");
        
p[28] = GetProcAddress(hL,"gfxBatchChange");
        
p[29] = GetProcAddress(hL,"gfxCreateGfxFactoriesList");
        
p[30] = GetProcAddress(hL,"gfxCreateZoneFactoriesList");
        
p[31] = GetProcAddress(hL,"gfxDestroyDeviceInterfaceList");
        
p[32] = GetProcAddress(hL,"gfxEnumerateGfxs");
        
p[33] = GetProcAddress(hL,"gfxModifyGfx");
        
p[34] = GetProcAddress(hL,"gfxOpenGfx");
        
p[35] = GetProcAddress(hL,"gfxRemoveGfx");
        
p[36] = GetProcAddress(hL,"joy32Message");
        
p[37] = GetProcAddress(hL,"joyConfigChanged");
        
p[38] = GetProcAddress(hL,"joyGetDevCapsA");
        
p[39] = GetProcAddress(hL,"joyGetDevCapsW");
        
p[40] = GetProcAddress(hL,"joyGetNumDevs");
        
p[41] = GetProcAddress(hL,"joyGetPos");
        
p[42] = GetProcAddress(hL,"joyGetPosEx");
        
p[43] = GetProcAddress(hL,"joyGetThreshold");
        
p[44] = GetProcAddress(hL,"joyReleaseCapture");
        
p[45] = GetProcAddress(hL,"joySetCapture");
        
p[46] = GetProcAddress(hL,"joySetThreshold");
        
p[47] = GetProcAddress(hL,"mci32Message");
        
p[48] = GetProcAddress(hL,"mciDriverNotify");
        
p[49] = GetProcAddress(hL,"mciDriverYield");
        
p[50] = GetProcAddress(hL,"mciExecute");
        
p[51] = GetProcAddress(hL,"mciFreeCommandResource");
        
p[52] = GetProcAddress(hL,"mciGetCreatorTask");
        
p[53] = GetProcAddress(hL,"mciGetDeviceIDA");
        
p[54] = GetProcAddress(hL,"mciGetDeviceIDFromElementIDA");
        
p[55] = GetProcAddress(hL,"mciGetDeviceIDFromElementIDW");
        
p[56] = GetProcAddress(hL,"mciGetDeviceIDW");
        
p[57] = GetProcAddress(hL,"mciGetDriverData");
        
p[58] = GetProcAddress(hL,"mciGetErrorStringA");
        
p[59] = GetProcAddress(hL,"mciGetErrorStringW");
        
p[60] = GetProcAddress(hL,"mciGetYieldProc");
        
p[61] = GetProcAddress(hL,"mciLoadCommandResource");
        
p[62] = GetProcAddress(hL,"mciSendCommandA");
        
p[63] = GetProcAddress(hL,"mciSendCommandW");
        
p[64] = GetProcAddress(hL,"mciSendStringA");
        
p[65] = GetProcAddress(hL,"mciSendStringW");
        
p[66] = GetProcAddress(hL,"mciSetDriverData");
        
p[67] = GetProcAddress(hL,"mciSetYieldProc");
        
p[68] = GetProcAddress(hL,"mid32Message");
        
p[69] = GetProcAddress(hL,"midiConnect");
        
p[70] = GetProcAddress(hL,"midiDisconnect");
        
p[71] = GetProcAddress(hL,"midiInAddBuffer");
        
p[72] = GetProcAddress(hL,"midiInClose");
        
p[73] = GetProcAddress(hL,"midiInGetDevCapsA");
        
p[74] = GetProcAddress(hL,"midiInGetDevCapsW");
        
p[75] = GetProcAddress(hL,"midiInGetErrorTextA");
        
p[76] = GetProcAddress(hL,"midiInGetErrorTextW");
        
p[77] = GetProcAddress(hL,"midiInGetID");
        
p[78] = GetProcAddress(hL,"midiInGetNumDevs");
        
p[79] = GetProcAddress(hL,"midiInMessage");
        
p[80] = GetProcAddress(hL,"midiInOpen");
        
p[81] = GetProcAddress(hL,"midiInPrepareHeader");
        
p[82] = GetProcAddress(hL,"midiInReset");
        
p[83] = GetProcAddress(hL,"midiInStart");
        
p[84] = GetProcAddress(hL,"midiInStop");
        
p[85] = GetProcAddress(hL,"midiInUnprepareHeader");
        
p[86] = GetProcAddress(hL,"midiOutCacheDrumPatches");
        
p[87] = GetProcAddress(hL,"midiOutCachePatches");
        
p[88] = GetProcAddress(hL,"midiOutClose");
        
p[89] = GetProcAddress(hL,"midiOutGetDevCapsA");
        
p[90] = GetProcAddress(hL,"midiOutGetDevCapsW");
        
p[91] = GetProcAddress(hL,"midiOutGetErrorTextA");
        
p[92] = GetProcAddress(hL,"midiOutGetErrorTextW");
        
p[93] = GetProcAddress(hL,"midiOutGetID");
        
p[94] = GetProcAddress(hL,"midiOutGetNumDevs");
        
p[95] = GetProcAddress(hL,"midiOutGetVolume");
        
p[96] = GetProcAddress(hL,"midiOutLongMsg");
        
p[97] = GetProcAddress(hL,"midiOutMessage");
        
p[98] = GetProcAddress(hL,"midiOutOpen");
        
p[99] = GetProcAddress(hL,"midiOutPrepareHeader");
        
p[100] = GetProcAddress(hL,"midiOutReset");
        
p[101] = GetProcAddress(hL,"midiOutSetVolume");
        
p[102] = GetProcAddress(hL,"midiOutShortMsg");
        
p[103] = GetProcAddress(hL,"midiOutUnprepareHeader");
        
p[104] = GetProcAddress(hL,"midiStreamClose");
        
p[105] = GetProcAddress(hL,"midiStreamOpen");
        
p[106] = GetProcAddress(hL,"midiStreamOut");
        
p[107] = GetProcAddress(hL,"midiStreamPause");
        
p[108] = GetProcAddress(hL,"midiStreamPosition");
        
p[109] = GetProcAddress(hL,"midiStreamProperty");
        
p[110] = GetProcAddress(hL,"midiStreamRestart");
        
p[111] = GetProcAddress(hL,"midiStreamStop");
        
p[112] = GetProcAddress(hL,"mixerClose");
        
p[113] = GetProcAddress(hL,"mixerGetControlDetailsA");
        
p[114] = GetProcAddress(hL,"mixerGetControlDetailsW");
        
p[115] = GetProcAddress(hL,"mixerGetDevCapsA");
        
p[116] = GetProcAddress(hL,"mixerGetDevCapsW");
        
p[117] = GetProcAddress(hL,"mixerGetID");
        
p[118] = GetProcAddress(hL,"mixerGetLineControlsA");
        
p[119] = GetProcAddress(hL,"mixerGetLineControlsW");
        
p[120] = GetProcAddress(hL,"mixerGetLineInfoA");
        
p[121] = GetProcAddress(hL,"mixerGetLineInfoW");
        
p[122] = GetProcAddress(hL,"mixerGetNumDevs");
        
p[123] = GetProcAddress(hL,"mixerMessage");
        
p[124] = GetProcAddress(hL,"mixerOpen");
        
p[125] = GetProcAddress(hL,"mixerSetControlDetails");
        
p[126] = GetProcAddress(hL,"mmDrvInstall");
        
p[127] = GetProcAddress(hL,"mmGetCurrentTask");
        
p[128] = GetProcAddress(hL,"mmTaskBlock");
        
p[129] = GetProcAddress(hL,"mmTaskCreate");
        
p[130] = GetProcAddress(hL,"mmTaskSignal");
        
p[131] = GetProcAddress(hL,"mmTaskYield");
        
p[132] = GetProcAddress(hL,"mmioAdvance");
        
p[133] = GetProcAddress(hL,"mmioAscend");
        
p[134] = GetProcAddress(hL,"mmioClose");
        
p[135] = GetProcAddress(hL,"mmioCreateChunk");
        
p[136] = GetProcAddress(hL,"mmioDescend");
        
p[137] = GetProcAddress(hL,"mmioFlush");
        
p[138] = GetProcAddress(hL,"mmioGetInfo");
        
p[139] = GetProcAddress(hL,"mmioInstallIOProcA");
        
p[140] = GetProcAddress(hL,"mmioInstallIOProcW");
        
p[141] = GetProcAddress(hL,"mmioOpenA");
        
p[142] = GetProcAddress(hL,"mmioOpenW");
        
p[143] = GetProcAddress(hL,"mmioRead");
        
p[144] = GetProcAddress(hL,"mmioRenameA");
        
p[145] = GetProcAddress(hL,"mmioRenameW");
        
p[146] = GetProcAddress(hL,"mmioSeek");
        
p[147] = GetProcAddress(hL,"mmioSendMessage");
        
p[148] = GetProcAddress(hL,"mmioSetBuffer");
        
p[149] = GetProcAddress(hL,"mmioSetInfo");
        
p[150] = GetProcAddress(hL,"mmioStringToFOURCCA");
        
p[151] = GetProcAddress(hL,"mmioStringToFOURCCW");
        
p[152] = GetProcAddress(hL,"mmioWrite");
        
p[153] = GetProcAddress(hL,"mmsystemGetVersion");
        
p[154] = GetProcAddress(hL,"mod32Message");
        
p[155] = GetProcAddress(hL,"mxd32Message");
        
p[156] = GetProcAddress(hL,"sndPlaySoundA");
        
p[157] = GetProcAddress(hL,"sndPlaySoundW");
        
p[158] = GetProcAddress(hL,"tid32Message");
        
p[159] = GetProcAddress(hL,"timeBeginPeriod");
        
p[160] = GetProcAddress(hL,"timeEndPeriod");
        
p[161] = GetProcAddress(hL,"timeGetDevCaps");
        
p[162] = GetProcAddress(hL,"timeGetSystemTime");
        
p[163] = GetProcAddress(hL,"timeGetTime");
        
p[164] = GetProcAddress(hL,"timeKillEvent");
        
p[165] = GetProcAddress(hL,"timeSetEvent");
        
p[166] = GetProcAddress(hL,"waveInAddBuffer");
        
p[167] = GetProcAddress(hL,"waveInClose");
        
p[168] = GetProcAddress(hL,"waveInGetDevCapsA");
        
p[169] = GetProcAddress(hL,"waveInGetDevCapsW");
        
p[170] = GetProcAddress(hL,"waveInGetErrorTextA");
        
p[171] = GetProcAddress(hL,"waveInGetErrorTextW");
        
p[172] = GetProcAddress(hL,"waveInGetID");
        
p[173] = GetProcAddress(hL,"waveInGetNumDevs");
        
p[174] = GetProcAddress(hL,"waveInGetPosition");
        
p[175] = GetProcAddress(hL,"waveInMessage");
        
p[176] = GetProcAddress(hL,"waveInOpen");
        
p[177] = GetProcAddress(hL,"waveInPrepareHeader");
        
p[178] = GetProcAddress(hL,"waveInReset");
        
p[179] = GetProcAddress(hL,"waveInStart");
        
p[180] = GetProcAddress(hL,"waveInStop");
        
p[181] = GetProcAddress(hL,"waveInUnprepareHeader");
        
p[182] = GetProcAddress(hL,"waveOutBreakLoop");
        
p[183] = GetProcAddress(hL,"waveOutClose");
        
p[184] = GetProcAddress(hL,"waveOutGetDevCapsA");
        
p[185] = GetProcAddress(hL,"waveOutGetDevCapsW");
        
p[186] = GetProcAddress(hL,"waveOutGetErrorTextA");
        
p[187] = GetProcAddress(hL,"waveOutGetErrorTextW");
        
p[188] = GetProcAddress(hL,"waveOutGetID");
        
p[189] = GetProcAddress(hL,"waveOutGetNumDevs");
        
p[190] = GetProcAddress(hL,"waveOutGetPitch");
        
p[191] = GetProcAddress(hL,"waveOutGetPlaybackRate");
        
p[192] = GetProcAddress(hL,"waveOutGetPosition");
        
p[193] = GetProcAddress(hL,"waveOutGetVolume");
        
p[194] = GetProcAddress(hL,"waveOutMessage");
        
p[195] = GetProcAddress(hL,"waveOutOpen");
        
p[196] = GetProcAddress(hL,"waveOutPause");
        
p[197] = GetProcAddress(hL,"waveOutPrepareHeader");
        
p[198] = GetProcAddress(hL,"waveOutReset");
        
p[199] = GetProcAddress(hL,"waveOutRestart");
        
p[200] = GetProcAddress(hL,"waveOutSetPitch");
        
p[201] = GetProcAddress(hL,"waveOutSetPlaybackRate");
        
p[202] = GetProcAddress(hL,"waveOutSetVolume");
        
p[203] = GetProcAddress(hL,"waveOutUnprepareHeader");
        
p[204] = GetProcAddress(hL,"waveOutWrite");
        
p[205] = GetProcAddress(hL,"wid32Message");
        
p[206] = GetProcAddress(hL,"winmmDbgOut");
        
p[207] = GetProcAddress(hL,"winmmSetDebugLevel");
        
p[208] = GetProcAddress(hL,"wod32Message");
        
p[209] = GetProcAddress(hL,(LPCSTR)"2");

        }
    if (
reason == DLL_PROCESS_DETACH)
        {
        
FreeLibrary(hL);
        }

    return 
1;
    }

// CloseDriver
extern "C" __declspec(nakedvoid __stdcall __E__0__()
    {
    
__asm
        
{
        
jmp p[0*4];
        }
    }

// DefDriverProc
extern "C" __declspec(nakedvoid __stdcall __E__1__()
    {
    
__asm
        
{
        
jmp p[1*4];
        }
    }

// DriverCallback
extern "C" __declspec(nakedvoid __stdcall __E__2__()
    {
    
__asm
        
{
        
jmp p[2*4];
        }
    }

// DrvGetModuleHandle
extern "C" __declspec(nakedvoid __stdcall __E__3__()
    {
    
__asm
        
{
        
jmp p[3*4];
        }
    }

// GetDriverModuleHandle
extern "C" __declspec(nakedvoid __stdcall __E__4__()
    {
    
__asm
        
{
        
jmp p[4*4];
        }
    }

// MigrateAllDrivers
extern "C" __declspec(nakedvoid __stdcall __E__5__()
    {
    
__asm
        
{
        
jmp p[5*4];
        }
    }

// MigrateSoundEvents
extern "C" __declspec(nakedvoid __stdcall __E__6__()
    {
    
__asm
        
{
        
jmp p[6*4];
        }
    }

// NotifyCallbackData
extern "C" __declspec(nakedvoid __stdcall __E__7__()
    {
    
__asm
        
{
        
jmp p[7*4];
        }
    }

// OpenDriver
extern "C" __declspec(nakedvoid __stdcall __E__8__()
    {
    
__asm
        
{
        
jmp p[8*4];
        }
    }

// PlaySound
extern "C" __declspec(nakedvoid __stdcall __E__9__()
    {
    
__asm
        
{
        
jmp p[9*4];
        }
    }

// PlaySoundA
extern "C" __declspec(nakedvoid __stdcall __E__10__()
    {
    
__asm
        
{
        
jmp p[10*4];
        }
    }

// PlaySoundW
extern "C" __declspec(nakedvoid __stdcall __E__11__()
    {
    
__asm
        
{
        
jmp p[11*4];
        }
    }

// SendDriverMessage
extern "C" __declspec(nakedvoid __stdcall __E__12__()
    {
    
__asm
        
{
        
jmp p[12*4];
        }
    }

// WOW32DriverCallback
extern "C" __declspec(nakedvoid __stdcall __E__13__()
    {
    
__asm
        
{
        
jmp p[13*4];
        }
    }

// WOW32ResolveMultiMediaHandle
extern "C" __declspec(nakedvoid __stdcall __E__14__()
    {
    
__asm
        
{
        
jmp p[14*4];
        }
    }

// WOWAppExit
extern "C" __declspec(nakedvoid __stdcall __E__15__()
    {
    
__asm
        
{
        
jmp p[15*4];
        }
    }

// WinmmLogoff
extern "C" __declspec(nakedvoid __stdcall __E__16__()
    {
    
__asm
        
{
        
jmp p[16*4];
        }
    }

// WinmmLogon
extern "C" __declspec(nakedvoid __stdcall __E__17__()
    {
    
__asm
        
{
        
jmp p[17*4];
        }
    }

// [email protected]
extern "C" __declspec(nakedvoid __stdcall __E__18__()
    {
    
__asm
        
{
        
jmp p[18*4];
        }
    }

// [email protected]
extern "C" __declspec(nakedvoid __stdcall __E__19__()
    {
    
__asm
        
{
        
jmp p[19*4];
        }
    }

// aux32Message
extern "C" __declspec(nakedvoid __stdcall __E__20__()
    {
    
__asm
        
{
        
jmp p[20*4];
        }
    }

// auxGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__21__()
    {
    
__asm
        
{
        
jmp p[21*4];
        }
    }

// auxGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__22__()
    {
    
__asm
        
{
        
jmp p[22*4];
        }
    }

// auxGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__23__()
    {
    
__asm
        
{
        
jmp p[23*4];
        }
    }

// auxGetVolume
extern "C" __declspec(nakedvoid __stdcall __E__24__()
    {
    
__asm
        
{
        
jmp p[24*4];
        }
    }

// auxOutMessage
extern "C" __declspec(nakedvoid __stdcall __E__25__()
    {
    
__asm
        
{
        
jmp p[25*4];
        }
    }

// auxSetVolume
extern "C" __declspec(nakedvoid __stdcall __E__26__()
    {
    
__asm
        
{
        
jmp p[26*4];
        }
    }

// gfxAddGfx
extern "C" __declspec(nakedvoid __stdcall __E__27__()
    {
    
__asm
        
{
        
jmp p[27*4];
        }
    }

// gfxBatchChange
extern "C" __declspec(nakedvoid __stdcall __E__28__()
    {
    
__asm
        
{
        
jmp p[28*4];
        }
    }

// gfxCreateGfxFactoriesList
extern "C" __declspec(nakedvoid __stdcall __E__29__()
    {
    
__asm
        
{
        
jmp p[29*4];
        }
    }

// gfxCreateZoneFactoriesList
extern "C" __declspec(nakedvoid __stdcall __E__30__()
    {
    
__asm
        
{
        
jmp p[30*4];
        }
    }

// gfxDestroyDeviceInterfaceList
extern "C" __declspec(nakedvoid __stdcall __E__31__()
    {
    
__asm
        
{
        
jmp p[31*4];
        }
    }

// gfxEnumerateGfxs
extern "C" __declspec(nakedvoid __stdcall __E__32__()
    {
    
__asm
        
{
        
jmp p[32*4];
        }
    }

// gfxModifyGfx
extern "C" __declspec(nakedvoid __stdcall __E__33__()
    {
    
__asm
        
{
        
jmp p[33*4];
        }
    }

// gfxOpenGfx
extern "C" __declspec(nakedvoid __stdcall __E__34__()
    {
    
__asm
        
{
        
jmp p[34*4];
        }
    }

// gfxRemoveGfx
extern "C" __declspec(nakedvoid __stdcall __E__35__()
    {
    
__asm
        
{
        
jmp p[35*4];
        }
    }

// joy32Message
extern "C" __declspec(nakedvoid __stdcall __E__36__()
    {
    
__asm
        
{
        
jmp p[36*4];
        }
    }

// joyConfigChanged
extern "C" __declspec(nakedvoid __stdcall __E__37__()
    {
    
__asm
        
{
        
jmp p[37*4];
        }
    }

// joyGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__38__()
    {
    
__asm
        
{
        
jmp p[38*4];
        }
    }

// joyGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__39__()
    {
    
__asm
        
{
        
jmp p[39*4];
        }
    }

// joyGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__40__()
    {
    
__asm
        
{
        
jmp p[40*4];
        }
    }

// joyGetPos
extern "C" __declspec(nakedvoid __stdcall __E__41__()
    {
    
__asm
        
{
        
jmp p[41*4];
        }
    }

// joyGetPosEx
extern "C" __declspec(nakedvoid __stdcall __E__42__()
    {
    
__asm
        
{
        
jmp p[42*4];
        }
    }

// joyGetThreshold
extern "C" __declspec(nakedvoid __stdcall __E__43__()
    {
    
__asm
        
{
        
jmp p[43*4];
        }
    }

// joyReleaseCapture
extern "C" __declspec(nakedvoid __stdcall __E__44__()
    {
    
__asm
        
{
        
jmp p[44*4];
        }
    }

// joySetCapture
extern "C" __declspec(nakedvoid __stdcall __E__45__()
    {
    
__asm
        
{
        
jmp p[45*4];
        }
    }

// joySetThreshold
extern "C" __declspec(nakedvoid __stdcall __E__46__()
    {
    
__asm
        
{
        
jmp p[46*4];
        }
    }

// mci32Message
extern "C" __declspec(nakedvoid __stdcall __E__47__()
    {
    
__asm
        
{
        
jmp p[47*4];
        }
    }

// mciDriverNotify
extern "C" __declspec(nakedvoid __stdcall __E__48__()
    {
    
__asm
        
{
        
jmp p[48*4];
        }
    }

// mciDriverYield
extern "C" __declspec(nakedvoid __stdcall __E__49__()
    {
    
__asm
        
{
        
jmp p[49*4];
        }
    }

// mciExecute
extern "C" __declspec(nakedvoid __stdcall __E__50__()
    {
    
__asm
        
{
        
jmp p[50*4];
        }
    }

// mciFreeCommandResource
extern "C" __declspec(nakedvoid __stdcall __E__51__()
    {
    
__asm
        
{
        
jmp p[51*4];
        }
    }

// mciGetCreatorTask
extern "C" __declspec(nakedvoid __stdcall __E__52__()
    {
    
__asm
        
{
        
jmp p[52*4];
        }
    }

// mciGetDeviceIDA
extern "C" __declspec(nakedvoid __stdcall __E__53__()
    {
    
__asm
        
{
        
jmp p[53*4];
        }
    }

// mciGetDeviceIDFromElementIDA
extern "C" __declspec(nakedvoid __stdcall __E__54__()
    {
    
__asm
        
{
        
jmp p[54*4];
        }
    }

// mciGetDeviceIDFromElementIDW
extern "C" __declspec(nakedvoid __stdcall __E__55__()
    {
    
__asm
        
{
        
jmp p[55*4];
        }
    }

// mciGetDeviceIDW
extern "C" __declspec(nakedvoid __stdcall __E__56__()
    {
    
__asm
        
{
        
jmp p[56*4];
        }
    }

// mciGetDriverData
extern "C" __declspec(nakedvoid __stdcall __E__57__()
    {
    
__asm
        
{
        
jmp p[57*4];
        }
    }

// mciGetErrorStringA
extern "C" __declspec(nakedvoid __stdcall __E__58__()
    {
    
__asm
        
{
        
jmp p[58*4];
        }
    }

// mciGetErrorStringW
extern "C" __declspec(nakedvoid __stdcall __E__59__()
    {
    
__asm
        
{
        
jmp p[59*4];
        }
    }

// mciGetYieldProc
extern "C" __declspec(nakedvoid __stdcall __E__60__()
    {
    
__asm
        
{
        
jmp p[60*4];
        }
    }

// mciLoadCommandResource
extern "C" __declspec(nakedvoid __stdcall __E__61__()
    {
    
__asm
        
{
        
jmp p[61*4];
        }
    }

// mciSendCommandA
extern "C" __declspec(nakedvoid __stdcall __E__62__()
    {
    
__asm
        
{
        
jmp p[62*4];
        }
    }

// mciSendCommandW
extern "C" __declspec(nakedvoid __stdcall __E__63__()
    {
    
__asm
        
{
        
jmp p[63*4];
        }
    }

// mciSendStringA
extern "C" __declspec(nakedvoid __stdcall __E__64__()
    {
    
__asm
        
{
        
jmp p[64*4];
        }
    }

// mciSendStringW
extern "C" __declspec(nakedvoid __stdcall __E__65__()
    {
    
__asm
        
{
        
jmp p[65*4];
        }
    }

// mciSetDriverData
extern "C" __declspec(nakedvoid __stdcall __E__66__()
    {
    
__asm
        
{
        
jmp p[66*4];
        }
    }

// mciSetYieldProc
extern "C" __declspec(nakedvoid __stdcall __E__67__()
    {
    
__asm
        
{
        
jmp p[67*4];
        }
    }

// mid32Message
extern "C" __declspec(nakedvoid __stdcall __E__68__()
    {
    
__asm
        
{
        
jmp p[68*4];
        }
    }

// midiConnect
extern "C" __declspec(nakedvoid __stdcall __E__69__()
    {
    
__asm
        
{
        
jmp p[69*4];
        }
    }

// midiDisconnect
extern "C" __declspec(nakedvoid __stdcall __E__70__()
    {
    
__asm
        
{
        
jmp p[70*4];
        }
    }

// midiInAddBuffer
extern "C" __declspec(nakedvoid __stdcall __E__71__()
    {
    
__asm
        
{
        
jmp p[71*4];
        }
    }

// midiInClose
extern "C" __declspec(nakedvoid __stdcall __E__72__()
    {
    
__asm
        
{
        
jmp p[72*4];
        }
    }

// midiInGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__73__()
    {
    
__asm
        
{
        
jmp p[73*4];
        }
    }

// midiInGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__74__()
    {
    
__asm
        
{
        
jmp p[74*4];
        }
    }

// midiInGetErrorTextA
extern "C" __declspec(nakedvoid __stdcall __E__75__()
    {
    
__asm
        
{
        
jmp p[75*4];
        }
    }

// midiInGetErrorTextW
extern "C" __declspec(nakedvoid __stdcall __E__76__()
    {
    
__asm
        
{
        
jmp p[76*4];
        }
    }

// midiInGetID
extern "C" __declspec(nakedvoid __stdcall __E__77__()
    {
    
__asm
        
{
        
jmp p[77*4];
        }
    }

// midiInGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__78__()
    {
    
__asm
        
{
        
jmp p[78*4];
        }
    }

// midiInMessage
extern "C" __declspec(nakedvoid __stdcall __E__79__()
    {
    
__asm
        
{
        
jmp p[79*4];
        }
    }

// midiInOpen
extern "C" __declspec(nakedvoid __stdcall __E__80__()
    {
    
__asm
        
{
        
jmp p[80*4];
        }
    }

// midiInPrepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__81__()
    {
    
__asm
        
{
        
jmp p[81*4];
        }
    }

// midiInReset
extern "C" __declspec(nakedvoid __stdcall __E__82__()
    {
    
__asm
        
{
        
jmp p[82*4];
        }
    }

// midiInStart
extern "C" __declspec(nakedvoid __stdcall __E__83__()
    {
    
__asm
        
{
        
jmp p[83*4];
        }
    }

// midiInStop
extern "C" __declspec(nakedvoid __stdcall __E__84__()
    {
    
__asm
        
{
        
jmp p[84*4];
        }
    }

// midiInUnprepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__85__()
    {
    
__asm
        
{
        
jmp p[85*4];
        }
    }

// midiOutCacheDrumPatches
extern "C" __declspec(nakedvoid __stdcall __E__86__()
    {
    
__asm
        
{
        
jmp p[86*4];
        }
    }

// midiOutCachePatches
extern "C" __declspec(nakedvoid __stdcall __E__87__()
    {
    
__asm
        
{
        
jmp p[87*4];
        }
    }

// midiOutClose
extern "C" __declspec(nakedvoid __stdcall __E__88__()
    {
    
__asm
        
{
        
jmp p[88*4];
        }
    }

// midiOutGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__89__()
    {
    
__asm
        
{
        
jmp p[89*4];
        }
    }

// midiOutGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__90__()
    {
    
__asm
        
{
        
jmp p[90*4];
        }
    }

// midiOutGetErrorTextA
extern "C" __declspec(nakedvoid __stdcall __E__91__()
    {
    
__asm
        
{
        
jmp p[91*4];
        }
    }

// midiOutGetErrorTextW
extern "C" __declspec(nakedvoid __stdcall __E__92__()
    {
    
__asm
        
{
        
jmp p[92*4];
        }
    }

// midiOutGetID
extern "C" __declspec(nakedvoid __stdcall __E__93__()
    {
    
__asm
        
{
        
jmp p[93*4];
        }
    }

// midiOutGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__94__()
    {
    
__asm
        
{
        
jmp p[94*4];
        }
    }

// midiOutGetVolume
extern "C" __declspec(nakedvoid __stdcall __E__95__()
    {
    
__asm
        
{
        
jmp p[95*4];
        }
    }

// midiOutLongMsg
extern "C" __declspec(nakedvoid __stdcall __E__96__()
    {
    
__asm
        
{
        
jmp p[96*4];
        }
    }

// midiOutMessage
extern "C" __declspec(nakedvoid __stdcall __E__97__()
    {
    
__asm
        
{
        
jmp p[97*4];
        }
    }

// midiOutOpen
extern "C" __declspec(nakedvoid __stdcall __E__98__()
    {
    
__asm
        
{
        
jmp p[98*4];
        }
    }

// midiOutPrepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__99__()
    {
    
__asm
        
{
        
jmp p[99*4];
        }
    }

// midiOutReset
extern "C" __declspec(nakedvoid __stdcall __E__100__()
    {
    
__asm
        
{
        
jmp p[100*4];
        }
    }

// midiOutSetVolume
extern "C" __declspec(nakedvoid __stdcall __E__101__()
    {
    
__asm
        
{
        
jmp p[101*4];
        }
    }

// midiOutShortMsg
extern "C" __declspec(nakedvoid __stdcall __E__102__()
    {
    
__asm
        
{
        
jmp p[102*4];
        }
    }

// midiOutUnprepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__103__()
    {
    
__asm
        
{
        
jmp p[103*4];
        }
    }

// midiStreamClose
extern "C" __declspec(nakedvoid __stdcall __E__104__()
    {
    
__asm
        
{
        
jmp p[104*4];
        }
    }

// midiStreamOpen
extern "C" __declspec(nakedvoid __stdcall __E__105__()
    {
    
__asm
        
{
        
jmp p[105*4];
        }
    }

// midiStreamOut
extern "C" __declspec(nakedvoid __stdcall __E__106__()
    {
    
__asm
        
{
        
jmp p[106*4];
        }
    }

// midiStreamPause
extern "C" __declspec(nakedvoid __stdcall __E__107__()
    {
    
__asm
        
{
        
jmp p[107*4];
        }
    }

// midiStreamPosition
extern "C" __declspec(nakedvoid __stdcall __E__108__()
    {
    
__asm
        
{
        
jmp p[108*4];
        }
    }

// midiStreamProperty
extern "C" __declspec(nakedvoid __stdcall __E__109__()
    {
    
__asm
        
{
        
jmp p[109*4];
        }
    }

// midiStreamRestart
extern "C" __declspec(nakedvoid __stdcall __E__110__()
    {
    
__asm
        
{
        
jmp p[110*4];
        }
    }

// midiStreamStop
extern "C" __declspec(nakedvoid __stdcall __E__111__()
    {
    
__asm
        
{
        
jmp p[111*4];
        }
    }

// mixerClose
extern "C" __declspec(nakedvoid __stdcall __E__112__()
    {
    
__asm
        
{
        
jmp p[112*4];
        }
    }

// mixerGetControlDetailsA
extern "C" __declspec(nakedvoid __stdcall __E__113__()
    {
    
__asm
        
{
        
jmp p[113*4];
        }
    }

// mixerGetControlDetailsW
extern "C" __declspec(nakedvoid __stdcall __E__114__()
    {
    
__asm
        
{
        
jmp p[114*4];
        }
    }

// mixerGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__115__()
    {
    
__asm
        
{
        
jmp p[115*4];
        }
    }

// mixerGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__116__()
    {
    
__asm
        
{
        
jmp p[116*4];
        }
    }

// mixerGetID
extern "C" __declspec(nakedvoid __stdcall __E__117__()
    {
    
__asm
        
{
        
jmp p[117*4];
        }
    }

// mixerGetLineControlsA
extern "C" __declspec(nakedvoid __stdcall __E__118__()
    {
    
__asm
        
{
        
jmp p[118*4];
        }
    }

// mixerGetLineControlsW
extern "C" __declspec(nakedvoid __stdcall __E__119__()
    {
    
__asm
        
{
        
jmp p[119*4];
        }
    }

// mixerGetLineInfoA
extern "C" __declspec(nakedvoid __stdcall __E__120__()
    {
    
__asm
        
{
        
jmp p[120*4];
        }
    }

// mixerGetLineInfoW
extern "C" __declspec(nakedvoid __stdcall __E__121__()
    {
    
__asm
        
{
        
jmp p[121*4];
        }
    }

// mixerGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__122__()
    {
    
__asm
        
{
        
jmp p[122*4];
        }
    }

// mixerMessage
extern "C" __declspec(nakedvoid __stdcall __E__123__()
    {
    
__asm
        
{
        
jmp p[123*4];
        }
    }

// mixerOpen
extern "C" __declspec(nakedvoid __stdcall __E__124__()
    {
    
__asm
        
{
        
jmp p[124*4];
        }
    }

// mixerSetControlDetails
extern "C" __declspec(nakedvoid __stdcall __E__125__()
    {
    
__asm
        
{
        
jmp p[125*4];
        }
    }

// mmDrvInstall
extern "C" __declspec(nakedvoid __stdcall __E__126__()
    {
    
__asm
        
{
        
jmp p[126*4];
        }
    }

// mmGetCurrentTask
extern "C" __declspec(nakedvoid __stdcall __E__127__()
    {
    
__asm
        
{
        
jmp p[127*4];
        }
    }

// mmTaskBlock
extern "C" __declspec(nakedvoid __stdcall __E__128__()
    {
    
__asm
        
{
        
jmp p[128*4];
        }
    }

// mmTaskCreate
extern "C" __declspec(nakedvoid __stdcall __E__129__()
    {
    
__asm
        
{
        
jmp p[129*4];
        }
    }

// mmTaskSignal
extern "C" __declspec(nakedvoid __stdcall __E__130__()
    {
    
__asm
        
{
        
jmp p[130*4];
        }
    }

// mmTaskYield
extern "C" __declspec(nakedvoid __stdcall __E__131__()
    {
    
__asm
        
{
        
jmp p[131*4];
        }
    }

// mmioAdvance
extern "C" __declspec(nakedvoid __stdcall __E__132__()
    {
    
__asm
        
{
        
jmp p[132*4];
        }
    }

// mmioAscend
extern "C" __declspec(nakedvoid __stdcall __E__133__()
    {
    
__asm
        
{
        
jmp p[133*4];
        }
    }

// mmioClose
extern "C" __declspec(nakedvoid __stdcall __E__134__()
    {
    
__asm
        
{
        
jmp p[134*4];
        }
    }

// mmioCreateChunk
extern "C" __declspec(nakedvoid __stdcall __E__135__()
    {
    
__asm
        
{
        
jmp p[135*4];
        }
    }

// mmioDescend
extern "C" __declspec(nakedvoid __stdcall __E__136__()
    {
    
__asm
        
{
        
jmp p[136*4];
        }
    }

// mmioFlush
extern "C" __declspec(nakedvoid __stdcall __E__137__()
    {
    
__asm
        
{
        
jmp p[137*4];
        }
    }

// mmioGetInfo
extern "C" __declspec(nakedvoid __stdcall __E__138__()
    {
    
__asm
        
{
        
jmp p[138*4];
        }
    }

// mmioInstallIOProcA
extern "C" __declspec(nakedvoid __stdcall __E__139__()
    {
    
__asm
        
{
        
jmp p[139*4];
        }
    }

// mmioInstallIOProcW
extern "C" __declspec(nakedvoid __stdcall __E__140__()
    {
    
__asm
        
{
        
jmp p[140*4];
        }
    }

// mmioOpenA
extern "C" __declspec(nakedvoid __stdcall __E__141__()
    {
    
__asm
        
{
        
jmp p[141*4];
        }
    }

// mmioOpenW
extern "C" __declspec(nakedvoid __stdcall __E__142__()
    {
    
__asm
        
{
        
jmp p[142*4];
        }
    }

// mmioRead
extern "C" __declspec(nakedvoid __stdcall __E__143__()
    {
    
__asm
        
{
        
jmp p[143*4];
        }
    }

// mmioRenameA
extern "C" __declspec(nakedvoid __stdcall __E__144__()
    {
    
__asm
        
{
        
jmp p[144*4];
        }
    }

// mmioRenameW
extern "C" __declspec(nakedvoid __stdcall __E__145__()
    {
    
__asm
        
{
        
jmp p[145*4];
        }
    }

// mmioSeek
extern "C" __declspec(nakedvoid __stdcall __E__146__()
    {
    
__asm
        
{
        
jmp p[146*4];
        }
    }

// mmioSendMessage
extern "C" __declspec(nakedvoid __stdcall __E__147__()
    {
    
__asm
        
{
        
jmp p[147*4];
        }
    }

// mmioSetBuffer
extern "C" __declspec(nakedvoid __stdcall __E__148__()
    {
    
__asm
        
{
        
jmp p[148*4];
        }
    }

// mmioSetInfo
extern "C" __declspec(nakedvoid __stdcall __E__149__()
    {
    
__asm
        
{
        
jmp p[149*4];
        }
    }

// mmioStringToFOURCCA
extern "C" __declspec(nakedvoid __stdcall __E__150__()
    {
    
__asm
        
{
        
jmp p[150*4];
        }
    }

// mmioStringToFOURCCW
extern "C" __declspec(nakedvoid __stdcall __E__151__()
    {
    
__asm
        
{
        
jmp p[151*4];
        }
    }

// mmioWrite
extern "C" __declspec(nakedvoid __stdcall __E__152__()
    {
    
__asm
        
{
        
jmp p[152*4];
        }
    }

// mmsystemGetVersion
extern "C" __declspec(nakedvoid __stdcall __E__153__()
    {
    
__asm
        
{
        
jmp p[153*4];
        }
    }

// mod32Message
extern "C" __declspec(nakedvoid __stdcall __E__154__()
    {
    
__asm
        
{
        
jmp p[154*4];
        }
    }

// mxd32Message
extern "C" __declspec(nakedvoid __stdcall __E__155__()
    {
    
__asm
        
{
        
jmp p[155*4];
        }
    }

// sndPlaySoundA
extern "C" __declspec(nakedvoid __stdcall __E__156__()
    {
    
__asm
        
{
        
jmp p[156*4];
        }
    }

// sndPlaySoundW
extern "C" __declspec(nakedvoid __stdcall __E__157__()
    {
    
__asm
        
{
        
jmp p[157*4];
        }
    }

// tid32Message
extern "C" __declspec(nakedvoid __stdcall __E__158__()
    {
    
__asm
        
{
        
jmp p[158*4];
        }
    }

// timeBeginPeriod
extern "C" __declspec(nakedvoid __stdcall __E__159__()
    {
    
__asm
        
{
        
jmp p[159*4];
        }
    }

// timeEndPeriod
extern "C" __declspec(nakedvoid __stdcall __E__160__()
    {
    
__asm
        
{
        
jmp p[160*4];
        }
    }

// timeGetDevCaps
extern "C" __declspec(nakedvoid __stdcall __E__161__()
    {
    
__asm
        
{
        
jmp p[161*4];
        }
    }

// timeGetSystemTime
extern "C" __declspec(nakedvoid __stdcall __E__162__()
    {
    
__asm
        
{
        
jmp p[162*4];
        }
    }

// timeGetTime
extern "C" __declspec(nakedvoid __stdcall __E__163__()
    {
    
__asm
        
{
        
jmp p[163*4];
        }
    }

// timeKillEvent
extern "C" __declspec(nakedvoid __stdcall __E__164__()
    {
    
__asm
        
{
        
jmp p[164*4];
        }
    }

// timeSetEvent
extern "C" __declspec(nakedvoid __stdcall __E__165__()
    {
    
__asm
        
{
        
jmp p[165*4];
        }
    }

// waveInAddBuffer
extern "C" __declspec(nakedvoid __stdcall __E__166__()
    {
    
__asm
        
{
        
jmp p[166*4];
        }
    }

// waveInClose
extern "C" __declspec(nakedvoid __stdcall __E__167__()
    {
    
__asm
        
{
        
jmp p[167*4];
        }
    }

// waveInGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__168__()
    {
    
__asm
        
{
        
jmp p[168*4];
        }
    }

// waveInGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__169__()
    {
    
__asm
        
{
        
jmp p[169*4];
        }
    }

// waveInGetErrorTextA
extern "C" __declspec(nakedvoid __stdcall __E__170__()
    {
    
__asm
        
{
        
jmp p[170*4];
        }
    }

// waveInGetErrorTextW
extern "C" __declspec(nakedvoid __stdcall __E__171__()
    {
    
__asm
        
{
        
jmp p[171*4];
        }
    }

// waveInGetID
extern "C" __declspec(nakedvoid __stdcall __E__172__()
    {
    
__asm
        
{
        
jmp p[172*4];
        }
    }

// waveInGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__173__()
    {
    
__asm
        
{
        
jmp p[173*4];
        }
    }

// waveInGetPosition
extern "C" __declspec(nakedvoid __stdcall __E__174__()
    {
    
__asm
        
{
        
jmp p[174*4];
        }
    }

// waveInMessage
extern "C" __declspec(nakedvoid __stdcall __E__175__()
    {
    
__asm
        
{
        
jmp p[175*4];
        }
    }

// waveInOpen
extern "C" __declspec(nakedvoid __stdcall __E__176__()
    {
    
__asm
        
{
        
jmp p[176*4];
        }
    }

// waveInPrepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__177__()
    {
    
__asm
        
{
        
jmp p[177*4];
        }
    }

// waveInReset
extern "C" __declspec(nakedvoid __stdcall __E__178__()
    {
    
__asm
        
{
        
jmp p[178*4];
        }
    }

// waveInStart
extern "C" __declspec(nakedvoid __stdcall __E__179__()
    {
    
__asm
        
{
        
jmp p[179*4];
        }
    }

// waveInStop
extern "C" __declspec(nakedvoid __stdcall __E__180__()
    {
    
__asm
        
{
        
jmp p[180*4];
        }
    }

// waveInUnprepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__181__()
    {
    
__asm
        
{
        
jmp p[181*4];
        }
    }

// waveOutBreakLoop
extern "C" __declspec(nakedvoid __stdcall __E__182__()
    {
    
__asm
        
{
        
jmp p[182*4];
        }
    }

// waveOutClose
extern "C" __declspec(nakedvoid __stdcall __E__183__()
    {
    
__asm
        
{
        
jmp p[183*4];
        }
    }

// waveOutGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__184__()
    {
    
__asm
        
{
        
jmp p[184*4];
        }
    }

// waveOutGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__185__()
    {
    
__asm
        
{
        
jmp p[185*4];
        }
    }

// waveOutGetErrorTextA
extern "C" __declspec(nakedvoid __stdcall __E__186__()
    {
    
__asm
        
{
        
jmp p[186*4];
        }
    }

// waveOutGetErrorTextW
extern "C" __declspec(nakedvoid __stdcall __E__187__()
    {
    
__asm
        
{
        
jmp p[187*4];
        }
    }

// waveOutGetID
extern "C" __declspec(nakedvoid __stdcall __E__188__()
    {
    
__asm
        
{
        
jmp p[188*4];
        }
    }

// waveOutGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__189__()
    {
    
__asm
        
{
        
jmp p[189*4];
        }
    }

// waveOutGetPitch
extern "C" __declspec(nakedvoid __stdcall __E__190__()
    {
    
__asm
        
{
        
jmp p[190*4];
        }
    }

// waveOutGetPlaybackRate
extern "C" __declspec(nakedvoid __stdcall __E__191__()
    {
    
__asm
        
{
        
jmp p[191*4];
        }
    }

// waveOutGetPosition
extern "C" __declspec(nakedvoid __stdcall __E__192__()
    {
    
__asm
        
{
        
jmp p[192*4];
        }
    }

// waveOutGetVolume
extern "C" __declspec(nakedvoid __stdcall __E__193__()
    {
    
__asm
        
{
        
jmp p[193*4];
        }
    }

// waveOutMessage
extern "C" __declspec(nakedvoid __stdcall __E__194__()
    {
    
__asm
        
{
        
jmp p[194*4];
        }
    }

// waveOutOpen
extern "C" __declspec(nakedvoid __stdcall __E__195__()
    {
    
__asm
        
{
        
jmp p[195*4];
        }
    }

// waveOutPause
extern "C" __declspec(nakedvoid __stdcall __E__196__()
    {
    
__asm
        
{
        
jmp p[196*4];
        }
    }

// waveOutPrepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__197__()
    {
    
__asm
        
{
        
jmp p[197*4];
        }
    }

// waveOutReset
extern "C" __declspec(nakedvoid __stdcall __E__198__()
    {
    
__asm
        
{
        
jmp p[198*4];
        }
    }

// waveOutRestart
extern "C" __declspec(nakedvoid __stdcall __E__199__()
    {
    
__asm
        
{
        
jmp p[199*4];
        }
    }

// waveOutSetPitch
extern "C" __declspec(nakedvoid __stdcall __E__200__()
    {
    
__asm
        
{
        
jmp p[200*4];
        }
    }

// waveOutSetPlaybackRate
extern "C" __declspec(nakedvoid __stdcall __E__201__()
    {
    
__asm
        
{
        
jmp p[201*4];
        }
    }

// waveOutSetVolume
extern "C" __declspec(nakedvoid __stdcall __E__202__()
    {
    
__asm
        
{
        
jmp p[202*4];
        }
    }

// waveOutUnprepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__203__()
    {
    
__asm
        
{
        
jmp p[203*4];
        }
    }

// waveOutWrite
extern "C" __declspec(nakedvoid __stdcall __E__204__()
    {
    
__asm
        
{
        
jmp p[204*4];
        }
    }

// wid32Message
extern "C" __declspec(nakedvoid __stdcall __E__205__()
    {
    
__asm
        
{
        
jmp p[205*4];
        }
    }

// winmmDbgOut
extern "C" __declspec(nakedvoid __stdcall __E__206__()
    {
    
__asm
        
{
        
jmp p[206*4];
        }
    }

// winmmSetDebugLevel
extern "C" __declspec(nakedvoid __stdcall __E__207__()
    {
    
__asm
        
{
        
jmp p[207*4];
        }
    }

// wod32Message
extern "C" __declspec(nakedvoid __stdcall __E__208__()
    {
    
__asm
        
{
        
jmp p[208*4];
        }
    }

// ___XXX___210
extern "C" __declspec(nakedvoid __stdcall __E__209__()
    {
    
__asm
        
{
        
jmp p[209*4];
        }
    } 
hier jetzt einmal der volle code denke mal ist ja egal wenn ich den poste wurde eh schon gepostet
©Bakabug .... und so
nich wundern wenn ihr irgendeine scheiße da drin findet ich mach gerne blödsinn mit den codes
kalhacker9000 is offline  
Old 03/30/2009, 14:45   #23
 
elite*gold: 0
Join Date: Dec 2006
Posts: 647
Received Thanks: 342
PHP Code:
 /*
=================================
KalOnline PacketHack
Public Version 1.0
=================================
Based on KalHack11 by BakaBug
Modified/Addons by Diamond.
=================================
*/

#include <windows.h>
#include "main.h"
#include <stdio.h>
#include <fcntl.h> 
#include <io.h>
#include <process.h>
// basic file operations
#include <iostream>
#include <fstream>
#include <math.h>

using namespace std;
#pragma pack(1)



char command[255]={0};
charsomething;
DWORD weaponID;
DWORD speedvalue;
DWORDspeedpointer = (DWORD*)0x006F3840;
DWORD fparty;
DWORD fduel;
DWORD ftrade;
DWORD fstudent1;
charfstudent;
DWORD poliID;
DWORD taliID;
DWORD weapID;
DWORD bot=0;
DWORD high;
DWORD trade=0;
DWORD weap1ID;
DWORD weap2ID;
DWORD stone1ID;
DWORD stone2ID;
DWORD armorID;
DWORD dropID;
DWORD droptimes;
DWORD pimps;
DWORD ebID;
DWORD ebtimes;
char lvl[255]={100};
DWORD coordinate1;
DWORD coordinate2;
DWORD storms;
int PID1;
DWORD playerID;
DWORD aniID;
DWORD danceID;
DWORD type;
DWORDzpointer = (DWORD*)0x006F3840;
int usedrop;
DWORD item2drop;
DWORD useID;
DWORD PID;
int pot;
DWORD MedID;
int number;
int limithp;
DWORD maxhp;
int attackhackstate 0;
char mytext[255] = "";
int q 0;
//DWORD* currentmppointer = (DWORD*)0x0070EB30;
DWORD MMedID;
int limitmp;
DWORD maxmp;
int pick 0;
int behead 0;
int player 0;
DWORD mob 0;
int abcd 0;
int playerormob 1;
DWORD knakattack 0;
DWORD nr;
DWORD handle;
DWORD knackattack=0;
DWORD nr1;
DWORD nr2;
DWORD nr3;
DWORD knackkattack=0;
DWORD nr4;
DWORD attacked=0;
DWORD mstorm=0;
DWORD pstorm=0;
DWORD yes;
DWORD no;
int dancehackon;
int Studenthack;
int flhack;
char answer;
DWORD buff=0;
DWORD id;
DWORD Anihack=0;
DWORD setmix;
DWORD mix;
DWORD waffe;
DWORD waffe2;
DWORD armor;
DWORD stein;
DWORD stein2;
DWORD coord=0;
DWORD X;
DWORD Y;
DWORD d3f5;
int playerx,mobsx,hp,mp;
int last_u=0;
DWORD temp={0};
DWORD lastweapon={0};
DWORD target;
DWORD botstate=0;
DWORD FightBack[500]={0};
DWORD start_x,start_y,lastmove;
DWORD attackcount=0;
DWORD storms1=0;
DWORD zcoord;
DWORD storms12=0;
DWORD tempo=0;
DWORD storm;
DWORD setstorm=0;
DWORD kocp=0;
DWORD p1;
DWORD p2;
DWORD p3;



char SendText[] = "PACKET TYPE:0x%02x FORMAT:%s\n";
char RecvText[] = "RECV TYPE: 0x%02x DATA: \n";
DWORD MyHeightBack;
int MySendBack=0x004F2010+6;
int MyRecvBack=0x004F2121+7;

struct SPlayer
{
DWORD PID;
DWORD X;
DWORD Y;
DWORD Z;
BYTE Classe;
char name[255];
};
SPlayer Player[500]={0};

struct SMob
{
DWORD MID;
DWORD X;
DWORD Y;
DWORD Z;
BYTE Classe;
DWORD HP;
};
SMob Mob[500]={0};

struct SItem
{
DWORD Item;
DWORD X;
DWORD Y;
};
SItem Item[500]={0};


int Naked MyHeightDetour(DWORD x,DWORD y)

{

        
__asm

        
{

          
push    ebp

      mov     ebp
esp

      sub     esp
94h

        
}

        
//show info

        //printf("Height 0x%08x 0x%08x %f\n ",x,y);

        
__asm

        
{

          
jmp     MyHeightBack //back to original

        
}

}

int Naked SendDetour(DWORD type,LPCSTR format,...)
{
        
__asm 
        
{
                
push    ebp
                mov     ebp
esp
                sub     esp
14h
        
}
 
Color(15);
printf(SendText,type,format);
/*//#
        va_list args;
#
        va_start(args, format);  Initialize variable arguments. 
#
 
#
        int i,s;
#
        char* something;
#
        for (i=0;i<strlen(format);i++)
#
        {
#
         switch (format[i])
#
         {
#
          case 'U': //??? 4bytes
#
                  temp=va_arg( args, DWORD);
#
                  last_u=temp;
#
                break;
#
          case 'b': //BYTE
#
                  if ((i==1)&&((type==0x14)||(type==0x15)))
#
                          Player[0].X+=(signed char)va_arg( args, DWORD);
#
                  if ((i==2)&&((type==0x14)||(type==0x15)))
#
                          Player[0].Y+=(signed char)va_arg( args, DWORD);
#
                  if ((i==3)&&((type==0x14)||(type==0x15)))
#
                          Player[0].Z+=(signed char)va_arg( args, DWORD);
#
                  if (type==0x0F)
#
                  {
#
                        temp=va_arg( args, DWORD);
#
                  }
#
                  if (type==0x10)
#
                  {
#
                         temp=va_arg( args, DWORD);
#
                  }
#
            break;
#
          case 'd': //DWORD
#
                if (type==0x0F)
#
                  //printf(" %d: %d\n",i+1,va_arg( args, DWORD));
#
                  temp=va_arg( args, DWORD);
#
                  if ((i==2)&&(type==0x0F))
#
                  {
#
                          printf("Attack [%08x,",temp);
#
                          s=temp;
#
                  }
#
                  if ((i==3)&&(type==0x0F))
#
                  {
#
                          //yeah the item id
#
                          lastweapon=temp;
#
                          printf("%08x]\n",temp);
#
                          attackcount++;
#
                          if (attackcount>=4)
#
                          {
#
                                  if (mp>50)
#
                                  {
#
                                          //send skill
#
                                         SendDetour(0x10,"Ubbd",last_u,3,1,s);
#
                                        // SendDetour(0x2b,"Ubd",last_u,3,s);
#
                                  }
#
                                  attackcount=0;
#
                          }
#
                  }
#
            break;       
#
          case 'w': //WORD
#
                 // printf(" %d: %d\n",i+1,(WORD)va_arg( args, DWORD));
#
                 temp=va_arg( args, DWORD);
#
            break;
#
          case 's': //WORD
#
                 // printf(" %d: %s\n",i+1,va_arg( args, char*));
#
                  something=va_arg( args, char*);
#
                  if (type==0x11)
#
                  {
#
                  printf("Chat: %s\n",something);
#
                   if (strcmp("/attack",something) == 0)
#
                  {     
#
                          botstate=1;//active
#
                          start_x=Player[0].X;
#
                          start_y=Player[0].Y;
#
                          printf("ACTIVE BOT !\n");
#
                   }
#
                    if (strcmp("/bot 0\0",something) == 0)
#
                  {     
#
                          botstate=0; //deactive
#
                          printf("DEACTIVE BOT !\n");
#
                        }
#
                        if (strcmp("/test\0",something) == 0)
#
                  {     
#
                          botstate=0; //deactive
#
                          //printf("%d\n",MyHeightDetour(Player[0].X,Player[0].Y));
#
                        }
#
                  if (strcmp("/attack_all\0",something) == 0)
#
                  {     
#
                        printf("CHEAT ATTACK ALL\n");
#
                        //yeah test attack all in near..
#
                        int ii;
#
                        for (ii=0;ii<800;ii++)
#
                        {
#
                        //check if x !=0
#
                                if (Mob[ii].X != 0)
#
                                {
#
                                        printf("MOB [%08x]\r",Mob[ii].MID);
#
                                        int xx;
#
                                        for (xx=0;xx<5;xx++)
#
                                        {
#
                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);
#
                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);
#
                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);
#
                                                SendDetour(0x15,"Ubbb",last_u,1,1,-30);
#
                                        }
#
                                }
#
                                //walk squar
#
                    }
#
                  }
#
                  }
#
            break;
#
         }
#
        }
#
        va_end(args);                    Reset variable arguments.      
#
        //jump to original..
#
 
#
        __asm
#
        {
#
                jmp MySendBack;
#
        }
#
        // .recv 6b  änderung des appender
#
}*/
        
if (type == 0x25)

        {

                
printf("SEND TELPORT TO TOWN !!!\n");

                
botstate=0;

                
Sleep(1000);

        }
va_list args;

        
va_start(argsformat);

int i,s;
charsomething;
for (
i=0;i<strlen(format);i++)
{
switch (
format[i])
{
case 
'U'//??? 4bytes
temp=va_argargsDWORD);
last_u=temp;
break;
case 
'b'//BYTE
temp =(DWORD)va_argargsDWORD);
if ((
i==1)&&((type==0x14)||(type==0x15)))
Player[0].X+=(signed char)va_argargsDWORD);
if ((
i==2)&&((type==0x14)||(type==0x15)))
Player[0].Y+=(signed char)va_argargsDWORD);
if ((
i==3)&&((type==0x14)||(type==0x15)))
Player[0].Z+=(signed char)va_argargsDWORD);


                  if (
type==0x0f)

                  {

                        
temp=va_argargsDWORD);

                  }

                  if (
type==0x10)

                  {

                         
temp=va_argargsDWORD);

                  }

            break;

          case 
'd'//DWORD

                
if (type==0x0f)

                  
//printf(" %d: %d\n",i+1,va_arg( args, DWORD));

                  
temp=va_argargsDWORD);

                  if ((
i==2)&&(type==0x0f))

                  {

                          
printf("Attack [%08x,",temp);

                          
s=temp;

                  }

                  if ((
i==3)&&(type==0x0F))

                  {

                          
//yeah the item id

                          
lastweapon=temp;

                          
printf("%08x]\n",temp);

                          
attackcount++;

                          if (
attackcount>=4)

                          {

                                  if (
mp>50)

                                  {

                                          
//send skill

                                         
SendDetour(0x10,"Ubbd",last_u,3,1,s);

                                        
// SendDetour(0x2b,"Ubd",last_u,3,s);

                                  
}

                                  
attackcount=0;

                          }

                  }

            break;        



          case 
'w'//WORD

                 // printf(" %d: %d\n",i+1,(WORD)va_arg( args, DWORD));

                 
temp=va_argargsDWORD);

            break;

/*case 's': //WORD
// printf(" %d: %s\n",i+1,va_arg( args, char*));
something=va_arg( args, char*);
if (type==0x11)
{
                  if (type==0x11)

                  {

                  printf("Chat: %s\n",something);

                   if (strcmp(".ah",something) == 0)

                  {   
                      attackhackstate=1;
                      SendDetour(0x11,"s","[PServer Hackit] Attack for Archer started!...");
                      }
                  if (strcmp(".ah1",something) == 0)
                  {
                      SendDetour(0x11,"s","[PServer Hackit] You have to set the skillnumber @cmd!!!");
                  }
                  if (strcmp(".ah2",something) == 0)
                  {
                      SendDetour(0x11,"s","[PServer Hackit] You have to set the skillnumbers @cmd!!!");
                  }    
                  if (strcmp(".ah3",something) == 0)
                  {
                      SendDetour(0x11,"s","[PServer Hackit] You have to set the skillnumbers @cmd!!!");
                  }
                  if (strcmp(".ah4",something) == 0)
                  {
                      SendDetour(0x11,"s","[PServer Hackit] You have to set the skillnumbers @cmd!!!");
                  }
                  if (strcmp(".help",something) == 0)
                  {
                      SendDetour(0x11,"s","*[PServer Hackit.Help] ------Welcome to PServer Hackit by Diamond------");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .bon = behead on");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .pickon = autopick on");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah = Archer attack on");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah1 = Set 1 skillnumber for Attackhack");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah2 = Set 2 skillnumbers for Attackhack");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah3 = Set 3 skillnumbers for Attackhack");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] .ah4 = Set 4 skillnumbers for Attackhack");
                      SendDetour(0x11,"s","*[PServer Hackit.Help] ------All other Commands @cmd...Type in help...xD------");
                  }
                  if (strcmp(".bon",something) == 0)
                  {
                      behead=1;
                      SendDetour(0x11,"s","[PServer Hackit] Beheadhack on");
                  }
                  if (strcmp(".pickon",something) == 0)
                  {
                      behead=1;
                      SendDetour(0x11,"s","[PServer Hackit] Autopick on");
                  }
            break;

            case 'm':
                if (i==0)
                {
             //printf("\nHeader(M): \t%d: %x\n",i,type);
                }
            //printf(" %d: \t\t\t%d\n",i+1,(DWORD)va_arg( args, DWORD));

            break;


         }

         if (i == 0 && type == 0x12)
         {
             player = 1;
         }
         
/*         if (i == 0 && type == 0x09)
         {
            Intercept(INST_CALL, 0x004F203D, (DWORD)0x0052E330,5); // Otherwise KOCP will kick you..

            Intercept( INST_JMP , 0x004F2010 , ( DWORD) SendDetour , 5); // Send packets
            //Intercept( INST_JMP , 0x004F2121 , ( DWORD) MyRecvDetour , 5); // Recv packets

            printf("KOCP killed!\n");
         }

        }



        va_end(args);

            __asm

        {

            jmp MySendBack;

        }
}
}
}*/

          
case 's'//WORD

                 // printf(" %d: %s\n",i+1,va_arg( args, char*));

                  
something=va_argargschar*);

                  if (
type==0x11)

                  {

                  
printf("Chat: %s",something);

                   if (
strcmp("xbot 1\0",something) == 0)

                  {     

                          
botstate=1;//active

                          
start_x=Player[0].X;

                          
start_y=Player[0].Y;

                          
printf("ACTIVE BOT !\n");

                   }

                    if (
strcmp("xbot 0\0",something) == 0)

                  {     

                          
botstate=0//deactive

                          
printf("DEACTIVE BOT !\n");

                        }
                    if (
strcmp("xend\0",something) == 0)

                  {     

                        
printf("Kal close in 3 seconds...");
                        
Sleep(3000);
                        

                        }

                        if (
strcmp("xtest\0",something) == 0)

                  {     

                          
botstate=0//deactive

                          
printf("Height test: X:%d Y: %d Z: %d!\n",Player[0].X,Player[0].Y,Player[0].Z);

                        }

                  if (
strcmp("xattack_all\0",something) == 0)

                  {     

                        
printf("CHEAT ATTACK ALL\n");

                        
//yeah test attack all in near..

                        
int ii;

                        for (
ii=0;ii<800;ii++)

                        {

                        
//check if x !=0

                                
if (Mob[ii].!= 0)

                                {

                                        
printf("MOB [%08x]\r",Mob[ii].MID);

                                        
int xx;

                                        for (
xx=0;xx<5;xx++)

                                        {

                                                
//SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);

                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);

                                                //SendDetour(0x0F,"Ubdd",last_u,1,Mob[ii].MID,0);

                                                
SendDetour(0x15,"Ubbb",last_u,1,1,-30);

                                        }

                                }

                                
//walk squar

                    
}

                  }

                  }

            break;
}
}
va_end(args); /* Reset variable arguments. */
//jump to original..

__asm
{
jmp MySendBack;
}
// .recv 6b änderung des appender
}

//}
/*void naked Send2Client(format,blabla,...)
{

}*/

int WINAPI MyRecv(charpacket)
{
    
//printf(RecvText,packet[2]);
    
WORD size;
    
memcpy((void*)&size,(void*)((DWORD)packet),2);
    
//size=(WORD)(packet[0]); //hoffe das ist die richtige..
    
if (packet[2] == 0x46)
    {
        
printf("TELPORT TO TOWN !!!\n");
        
botstate=0;
        
Sleep(1000);
    }
    if (
packet[2] == 0x45)
    {
        
int i;
        
//for (i=0;i<size;i++)
        //    printf("%0.2x",(BYTE)packet[i]);
        //printf("\n");
 
        
char myword[1];
        
myword[0]=packet[5];
        
myword[1]=packet[4];
        if (
packet[3] == 0x08)
        {
            
//printf("MP changed [%d]\n",(WORD)(myword[0]));
            
memcpy((void*)&mp,(void*)((DWORD)packet+4),2);
            
printf("MP changed [%d]\n",mp);
        }
        if (
packet[3] == 0x07)
        {
            
memcpy((void*)&hp,(void*)((DWORD)packet+4),2);
            
printf("HP changed [%d]\n",hp);
        }
    }
    if (
packet[2] == 0x3E)
    {
        
//someone attack someon
        //or something attack something :P
        
DWORD attacker=0;
        
DWORD target=0;
        
WORD dmg;
        
WORD dmg2;
        
memcpy((void*)&attacker,(void*)((DWORD)packet+3+1),4);
        
memcpy((void*)&target,(void*)((DWORD)packet+3+1+4),4);
        
memcpy((void*)&dmg,(void*)((DWORD)packet+3+1+4+2),2);
        
memcpy((void*)&dmg2,(void*)((DWORD)packet+3+1+4+2+2),2);
        
//if targe myslef => fight back => update hp
        //add dmg to target / if mob
        
int i;
        for (
i=0;i<500;i++)
        {
            if (
Mob[i].MID==target)
            {
                
Mob[i].HP-=(dmg+dmg2);
                break;
            }
        }
    }
    if (
packet[2] == 0x3d)
    {
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
BYTE state;
        
memcpy((void*)&state,(void*)((DWORD)packet+3+4),1);
        
//if (state==0x08)
        //{
            //someone die !
            
int i;
            for (
i=0;i<500;i++)
            {
            
//check if x =0
                
if (Mob[i].MID == id)
                {
                    if (
state==0x08)
                    {
                            if (
i==target)
                                
SendDetour(0x10,"Ubbd",last_u,1,1,Mob[i].MID);
                    }
                    else
                            
mobsx-=1;
 
                    if (
target==i)
                        if (
botstate != 0)
                            
botstate=1//when bot active
 
                    
Mob[i].X=0//mob not here anymore
                    
break;
                }
            }
        
//}
    
}
    if (
packet[2] == 0x38)
    {
        
//mob dis
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Mob[i].MID == id)
            {
                
//printf("mob away");
                
Mob[i].X=0//mob not here anymore
                
mobsx-=1;
                break;
            }
        }
    }
 
    if ((
packet[2] == 0x24) || (packet[2] == 0x25))
    {
        
//mob move..
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Mob[i].MID == id)
            {
                
signed char x,y/*,z*/=0;
                
memcpy((void*)&(x),(void*)((DWORD)packet+3+4),1);
                
memcpy((void*)&(y),(void*)((DWORD)packet+3+4+1),1);
                
//memcpy((void*)&(z),(void*)((DWORD)packet+3+4+1+1),1);
                
Mob[i].X+=x;
                
Mob[i].Y+=y;
                
//Player[i].Z+=z;
                
break;
            }
        }
    }
    if (
packet[2] == 0x33)
    {
        
//mob apear
 
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Mob[i].== 0)
            {
                
DWORD id;
                
memcpy((void*)&id,(void*)((DWORD)packet+3+2),4);
                
Mob[i].MID=id;
                
memcpy((void*)&(Mob[i].Classe),(void*)((DWORD)packet+3),2);
                
memcpy((void*)&(Mob[i].X),(void*)((DWORD)packet+3+4+2),4);
                
memcpy((void*)&(Mob[i].Y),(void*)((DWORD)packet+3+4+2+4),4);
                
memcpy((void*)&(Mob[i].HP),(void*)((DWORD)packet+3+4+2+4+4+1+1),2);
                
printf("Mob: %d X %d Y %d HP %d\n",Mob[i].Classe,Mob[i].X,Mob[i].Y,Mob[i].HP);
                
mobsx+=1;
                break;
            }
        }
    }
    if (
packet[2] == 0x37)
    {
        
//disapear
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
int i;
        for (
i=0;i<500;i++)
        {
            if (
Player[i].PID == id)
            {
                
printf("Player disapear [PID: %08x Name: %s]\n",id,Player[i].name);
                
Player[i].X=0//deactive !
                
playerx-=1;
                break;
            }
        }
    }
    if ((
packet[2] ==0x22) || (packet[2] == 0x23))
    {
        
//player move.. jetzt noch net..
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Player[i].PID == id)
            {
                
printf("Player     move [PID: %08x Name: %s] [X: %d Y: %d Z: %d]\n",id,Player[i].namePlayer[i].X,Player[i].Y,Player[i].Z);
                
signed char x,y,z=0;
                
memcpy((void*)&(x),(void*)((DWORD)packet+3+4),1);
                
memcpy((void*)&(y),(void*)((DWORD)packet+3+4+1),1);
                
memcpy((void*)&(z),(void*)((DWORD)packet+3+4+1+1),1);
                
Player[i].X+=x;
                
Player[i].Y+=y;
                
Player[i].Z+=z;
                break;
            }
        }
    }
    if (
packet[2] == 0x32)
    {
        
//player apear
        
DWORD id;
        
memcpy((void*)&id,(void*)((DWORD)packet+3),4);
        
char name[255]={0};
        
memcpy((void*)&name,(void*)((DWORD)packet+7),16);
        
printf("Player    apear [PID: %08x Name: %s]\n",id,name);
        
//ADD PLAYER
        
int i;
        for (
i=0;i<500;i++)
        {
            
//check if x =0
            
if (Player[i].== 0)
            {
                
memcpy((void*)&(Player[i].name),(void*)&name,16);
                
Player[i].PID=id;
                
int aftername;
                
aftername=strlen(Player[i].name);
                
//insert COORDINATES
                
memcpy((void*)&(Player[i].Classe),(void*)((DWORD)packet+7+aftername+1),1);
                
memcpy((void*)&(Player[i].X),(void*)((DWORD)packet+7+aftername+2),4);
                
memcpy((void*)&(Player[i].Y),(void*)((DWORD)packet+7+aftername+2+4),4);
                
memcpy((void*)&(Player[i].Z),(void*)((DWORD)packet+7+aftername+2+4+4),4);
                
FILE *datei;
                
datei fopen("PServer_Log.txt""a");
                
fprintf(datei"Name: %s  ID: %d \n",name,id);
                
fclose(datei);
                
//printf("C: %d X: %d Y:%d Z:%d\n",Player[i].Classe,Player[i].X,Player[i].Y,Player[i].Z);
                
playerx+=1;
                break; 
//ender der schleife
            
}
        }
    }
    return 
0;
}
 
int Naked MyRecvDetour()
{
    
__asm
    
{
        
push edx
        push ecx
        push ebx
        push eax
 
        mov     eax
, [ebp+0x08//my packet ehh ^^
        
push    eax
        call    MyRecv
 
        pop eax
        pop ebx
        pop ecx
        pop edx
 
        mov     eax
, [ebp+0x08]
        
movzx   ecx, [eax+2]
        
mov        edx,MyRecvBack//0x00523272
        
jmp        edx
    
}
}

void MyThread(voidstart_parameter)
{

     
char command[255]={0};
     
scanf("%s%*c",&command);

     if (
strcmp command "hscp" ) == 0)
     {
                    
Intercept(INST_CALL0x004F203D, (DWORD)0x0052E330,5); // Otherwise KOCP will kick you..
                    
InterceptINST_JMP 0x004F2010 , ( DWORDSendDetour 5); // Send packets
                    
InterceptINST_JMP 0x004F2121 , ( DWORDMyRecvDetour 5); // Recv packets
             //Killing HackShield

    // Some Server will kick you if normal HackShield isn't running
    
BYTE Replacer=0x85;
    
DWORD Virutal_add=0x00504DBF-0x00104DBF;

    
MemcpyEx(Virutal_add+0x00104DBF,(DWORD)&Replacer,1);
    
Replacer=0x75;
    
MemcpyEx(Virutal_add+0x00104F66,(DWORD)&Replacer,1);
    
MemcpyEx(Virutal_add+0x0010DB66,(DWORD)&Replacer,1);
    
Replacer=0x61;
    
MemcpyEx(Virutal_add+0x002A2A6D,(DWORD)&Replacer,1);
    
printf("HS got pWnD/KOCP got pWnD\n");
     }
//here is our thread ;)
    
DWORD lastattack;
    while(
true//endless loop
    
{
        
char mytext[255];
 
        if (
playerx != 0)
        {
            
sprintf(mytext,"PServer Hackit_Bot V.1.0 - HP: %d - MP: %d X: %d Y: %d Z: %d - BotState: %d\0",hp,mp,Player[0].X,Player[0].Y,Player[0].Z,botstate);
                
SetConsoleTitleA(mytext);
                if (
botstate == 1)
                {
                    
printf("Search MOB..\n");
                    
//SEARCH NEARES MOB !
                    
int nearest=65530000;
                    
int id=-1;
                    
int i;
                    for (
i=0;i<5;i++)
                        if (
Mob[i].!= 0)
                        {
                            
//MOB HERE CALC NEAR !
                            
int difx=start_x-Mob[i].X;
                            
int dify=start_y-Mob[i].Y;
                            
//
                            
int range=difx*difx+dify*dify;
                            if (
nearest range)
                            {
                                
id=i;
                                
nearest range;
                            }
                        }

                    if (
id!=i)
                    {
                        
//MOB FOUND
                        
target=id;
                        
botstate=2//walk to it !
                        
printf("Walk to MOB..\n");
                    }
                }
 
                if (
botstate == 2)
                {
                    
//WALK TO SELECTED MOB !!
                    
int difx=Player[0].X-Mob[target].X;
                    
int dify=Player[0].Y-Mob[target].Y;
                    
int difz=Player[0].Z-(Player[0].X,Player[0].Y);
                    
float range=(difx*difx+dify*dify)*1.0;
                    if (
sqrt(range) < 50.0)
                    {
                        
botstate=3//ATTACK IT !
                        
printf("attack the MOB..\n");
                        
lastattack=GetTickCount()-800;
                    }
                    else
                    {
                        
//CALC MOVE !
                        
signed char tempx=-(difx/sqrt(range))*30;
                        
signed char tempy=-(dify/sqrt(range))*30;
                        
signed char tempz=-(difz/sqrt(range))*30;
                        if (
playerx 1)
                        {
                            if (
lastattack<GetTickCount()-200)
                            {
                                
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz);
                                
lastattack=GetTickCount();
                            }
                        }
                        else
                            
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz); //NOBODY HERE SPEED UP MAN !
                    
}
                }
                if (
botstate==3)
                {
                    
//attack mob !!
                    
if (lastattack<GetTickCount()-600)
                    {
                        
//ATTACK IT !
                        
SendDetour(0x0F,"Ubdd",last_u,1,Mob[target].MID,lastweapon);
                        
lastattack=GetTickCount();
                    }
                    
//yeah
                    
if (lastmove<GetTickCount()-200)
                    {
                        
int difx=Player[0].X-Mob[target].X;
                        
int dify=Player[0].Y-Mob[target].Y;
                        
int difz=Player[0].Z-(Player[0].X,Player[0].Y);
                        
float range=(difx*difx+dify*dify)*1.0;
                        
signed char tempx=-(difx/sqrt(range))*30;
                        
signed char tempy=-(dify/sqrt(range))*30;
                        
signed char tempz=-(difz/sqrt(range))*30;
                        
//roate vector
                        
tempy = (cos(100*3.16)*(tempx*1.0) - sin(100*3.16)*(tempy*1.0))*1;
                        
tempy = (cos(100*3.16)*(tempy*1.0) + sin(100*3.16)*(tempx*1.0))*1;
                        if (
hp 100)
                        {
                        if (
sqrt(range) < 50.0)
                        {
                            if (
playerx <= 1)
                                
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz);
                        }
                        }
                        else
                        if (
sqrt(range) < 150.0)
                        {
                            
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz);
                            
SendDetour(0x15,"Ubbb",last_u,tempx,tempy,tempz);
                            
//THIS IS RUN AWAY !
                        
}
 
                        
lastmove=GetTickCount();
                    }
                }
        }
        
Sleep(10);
    }
}
void Pot (voidpParams)
    {
        
int fad 0;
        while( 
)
        {
            if (
strcmp command "startpot" ) == 0)
            {

                 
printf("Pot got startet!\n");
                 
pot 1;
                 while( 
pot == )
                 {
                    
fad 0;
                    if (
hp <= limithp)
                    {
                        
SendDetour(0x21,"d",MedID);
                        
fad 1;
                    }
                    if (
mp <= limitmp)
                    {
                        
SendDetour(0x21,"d",MMedID);
                        
fad 1;
                    }
                    if (
fad == 1)
                    {
                        
Sleep(1300);
                    }
                    
Sleep (25);
                    if (
hp==0)
                    {
                        
attackhackstate 0;
                    }
                    
Sleep(10);
                 }
            }
            if (
hp==0)
            {
                
attackhackstate 0;
            }
        
Sleep(100);
        }
        
Sleep(100);
    }
    



void Main()
{
    
Console();
    
Color(15);
    
fprintf (stdout"====================================================== \n");
    
fprintf (stdout"Pserver Bot V1.0 Beta.....not tested yet...xD\n");
    
fprintf (stdout"Based on Bakabugs Kalhack11....Modified by Diamond. THX to:\n");
    
fprintf (stdout"Bakabug\n");
    
fprintf (stdout"BorSti\n");
    
fprintf (stdout"ZeroTen\n");
    
fprintf (stdout"Mahatma\n");
    
fprintf (stdout"So...Now good luck with this shit....\n");
    
fprintf (stdout"Type in Hackshield at the beginning to start Packethack!");
    
fprintf (stdout"====================================================== \n");
    
_beginthread(MyThread,0,NULL);
    
_beginthread(Pot,0,NULL);



    
/* Some server will kick you if you hook the functions at the beginning
       so just type 'kocp' if Kal is loaded

    Intercept( INST_JMP , 0x004F2010 , ( DWORD) SendDetour , 5);
    Intercept( INST_JMP , 0x004F2121 , ( DWORD) MyRecvDetour , 5);*/

}



BOOL WINAPI DllMain(HINSTANCE hInst,DWORD reason,LPVOID)
    {
    if (
reason == DLL_PROCESS_ATTACH)
        {
        
hLThis hInst;
        
char system[MAX_PATH];
        
GetSystemDirectoryA(system,sizeof(system));
        
strcat_s(system,"\\winmm.dll");
        
hL LoadLibraryA(system);
        if (!
hL) return false;

        
Main();


        
p[0] = GetProcAddress(hL,"CloseDriver");
        
p[1] = GetProcAddress(hL,"DefDriverProc");
        
p[2] = GetProcAddress(hL,"DriverCallback");
        
p[3] = GetProcAddress(hL,"DrvGetModuleHandle");
        
p[4] = GetProcAddress(hL,"GetDriverModuleHandle");
        
p[5] = GetProcAddress(hL,"MigrateAllDrivers");
        
p[6] = GetProcAddress(hL,"MigrateSoundEvents");
        
p[7] = GetProcAddress(hL,"NotifyCallbackData");
        
p[8] = GetProcAddress(hL,"OpenDriver");
        
p[9] = GetProcAddress(hL,"PlaySound");
        
p[10] = GetProcAddress(hL,"PlaySoundA");
        
p[11] = GetProcAddress(hL,"PlaySoundW");
        
p[12] = GetProcAddress(hL,"SendDriverMessage");
        
p[13] = GetProcAddress(hL,"WOW32DriverCallback");
        
p[14] = GetProcAddress(hL,"WOW32ResolveMultiMediaHandle");
        
p[15] = GetProcAddress(hL,"WOWAppExit");
        
p[16] = GetProcAddress(hL,"WinmmLogoff");
        
p[17] = GetProcAddress(hL,"WinmmLogon");
        
p[18] = GetProcAddress(hL,"[email protected]");
        
p[19] = GetProcAddress(hL,"[email protected]");
        
p[20] = GetProcAddress(hL,"aux32Message");
        
p[21] = GetProcAddress(hL,"auxGetDevCapsA");
        
p[22] = GetProcAddress(hL,"auxGetDevCapsW");
        
p[23] = GetProcAddress(hL,"auxGetNumDevs");
        
p[24] = GetProcAddress(hL,"auxGetVolume");
        
p[25] = GetProcAddress(hL,"auxOutMessage");
        
p[26] = GetProcAddress(hL,"auxSetVolume");
        
p[27] = GetProcAddress(hL,"gfxAddGfx");
        
p[28] = GetProcAddress(hL,"gfxBatchChange");
        
p[29] = GetProcAddress(hL,"gfxCreateGfxFactoriesList");
        
p[30] = GetProcAddress(hL,"gfxCreateZoneFactoriesList");
        
p[31] = GetProcAddress(hL,"gfxDestroyDeviceInterfaceList");
        
p[32] = GetProcAddress(hL,"gfxEnumerateGfxs");
        
p[33] = GetProcAddress(hL,"gfxModifyGfx");
        
p[34] = GetProcAddress(hL,"gfxOpenGfx");
        
p[35] = GetProcAddress(hL,"gfxRemoveGfx");
        
p[36] = GetProcAddress(hL,"joy32Message");
        
p[37] = GetProcAddress(hL,"joyConfigChanged");
        
p[38] = GetProcAddress(hL,"joyGetDevCapsA");
        
p[39] = GetProcAddress(hL,"joyGetDevCapsW");
        
p[40] = GetProcAddress(hL,"joyGetNumDevs");
        
p[41] = GetProcAddress(hL,"joyGetPos");
        
p[42] = GetProcAddress(hL,"joyGetPosEx");
        
p[43] = GetProcAddress(hL,"joyGetThreshold");
        
p[44] = GetProcAddress(hL,"joyReleaseCapture");
        
p[45] = GetProcAddress(hL,"joySetCapture");
        
p[46] = GetProcAddress(hL,"joySetThreshold");
        
p[47] = GetProcAddress(hL,"mci32Message");
        
p[48] = GetProcAddress(hL,"mciDriverNotify");
        
p[49] = GetProcAddress(hL,"mciDriverYield");
        
p[50] = GetProcAddress(hL,"mciExecute");
        
p[51] = GetProcAddress(hL,"mciFreeCommandResource");
        
p[52] = GetProcAddress(hL,"mciGetCreatorTask");
        
p[53] = GetProcAddress(hL,"mciGetDeviceIDA");
        
p[54] = GetProcAddress(hL,"mciGetDeviceIDFromElementIDA");
        
p[55] = GetProcAddress(hL,"mciGetDeviceIDFromElementIDW");
        
p[56] = GetProcAddress(hL,"mciGetDeviceIDW");
        
p[57] = GetProcAddress(hL,"mciGetDriverData");
        
p[58] = GetProcAddress(hL,"mciGetErrorStringA");
        
p[59] = GetProcAddress(hL,"mciGetErrorStringW");
        
p[60] = GetProcAddress(hL,"mciGetYieldProc");
        
p[61] = GetProcAddress(hL,"mciLoadCommandResource");
        
p[62] = GetProcAddress(hL,"mciSendCommandA");
        
p[63] = GetProcAddress(hL,"mciSendCommandW");
        
p[64] = GetProcAddress(hL,"mciSendStringA");
        
p[65] = GetProcAddress(hL,"mciSendStringW");
        
p[66] = GetProcAddress(hL,"mciSetDriverData");
        
p[67] = GetProcAddress(hL,"mciSetYieldProc");
        
p[68] = GetProcAddress(hL,"mid32Message");
        
p[69] = GetProcAddress(hL,"midiConnect");
        
p[70] = GetProcAddress(hL,"midiDisconnect");
        
p[71] = GetProcAddress(hL,"midiInAddBuffer");
        
p[72] = GetProcAddress(hL,"midiInClose");
        
p[73] = GetProcAddress(hL,"midiInGetDevCapsA");
        
p[74] = GetProcAddress(hL,"midiInGetDevCapsW");
        
p[75] = GetProcAddress(hL,"midiInGetErrorTextA");
        
p[76] = GetProcAddress(hL,"midiInGetErrorTextW");
        
p[77] = GetProcAddress(hL,"midiInGetID");
        
p[78] = GetProcAddress(hL,"midiInGetNumDevs");
        
p[79] = GetProcAddress(hL,"midiInMessage");
        
p[80] = GetProcAddress(hL,"midiInOpen");
        
p[81] = GetProcAddress(hL,"midiInPrepareHeader");
        
p[82] = GetProcAddress(hL,"midiInReset");
        
p[83] = GetProcAddress(hL,"midiInStart");
        
p[84] = GetProcAddress(hL,"midiInStop");
        
p[85] = GetProcAddress(hL,"midiInUnprepareHeader");
        
p[86] = GetProcAddress(hL,"midiOutCacheDrumPatches");
        
p[87] = GetProcAddress(hL,"midiOutCachePatches");
        
p[88] = GetProcAddress(hL,"midiOutClose");
        
p[89] = GetProcAddress(hL,"midiOutGetDevCapsA");
        
p[90] = GetProcAddress(hL,"midiOutGetDevCapsW");
        
p[91] = GetProcAddress(hL,"midiOutGetErrorTextA");
        
p[92] = GetProcAddress(hL,"midiOutGetErrorTextW");
        
p[93] = GetProcAddress(hL,"midiOutGetID");
        
p[94] = GetProcAddress(hL,"midiOutGetNumDevs");
        
p[95] = GetProcAddress(hL,"midiOutGetVolume");
        
p[96] = GetProcAddress(hL,"midiOutLongMsg");
        
p[97] = GetProcAddress(hL,"midiOutMessage");
        
p[98] = GetProcAddress(hL,"midiOutOpen");
        
p[99] = GetProcAddress(hL,"midiOutPrepareHeader");
        
p[100] = GetProcAddress(hL,"midiOutReset");
        
p[101] = GetProcAddress(hL,"midiOutSetVolume");
        
p[102] = GetProcAddress(hL,"midiOutShortMsg");
        
p[103] = GetProcAddress(hL,"midiOutUnprepareHeader");
        
p[104] = GetProcAddress(hL,"midiStreamClose");
        
p[105] = GetProcAddress(hL,"midiStreamOpen");
        
p[106] = GetProcAddress(hL,"midiStreamOut");
        
p[107] = GetProcAddress(hL,"midiStreamPause");
        
p[108] = GetProcAddress(hL,"midiStreamPosition");
        
p[109] = GetProcAddress(hL,"midiStreamProperty");
        
p[110] = GetProcAddress(hL,"midiStreamRestart");
        
p[111] = GetProcAddress(hL,"midiStreamStop");
        
p[112] = GetProcAddress(hL,"mixerClose");
        
p[113] = GetProcAddress(hL,"mixerGetControlDetailsA");
        
p[114] = GetProcAddress(hL,"mixerGetControlDetailsW");
        
p[115] = GetProcAddress(hL,"mixerGetDevCapsA");
        
p[116] = GetProcAddress(hL,"mixerGetDevCapsW");
        
p[117] = GetProcAddress(hL,"mixerGetID");
        
p[118] = GetProcAddress(hL,"mixerGetLineControlsA");
        
p[119] = GetProcAddress(hL,"mixerGetLineControlsW");
        
p[120] = GetProcAddress(hL,"mixerGetLineInfoA");
        
p[121] = GetProcAddress(hL,"mixerGetLineInfoW");
        
p[122] = GetProcAddress(hL,"mixerGetNumDevs");
        
p[123] = GetProcAddress(hL,"mixerMessage");
        
p[124] = GetProcAddress(hL,"mixerOpen");
        
p[125] = GetProcAddress(hL,"mixerSetControlDetails");
        
p[126] = GetProcAddress(hL,"mmDrvInstall");
        
p[127] = GetProcAddress(hL,"mmGetCurrentTask");
        
p[128] = GetProcAddress(hL,"mmTaskBlock");
        
p[129] = GetProcAddress(hL,"mmTaskCreate");
        
p[130] = GetProcAddress(hL,"mmTaskSignal");
        
p[131] = GetProcAddress(hL,"mmTaskYield");
        
p[132] = GetProcAddress(hL,"mmioAdvance");
        
p[133] = GetProcAddress(hL,"mmioAscend");
        
p[134] = GetProcAddress(hL,"mmioClose");
        
p[135] = GetProcAddress(hL,"mmioCreateChunk");
        
p[136] = GetProcAddress(hL,"mmioDescend");
        
p[137] = GetProcAddress(hL,"mmioFlush");
        
p[138] = GetProcAddress(hL,"mmioGetInfo");
        
p[139] = GetProcAddress(hL,"mmioInstallIOProcA");
        
p[140] = GetProcAddress(hL,"mmioInstallIOProcW");
        
p[141] = GetProcAddress(hL,"mmioOpenA");
        
p[142] = GetProcAddress(hL,"mmioOpenW");
        
p[143] = GetProcAddress(hL,"mmioRead");
        
p[144] = GetProcAddress(hL,"mmioRenameA");
        
p[145] = GetProcAddress(hL,"mmioRenameW");
        
p[146] = GetProcAddress(hL,"mmioSeek");
        
p[147] = GetProcAddress(hL,"mmioSendMessage");
        
p[148] = GetProcAddress(hL,"mmioSetBuffer");
        
p[149] = GetProcAddress(hL,"mmioSetInfo");
        
p[150] = GetProcAddress(hL,"mmioStringToFOURCCA");
        
p[151] = GetProcAddress(hL,"mmioStringToFOURCCW");
        
p[152] = GetProcAddress(hL,"mmioWrite");
        
p[153] = GetProcAddress(hL,"mmsystemGetVersion");
        
p[154] = GetProcAddress(hL,"mod32Message");
        
p[155] = GetProcAddress(hL,"mxd32Message");
        
p[156] = GetProcAddress(hL,"sndPlaySoundA");
        
p[157] = GetProcAddress(hL,"sndPlaySoundW");
        
p[158] = GetProcAddress(hL,"tid32Message");
        
p[159] = GetProcAddress(hL,"timeBeginPeriod");
        
p[160] = GetProcAddress(hL,"timeEndPeriod");
        
p[161] = GetProcAddress(hL,"timeGetDevCaps");
        
p[162] = GetProcAddress(hL,"timeGetSystemTime");
        
p[163] = GetProcAddress(hL,"timeGetTime");
        
p[164] = GetProcAddress(hL,"timeKillEvent");
        
p[165] = GetProcAddress(hL,"timeSetEvent");
        
p[166] = GetProcAddress(hL,"waveInAddBuffer");
        
p[167] = GetProcAddress(hL,"waveInClose");
        
p[168] = GetProcAddress(hL,"waveInGetDevCapsA");
        
p[169] = GetProcAddress(hL,"waveInGetDevCapsW");
        
p[170] = GetProcAddress(hL,"waveInGetErrorTextA");
        
p[171] = GetProcAddress(hL,"waveInGetErrorTextW");
        
p[172] = GetProcAddress(hL,"waveInGetID");
        
p[173] = GetProcAddress(hL,"waveInGetNumDevs");
        
p[174] = GetProcAddress(hL,"waveInGetPosition");
        
p[175] = GetProcAddress(hL,"waveInMessage");
        
p[176] = GetProcAddress(hL,"waveInOpen");
        
p[177] = GetProcAddress(hL,"waveInPrepareHeader");
        
p[178] = GetProcAddress(hL,"waveInReset");
        
p[179] = GetProcAddress(hL,"waveInStart");
        
p[180] = GetProcAddress(hL,"waveInStop");
        
p[181] = GetProcAddress(hL,"waveInUnprepareHeader");
        
p[182] = GetProcAddress(hL,"waveOutBreakLoop");
        
p[183] = GetProcAddress(hL,"waveOutClose");
        
p[184] = GetProcAddress(hL,"waveOutGetDevCapsA");
        
p[185] = GetProcAddress(hL,"waveOutGetDevCapsW");
        
p[186] = GetProcAddress(hL,"waveOutGetErrorTextA");
        
p[187] = GetProcAddress(hL,"waveOutGetErrorTextW");
        
p[188] = GetProcAddress(hL,"waveOutGetID");
        
p[189] = GetProcAddress(hL,"waveOutGetNumDevs");
        
p[190] = GetProcAddress(hL,"waveOutGetPitch");
        
p[191] = GetProcAddress(hL,"waveOutGetPlaybackRate");
        
p[192] = GetProcAddress(hL,"waveOutGetPosition");
        
p[193] = GetProcAddress(hL,"waveOutGetVolume");
        
p[194] = GetProcAddress(hL,"waveOutMessage");
        
p[195] = GetProcAddress(hL,"waveOutOpen");
        
p[196] = GetProcAddress(hL,"waveOutPause");
        
p[197] = GetProcAddress(hL,"waveOutPrepareHeader");
        
p[198] = GetProcAddress(hL,"waveOutReset");
        
p[199] = GetProcAddress(hL,"waveOutRestart");
        
p[200] = GetProcAddress(hL,"waveOutSetPitch");
        
p[201] = GetProcAddress(hL,"waveOutSetPlaybackRate");
        
p[202] = GetProcAddress(hL,"waveOutSetVolume");
        
p[203] = GetProcAddress(hL,"waveOutUnprepareHeader");
        
p[204] = GetProcAddress(hL,"waveOutWrite");
        
p[205] = GetProcAddress(hL,"wid32Message");
        
p[206] = GetProcAddress(hL,"winmmDbgOut");
        
p[207] = GetProcAddress(hL,"winmmSetDebugLevel");
        
p[208] = GetProcAddress(hL,"wod32Message");
        
p[209] = GetProcAddress(hL,(LPCSTR)"2");

        }
    if (
reason == DLL_PROCESS_DETACH)
        {
        
FreeLibrary(hL);
        }

    return 
1;
    }

// CloseDriver
extern "C" __declspec(nakedvoid __stdcall __E__0__()
    {
    
__asm
        
{
        
jmp p[0*4];
        }
    }

// DefDriverProc
extern "C" __declspec(nakedvoid __stdcall __E__1__()
    {
    
__asm
        
{
        
jmp p[1*4];
        }
    }

// DriverCallback
extern "C" __declspec(nakedvoid __stdcall __E__2__()
    {
    
__asm
        
{
        
jmp p[2*4];
        }
    }

// DrvGetModuleHandle
extern "C" __declspec(nakedvoid __stdcall __E__3__()
    {
    
__asm
        
{
        
jmp p[3*4];
        }
    }

// GetDriverModuleHandle
extern "C" __declspec(nakedvoid __stdcall __E__4__()
    {
    
__asm
        
{
        
jmp p[4*4];
        }
    }

// MigrateAllDrivers
extern "C" __declspec(nakedvoid __stdcall __E__5__()
    {
    
__asm
        
{
        
jmp p[5*4];
        }
    }

// MigrateSoundEvents
extern "C" __declspec(nakedvoid __stdcall __E__6__()
    {
    
__asm
        
{
        
jmp p[6*4];
        }
    }

// NotifyCallbackData
extern "C" __declspec(nakedvoid __stdcall __E__7__()
    {
    
__asm
        
{
        
jmp p[7*4];
        }
    }

// OpenDriver
extern "C" __declspec(nakedvoid __stdcall __E__8__()
    {
    
__asm
        
{
        
jmp p[8*4];
        }
    }

// PlaySound
extern "C" __declspec(nakedvoid __stdcall __E__9__()
    {
    
__asm
        
{
        
jmp p[9*4];
        }
    }

// PlaySoundA
extern "C" __declspec(nakedvoid __stdcall __E__10__()
    {
    
__asm
        
{
        
jmp p[10*4];
        }
    }

// PlaySoundW
extern "C" __declspec(nakedvoid __stdcall __E__11__()
    {
    
__asm
        
{
        
jmp p[11*4];
        }
    }

// SendDriverMessage
extern "C" __declspec(nakedvoid __stdcall __E__12__()
    {
    
__asm
        
{
        
jmp p[12*4];
        }
    }

// WOW32DriverCallback
extern "C" __declspec(nakedvoid __stdcall __E__13__()
    {
    
__asm
        
{
        
jmp p[13*4];
        }
    }

// WOW32ResolveMultiMediaHandle
extern "C" __declspec(nakedvoid __stdcall __E__14__()
    {
    
__asm
        
{
        
jmp p[14*4];
        }
    }

// WOWAppExit
extern "C" __declspec(nakedvoid __stdcall __E__15__()
    {
    
__asm
        
{
        
jmp p[15*4];
        }
    }

// WinmmLogoff
extern "C" __declspec(nakedvoid __stdcall __E__16__()
    {
    
__asm
        
{
        
jmp p[16*4];
        }
    }

// WinmmLogon
extern "C" __declspec(nakedvoid __stdcall __E__17__()
    {
    
__asm
        
{
        
jmp p[17*4];
        }
    }

// [email protected]
extern "C" __declspec(nakedvoid __stdcall __E__18__()
    {
    
__asm
        
{
        
jmp p[18*4];
        }
    }

// [email protected]
extern "C" __declspec(nakedvoid __stdcall __E__19__()
    {
    
__asm
        
{
        
jmp p[19*4];
        }
    }

// aux32Message
extern "C" __declspec(nakedvoid __stdcall __E__20__()
    {
    
__asm
        
{
        
jmp p[20*4];
        }
    }

// auxGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__21__()
    {
    
__asm
        
{
        
jmp p[21*4];
        }
    }

// auxGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__22__()
    {
    
__asm
        
{
        
jmp p[22*4];
        }
    }

// auxGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__23__()
    {
    
__asm
        
{
        
jmp p[23*4];
        }
    }

// auxGetVolume
extern "C" __declspec(nakedvoid __stdcall __E__24__()
    {
    
__asm
        
{
        
jmp p[24*4];
        }
    }

// auxOutMessage
extern "C" __declspec(nakedvoid __stdcall __E__25__()
    {
    
__asm
        
{
        
jmp p[25*4];
        }
    }

// auxSetVolume
extern "C" __declspec(nakedvoid __stdcall __E__26__()
    {
    
__asm
        
{
        
jmp p[26*4];
        }
    }

// gfxAddGfx
extern "C" __declspec(nakedvoid __stdcall __E__27__()
    {
    
__asm
        
{
        
jmp p[27*4];
        }
    }

// gfxBatchChange
extern "C" __declspec(nakedvoid __stdcall __E__28__()
    {
    
__asm
        
{
        
jmp p[28*4];
        }
    }

// gfxCreateGfxFactoriesList
extern "C" __declspec(nakedvoid __stdcall __E__29__()
    {
    
__asm
        
{
        
jmp p[29*4];
        }
    }

// gfxCreateZoneFactoriesList
extern "C" __declspec(nakedvoid __stdcall __E__30__()
    {
    
__asm
        
{
        
jmp p[30*4];
        }
    }

// gfxDestroyDeviceInterfaceList
extern "C" __declspec(nakedvoid __stdcall __E__31__()
    {
    
__asm
        
{
        
jmp p[31*4];
        }
    }

// gfxEnumerateGfxs
extern "C" __declspec(nakedvoid __stdcall __E__32__()
    {
    
__asm
        
{
        
jmp p[32*4];
        }
    }

// gfxModifyGfx
extern "C" __declspec(nakedvoid __stdcall __E__33__()
    {
    
__asm
        
{
        
jmp p[33*4];
        }
    }

// gfxOpenGfx
extern "C" __declspec(nakedvoid __stdcall __E__34__()
    {
    
__asm
        
{
        
jmp p[34*4];
        }
    }

// gfxRemoveGfx
extern "C" __declspec(nakedvoid __stdcall __E__35__()
    {
    
__asm
        
{
        
jmp p[35*4];
        }
    }

// joy32Message
extern "C" __declspec(nakedvoid __stdcall __E__36__()
    {
    
__asm
        
{
        
jmp p[36*4];
        }
    }

// joyConfigChanged
extern "C" __declspec(nakedvoid __stdcall __E__37__()
    {
    
__asm
        
{
        
jmp p[37*4];
        }
    }

// joyGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__38__()
    {
    
__asm
        
{
        
jmp p[38*4];
        }
    }

// joyGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__39__()
    {
    
__asm
        
{
        
jmp p[39*4];
        }
    }

// joyGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__40__()
    {
    
__asm
        
{
        
jmp p[40*4];
        }
    }

// joyGetPos
extern "C" __declspec(nakedvoid __stdcall __E__41__()
    {
    
__asm
        
{
        
jmp p[41*4];
        }
    }

// joyGetPosEx
extern "C" __declspec(nakedvoid __stdcall __E__42__()
    {
    
__asm
        
{
        
jmp p[42*4];
        }
    }

// joyGetThreshold
extern "C" __declspec(nakedvoid __stdcall __E__43__()
    {
    
__asm
        
{
        
jmp p[43*4];
        }
    }

// joyReleaseCapture
extern "C" __declspec(nakedvoid __stdcall __E__44__()
    {
    
__asm
        
{
        
jmp p[44*4];
        }
    }

// joySetCapture
extern "C" __declspec(nakedvoid __stdcall __E__45__()
    {
    
__asm
        
{
        
jmp p[45*4];
        }
    }

// joySetThreshold
extern "C" __declspec(nakedvoid __stdcall __E__46__()
    {
    
__asm
        
{
        
jmp p[46*4];
        }
    }

// mci32Message
extern "C" __declspec(nakedvoid __stdcall __E__47__()
    {
    
__asm
        
{
        
jmp p[47*4];
        }
    }

// mciDriverNotify
extern "C" __declspec(nakedvoid __stdcall __E__48__()
    {
    
__asm
        
{
        
jmp p[48*4];
        }
    }

// mciDriverYield
extern "C" __declspec(nakedvoid __stdcall __E__49__()
    {
    
__asm
        
{
        
jmp p[49*4];
        }
    }

// mciExecute
extern "C" __declspec(nakedvoid __stdcall __E__50__()
    {
    
__asm
        
{
        
jmp p[50*4];
        }
    }

// mciFreeCommandResource
extern "C" __declspec(nakedvoid __stdcall __E__51__()
    {
    
__asm
        
{
        
jmp p[51*4];
        }
    }

// mciGetCreatorTask
extern "C" __declspec(nakedvoid __stdcall __E__52__()
    {
    
__asm
        
{
        
jmp p[52*4];
        }
    }

// mciGetDeviceIDA
extern "C" __declspec(nakedvoid __stdcall __E__53__()
    {
    
__asm
        
{
        
jmp p[53*4];
        }
    }

// mciGetDeviceIDFromElementIDA
extern "C" __declspec(nakedvoid __stdcall __E__54__()
    {
    
__asm
        
{
        
jmp p[54*4];
        }
    }

// mciGetDeviceIDFromElementIDW
extern "C" __declspec(nakedvoid __stdcall __E__55__()
    {
    
__asm
        
{
        
jmp p[55*4];
        }
    }

// mciGetDeviceIDW
extern "C" __declspec(nakedvoid __stdcall __E__56__()
    {
    
__asm
        
{
        
jmp p[56*4];
        }
    }

// mciGetDriverData
extern "C" __declspec(nakedvoid __stdcall __E__57__()
    {
    
__asm
        
{
        
jmp p[57*4];
        }
    }

// mciGetErrorStringA
extern "C" __declspec(nakedvoid __stdcall __E__58__()
    {
    
__asm
        
{
        
jmp p[58*4];
        }
    }

// mciGetErrorStringW
extern "C" __declspec(nakedvoid __stdcall __E__59__()
    {
    
__asm
        
{
        
jmp p[59*4];
        }
    }

// mciGetYieldProc
extern "C" __declspec(nakedvoid __stdcall __E__60__()
    {
    
__asm
        
{
        
jmp p[60*4];
        }
    }

// mciLoadCommandResource
extern "C" __declspec(nakedvoid __stdcall __E__61__()
    {
    
__asm
        
{
        
jmp p[61*4];
        }
    }

// mciSendCommandA
extern "C" __declspec(nakedvoid __stdcall __E__62__()
    {
    
__asm
        
{
        
jmp p[62*4];
        }
    }

// mciSendCommandW
extern "C" __declspec(nakedvoid __stdcall __E__63__()
    {
    
__asm
        
{
        
jmp p[63*4];
        }
    }

// mciSendStringA
extern "C" __declspec(nakedvoid __stdcall __E__64__()
    {
    
__asm
        
{
        
jmp p[64*4];
        }
    }

// mciSendStringW
extern "C" __declspec(nakedvoid __stdcall __E__65__()
    {
    
__asm
        
{
        
jmp p[65*4];
        }
    }

// mciSetDriverData
extern "C" __declspec(nakedvoid __stdcall __E__66__()
    {
    
__asm
        
{
        
jmp p[66*4];
        }
    }

// mciSetYieldProc
extern "C" __declspec(nakedvoid __stdcall __E__67__()
    {
    
__asm
        
{
        
jmp p[67*4];
        }
    }

// mid32Message
extern "C" __declspec(nakedvoid __stdcall __E__68__()
    {
    
__asm
        
{
        
jmp p[68*4];
        }
    }

// midiConnect
extern "C" __declspec(nakedvoid __stdcall __E__69__()
    {
    
__asm
        
{
        
jmp p[69*4];
        }
    }

// midiDisconnect
extern "C" __declspec(nakedvoid __stdcall __E__70__()
    {
    
__asm
        
{
        
jmp p[70*4];
        }
    }

// midiInAddBuffer
extern "C" __declspec(nakedvoid __stdcall __E__71__()
    {
    
__asm
        
{
        
jmp p[71*4];
        }
    }

// midiInClose
extern "C" __declspec(nakedvoid __stdcall __E__72__()
    {
    
__asm
        
{
        
jmp p[72*4];
        }
    }

// midiInGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__73__()
    {
    
__asm
        
{
        
jmp p[73*4];
        }
    }

// midiInGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__74__()
    {
    
__asm
        
{
        
jmp p[74*4];
        }
    }

// midiInGetErrorTextA
extern "C" __declspec(nakedvoid __stdcall __E__75__()
    {
    
__asm
        
{
        
jmp p[75*4];
        }
    }

// midiInGetErrorTextW
extern "C" __declspec(nakedvoid __stdcall __E__76__()
    {
    
__asm
        
{
        
jmp p[76*4];
        }
    }

// midiInGetID
extern "C" __declspec(nakedvoid __stdcall __E__77__()
    {
    
__asm
        
{
        
jmp p[77*4];
        }
    }

// midiInGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__78__()
    {
    
__asm
        
{
        
jmp p[78*4];
        }
    }

// midiInMessage
extern "C" __declspec(nakedvoid __stdcall __E__79__()
    {
    
__asm
        
{
        
jmp p[79*4];
        }
    }

// midiInOpen
extern "C" __declspec(nakedvoid __stdcall __E__80__()
    {
    
__asm
        
{
        
jmp p[80*4];
        }
    }

// midiInPrepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__81__()
    {
    
__asm
        
{
        
jmp p[81*4];
        }
    }

// midiInReset
extern "C" __declspec(nakedvoid __stdcall __E__82__()
    {
    
__asm
        
{
        
jmp p[82*4];
        }
    }

// midiInStart
extern "C" __declspec(nakedvoid __stdcall __E__83__()
    {
    
__asm
        
{
        
jmp p[83*4];
        }
    }

// midiInStop
extern "C" __declspec(nakedvoid __stdcall __E__84__()
    {
    
__asm
        
{
        
jmp p[84*4];
        }
    }

// midiInUnprepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__85__()
    {
    
__asm
        
{
        
jmp p[85*4];
        }
    }

// midiOutCacheDrumPatches
extern "C" __declspec(nakedvoid __stdcall __E__86__()
    {
    
__asm
        
{
        
jmp p[86*4];
        }
    }

// midiOutCachePatches
extern "C" __declspec(nakedvoid __stdcall __E__87__()
    {
    
__asm
        
{
        
jmp p[87*4];
        }
    }

// midiOutClose
extern "C" __declspec(nakedvoid __stdcall __E__88__()
    {
    
__asm
        
{
        
jmp p[88*4];
        }
    }

// midiOutGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__89__()
    {
    
__asm
        
{
        
jmp p[89*4];
        }
    }

// midiOutGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__90__()
    {
    
__asm
        
{
        
jmp p[90*4];
        }
    }

// midiOutGetErrorTextA
extern "C" __declspec(nakedvoid __stdcall __E__91__()
    {
    
__asm
        
{
        
jmp p[91*4];
        }
    }

// midiOutGetErrorTextW
extern "C" __declspec(nakedvoid __stdcall __E__92__()
    {
    
__asm
        
{
        
jmp p[92*4];
        }
    }

// midiOutGetID
extern "C" __declspec(nakedvoid __stdcall __E__93__()
    {
    
__asm
        
{
        
jmp p[93*4];
        }
    }

// midiOutGetNumDevs
extern "C" __declspec(nakedvoid __stdcall __E__94__()
    {
    
__asm
        
{
        
jmp p[94*4];
        }
    }

// midiOutGetVolume
extern "C" __declspec(nakedvoid __stdcall __E__95__()
    {
    
__asm
        
{
        
jmp p[95*4];
        }
    }

// midiOutLongMsg
extern "C" __declspec(nakedvoid __stdcall __E__96__()
    {
    
__asm
        
{
        
jmp p[96*4];
        }
    }

// midiOutMessage
extern "C" __declspec(nakedvoid __stdcall __E__97__()
    {
    
__asm
        
{
        
jmp p[97*4];
        }
    }

// midiOutOpen
extern "C" __declspec(nakedvoid __stdcall __E__98__()
    {
    
__asm
        
{
        
jmp p[98*4];
        }
    }

// midiOutPrepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__99__()
    {
    
__asm
        
{
        
jmp p[99*4];
        }
    }

// midiOutReset
extern "C" __declspec(nakedvoid __stdcall __E__100__()
    {
    
__asm
        
{
        
jmp p[100*4];
        }
    }

// midiOutSetVolume
extern "C" __declspec(nakedvoid __stdcall __E__101__()
    {
    
__asm
        
{
        
jmp p[101*4];
        }
    }

// midiOutShortMsg
extern "C" __declspec(nakedvoid __stdcall __E__102__()
    {
    
__asm
        
{
        
jmp p[102*4];
        }
    }

// midiOutUnprepareHeader
extern "C" __declspec(nakedvoid __stdcall __E__103__()
    {
    
__asm
        
{
        
jmp p[103*4];
        }
    }

// midiStreamClose
extern "C" __declspec(nakedvoid __stdcall __E__104__()
    {
    
__asm
        
{
        
jmp p[104*4];
        }
    }

// midiStreamOpen
extern "C" __declspec(nakedvoid __stdcall __E__105__()
    {
    
__asm
        
{
        
jmp p[105*4];
        }
    }

// midiStreamOut
extern "C" __declspec(nakedvoid __stdcall __E__106__()
    {
    
__asm
        
{
        
jmp p[106*4];
        }
    }

// midiStreamPause
extern "C" __declspec(nakedvoid __stdcall __E__107__()
    {
    
__asm
        
{
        
jmp p[107*4];
        }
    }

// midiStreamPosition
extern "C" __declspec(nakedvoid __stdcall __E__108__()
    {
    
__asm
        
{
        
jmp p[108*4];
        }
    }

// midiStreamProperty
extern "C" __declspec(nakedvoid __stdcall __E__109__()
    {
    
__asm
        
{
        
jmp p[109*4];
        }
    }

// midiStreamRestart
extern "C" __declspec(nakedvoid __stdcall __E__110__()
    {
    
__asm
        
{
        
jmp p[110*4];
        }
    }

// midiStreamStop
extern "C" __declspec(nakedvoid __stdcall __E__111__()
    {
    
__asm
        
{
        
jmp p[111*4];
        }
    }

// mixerClose
extern "C" __declspec(nakedvoid __stdcall __E__112__()
    {
    
__asm
        
{
        
jmp p[112*4];
        }
    }

// mixerGetControlDetailsA
extern "C" __declspec(nakedvoid __stdcall __E__113__()
    {
    
__asm
        
{
        
jmp p[113*4];
        }
    }

// mixerGetControlDetailsW
extern "C" __declspec(nakedvoid __stdcall __E__114__()
    {
    
__asm
        
{
        
jmp p[114*4];
        }
    }

// mixerGetDevCapsA
extern "C" __declspec(nakedvoid __stdcall __E__115__()
    {
    
__asm
        
{
        
jmp p[115*4];
        }
    }

// mixerGetDevCapsW
extern "C" __declspec(nakedvoid __stdcall __E__116__()
    {
    
__asm
        
{
        
jmp p[116*4];