//
// SecretLayer::getThreadMessage from 0x140575b80 to 0x140576904 (3460 bytes)
//
// 2 xrefs:
// > SecretLayer::getMessage @ 0x140575b68
// > ??> @ 0x14092c7d4
//
// This function is hookable on this platform (idp: pc, 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:34:22 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall SecretLayer::getThreadMessage(_DWORD *a1, __int64 a2)
{
int v4; // ecx
int v5; // ecx
int v6; // ecx
int v7; // ecx
size_t v8; // r8
char *v9; // rdx
int v10; // ecx
int v11; // ecx
int v12; // ecx
int v13; // ecx
int v14; // ecx
int v15; // ecx
int v16; // ecx
int v17; // ecx
int v18; // ecx
int v19; // ecx
int v20; // ecx
int v21; // ecx
int v22; // ecx
int v23; // ecx
int v24; // ecx
int v25; // ecx
int v26; // ecx
int v27; // ecx
int v28; // ecx
int v29; // ecx
int v30; // ecx
int v31; // ecx
int v32; // ecx
int v33; // ecx
int v34; // ecx
int v35; // ecx
int v36; // ecx
int v37; // ecx
int v38; // ecx
int v39; // ecx
int v40; // ecx
int v41; // ecx
int v42; // ecx
int v43; // ecx
__int64 v44; // rcx
int v45; // ecx
int v46; // ecx
int v47; // ecx
void *v49; // [rsp+40h] [rbp+8h]
a1[109] = 0;
*(_OWORD *)a2 = 0;
*(_QWORD *)(a2 + 16) = 15;
*(_QWORD *)(a2 + 24) = 15;
strcpy((char *)a2, "zzzzzzZZZZZZZZZ");
switch ( a1[107] )
{
case 6:
v34 = a1[108];
if ( !v34 )
{
v8 = 36;
v9 = "You're here for my gold, aren't you?";
goto LABEL_173;
}
v35 = v34 - 1;
if ( !v35 )
{
v8 = 24;
v9 = "I had a secret coin once";
goto LABEL_173;
}
v36 = v35 - 1;
if ( !v36 )
{
v8 = 19;
v9 = "It was so beautiful";
goto LABEL_173;
}
if ( v36 == 1 )
{
sub_1400405A0((void **)a2, "I called it 'Sparky'", 0x14u);
a1[107] = 0;
}
goto LABEL_174;
case 7:
v31 = a1[108];
if ( !v31 )
{
v8 = 38;
v9 = "Don't tell RubRub, but I stole an icon";
goto LABEL_173;
}
v32 = v31 - 1;
if ( !v32 )
{
v8 = 23;
v9 = "He will never notice...";
goto LABEL_173;
}
v33 = v32 - 1;
if ( !v33 )
{
v8 = 37;
v9 = "I hid it with my name as the password";
goto LABEL_173;
}
if ( v33 == 1 )
{
sub_1400405A0((void **)a2, "Muahahaha!", 0xAu);
a1[107] = 0;
}
goto LABEL_174;
case 8:
v37 = a1[108];
if ( !v37 )
{
v8 = 29;
v9 = "You want a hint... don't you?";
goto LABEL_173;
}
v38 = v37 - 1;
if ( !v38 )
{
v8 = 34;
v9 = "I've hidden a password in the game";
goto LABEL_173;
}
v39 = v38 - 1;
if ( !v39 )
{
v8 = 31;
v9 = "I won't tell you where it is...";
goto LABEL_173;
}
if ( v39 == 1 )
{
sub_1400405A0((void **)a2, "It's definitely not on the support page.", 0x28u);
a1[107] = 0;
}
goto LABEL_174;
case 9:
switch ( a1[108] )
{
case 0:
v8 = 25;
v9 = "I like the new Robot mode";
goto LABEL_173;
case 1:
v8 = 24;
v9 = "I even have my own Robot";
goto LABEL_173;
case 2:
v8 = 33;
v9 = "RubRub gave it to me as a present";
goto LABEL_173;
case 3:
v8 = 30;
v9 = "No, I won't give you a hint...";
goto LABEL_173;
case 4:
v8 = 12;
v9 = "I said no...";
goto LABEL_173;
case 5:
sub_1400405A0((void **)a2, "You will have to ask RubRub...", 0x1Eu);
a1[107] = 0;
break;
default:
goto LABEL_174;
}
goto LABEL_174;
case 0xA:
v40 = a1[108];
if ( !v40 )
{
v8 = 27;
v9 = "Ok, I will give you a hint.";
goto LABEL_173;
}
v41 = v40 - 1;
if ( !v41 )
{
v8 = 21;
v9 = "Without it, I'm dead.";
goto LABEL_173;
}
v42 = v41 - 1;
if ( !v42 )
{
v8 = 28;
v9 = "If I'm not, then I'm behind.";
goto LABEL_173;
}
v43 = v42 - 1;
if ( !v43 )
{
v8 = 10;
v9 = "What am I?";
goto LABEL_173;
}
if ( v43 == 1 )
{
sub_1400405A0((void **)a2, "That didn't go very well...", 0x1Bu);
a1[107] = 0;
}
goto LABEL_174;
case 0xB:
switch ( a1[108] )
{
case 0:
v8 = 28;
v9 = "So you met the GateKeeper...";
goto LABEL_173;
case 1:
v8 = 25;
v9 = "I heard he made fun of me";
goto LABEL_173;
case 2:
v8 = 23;
v9 = "Made fun of 'Sparky'...";
goto LABEL_173;
case 3:
goto LABEL_170;
case 4:
v8 = 25;
v9 = "Like he has a better name";
goto LABEL_173;
case 5:
v8 = 32;
v9 = "What does 'Glubfub' mean anyway?";
goto LABEL_173;
case 6:
v8 = 18;
v9 = "I mean... oh no...";
goto LABEL_173;
case 7:
sub_1400405A0((void **)a2, "I DIDNT TELL YOU ANYTHING!", 0x1Au);
a1[107] = 0;
v44 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v49 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v49);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v44 = qword_14090BFD0;
}
GameManager::setUGV(v44, &word_14070D054, 1u);
break;
default:
goto LABEL_174;
}
goto LABEL_174;
case 0xD:
switch ( a1[108] )
{
case 0:
v8 = 23;
v9 = "Why are you still here?";
goto LABEL_173;
case 1:
v8 = 18;
v9 = "You're so stubborn";
goto LABEL_173;
case 2:
v8 = 20;
v9 = "Stubborn as a Fox...";
goto LABEL_173;
case 3:
v8 = 22;
v9 = "wait, that's not right";
goto LABEL_173;
case 4:
v8 = 22;
v9 = "Gah, I forgot the word";
goto LABEL_173;
case 5:
v8 = 31;
v9 = "Those animals that are stubborn";
goto LABEL_173;
case 6:
goto LABEL_45;
default:
goto LABEL_174;
}
goto LABEL_174;
case 0xE:
switch ( a1[108] )
{
case 0:
sub_1400405A0((void **)a2, "I have to admit", 0xFu);
goto LABEL_126;
case 1:
LABEL_126:
v8 = 28;
v9 = "It does get lonely sometimes";
goto LABEL_173;
case 2:
v8 = 16;
v9 = "It's so quiet...";
goto LABEL_173;
case 3:
v8 = 29;
v9 = "Except for the annoying music";
goto LABEL_173;
case 4:
v8 = 18;
v9 = "Just keeps looping";
goto LABEL_173;
case 5:
v8 = 22;
v9 = "Over and over and over";
goto LABEL_173;
case 6:
v8 = 13;
v9 = "It never ends";
goto LABEL_173;
case 7:
v8 = 22;
v9 = "It doesn't have an end";
goto LABEL_173;
case 8:
v8 = 12;
v9 = "...no ending";
goto LABEL_173;
case 9:
sub_1400405A0((void **)a2, "That's like 5 hints", 0x13u);
a1[107] = 0;
goto LABEL_174;
default:
goto LABEL_174;
}
case 0xF:
switch ( a1[108] )
{
case 0:
v8 = 32;
v9 = "There's a trail hidden somewhere";
goto LABEL_173;
case 1:
v8 = 31;
v9 = "But RubRub didn't tell me where";
goto LABEL_173;
case 2:
v8 = 26;
v9 = "...or what the password is";
goto LABEL_173;
case 3:
v8 = 24;
v9 = "You will have to ask him";
goto LABEL_173;
case 4:
v8 = 14;
v9 = "Fly, you fool!";
goto LABEL_173;
case 5:
v8 = 19;
v9 = "...or use the force";
goto LABEL_173;
case 6:
v8 = 21;
v9 = "Whichever comes first";
goto LABEL_173;
case 7:
v8 = 19;
v9 = "Sneaky hobbitses...";
goto LABEL_173;
case 8:
sub_1400405A0((void **)a2, "Gryffindor!", 0xBu);
a1[107] = 0;
break;
default:
goto LABEL_174;
}
goto LABEL_174;
case 0x10:
switch ( a1[108] )
{
case 0:
v8 = 26;
v9 = "Secrets secrets secrets...";
goto LABEL_173;
case 1:
v8 = 26;
v9 = "It's hard to keep track of";
goto LABEL_173;
case 2:
v8 = 21;
v9 = "makes me feel Lost...";
goto LABEL_173;
case 3:
v8 = 32;
v9 = "Maybe we are in a twilight zone?";
goto LABEL_173;
case 4:
v8 = 27;
v9 = "Reminds me of a book I read";
goto LABEL_173;
case 5:
v8 = 20;
v9 = "The pages were weird";
goto LABEL_173;
case 6:
v8 = 21;
v9 = "Page one was page two";
goto LABEL_173;
case 7:
v8 = 23;
v9 = "Page three was page six";
goto LABEL_173;
case 8:
sub_1400405A0((void **)a2, "Made it really hard to read", 0x1Bu);
a1[107] = 0;
break;
default:
goto LABEL_174;
}
goto LABEL_174;
case 0x11:
switch ( a1[108] )
{
case 0:
v8 = 31;
v9 = "I don't feel good about this...";
goto LABEL_173;
case 1:
v8 = 24;
v9 = "RubRub will be back soon";
goto LABEL_173;
case 2:
v8 = 27;
v9 = "...unless he's already here";
goto LABEL_173;
case 3:
v8 = 29;
v9 = "Watching, waiting, lurking...";
goto LABEL_173;
case 4:
v8 = 26;
v9 = "He knows every move I make";
goto LABEL_173;
case 5:
v8 = 19;
v9 = "Every move YOU make";
goto LABEL_173;
case 6:
v8 = 27;
v9 = "But maybe you can stop him?";
goto LABEL_173;
case 7:
sub_1400405A0((void **)a2, "Maybe you are the key?", 0x16u);
a1[107] = 0;
break;
default:
goto LABEL_174;
}
goto LABEL_174;
case 0x13:
v45 = a1[108];
if ( !v45 )
{
v8 = 26;
v9 = "What is the hardest Demon?";
goto LABEL_173;
}
v46 = v45 - 1;
if ( !v46 )
{
LABEL_170:
v8 = 3;
v9 = "...";
goto LABEL_173;
}
v47 = v46 - 1;
if ( !v47 )
{
v8 = 31;
v9 = "Even harder than Extreme Demons";
goto LABEL_173;
}
if ( v47 == 1 )
{
sub_1400405A0((void **)a2, "There must be more", 0x12u);
a1[107] = 0;
}
goto LABEL_174;
case 0x65:
v4 = a1[108];
if ( !v4 )
{
v8 = 15;
v9 = "So... whats up?";
goto LABEL_173;
}
v5 = v4 - 1;
if ( !v5 )
{
v8 = 33;
v9 = "The back button is in the corner.";
goto LABEL_173;
}
v6 = v5 - 1;
if ( !v6 )
{
v8 = 19;
v9 = "Ready to leave yet?";
goto LABEL_173;
}
v7 = v6 - 1;
if ( !v7 )
{
v8 = 24;
v9 = "Whenever you're ready...";
goto LABEL_173;
}
if ( v7 == 1 )
{
sub_1400405A0((void **)a2, "Fine, I can wait.", 0x11u);
a1[107] = 0;
}
goto LABEL_174;
case 0x66:
v10 = a1[108];
if ( !v10 )
{
v8 = 29;
v9 = "I have an idea for a gamemode";
goto LABEL_173;
}
v11 = v10 - 1;
if ( !v11 )
{
v8 = 18;
v9 = "You play as a cube";
goto LABEL_173;
}
v12 = v11 - 1;
if ( !v12 )
{
v8 = 13;
v9 = "that can jump";
goto LABEL_173;
}
v13 = v12 - 1;
if ( !v13 )
{
v8 = 23;
v9 = "...and there are spikes";
goto LABEL_173;
}
if ( v13 == 1 )
{
sub_1400405A0((void **)a2, "nevermind...", 0xCu);
a1[107] = 0;
}
goto LABEL_174;
case 0x67:
v14 = a1[108];
if ( !v14 )
{
v8 = 16;
v9 = "Look behind you!";
goto LABEL_173;
}
v15 = v14 - 1;
if ( !v15 )
{
v8 = 25;
v9 = "I thought I saw something";
goto LABEL_173;
}
v16 = v15 - 1;
if ( !v16 )
{
v8 = 30;
v9 = "Maybe it's just my imagination";
goto LABEL_173;
}
v17 = v16 - 1;
if ( !v17 )
{
v8 = 10;
v9 = "Or was it?";
goto LABEL_173;
}
if ( v17 == 1 )
{
sub_1400405A0((void **)a2, "DUN DUN DUN!", 0xCu);
a1[107] = 0;
}
goto LABEL_174;
case 0x68:
v18 = a1[108];
if ( !v18 )
{
v8 = 32;
v9 = "Don't you get tired of clicking?";
goto LABEL_173;
}
v19 = v18 - 1;
if ( !v19 )
{
v8 = 24;
v9 = "I mean, isn't it boring?";
goto LABEL_173;
}
v20 = v19 - 1;
if ( !v20 )
{
v8 = 17;
v9 = "Click click click";
goto LABEL_173;
}
if ( v20 == 1 )
{
sub_1400405A0((void **)a2, "Is that all you do?", 0x13u);
a1[107] = 0;
}
goto LABEL_174;
case 0x69:
v21 = a1[108];
if ( !v21 )
{
v8 = 28;
v9 = "I heard a joke the other day";
goto LABEL_173;
}
v22 = v21 - 1;
if ( !v22 )
{
v8 = 25;
v9 = "Two cubes walk into a bar";
goto LABEL_173;
}
v23 = v22 - 1;
if ( !v23 )
{
v8 = 31;
v9 = "wait... did they walk or slide?";
goto LABEL_173;
}
v24 = v23 - 1;
if ( !v24 )
{
v8 = 28;
v9 = "I don't think cubes can walk";
goto LABEL_173;
}
if ( v24 == 1 )
{
LABEL_45:
sub_1400405A0((void **)a2, "Nevermind...", 0xCu);
a1[107] = 0;
}
goto LABEL_174;
case 0x78:
v25 = a1[108];
if ( !v25 )
{
v8 = 25;
v9 = "Are you always like this?";
goto LABEL_173;
}
v26 = v25 - 1;
if ( !v26 )
{
v8 = 25;
v9 = "I mean, what's the point?";
goto LABEL_173;
}
v27 = v26 - 1;
if ( !v27 )
{
v8 = 43;
v9 = "Let me guess, you're gonna push the button?";
goto LABEL_173;
}
if ( v27 == 1 )
{
sub_1400405A0((void **)a2, "What a surprise...", 0x12u);
a1[107] = 0;
}
goto LABEL_174;
case 0x79:
v28 = a1[108];
if ( !v28 )
{
v8 = 13;
v9 = "Roses are red";
goto LABEL_173;
}
v29 = v28 - 1;
if ( !v29 )
{
v8 = 16;
v9 = "Violets are blue";
goto LABEL_173;
}
v30 = v29 - 1;
if ( !v30 )
{
v8 = 21;
v9 = "Click the back button";
LABEL_173:
sub_1400405A0((void **)a2, v9, v8);
goto LABEL_174;
}
if ( v30 == 1 )
{
sub_1400405A0((void **)a2, "So I get rid of you", 0x13u);
a1[107] = 0;
}
LABEL_174:
++a1[108];
return a2;
default:
v8 = 7;
v9 = "zzzZZZZ";
goto LABEL_173;
}
}