// // GameStatsManager::unlockDailyRecall from 0x8de150 to 0x8de29c (332 bytes) // // 2 xrefs: // > LevelBrowserLayer::FLAlert_Clicked @ 0x7fc860 // > @ 0x86620 // // 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:48 +0000 // __int64 __fastcall GameStatsManager::unlockDailyRecall(GameStatsManager *this, const char *a2) { unsigned int v2; // w21 bool isDailyRecall; // w0 unsigned int v5; // w20 unsigned int v7; // w24 int Stat; // w0 const char *v9; // x1 __int64 v10; // x24 cocos2d::CCObject *v11; // x23 cocos2d::CCString *v12; // x0 size_t v13; // x0 char *CString; // [xsp+48h] [xbp+48h] __int64 v15[2]; // [xsp+50h] [xbp+50h] BYREF void *v16; // [xsp+60h] [xbp+60h] v2 = (unsigned int)a2; if ( (int)a2 <= 0 ) return 0; isDailyRecall = GameStatsManager::isDailyRecall(this, a2); v5 = isDailyRecall; if ( isDailyRecall ) { return 0; } else { v7 = GameStatsManager::dailyRecallPrice((GameStatsManager *)v2); Stat = GameStatsManager::getStat(this, "21"); if ( (int)v7 <= Stat ) { GameStatsManager::setStat(this, "21", (char *)(Stat - v7)); v9 = (const char *)v7; v10 = *((_QWORD *)this + 94); v11 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v9); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v2); v15[0] = 0; CString = (char *)cocos2d::CCString::getCString(v12); v15[1] = 0; v16 = nullptr; v13 = strlen(CString); std::string::__init(v15, CString, v13); cocos2d::CCDictionary::setObject(v10, v11); v5 = 1; if ( (v15[0] & 1) != 0 ) operator delete(v16); } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source