zoukankan      html  css  js  c++  java
  • 游戏脚本接品逆向

    void *__thiscall sub_DB1A40(szFunctionName)
    {
      if (szFunctionName!=NULL&& strlen(szFunctionName)>0 )
      {
     if ( *this.UseFlag>1)
     {
      
      (*this.UseFlag)--;
           pStringMem = AllocateMemoryAndSetHeader(nstrlen);
            strcpy(pStringMem, szFunctionName, nstrlen);
           this = pStringMem;
            return this;
      
        }
     else
     {
      if(nstrlen<=*this.SpaceSize)
      {
      strcpy(*this.string, szFunctionName,nstrlen);
      this.StringLen=nstrlen;
      return this;
      }
      else
      {
       if(*this.UseFlag==1)
        delete(*this);
       else
       *this.UseFlag=*this.UseFlag-1;
       *this= ConstructStringObject(szFunctionName, nstrlen);
                            return this;
      }

     }
              
      else
      {

        if (*this.UseFlag)
        {
          if(*this.UseFlag!= 1)
     {
      *this.UseFlag=*this.UseFlag-1;
             *this = off_12D60B4;
             return this;
           }
     delete(*this);
        }
       *this = off_12D60B4;
        return this
      }
    }

    int __cdecl sub_DB11C0(int pStringObject, int szString, int nSize)
    {
      int result; // eax@1
      int v4; // ebx@1
      int v5; // ecx@1
      int v6; // ecx@4
      int v7; // esi@5

      result = nSize / 4;
      v4 = 0;
      v5 = szString;
      if ( nSize / 4 > 0 )
      {
        do
        {
          *(_DWORD *)(pStringObject - szString + v5) = *(_DWORD *)v5;
          v5 += 4;
          --result;
        }
        while ( result );
        v4 = nSize / 4;
      }
      v6 = 4 * v4;
      if ( 4 * v4 < nSize )
      {
        v7 = nSize - v6;
        result = v6 + pStringObject;
        v6 = nSize;
        do
        {
          *(_BYTE *)result = *(_BYTE *)(szString - pStringObject + result);
          ++result;
          --v7;
        }
        while ( v7 );
      }
      *(_BYTE *)(v6 + pStringObject) = 0;
      return result;
    }

  • 相关阅读:
    Systemd 进程管理器
    Fedora 15 LoveLock的新特性
    fedora 15 iso 硬盘安装
    Linux权限360度赤裸裸华丽丽大曝光连载之二:SetUID
    Linux下socket设置为非阻塞方式和fcntl系统调用
    linux 磁盘 空间 不足 符号链接
    U盘成功安装REHL 6.1
    IT公司中最流行的10种编程语言
    C会否像汇编一样退居幕后?
    白宫决策捕杀拉登现场照片公布
  • 原文地址:https://www.cnblogs.com/RbtreeLinux/p/3185171.html
Copyright © 2011-2022 走看看