// // SecretLayer2::getThreadMessage from 0x4ec410 to 0x4ec708 (760 bytes) // // 1 xrefs: // > SecretLayer2::getMessage @ 0x4eca94 // // 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 // SecretLayer2 *__fastcall SecretLayer2::getThreadMessage(SecretLayer2 *this, _DWORD *a2) { SecretLayer2 *v4; // r0 char *v5; // r1 SecretLayer2 *v6; // r0 char *v7; // r1 GameManager *v8; // r0 int v9; // r3 int v10; // r3 a2[86] = 0; sub_776584((int)this, "zzzzzzZZZZZZZZZ"); switch ( a2[84] ) { case 1: switch ( a2[85] ) { case 0: v4 = this; v5 = "Oh my head..."; goto LABEL_68; case 1: v4 = this; v5 = "I feel so drained"; goto LABEL_68; case 2: v4 = this; v5 = "Would be nice to get some energy"; goto LABEL_68; case 3: v4 = this; v5 = "You know, for my head..."; goto LABEL_68; case 4: v6 = this; v7 = "Nothing? Ok..."; goto LABEL_8; default: goto LABEL_69; } case 3: switch ( a2[85] ) { case 0: v4 = this; v5 = "I heard what you did"; goto LABEL_68; case 1: v4 = this; v5 = "You little thief"; goto LABEL_68; case 2: v4 = this; v5 = "You took 'Spookys' coin"; goto LABEL_68; case 3: v4 = this; v5 = "That is pure evil..."; goto LABEL_68; case 4: v4 = this; v5 = "I like it"; goto LABEL_68; case 5: v4 = this; v5 = "I know what you're thinking"; goto LABEL_68; case 6: v4 = this; v5 = "But you will never get my coin..."; goto LABEL_68; case 7: v4 = this; v5 = "I keep it safe"; goto LABEL_68; case 8: sub_7753D4((int)this, "Too clever for you..."); a2[84] = 0; v8 = GameManager::sharedState(); GameManager::setUGV(v8, (const char *)&aO1i2r3e45s7t89[3], 1); break; default: goto LABEL_69; } break; case 4: v9 = a2[85]; if ( !v9 ) { v4 = this; v5 = "This is thread 4"; goto LABEL_68; } if ( v9 == 1 ) { v6 = this; v7 = "Thread 4 end"; goto LABEL_8; } break; case 5: switch ( a2[85] ) { case 0: v4 = this; v5 = "So... there is a tree"; goto LABEL_68; case 1: v4 = this; v5 = "A very short tree"; goto LABEL_68; case 2: v4 = this; v5 = "In this tree there lives a Witch"; goto LABEL_68; case 3: v4 = this; v5 = "A very short Witch"; goto LABEL_68; case 4: v4 = this; v5 = "The Witch stinks of fish"; goto LABEL_68; case 5: v4 = this; v5 = "My question to you is this..."; goto LABEL_68; case 6: v4 = this; v5 = "On a scale from tree to fish"; goto LABEL_68; case 7: v6 = this; v7 = "How many shinies do you have?"; goto LABEL_8; default: goto LABEL_69; } case 6: switch ( a2[85] ) { case 0: v4 = this; v5 = "..."; goto LABEL_68; case 1: v4 = this; v5 = "Might as well give you a riddle"; goto LABEL_68; case 2: v4 = this; v5 = "Since you insist on staying"; goto LABEL_68; case 3: v4 = this; v5 = "'I have always been odd'"; goto LABEL_68; case 4: v4 = this; v5 = "'Remove my start and I am even'"; goto LABEL_68; case 5: v4 = this; v5 = "'When you complete this riddle'"; goto LABEL_68; case 6: v4 = this; v5 = "'I hope you are leaving'"; goto LABEL_68; case 7: v6 = this; v7 = "Can you go now?"; goto LABEL_8; default: goto LABEL_69; } case 8: switch ( a2[85] ) { case 0: v4 = this; v5 = "Which came first?"; goto LABEL_68; case 1: v4 = this; v5 = "The chicken or the egg?"; goto LABEL_68; case 2: v4 = this; v5 = "..."; goto LABEL_68; case 3: v4 = this; v5 = "The egg, of course."; goto LABEL_68; case 4: v4 = this; v5 = "Then the egg laid the chicken"; goto LABEL_68; case 5: v4 = this; v5 = "... and the chicken said"; goto LABEL_68; case 6: v4 = this; v5 = "The password is on fire"; goto LABEL_68; case 7: v6 = this; v7 = "I need to get some rest..."; goto LABEL_8; default: goto LABEL_69; } case 9: v10 = a2[85]; if ( !v10 ) { v4 = this; v5 = "Remember the 2.1 Awards?"; goto LABEL_68; } if ( v10 == 1 ) { v6 = this; v7 = "me neither"; LABEL_8: sub_7753D4((int)v6, v7); a2[84] = 0; } break; case 0xA: switch ( a2[85] ) { case 0: v4 = this; v5 = "It's been so long"; goto LABEL_68; case 1: v4 = this; v5 = "I feel like I've forgotten something"; goto LABEL_68; case 2: v4 = this; v5 = "..."; goto LABEL_68; case 3: v6 = this; v7 = "Where's that smoke coming from?"; goto LABEL_8; default: goto LABEL_69; } case 0x14: switch ( a2[85] ) { case 0: v4 = this; v5 = "Want to hear a secret?"; goto LABEL_68; case 1: v4 = this; v5 = "Just don't tell RubRub"; goto LABEL_68; case 2: v4 = this; v5 = "I am building my own level"; goto LABEL_68; case 3: v4 = this; v5 = "I call it \"The Challenge\""; goto LABEL_68; case 4: v4 = this; v5 = "Hope it gets featured"; goto LABEL_68; case 5: v4 = this; v5 = "But probably not..."; goto LABEL_68; case 6: v6 = this; v7 = "RubRub will never notice me"; goto LABEL_8; default: goto LABEL_69; } default: v4 = this; v5 = "zzzZZZZ"; LABEL_68: sub_7753D4((int)v4, v5); break; } LABEL_69: ++a2[85]; return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source