Skip to content

Instantly share code, notes, and snippets.

@encrypted-def
Created March 10, 2018 16:31
Show Gist options
  • Save encrypted-def/3b488e17257e0d981e2cb4691a5db62c to your computer and use it in GitHub Desktop.
Save encrypted-def/3b488e17257e0d981e2cb4691a5db62c to your computer and use it in GitHub Desktop.
[Reversing] Pikachu Volleyball sub_409D50
int __thiscall sub_409D50(BYTE *this, int a2)
{
BYTE *v2; // esi@1
int v3; // edi@1
signed int v4; // ecx@1
v2 = this;
v3 = 0;
GetKeyboardState(this);
v4 = 0;
do
{
v3 |= v2[*(&v2[32 * a2 + 256] + v4)] >> 7 << v4;
++v4;
}
while ( v4 < 32 );
return v3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment