// // sub_1003C96D8 from 0x1003c96d8 to 0x1003c98b4 (476 bytes) // // 1 xrefs: // > GameStatsManager::init @ 0x1003c33a4 // // 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 11:04:08 +0000 // void __fastcall sub_1003C96D8(__int64 a1) { __int64 v2; // x0 __int64 i; // x24 __int64 v4; // x20 int v5; // w25 __int64 v6; // x21 __int64 v7; // x0 unsigned __int64 v8; // x8 __int64 v9; // x22 __int64 v10; // x0 __int64 v11; // x23 __int64 v12; // x0 int v13; // w8 unsigned int v14; // w10 unsigned int v15; // w8 __int64 v16; // x1 __int64 v17; // x0 __int64 v18; // x0 __int64 v19; // x0 __int64 v20; // x23 void *__p[2]; // [xsp+0h] [xbp-80h] BYREF char v22; // [xsp+17h] [xbp-69h] void *v23[2]; // [xsp+18h] [xbp-68h] BYREF unsigned __int8 v24; // [xsp+2Fh] [xbp-51h] if ( !*(_QWORD *)(a1 + 832) ) { v2 = cocos2d::CCDictionary::create(a1); *(_QWORD *)(a1 + 832) = v2; cocos2d::CCObject::retain(v2); for ( i = 0; i != 15; ++i ) { v4 = dword_10076E2F0[i]; v5 = dword_10076E32C[i]; v6 = dword_10076E368[i]; do { v7 = AchievementManager::sharedState(); AchievementManager::achievementForUnlock(v7, v6, v4, v23); v8 = v24; if ( (v24 & 0x80u) != 0 ) v8 = (unsigned __int64)v23[1]; if ( v8 ) { v9 = sub_1003C98F8(); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 1); } else { v9 = 0; } v10 = GameStatsManager::sharedState(); v11 = sub_1003C9960(v10, v6, v4); if ( v11 && !v9 ) { v12 = sub_1003C98F8(); v9 = v12; v13 = *(_DWORD *)(v11 + 364); v14 = v13 - 1; v15 = v13 + 4; if ( v14 >= 4 ) v16 = 4; else v16 = v15; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 72LL))(v12, v16); } v17 = GameStatsManager::sharedState(); if ( (int)sub_1003C99CC(v17, v6, v4) >= 1 && !v9 ) { v9 = sub_1003C98F8(); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 2); } v18 = GameStatsManager::sharedState(); v19 = sub_1003C9A3C(v18, v6, v4); if ( v19 ) { if ( !v9 ) { v9 = sub_1003C98F8(); v19 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 3); } } else if ( !v9 ) { goto LABEL_24; } v20 = *(_QWORD *)(a1 + 832); sub_1003C9AA8(__p, v19, v6, v4); cocos2d::CCDictionary::setObject(v20, v9, __p); if ( v22 < 0 ) operator delete(__p[0]); LABEL_24: if ( (char)v24 < 0 ) operator delete(v23[0]); v6 = (unsigned int)(v6 + 1); } while ( v5 != (_DWORD)v6 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source