Created
February 5, 2022 14:39
-
-
Save ghoulgy/71e2932c4686cb9f8e8c5e46b48fa2a2 to your computer and use it in GitHub Desktop.
[RedDev Series #4] Original psudocode
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
__int64 __fastcall sub_1400014F0(int a1) | |
{ | |
__int64 result; // rax | |
if ( !(unsigned int)sub_1400012F0() ) | |
return 0xFFFFFFFFi64; | |
result = 0i64; | |
if ( !dword_14000C7C0 ) | |
return 0xFFFFFFFFi64; | |
while ( a1 != dword_14000C7C4[2 * result] ) | |
{ | |
result = (unsigned int)(result + 1); | |
if ( (unsigned int)result >= dword_14000C7C0 ) | |
return 0xFFFFFFFFi64; | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment