Results 1 to 2 of 2
  1. #1
    saiaapiz's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Location
    (YourPtr*)State->Location(0xDEADCODE);
    Posts
    134
    Reputation
    10
    Thanks
    1,422
    My Mood
    Bored

    Post BlackShot BattlEye Client Load/Unload Function

    - BlackShot SEA BattlEye -
    IDK What to do with this thing, hope this helped whoever needed it.

    00409CA6 = InitBattlEye
    00409D85 = UnloadBattlEye

    Code:
    char __thiscall InitBattlEye(char *BE_CallBack_1, LPCSTR lpLibFileName, int a3, u_long netlong, u_short netshort)
    {
      char *BE_CallBack; // esi
      const CHAR *v6; // eax
      HMODULE v7; // eax
      FARPROC v8; // edi
      int v9; // ecx
      int BE_GameData; // [esp+8h] [ebp-18h]
      u_long v12; // [esp+Ch] [ebp-14h]
      u_short v13; // [esp+10h] [ebp-10h]
      int (__cdecl *v14)(char *); // [esp+14h] [ebp-Ch]
      void (__cdecl *v15)(int); // [esp+18h] [ebp-8h]
      void (__cdecl *v16)(char *, size_t); // [esp+1Ch] [ebp-4h]
    
      BE_CallBack = BE_CallBack_1;
      sub_409D85((int)BE_CallBack_1);
      v6 = lpLibFileName;
      if ( *((_DWORD *)lpLibFileName + 5) >= 0x10u )
        v6 = *(const CHAR **)lpLibFileName;
      v7 = LoadLibraryA(v6);
      *((_DWORD *)BE_CallBack + 1) = v7;
      if ( v7 )
      {
        v8 = GetProcAddress(v7, "Init");
        if ( v8 )
        {
          v9 = a3;
          if ( *(_DWORD *)(a3 + 20) >= 0x10u )
            v9 = *(_DWORD *)a3;
          BE_GameData = v9;
          v12 = ntohl(netlong);
          v13 = ntohs(netshort);
          v14 = sub_409F9A;
          v15 = sub_40A0B7;
          v16 = sub_40A23B;
          if ( ((unsigned __int8 (__cdecl *)(signed int, int *, char *))v8)(3, &BE_GameData, BE_CallBack + 8) )
            return 1;
        }
        FreeLibrary(*((HMODULE *)BE_CallBack + 1));
        *((_DWORD *)BE_CallBack + 1) = 0;
      }
      return 0;
    }
    
    int __thiscall UnloadBattlEye(int this)
    {
      int v1; // esi
      int result; // eax
      int (__stdcall ***v3)(signed int); // ecx
    
      v1 = this;
      if ( *(_DWORD *)(this + 4) )
      {
        result = (*(int (**)(void))(this + 8))();
        if ( *(_DWORD *)(v1 + 4) )
        {
          result = FreeLibrary(*(HMODULE *)(v1 + 4));
          *(_DWORD *)(v1 + 4) = 0;
        }
      }
      v3 = *(int (__stdcall ****)(signed int))(v1 + 28);
      if ( v3 )
      {
        result = (**v3)(1);
        *(_DWORD *)(v1 + 28) = 0;
      }
      return result;
    }
    I will hack your router, then hack your computer and hack your life.

  2. The Following 3 Users Say Thank You to saiaapiz For This Useful Post:

    DangeBlazer (09-25-2018),Deveron (01-10-2019),Tangerina123 (05-04-2023)

  3. #2
    Deveron's Avatar
    Join Date
    Jan 2019
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    1
    My Mood
    Devilish
    can give me tutorial how to use this i am always caught by battle while using nif file

  4. The Following User Says Thank You to Deveron For This Useful Post:

    {*furious*} (11-26-2019)

Similar Threads

  1. [Help Request] AQW Client (Loading Character Data Help)
    By ForbiddenZ in forum Adventure Quest Worlds (AQW) Help
    Replies: 2
    Last Post: 02-26-2014, 09:15 PM
  2. Stuck in Hacked clients Loading screen
    By kifesh in forum Realm of the Mad God Discussions
    Replies: 14
    Last Post: 09-08-2013, 12:23 PM
  3. [Help] auto load dll function on injection
    By tdr2010 in forum C# Programming
    Replies: 1
    Last Post: 10-08-2012, 08:10 AM
  4. [Solved] Could not Load API function!
    By 123lickme in forum CrossFire Help
    Replies: 6
    Last Post: 06-16-2012, 09:31 PM
  5. [Source Code] New Load Lib function! with VB!
    By Code[VB] in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 3
    Last Post: 10-18-2011, 03:34 PM