// // SecretLayer4::getThreadMessage from 0xa95d7c to 0xa961a0 (1060 bytes) // // 2 xrefs: // > SecretLayer4::getMessage @ 0xa961cc // > @ 0x100288 // // This function is hookable on this platform (idp: arm, 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 13:00:43 +0000 // __int64 __usercall SecretLayer4::getThreadMessage@(SecretLayer4 *this@, __int64 a2@) { int v4; // w0 int v6; // w0 *((_DWORD *)this + 112) = 0; *(_BYTE *)(a2 + 17) = 0; *(_WORD *)(a2 + 18) = 0; *(_DWORD *)(a2 + 20) = 0; *(_BYTE *)a2 = 30; strcpy((char *)(a2 + 1), "zzzzzzZZZZZZZZZ"); switch ( *((_DWORD *)this + 110) ) { case 1: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "I hide behind rocks and rills"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "under the mountains and hills"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "I cannot be seen or felt"); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "nor heard or smelt"); goto LABEL_3; case 4: std::string::assign((__int64 *)a2, "the more I am the less you see"); goto LABEL_3; case 5: std::string::assign((__int64 *)a2, "what am I?"); goto LABEL_17; default: goto LABEL_4; } case 2: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "Shh, quiet!"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "Can you feel it closing in?"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "Shadows creep where it begins"); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "Speak its name and it is gone"); goto LABEL_3; case 4: std::string::assign((__int64 *)a2, "from every moment dusk till dawn"); goto LABEL_17; default: goto LABEL_4; } case 3: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "What always runs, but never walks"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "Often murmurs, never talks"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "Has a bed, but never sleeps"); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "Has a mouth, but never eats?"); goto LABEL_17; default: goto LABEL_4; } case 4: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "The less you consume"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "the stronger I become"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "wait too long"); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "and death will come"); goto LABEL_3; case 4: goto LABEL_16; default: goto LABEL_4; } case 5: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "My thunder comes before my lightning"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "My lightning comes before my rain"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "My rain dries up all the land it touches"); goto LABEL_3; case 3: LABEL_16: std::string::assign((__int64 *)a2, "What am I?"); goto LABEL_17; default: goto LABEL_4; } case 6: v4 = *((_DWORD *)this + 111); if ( v4 == 1 ) { std::string::assign((__int64 *)a2, "Anything harder than it is impossible"); goto LABEL_3; } if ( v4 != 2 ) { if ( v4 ) goto LABEL_4; std::string::assign((__int64 *)a2, "Legend tells of a level so hard no one can beat it"); LABEL_3: v4 = *((_DWORD *)this + 111); LABEL_4: *((_DWORD *)this + 111) = v4 + 1; return a2; } std::string::assign((__int64 *)a2, "Don't even get me started"); LABEL_17: v6 = *((_DWORD *)this + 111); *((_DWORD *)this + 110) = 0; *((_DWORD *)this + 111) = v6 + 1; return a2; case 7: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "Good levels are hard to find sometimes"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "Wish I had someone who could find them for me"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "..."); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "Forget it..."); goto LABEL_17; default: goto LABEL_4; } default: std::string::assign((__int64 *)a2, "zzzZZZZ"); goto LABEL_3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source