//
// SecretLayer::getThreadMessage from 0x1004662a8 to 0x100466d74 (2764 bytes)
//
// 1 xrefs:
// > sub_100464888 @ 0x100464900
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:05:32 +0000
//
void __usercall SecretLayer::getThreadMessage(_DWORD *a1@, std::string *a2@)
{
int v4; // w8
const std::string::value_type *v5; // x1
int v6; // w8
const std::string::value_type *v7; // x1
int v8; // w8
int v9; // w8
int v10; // w8
int v11; // w8
int v12; // w8
int v13; // w8
int v14; // w8
int v15; // w8
int v16; // w8
int v17; // w8
int v18; // w8
int v19; // w8
int v20; // w8
int v21; // w8
int v22; // w8
int v23; // w8
int v24; // w8
int v25; // w8
__int64 v26; // x0
a1[109] = 0;
sub_100009900(a2, "zzzzzzZZZZZZZZZ");
v4 = a1[107];
v5 = "zzzZZZZ";
if ( v4 > 15 )
{
if ( v4 <= 102 )
{
if ( v4 <= 18 )
{
if ( v4 == 16 )
{
v24 = a1[108];
if ( v24 <= 3 )
{
if ( v24 > 1 )
{
if ( v24 == 2 )
v5 = "makes me feel Lost...";
else
v5 = "Maybe we are in a twilight zone?";
}
else if ( v24 )
{
if ( v24 != 1 )
goto LABEL_266;
v5 = "It's hard to keep track of";
}
else
{
v5 = "Secrets secrets secrets...";
}
}
else if ( v24 <= 5 )
{
if ( v24 == 4 )
v5 = "Reminds me of a book I read";
else
v5 = "The pages were weird";
}
else
{
switch ( v24 )
{
case 6:
v5 = "Page one was page two";
break;
case 7:
v5 = "Page three was page six";
break;
case 8:
v7 = "Made it really hard to read";
goto LABEL_189;
default:
goto LABEL_266;
}
}
}
else if ( v4 == 17 )
{
v13 = a1[108];
if ( v13 > 3 )
{
if ( v13 > 5 )
{
if ( v13 != 6 )
{
if ( v13 == 7 )
{
v7 = "Maybe you are the key?";
goto LABEL_189;
}
goto LABEL_266;
}
v5 = "But maybe you can stop him?";
}
else if ( v13 == 4 )
{
v5 = "He knows every move I make";
}
else
{
v5 = "Every move YOU make";
}
}
else if ( v13 > 1 )
{
if ( v13 == 2 )
v5 = "...unless he's already here";
else
v5 = "Watching, waiting, lurking...";
}
else if ( v13 )
{
if ( v13 != 1 )
goto LABEL_266;
v5 = "RubRub will be back soon";
}
else
{
v5 = "I don't feel good about this...";
}
}
goto LABEL_265;
}
if ( v4 != 19 )
{
if ( v4 == 101 )
{
v19 = a1[108];
if ( v19 <= 1 )
{
if ( v19 )
{
if ( v19 != 1 )
goto LABEL_266;
v5 = "The back button is in the corner.";
}
else
{
v5 = "So... whats up?";
}
}
else
{
switch ( v19 )
{
case 2:
v5 = "Ready to leave yet?";
break;
case 3:
v5 = "Whenever you're ready...";
break;
case 4:
v7 = "Fine, I can wait.";
goto LABEL_189;
default:
goto LABEL_266;
}
}
}
else if ( v4 == 102 )
{
v6 = a1[108];
if ( v6 <= 1 )
{
if ( v6 )
{
if ( v6 != 1 )
goto LABEL_266;
v5 = "You play as a cube";
}
else
{
v5 = "I have an idea for a gamemode";
}
}
else
{
switch ( v6 )
{
case 2:
v5 = "that can jump";
break;
case 3:
v5 = "...and there are spikes";
break;
case 4:
v7 = "nevermind...";
LABEL_189:
std::string::assign(a2, v7);
a1[107] = 0;
goto LABEL_266;
default:
goto LABEL_266;
}
}
}
LABEL_265:
std::string::assign(a2, v5);
goto LABEL_266;
}
v22 = a1[108];
if ( v22 > 1 )
{
if ( v22 != 2 )
{
if ( v22 == 3 )
{
v7 = "There must be more";
goto LABEL_189;
}
goto LABEL_266;
}
v5 = "Even harder than Extreme Demons";
goto LABEL_265;
}
if ( !v22 )
{
v5 = "What is the hardest Demon?";
goto LABEL_265;
}
if ( v22 != 1 )
goto LABEL_266;
goto LABEL_180;
}
if ( v4 <= 104 )
{
if ( v4 == 103 )
{
v25 = a1[108];
if ( v25 <= 1 )
{
if ( v25 )
{
if ( v25 != 1 )
goto LABEL_266;
v5 = "I thought I saw something";
}
else
{
v5 = "Look behind you!";
}
}
else
{
switch ( v25 )
{
case 2:
v5 = "Maybe it's just my imagination";
break;
case 3:
v5 = "Or was it?";
break;
case 4:
v7 = "DUN DUN DUN!";
goto LABEL_189;
default:
goto LABEL_266;
}
}
}
else
{
v14 = a1[108];
if ( v14 > 1 )
{
if ( v14 != 2 )
{
if ( v14 == 3 )
{
v7 = "Is that all you do?";
goto LABEL_189;
}
goto LABEL_266;
}
v5 = "Click click click";
}
else if ( v14 )
{
if ( v14 != 1 )
goto LABEL_266;
v5 = "I mean, isn't it boring?";
}
else
{
v5 = "Don't you get tired of clicking?";
}
}
goto LABEL_265;
}
if ( v4 != 105 )
{
if ( v4 == 120 )
{
v20 = a1[108];
if ( v20 > 1 )
{
if ( v20 != 2 )
{
if ( v20 == 3 )
{
v7 = "What a surprise...";
goto LABEL_189;
}
goto LABEL_266;
}
v5 = "Let me guess, you're gonna push the button?";
}
else if ( v20 )
{
if ( v20 != 1 )
goto LABEL_266;
v5 = "I mean, what's the point?";
}
else
{
v5 = "Are you always like this?";
}
}
else if ( v4 == 121 )
{
v9 = a1[108];
if ( v9 > 1 )
{
if ( v9 != 2 )
{
if ( v9 == 3 )
{
v7 = "So I get rid of you";
goto LABEL_189;
}
goto LABEL_266;
}
v5 = "Click the back button";
}
else if ( v9 )
{
if ( v9 != 1 )
goto LABEL_266;
v5 = "Violets are blue";
}
else
{
v5 = "Roses are red";
}
}
goto LABEL_265;
}
v23 = a1[108];
if ( v23 <= 1 )
{
if ( v23 )
{
if ( v23 != 1 )
goto LABEL_266;
v5 = "Two cubes walk into a bar";
}
else
{
v5 = "I heard a joke the other day";
}
goto LABEL_265;
}
if ( v23 == 2 )
{
v5 = "wait... did they walk or slide?";
goto LABEL_265;
}
if ( v23 == 3 )
{
v5 = "I don't think cubes can walk";
goto LABEL_265;
}
if ( v23 != 4 )
goto LABEL_266;
LABEL_178:
v7 = "Nevermind...";
goto LABEL_189;
}
if ( v4 <= 9 )
{
if ( v4 > 7 )
{
if ( v4 == 8 )
{
v16 = a1[108];
if ( v16 > 1 )
{
if ( v16 != 2 )
{
if ( v16 == 3 )
{
v7 = "It's definitely not on the support page.";
goto LABEL_189;
}
goto LABEL_266;
}
v5 = "I won't tell you where it is...";
}
else if ( v16 )
{
if ( v16 != 1 )
goto LABEL_266;
v5 = "I've hidden a password in the game";
}
else
{
v5 = "You want a hint... don't you?";
}
}
else
{
v11 = a1[108];
if ( v11 > 2 )
{
switch ( v11 )
{
case 3:
v5 = "No, I won't give you a hint...";
break;
case 4:
v5 = "I said no...";
break;
case 5:
v7 = "You will have to ask RubRub...";
goto LABEL_189;
default:
goto LABEL_266;
}
}
else if ( v11 )
{
if ( v11 == 1 )
{
v5 = "I even have my own Robot";
}
else
{
if ( v11 != 2 )
goto LABEL_266;
v5 = "RubRub gave it to me as a present";
}
}
else
{
v5 = "I like the new Robot mode";
}
}
}
else if ( v4 == 6 )
{
v15 = a1[108];
if ( v15 > 1 )
{
if ( v15 != 2 )
{
if ( v15 == 3 )
{
v7 = "I called it 'Sparky'";
goto LABEL_189;
}
goto LABEL_266;
}
v5 = "It was so beautiful";
}
else if ( v15 )
{
if ( v15 != 1 )
goto LABEL_266;
v5 = "I had a secret coin once";
}
else
{
v5 = "You're here for my gold, aren't you?";
}
}
else if ( v4 == 7 )
{
v10 = a1[108];
if ( v10 > 1 )
{
if ( v10 != 2 )
{
if ( v10 == 3 )
{
v7 = "Muahahaha!";
goto LABEL_189;
}
goto LABEL_266;
}
v5 = "I hid it with my name as the password";
}
else if ( v10 )
{
if ( v10 != 1 )
goto LABEL_266;
v5 = "He will never notice...";
}
else
{
v5 = "Don't tell RubRub, but I stole an icon";
}
}
goto LABEL_265;
}
if ( v4 <= 12 )
{
if ( v4 == 10 )
{
v21 = a1[108];
if ( v21 <= 1 )
{
if ( v21 )
{
if ( v21 != 1 )
goto LABEL_266;
v5 = "Without it, I'm dead.";
}
else
{
v5 = "Ok, I will give you a hint.";
}
}
else
{
switch ( v21 )
{
case 2:
v5 = "If I'm not, then I'm behind.";
break;
case 3:
v5 = "What am I?";
break;
case 4:
v7 = "That didn't go very well...";
goto LABEL_189;
default:
goto LABEL_266;
}
}
goto LABEL_265;
}
if ( v4 != 11 )
goto LABEL_265;
v12 = a1[108];
if ( v12 > 3 )
{
if ( v12 > 5 )
{
if ( v12 != 6 )
{
if ( v12 == 7 )
{
std::string::assign(a2, "I DIDNT TELL YOU ANYTHING!");
a1[107] = 0;
v26 = GameManager::sharedState();
GameManager::setUGV(v26, "3", 1);
}
goto LABEL_266;
}
v5 = "I mean... oh no...";
}
else if ( v12 == 4 )
{
v5 = "Like he has a better name";
}
else
{
v5 = "What does 'Glubfub' mean anyway?";
}
goto LABEL_265;
}
if ( v12 <= 1 )
{
if ( v12 )
{
if ( v12 != 1 )
goto LABEL_266;
v5 = "I heard he made fun of me";
}
else
{
v5 = "So you met the GateKeeper...";
}
goto LABEL_265;
}
if ( v12 == 2 )
{
v5 = "Made fun of 'Sparky'...";
goto LABEL_265;
}
LABEL_180:
v5 = "...";
goto LABEL_265;
}
if ( v4 == 13 )
{
v18 = a1[108];
if ( v18 <= 2 )
{
if ( v18 )
{
if ( v18 == 1 )
{
v5 = "You're so stubborn";
}
else
{
if ( v18 != 2 )
goto LABEL_266;
v5 = "Stubborn as a Fox...";
}
}
else
{
v5 = "Why are you still here?";
}
goto LABEL_265;
}
if ( v18 <= 4 )
{
if ( v18 == 3 )
v5 = "wait, that's not right";
else
v5 = "Gah, I forgot the word";
goto LABEL_265;
}
if ( v18 == 5 )
{
v5 = "Those animals that are stubborn";
goto LABEL_265;
}
if ( v18 != 6 )
goto LABEL_266;
goto LABEL_178;
}
if ( v4 == 14 )
{
v17 = a1[108];
if ( v17 > 4 )
{
if ( v17 <= 6 )
{
if ( v17 == 5 )
v5 = "Over and over and over";
else
v5 = "It never ends";
}
else
{
switch ( v17 )
{
case 7:
v5 = "It doesn't have an end";
break;
case 8:
v5 = "...no ending";
break;
case 9:
v7 = "That's like 5 hints";
goto LABEL_189;
default:
goto LABEL_266;
}
}
}
else if ( v17 <= 1 )
{
if ( v17 )
{
if ( v17 != 1 )
goto LABEL_266;
}
else
{
std::string::assign(a2, "I have to admit");
}
v5 = "It does get lonely sometimes";
}
else if ( v17 == 2 )
{
v5 = "It's so quiet...";
}
else if ( v17 == 3 )
{
v5 = "Except for the annoying music";
}
else
{
v5 = "Just keeps looping";
}
goto LABEL_265;
}
v8 = a1[108];
if ( v8 <= 3 )
{
if ( v8 > 1 )
{
if ( v8 == 2 )
v5 = "...or what the password is";
else
v5 = "You will have to ask him";
}
else if ( v8 )
{
if ( v8 != 1 )
goto LABEL_266;
v5 = "But RubRub didn't tell me where";
}
else
{
v5 = "There's a trail hidden somewhere";
}
goto LABEL_265;
}
if ( v8 <= 5 )
{
if ( v8 == 4 )
v5 = "Fly, you fool!";
else
v5 = "...or use the force";
goto LABEL_265;
}
switch ( v8 )
{
case 6:
v5 = "Whichever comes first";
goto LABEL_265;
case 7:
v5 = "Sneaky hobbitses...";
goto LABEL_265;
case 8:
v7 = "Gryffindor!";
goto LABEL_189;
}
LABEL_266:
++a1[108];
}