Skip to content

Instantly share code, notes, and snippets.

@ghoulgy
Created February 5, 2022 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghoulgy/71e2932c4686cb9f8e8c5e46b48fa2a2 to your computer and use it in GitHub Desktop.
Save ghoulgy/71e2932c4686cb9f8e8c5e46b48fa2a2 to your computer and use it in GitHub Desktop.
[RedDev Series #4] Original psudocode
__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