marcelofoxes

Untitled

Jun 1st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.59 KB | None | 0 0
  1. unsigned int __thiscall sub_901BD0(struct_this *this, int index)
  2. {
  3.   unsigned int newkey; // eax@2
  4.   unsigned int result; // eax@2
  5.  
  6.   if ( index )
  7.   {
  8.     if ( index == 1 )
  9.     {
  10.       this->keyone = 2025010528;
  11.       this->keytwo = 1934700547;
  12.       this->keythree = 681844883;
  13.       result = 0;
  14.     }
  15.     else
  16.     {
  17.       this->keyone = 0;
  18.       this->keytwo = 0;
  19.       this->keythree = 0;
  20.       result = 0;
  21.     }
  22.   }
  23.   else
  24.   {
  25.     newkey = this->keyone * this->keytwo + this->keythree;
  26.     this->keyone = newkey;
  27.     result = (newkey >> 16) & 0x7FFF;
  28.   }
  29.   return result;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment