//
// SecretLayer2::getThreadMessage from 0x1004a2b30 to 0x1004a2f34 (1028 bytes)
//
// 3 xrefs:
// > SecretLayer2::init @ 0x10049d703
// > SecretLayer2::getMessage @ 0x10049e109
// > SecretLayer2::onSubmit @ 0x10049e736
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
std::string *__fastcall SecretLayer2::getThreadMessage(std::string *this, _DWORD *a2)
{
int v3; // eax
const std::string::value_type *v4; // rsi
int v5; // eax
const std::string::value_type *v6; // rsi
int v7; // eax
GameManager *v9; // rax
a2[112] = 0;
this->__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)30;
strcpy(this->__r_.__value_.__s.__data_, "zzzzzzZZZZZZZZZ");
v3 = a2[110];
v4 = "zzzZZZZ";
switch ( v3 )
{
case 1:
switch ( a2[111] )
{
case 0:
v4 = "Oh my head...";
goto LABEL_64;
case 1:
v4 = "I feel so drained";
goto LABEL_64;
case 2:
v4 = "Would be nice to get some energy";
goto LABEL_64;
case 3:
v4 = "You know, for my head...";
goto LABEL_64;
case 4:
v6 = "Nothing? Ok...";
goto LABEL_51;
default:
goto LABEL_65;
}
case 3:
switch ( a2[111] )
{
case 0:
v4 = "I heard what you did";
goto LABEL_64;
case 1:
v4 = "You little thief";
goto LABEL_64;
case 2:
v4 = "You took 'Spookys' coin";
goto LABEL_64;
case 3:
v4 = "That is pure evil...";
goto LABEL_64;
case 4:
v4 = "I like it";
goto LABEL_64;
case 5:
v4 = "I know what you're thinking";
goto LABEL_64;
case 6:
v4 = "But you will never get my coin...";
goto LABEL_64;
case 7:
v4 = "I keep it safe";
goto LABEL_64;
case 8:
std::string::assign(this, "Too clever for you...");
a2[110] = 0;
v9 = GameManager::sharedState();
GameManager::setUGV(v9, "2", 1);
break;
default:
goto LABEL_65;
}
break;
case 4:
v5 = a2[111];
if ( !v5 )
{
v4 = "This is thread 4";
goto LABEL_64;
}
if ( v5 == 1 )
{
v6 = "Thread 4 end";
goto LABEL_51;
}
break;
case 5:
switch ( a2[111] )
{
case 0:
v4 = "So... there is a tree";
goto LABEL_64;
case 1:
v4 = "A very short tree";
goto LABEL_64;
case 2:
v4 = "In this tree there lives a Witch";
goto LABEL_64;
case 3:
v4 = "A very short Witch";
goto LABEL_64;
case 4:
v4 = "The Witch stinks of fish";
goto LABEL_64;
case 5:
v4 = "My question to you is this...";
goto LABEL_64;
case 6:
v4 = "On a scale from tree to fish";
goto LABEL_64;
case 7:
v6 = "How many shinies do you have?";
goto LABEL_51;
default:
goto LABEL_65;
}
case 6:
switch ( a2[111] )
{
case 0:
goto LABEL_19;
case 1:
v4 = "Might as well give you a riddle";
goto LABEL_64;
case 2:
v4 = "Since you insist on staying";
goto LABEL_64;
case 3:
v4 = "'I have always been odd'";
goto LABEL_64;
case 4:
v4 = "'Remove my start and I am even'";
goto LABEL_64;
case 5:
v4 = "'When you complete this riddle'";
goto LABEL_64;
case 6:
v4 = "'I hope you are leaving'";
goto LABEL_64;
case 7:
v6 = "Can you go now?";
goto LABEL_51;
default:
goto LABEL_65;
}
case 8:
switch ( a2[111] )
{
case 0:
v4 = "Which came first?";
goto LABEL_64;
case 1:
v4 = "The chicken or the egg?";
goto LABEL_64;
case 2:
goto LABEL_19;
case 3:
v4 = "The egg, of course.";
goto LABEL_64;
case 4:
v4 = "Then the egg laid the chicken";
goto LABEL_64;
case 5:
v4 = "... and the chicken said";
goto LABEL_64;
case 6:
v4 = "The password is on fire";
goto LABEL_64;
case 7:
v6 = "I need to get some rest...";
goto LABEL_51;
default:
goto LABEL_65;
}
case 9:
v7 = a2[111];
if ( !v7 )
{
v4 = "Remember the 2.1 Awards?";
goto LABEL_64;
}
if ( v7 == 1 )
{
v6 = "me neither";
LABEL_51:
std::string::assign(this, v6);
a2[110] = 0;
}
break;
case 10:
switch ( a2[111] )
{
case 0:
v4 = "It's been so long";
goto LABEL_64;
case 1:
v4 = "I feel like I've forgotten something";
goto LABEL_64;
case 2:
LABEL_19:
v4 = "...";
goto LABEL_64;
case 3:
v6 = "Where's that smoke coming from?";
goto LABEL_51;
default:
goto LABEL_65;
}
case 20:
switch ( a2[111] )
{
case 0:
v4 = "Want to hear a secret?";
goto LABEL_64;
case 1:
v4 = "Just don't tell RubRub";
goto LABEL_64;
case 2:
v4 = "I am building my own level";
goto LABEL_64;
case 3:
v4 = "I call it \"The Challenge\"";
goto LABEL_64;
case 4:
v4 = "Hope it gets featured";
goto LABEL_64;
case 5:
v4 = "But probably not...";
goto LABEL_64;
case 6:
v6 = "RubRub will never notice me";
goto LABEL_51;
default:
goto LABEL_65;
}
default:
LABEL_64:
std::string::assign(this, v4);
break;
}
LABEL_65:
++a2[111];
return this;
}