// // GJPathPage::onUnlock from 0xba869c to 0xba87b4 (280 bytes) // // 3 xrefs: // > @ 0x62728 // > GJPathPage::init @ 0xba6f74 // > @ 0x15425b0 // // 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 13:02:50 +0000 // __int64 __fastcall GJPathPage::onUnlock(GJPathPage *this, cocos2d::CCObject *a2) { GameStatsManager *v3; // x0 __int64 StoreItem; // x0 int v5; // w23 GJStoreItem *v6; // x21 GameStatsManager *v7; // x0 int v8; // w23 GameStatsManager *v9; // x24 char *v10; // x1 GJStoreItem *v11; // x1 int Stat; // w19 __int64 *v13; // x0 __int64 v14; // x2 unsigned int v16; // [xsp+48h] [xbp+48h] char v17; // [xsp+50h] [xbp+50h] BYREF _BYTE v18[7]; // [xsp+51h] [xbp+51h] BYREF char *v19; // [xsp+60h] [xbp+60h] v16 = *((_DWORD *)this + 172) + 5; v3 = (GameStatsManager *)GameStatsManager::sharedState(_stack_chk_guard); StoreItem = GameStatsManager::getStoreItem(v3, v16, 0xCu); v5 = *(_DWORD *)(StoreItem + 352); v6 = (GJStoreItem *)StoreItem; v7 = (GameStatsManager *)*(unsigned int *)(StoreItem + 356); v8 = v5 - (_DWORD)v7; v9 = (GameStatsManager *)GameStatsManager::sharedState(v7); GJStoreItem::getCurrencyKey(v6, (__int64)&v17); v10 = v18; if ( (v17 & 1) != 0 ) v10 = v19; Stat = GameStatsManager::getStat(v9, v10); if ( (v17 & 1) != 0 ) operator delete(v19); if ( Stat < v8 ) { GJPathPage::showCantAffordMessage(this, v6); } else { v13 = (__int64 *)PurchaseItemPopup::create(v6, v11); v14 = *v13; v13[84] = (__int64)this + 672; (*(void (**)(void))(v14 + 1312))(); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source