// // GameStatsManager::verifyPathAchievements from 0x7afb50 to 0x7afd70 (544 bytes) // // 3 xrefs: // > GameManager::dataLoaded @ 0x5fb9c8 // > GJAccountManager::onSyncAccountCompleted @ 0x848d48 // > @ 0xb36d0 // // 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 // void GameStatsManager::verifyPathAchievements(GameStatsManager *a1) { char *v1; // x26 int v2; // w20 unsigned int v3; // w19 int StatFromKey; // w22 cocos2d::CCString *v5; // x0 char *CString; // x0 GameManager *v7; // x25 char *v8; // x0 void *v9; // x0 unsigned int *v10; // x1 int v11; // w2 unsigned int *v12; // x1 int v13; // w2 __int64 v15; // [xsp+78h] [xbp+78h] BYREF const char *v16; // [xsp+80h] [xbp+80h] BYREF v1 = (char *)&off_18 + 6; do { v2 = 100; v3 = 1; StatFromKey = GameStatsManager::getStatFromKey(a1, (StatKey)v1); do { while ( 1 ) { if ( StatFromKey < v2 ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"geometry.ach.path%02d.%02d", (const char *)(unsigned int)((_DWORD)v1 - 29), v3); CString = (char *)cocos2d::CCString::getCString(v5); sub_D153B8((int)&v15, CString); v7 = GameManager::sharedState(); sub_D18D28(&v16); GameManager::resetAchievement(v7, &v16); v8 = (char *)(v16 - 24); if ( v16 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v16 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *((_DWORD *)v16 - 2); *((_DWORD *)v16 - 2) = v13 - 1; } if ( v13 <= 0 ) operator delete(v8); } v9 = (void *)(v15 - 24); if ( (__int64 *)(v15 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v15 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *(_DWORD *)(v15 - 8); *(_DWORD *)(v15 - 8) = v11 - 1; } if ( v11 <= 0 ) break; } } ++v3; v2 += 100; if ( v3 == 11 ) goto LABEL_12; } ++v3; v2 += 100; operator delete(v9); } while ( v3 != 11 ); LABEL_12: LODWORD(v1) = (_DWORD)v1 + 1; } while ( (_DWORD)v1 != 40 ); }
GD Web Decomp Icon

GD Web Decomp

Raw Source