//
// SecretLayer2::getThreadMessage from 0x10030d604 to 0x10030db6c (1384 bytes)
//
// 1 xrefs:
// > SecretLayer2::getMessage @ 0x10030a530
//
// 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
//
void __usercall SecretLayer2::getThreadMessage(_DWORD *a1@, std::string *a2@)
{
int v4; // w8
const std::string::value_type *v5; // x1
int v6; // w8
int v7; // w8
GameManager *v8; // x0
int v9; // w8
int v10; // w8
int v11; // w8
const std::string::value_type *v12; // x1
int v13; // w8
int v14; // w8
int v15; // w8
int v16; // w8
a1[112] = 0;
sub_100009900(a2, "zzzzzzZZZZZZZZZ");
v4 = a1[110];
v5 = "zzzZZZZ";
if ( v4 <= 5 )
{
if ( v4 > 3 )
{
if ( v4 != 4 )
{
v9 = a1[111];
if ( v9 > 3 )
{
if ( v9 <= 5 )
{
if ( v9 == 4 )
v5 = "The Witch stinks of fish";
else
v5 = "My question to you is this...";
goto LABEL_124;
}
if ( v9 != 6 )
{
if ( v9 == 7 )
{
v12 = "How many shinies do you have?";
goto LABEL_96;
}
goto LABEL_125;
}
v5 = "On a scale from tree to fish";
}
else
{
if ( v9 > 1 )
{
if ( v9 == 2 )
v5 = "In this tree there lives a Witch";
else
v5 = "A very short Witch";
goto LABEL_124;
}
if ( v9 )
{
if ( v9 != 1 )
goto LABEL_125;
v5 = "A very short tree";
}
else
{
v5 = "So... there is a tree";
}
}
goto LABEL_124;
}
v13 = a1[111];
if ( !v13 )
{
v5 = "This is thread 4";
goto LABEL_124;
}
if ( v13 != 1 )
goto LABEL_125;
v12 = "Thread 4 end";
}
else
{
if ( v4 != 1 )
{
if ( v4 == 3 )
{
v7 = a1[111];
if ( v7 <= 3 )
{
if ( v7 > 1 )
{
if ( v7 == 2 )
v5 = "You took 'Spookys' coin";
else
v5 = "That is pure evil...";
goto LABEL_124;
}
if ( v7 )
{
if ( v7 != 1 )
goto LABEL_125;
v5 = "You little thief";
}
else
{
v5 = "I heard what you did";
}
}
else
{
if ( v7 <= 5 )
{
if ( v7 == 4 )
v5 = "I like it";
else
v5 = "I know what you're thinking";
goto LABEL_124;
}
if ( v7 == 6 )
{
v5 = "But you will never get my coin...";
}
else
{
if ( v7 != 7 )
{
if ( v7 == 8 )
{
std::string::assign(a2, "Too clever for you...");
a1[110] = 0;
v8 = GameManager::sharedState();
GameManager::setUGV(v8, "2", 1);
}
goto LABEL_125;
}
v5 = "I keep it safe";
}
}
}
goto LABEL_124;
}
v11 = a1[111];
if ( v11 <= 1 )
{
if ( v11 )
{
if ( v11 != 1 )
goto LABEL_125;
v5 = "I feel so drained";
}
else
{
v5 = "Oh my head...";
}
goto LABEL_124;
}
if ( v11 == 2 )
{
v5 = "Would be nice to get some energy";
goto LABEL_124;
}
if ( v11 == 3 )
{
v5 = "You know, for my head...";
goto LABEL_124;
}
if ( v11 != 4 )
goto LABEL_125;
v12 = "Nothing? Ok...";
}
LABEL_96:
std::string::assign(a2, v12);
a1[110] = 0;
goto LABEL_125;
}
if ( v4 <= 8 )
{
if ( v4 == 6 )
{
v15 = a1[111];
if ( v15 > 3 )
{
if ( v15 <= 5 )
{
if ( v15 == 4 )
v5 = "'Remove my start and I am even'";
else
v5 = "'When you complete this riddle'";
goto LABEL_124;
}
if ( v15 != 6 )
{
if ( v15 == 7 )
{
v12 = "Can you go now?";
goto LABEL_96;
}
goto LABEL_125;
}
v5 = "'I hope you are leaving'";
}
else
{
if ( v15 > 1 )
{
if ( v15 == 2 )
v5 = "Since you insist on staying";
else
v5 = "'I have always been odd'";
goto LABEL_124;
}
if ( !v15 )
goto LABEL_87;
if ( v15 != 1 )
goto LABEL_125;
v5 = "Might as well give you a riddle";
}
}
else
{
if ( v4 != 8 )
goto LABEL_124;
v10 = a1[111];
if ( v10 > 3 )
{
if ( v10 <= 5 )
{
if ( v10 == 4 )
v5 = "Then the egg laid the chicken";
else
v5 = "... and the chicken said";
goto LABEL_124;
}
if ( v10 != 6 )
{
if ( v10 == 7 )
{
v12 = "I need to get some rest...";
goto LABEL_96;
}
goto LABEL_125;
}
v5 = "The password is on fire";
}
else
{
if ( v10 > 1 )
{
if ( v10 != 2 )
{
v5 = "The egg, of course.";
goto LABEL_124;
}
goto LABEL_87;
}
if ( v10 )
{
if ( v10 != 1 )
goto LABEL_125;
v5 = "The chicken or the egg?";
}
else
{
v5 = "Which came first?";
}
}
}
LABEL_124:
std::string::assign(a2, v5);
goto LABEL_125;
}
if ( v4 == 9 )
{
v14 = a1[111];
if ( !v14 )
{
v5 = "Remember the 2.1 Awards?";
goto LABEL_124;
}
if ( v14 != 1 )
goto LABEL_125;
v12 = "me neither";
goto LABEL_96;
}
if ( v4 == 10 )
{
v16 = a1[111];
if ( v16 <= 1 )
{
if ( v16 )
{
if ( v16 != 1 )
goto LABEL_125;
v5 = "I feel like I've forgotten something";
}
else
{
v5 = "It's been so long";
}
goto LABEL_124;
}
if ( v16 != 2 )
{
if ( v16 != 3 )
goto LABEL_125;
v12 = "Where's that smoke coming from?";
goto LABEL_96;
}
LABEL_87:
v5 = "...";
goto LABEL_124;
}
if ( v4 != 20 )
goto LABEL_124;
v6 = a1[111];
if ( v6 <= 2 )
{
if ( v6 )
{
if ( v6 == 1 )
{
v5 = "Just don't tell RubRub";
}
else
{
if ( v6 != 2 )
goto LABEL_125;
v5 = "I am building my own level";
}
}
else
{
v5 = "Want to hear a secret?";
}
goto LABEL_124;
}
if ( v6 <= 4 )
{
if ( v6 == 3 )
v5 = "I call it \"The Challenge\"";
else
v5 = "Hope it gets featured";
goto LABEL_124;
}
if ( v6 == 5 )
{
v5 = "But probably not...";
goto LABEL_124;
}
if ( v6 == 6 )
{
v12 = "RubRub will never notice me";
goto LABEL_96;
}
LABEL_125:
++a1[111];
}