Advertisement
Guest User

Untitled

a guest
May 21st, 2012
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.22 KB | None | 0 0
  1. signed int __usercall UsePower<eax>(int a1<eax>, int a2<edx>, int a3<ecx>, int a4, int a5)
  2. {
  3.   int v5; // esi@1
  4.   char v6; // di@3
  5.   float v7; // ebx@5
  6.   int v9; // eax@17
  7.   float v10; // ST2C_4@19
  8.   int v11; // ebx@22
  9.   int v12; // eax@23
  10.   int v13; // [sp+3Ch] [bp-3Ch]@1
  11.   int v14; // [sp+40h] [bp-38h]@1
  12.   int v15; // [sp+44h] [bp-34h]@1
  13.   signed int v16; // [sp+4Ch] [bp-2Ch]@3
  14.   int v17; // [sp+5Ch] [bp-1Ch]@6
  15.  
  16.   v14 = a1;
  17.   v5 = a2;
  18.   v13 = a3;
  19.   v15 = sub_CA1E70(*(_DWORD *)(a1 + 4));
  20.   *(_DWORD *)a5 = 0;
  21.   sub_C26C00(748);
  22.   if ( sub_CB0D40(*(_DWORD *)(v5 + 4), -1) != 3 )
  23.   {
  24.     if ( sub_705E20() || (v6 = 0, v16 = 0, *(_DWORD *)(v5 + 36)) )
  25.     {
  26.       v6 = 1;
  27.       v16 = 1;
  28.     }
  29.     if ( *(_DWORD *)(v5 + 4) == sub_C26C00(743) )
  30.     {
  31.       v16 = 0;
  32.     }
  33.     else
  34.     {
  35.       LODWORD(v7) = v5 + 8;
  36.       if ( v6 )
  37.         goto LABEL_6;
  38.     }
  39.     LODWORD(v7) = v5 + 8;
  40.     if ( !sub_705E50(v14, *(_DWORD *)(v5 + 4), v5 + 8, 0, 0) || !sub_CB0520(*(_DWORD *)(v5 + 4)) )
  41.     {
  42. LABEL_6:
  43.       v17 = 0;
  44.       if ( sub_700030(v14, *(_DWORD *)(v5 + 4), *(_DWORD *)v5, LODWORD(v7), v16, v13, a4, &v17) )
  45.       {
  46.         sub_701260(v14, *(_DWORD *)(v5 + 4), *(_DWORD *)v5, *(_DWORD *)(v5 + 32), v7, v17, -1, -1);
  47.         *(_DWORD *)a5 = 1;
  48.         return 1;
  49.       }
  50.       return 0;
  51.     }
  52.     if ( sub_6FDA90() )
  53.     {
  54.       if ( v13 )
  55.       {
  56.         if ( !*(_DWORD *)(v15 + 32524) )
  57.         {
  58.           v9 = *(_DWORD *)(v15 + 32280);
  59.           if ( v9 == 6 || v9 == 8 )
  60.             sub_706910(v5 + 8);
  61.         }
  62.       }
  63.       v10 = sub_705EB0(*(_DWORD *)(v14 + 4), *(_DWORD *)(v5 + 4), v5 + 8);
  64.       sub_700DC0(v5 + 8, 0, v13, a4, *(_DWORD *)(v5 + 36));
  65.       *(_DWORD *)(v15 + 32524) = 1;
  66.       *(_DWORD *)(v15 + 30924) = 0;
  67.       return 1;
  68.     }
  69.     return 0;
  70.   }
  71.   if ( !sub_6FDA90() )
  72.     return 0;
  73.   v11 = v5 + 8;
  74.   if ( v13 )
  75.   {
  76.     v12 = *(_DWORD *)(v15 + 32280);
  77.     if ( v12 == 6 || v12 == 8 )
  78.     {
  79.       v11 = v5 + 8;
  80.       sub_706910(v5 + 8);
  81.     }
  82.     else
  83.     {
  84.       v11 = v5 + 8;
  85.       if ( *(_DWORD *)(v15 + 32272) == 60 && *(_DWORD *)(v5 + 36) )
  86.         sub_706910(v5 + 8);
  87.     }
  88.   }
  89.   sub_700DC0(v11, 0, v13, a4, *(_DWORD *)(v5 + 36));
  90.   return 1;
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement