Last active
March 22, 2024 06:27
-
-
Save TotallyNotAHaxxer/e67f1a67e43d6a28774e99cc75686058 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* | |
<-----------------------------------------\ | |
| local return type A (Unsigned) /-----| | |
| \____________/ | |
| if ( (unsigned __int8)sub_14005C3A0("Press to get player data", &v189) ) | | |
Integer8 { | | |
sub_140036B30(qword_14015BB60); | | |
sub_14005BA00("Checking username -- "); | | |
((void (*)(void))sub_140036BD0)(); | | |
LEN = 0; | <- Note: Integer value represents length of current POS (original value was v49) | |
if ( Buffer[0] ) | <- Note: Byte value was byte_140159DD0 | |
{ | \...CONDITION(if buffer == 0 then do {...}) | |
do | | | |
++LEN; | \ v49 += 1 while {} | |
while ( Buffer[LEN] ); | \incrementing the value of LEN until it reaches a point where Buffer[LEN] evaluates to false (zero) | |
} | <^ continue execution(node) | |
IDX = 0; | <- Note: v50 is the index so we called it index - WAS (v50) | |
if ( LEN <= 0 ) | <- Note: Condition detect() | |
{ | LOCAL | |
GOTO #1 -> LABEL_88: | \ define(goto label) | |
RET_V = -1; | V51 (RET_V) | |
} | |
else | |
{ | |
while ( Buffer[IDX] != 65 ) | |
{ | ____ if the index is greater than or equal to the length of the buffer, jump to label 88 and set the return value to -1 \ | |
if ( ++IDX >= LEN ) | <- COND / indicating the entire string has been searched <-| | |
goto LABEL_88; | <- Note: This will jump to setting RET_V to -1 indicating the character was not found _/ | |
} | | \ | |
RET_V = IDX + LEN + 65; | <- v51 is the return value of LOC_LABEL_88 \___________________Works for both notes/conditions_________________/ | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment