// // GameStatsManager::awardOldSpecialStats from 0x8ea2ec to 0x8ea434 (328 bytes) // // 1 xrefs: // > @ 0x65bc0 // // 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 12:56:55 +0000 // __int64 __fastcall GameStatsManager::awardOldSpecialStats(GameStatsManager *this) { __int64 *LevelList; // x0 _DWORD *v3; // x20 unsigned int v4; // w19 GameLevelManager *v5; // x0 GJGameLevel *MainLevel; // x19 int NormalPercent; // w0 int v8; // w23 int v9; // w0 _QWORD *v10; // x0 _QWORD *v11; // x19 void *v12; // x0 void *v14; // [xsp+50h] [xbp+50h] BYREF void *v15; // [xsp+60h] [xbp+60h] LevelList = LevelTools::getLevelList((__int64 *)&v14); v3 = v15; if ( v15 ) { do { v4 = v3[4]; v5 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)LevelList); MainLevel = (GJGameLevel *)GameLevelManager::getMainLevel(v5, (const char *)v4, 1u); if ( (int)GJGameLevel::getNormalPercent(MainLevel) > *((_DWORD *)MainLevel + 216) - *((_DWORD *)MainLevel + 217) ) { NormalPercent = GJGameLevel::getNormalPercent(MainLevel); *((_DWORD *)MainLevel + 218) = NormalPercent; v8 = NormalPercent; v9 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)MainLevel + 217) = v9; *((_DWORD *)MainLevel + 216) = v8 + v9; } LevelList = (__int64 *)GameStatsManager::awardCurrencyForLevel(this, MainLevel); v3 = *(_DWORD **)v3; } while ( v3 ); v10 = v15; if ( v15 ) { do { v11 = (_QWORD *)*v10; operator delete(v10); v10 = v11; } while ( v11 ); } } v12 = v14; v14 = nullptr; if ( v12 ) operator delete(v12); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source