// // SecretLayer2::getThreadMessage from 0x14057d1b0 to 0x14057d8a8 (1784 bytes) // // 2 xrefs: // > SecretLayer2::getMessage @ 0x14057d19b // > @ 0x14092c900 // // 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:25 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall SecretLayer2::getThreadMessage(_DWORD *a1, __int64 a2) { int v4; // ecx int v5; // ecx int v6; // ecx int v7; // ecx size_t v8; // r8 char *v9; // rdx __int64 v10; // rcx int v11; // ecx int v12; // ecx int v13; // ecx int v14; // ecx int v15; // ecx void *v17; // [rsp+40h] [rbp+8h] a1[112] = 0; *(_OWORD *)a2 = 0; *(_QWORD *)(a2 + 16) = 15; *(_QWORD *)(a2 + 24) = 15; strcpy((char *)a2, "zzzzzzZZZZZZZZZ"); switch ( a1[110] ) { case 1: v4 = a1[111]; if ( !v4 ) { v8 = 13; v9 = "Oh my head..."; goto LABEL_74; } v5 = v4 - 1; if ( !v5 ) { v8 = 17; v9 = "I feel so drained"; goto LABEL_74; } v6 = v5 - 1; if ( !v6 ) { v8 = 32; v9 = "Would be nice to get some energy"; goto LABEL_74; } v7 = v6 - 1; if ( !v7 ) { v8 = 24; v9 = "You know, for my head..."; goto LABEL_74; } if ( v7 == 1 ) { sub_1400405A0((void **)a2, "Nothing? Ok...", 0xEu); a1[110] = 0; } break; case 3: switch ( a1[111] ) { case 0: v8 = 20; v9 = "I heard what you did"; goto LABEL_74; case 1: v8 = 16; v9 = "You little thief"; goto LABEL_74; case 2: v8 = 23; v9 = "You took 'Spookys' coin"; goto LABEL_74; case 3: v8 = 20; v9 = "That is pure evil..."; goto LABEL_74; case 4: v8 = 9; v9 = "I like it"; goto LABEL_74; case 5: v8 = 27; v9 = "I know what you're thinking"; goto LABEL_74; case 6: v8 = 33; v9 = "But you will never get my coin..."; goto LABEL_74; case 7: v8 = 14; v9 = "I keep it safe"; goto LABEL_74; case 8: sub_1400405A0((void **)a2, "Too clever for you...", 0x15u); a1[110] = 0; v10 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v17 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v10 = qword_14090BFD0; } GameManager::setUGV(v10, &word_14070D058, 1u); break; default: goto LABEL_75; } break; case 4: v11 = a1[111]; if ( !v11 ) { v8 = 16; v9 = "This is thread 4"; goto LABEL_74; } if ( v11 == 1 ) { sub_1400405A0((void **)a2, "Thread 4 end", 0xCu); a1[110] = 0; } break; case 5: switch ( a1[111] ) { case 0: v8 = 21; v9 = "So... there is a tree"; goto LABEL_74; case 1: v8 = 17; v9 = "A very short tree"; goto LABEL_74; case 2: v8 = 32; v9 = "In this tree there lives a Witch"; goto LABEL_74; case 3: v8 = 18; v9 = "A very short Witch"; goto LABEL_74; case 4: v8 = 24; v9 = "The Witch stinks of fish"; goto LABEL_74; case 5: v8 = 29; v9 = "My question to you is this..."; goto LABEL_74; case 6: v8 = 28; v9 = "On a scale from tree to fish"; goto LABEL_74; case 7: sub_1400405A0((void **)a2, "How many shinies do you have?", 0x1Du); a1[110] = 0; break; default: goto LABEL_75; } break; case 6: switch ( a1[111] ) { case 0: goto LABEL_38; case 1: v8 = 31; v9 = "Might as well give you a riddle"; goto LABEL_74; case 2: v8 = 27; v9 = "Since you insist on staying"; goto LABEL_74; case 3: v8 = 24; v9 = "'I have always been odd'"; goto LABEL_74; case 4: v8 = 31; v9 = "'Remove my start and I am even'"; goto LABEL_74; case 5: v8 = 31; v9 = "'When you complete this riddle'"; goto LABEL_74; case 6: v8 = 24; v9 = "'I hope you are leaving'"; goto LABEL_74; case 7: sub_1400405A0((void **)a2, "Can you go now?", 0xFu); a1[110] = 0; break; default: goto LABEL_75; } break; case 8: switch ( a1[111] ) { case 0: v8 = 17; v9 = "Which came first?"; goto LABEL_74; case 1: v8 = 23; v9 = "The chicken or the egg?"; goto LABEL_74; case 2: goto LABEL_38; case 3: v8 = 19; v9 = "The egg, of course."; goto LABEL_74; case 4: v8 = 29; v9 = "Then the egg laid the chicken"; goto LABEL_74; case 5: v8 = 24; v9 = "... and the chicken said"; goto LABEL_74; case 6: v8 = 23; v9 = "The password is on fire"; goto LABEL_74; case 7: sub_1400405A0((void **)a2, "I need to get some rest...", 0x1Au); a1[110] = 0; break; default: goto LABEL_75; } break; case 9: v12 = a1[111]; if ( !v12 ) { v8 = 24; v9 = "Remember the 2.1 Awards?"; goto LABEL_74; } if ( v12 == 1 ) { sub_1400405A0((void **)a2, "me neither", 0xAu); a1[110] = 0; } break; case 0xA: v13 = a1[111]; if ( !v13 ) { v8 = 17; v9 = "It's been so long"; goto LABEL_74; } v14 = v13 - 1; if ( !v14 ) { v8 = 36; v9 = "I feel like I've forgotten something"; goto LABEL_74; } v15 = v14 - 1; if ( !v15 ) { LABEL_38: v8 = 3; v9 = "..."; goto LABEL_74; } if ( v15 == 1 ) { sub_1400405A0((void **)a2, "Where's that smoke coming from?", 0x1Fu); a1[110] = 0; } break; case 0x14: switch ( a1[111] ) { case 0: v8 = 22; v9 = "Want to hear a secret?"; goto LABEL_74; case 1: v8 = 22; v9 = "Just don't tell RubRub"; goto LABEL_74; case 2: v8 = 26; v9 = "I am building my own level"; goto LABEL_74; case 3: v8 = 25; v9 = "I call it \"The Challenge\""; goto LABEL_74; case 4: v8 = 21; v9 = "Hope it gets featured"; goto LABEL_74; case 5: v8 = 19; v9 = "But probably not..."; goto LABEL_74; case 6: sub_1400405A0((void **)a2, "RubRub will never notice me", 0x1Bu); a1[110] = 0; break; default: goto LABEL_75; } break; default: v8 = 7; v9 = "zzzZZZZ"; LABEL_74: sub_1400405A0((void **)a2, v9, v8); break; } LABEL_75: ++a1[111]; return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source