// // GameStatsManager::awardSecretKey from 0x10008c5a0 to 0x10008c656 (182 bytes) // // 2 xrefs: // > PlayLayer::levelComplete @ 0x1000b3d08 // > PlayLayer::destroyPlayer @ 0x1000ba600 // // 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 // bool __fastcall GameStatsManager::awardSecretKey(GameStatsManager *a1) { __m128 v1; // xmm0 int Stat; // eax int v3; // r14d float v4; // xmm1_4 float v5; // xmm0_4 __int32 v7; // [rsp+Ch] [rbp-14h] Stat = GameStatsManager::getStat(a1, "22"); v3 = a1->m_bonusKey.random - a1->m_bonusKey.seed; v4 = (float)v3; v1.f32[0] = (float)Stat / 500.0; v1.f32[0] = _mm_round_ss(v1, v1, 9).f32[0]; if ( v1.f32[0] > (float)v3 ) { a1->m_bonusKey.value = v3 + 1; v7 = v1.i32[0]; v5 = (float)((float)rand() * 4.6566129e-10) * 1000.0; a1->m_bonusKey.seed = (int)v5; a1->m_bonusKey.random = v3 + (int)v5 + 1; GameStatsManager::incrementStat(a1, "21", 1); v1.i32[0] = v7; v4 = (float)v3; } return v1.f32[0] > v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source