// // SecretLayer2::getBasicMessage from 0x940788 to 0x940bd0 (1096 bytes) // // 2 xrefs: // > SecretLayer2::getMessage @ 0x940c54 // > @ 0x47850 // // 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 // __int64 __usercall SecretLayer2::getBasicMessage@(SecretLayer2 *this@, __int64 a2@) { int v4; // w1 int m_basicMessageIndex; // w0 int v6; // w0 double v8; // d0 cocos2d::CCString *v9; // x0 char *CString; // x0 char *v11; // x0 unsigned int *v12; // x2 int v13; // w1 char *v14; // [xsp+40h] [xbp+40h] BYREF v4 = this->m_basicMessageCount + 1; m_basicMessageIndex = this->m_basicMessageIndex; this->m_basicMessageCount = v4; if ( m_basicMessageIndex < 0 ) { if ( (float)((float)rand() * 4.6566e-10) <= 0.8 ) { this->m_basicMessageIndex = 0; v6 = 0; } else { v6 = 9; this->m_basicMessageIndex = 9; } } else { v6 = m_basicMessageIndex + 1; if ( v6 > 29 ) { this->m_basicMessageIndex = 0; LABEL_4: sub_D153B8(a2, "I have heard about you"); return a2; } this->m_basicMessageIndex = v6; } switch ( v6 ) { case 1: GameManager::sharedState(); *(_QWORD *)&v8 = sub_D18D28(&v14).n128_u64[0]; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s the sneaky one...", v14, v8); CString = (char *)cocos2d::CCString::getCString(v9); sub_D153B8(a2, CString); v11 = v14 - 24; if ( v14 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v14 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *((_DWORD *)v14 - 2); *((_DWORD *)v14 - 2) = v13 - 1; } if ( v13 <= 0 ) operator delete(v11); } break; case 2: sub_D153B8(a2, "You think you can fool me"); break; case 3: sub_D153B8(a2, "You are deeply mistaken"); break; case 4: sub_D153B8(a2, "Go away!"); break; case 5: sub_D153B8(a2, "I should have hid this room better..."); break; case 6: sub_D153B8(a2, "You're not supposed to be in here..."); break; case 7: sub_D153B8(a2, "RubRub won't like this..."); break; case 8: sub_D153B8(a2, "zzzZZZZ..."); break; case 9: sub_D153B8(a2, "Don't touch that!"); break; case 10: sub_D153B8(a2, "Why you touch my stuff?"); break; case 11: sub_D153B8(a2, "RubRub better not find you in here..."); break; case 12: sub_D153B8(a2, "Can't you just leave?"); break; case 13: sub_D153B8(a2, "This is not the room you are looking for..."); break; case 14: sub_D153B8(a2, "Sneaky sneaky..."); break; case 15: sub_D153B8(a2, "It's my precious..."); break; case 16: sub_D153B8(a2, "You shall not pass!"); break; case 17: sub_D153B8(a2, "Don't push the button!"); break; case 18: sub_D153B8(a2, "You're gonna get me in trouble..."); break; case 19: sub_D153B8(a2, "This is getting ridiculus..."); break; case 20: sub_D153B8(a2, "Go collect some stars"); break; case 21: sub_D153B8(a2, "Maybe there are new levels?"); break; case 22: sub_D153B8(a2, "Just, stop bothering me"); break; case 23: sub_D153B8(a2, "I'm gonna stop talking"); break; case 24: sub_D153B8(a2, "..."); break; case 25: sub_D153B8(a2, "......"); break; case 26: sub_D153B8(a2, "GAH!"); break; case 27: sub_D153B8(a2, "You're hopeless..."); break; case 28: sub_D153B8(a2, "Really, still here?"); break; case 29: sub_D153B8(a2, "Fine, press the button"); break; default: goto LABEL_4; } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source