// // GameManager::generateSecretNumber from 0x5f01a4 to 0x5f0244 (160 bytes) // // 2 xrefs: // > SecretLayer2::onSubmit @ 0x9446a0 // > @ 0x671d0 // // 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 // int GameManager::generateSecretNumber(GameManager *a1) { int v1; // w19 int v2; // w20 int v3; // w0 float v4; // s1 GameManager *v5; // x19 int result; // w0 v1 = 0; v2 = 0; do { v3 = rand(); v4 = (float)v1++; v2 += (int)(float)(roundf((float)((float)((float)v3 * 4.6566e-10) * 8.0) + 1.0) * powf(10.0, v4)); } while ( v1 != 7 ); v5 = GameManager::sharedState(); result = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); v5->m_secretNumber.random = result; v5->m_secretNumber.seed = v2 + result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source