// // SecretLayer4::getBasicMessage from 0x4f0c84 to 0x4f0d9c (280 bytes) // // 1 xrefs: // > SecretLayer4::getMessage @ 0x4f0e42 // // 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 // SecretLayer4 *__fastcall SecretLayer4::getBasicMessage(SecretLayer4 *this, int a2) { int v4; // r2 char *v5; // r1 ++*(_DWORD *)(a2 + 344); v4 = *(_DWORD *)(a2 + 332); if ( v4 >= 0 ) { *(_DWORD *)(a2 + 332) = v4 + 1; } else { rand(); *(_DWORD *)(a2 + 332) = lroundf(); } if ( *(int *)(a2 + 332) > 20 ) *(_DWORD *)(a2 + 332) = 0; switch ( *(_DWORD *)(a2 + 332) ) { case 0: v5 = "Why have I been awoken?"; break; case 1: v5 = "Leave this place"; break; case 2: v5 = "You are not welcome here"; break; case 3: v5 = "None shall pass"; break; case 4: v5 = "You test my patience"; break; case 5: v5 = "..."; break; case 6: v5 = "How long will you keep this up?"; break; case 7: v5 = "Don't you have other things to do?"; break; case 8: v5 = "..."; break; case 9: v5 = "Gah I can't stand this anymore!"; break; case 0xA: v5 = "The smell, it's killing me"; break; case 0xB: v5 = "Can you smell it?"; break; case 0xC: v5 = "Chicken, burning chicken"; break; case 0xD: v5 = "El pollo ardiente..."; break; case 0xE: v5 = "Ok, playtime is over"; break; case 0xF: v5 = "Tick tock"; break; case 0x10: v5 = "Time is running out"; break; case 0x11: v5 = "..."; break; case 0x12: v5 = "Really? Still here?"; break; case 0x13: v5 = "This is my first conversation in 1000 years"; break; case 0x14: v5 = "Not what I was hoping for..."; break; default: v5 = "..."; break; } sub_776584((int)this, v5); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source