Created
September 29, 2016 17:06
-
-
Save mlgthatsme/0dfe06bdf7bb0a571d264dd716eee580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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