Skip to content

Instantly share code, notes, and snippets.

@mlgthatsme
Created September 29, 2016 17:06
Show Gist options
  • Save mlgthatsme/0dfe06bdf7bb0a571d264dd716eee580 to your computer and use it in GitHub Desktop.
Save mlgthatsme/0dfe06bdf7bb0a571d264dd716eee580 to your computer and use it in GitHub Desktop.
int __cdecl sub_449930(int a1, signed int a2)
{
int result; // eax@3
int v3; // edx@4
int v4; // edx@7
if ( a1 == 0x8000 )
{
v4 = (a2 % 375 - 6) % 13;
if ( v4 >= 7 )
result = a2 - v4 + 13;
else
result = a2 - v4;
}
else if ( a1 == 0x10000 )
{
v3 = (a2 - 12) % 25;
if ( v3 >= 13 )
result = a2 - v3 + 25;
else
result = a2 - v3;
}
else
{
result = a2;
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment