// // sub_100606CB0 from 0x100606cb0 to 0x100606dc8 (280 bytes) // // 1 xrefs: // > sub_100606C80 @ 0x100606c9e // // 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 __fastcall sub_100606CB0(__int64 a1) { AchievementManager *v1; // rax cocos2d::CCArray *AllAchievements; // rbx unsigned int v3; // r14d __int64 v4; // rax cocos2d::CCString *v5; // rax const char *CString; // r13 AchievementManager *v7; // rax _QWORD *v8; // rax _QWORD *v9; // rax char v10; // [rsp+0h] [rbp-40h] BYREF char v11[11]; // [rsp+1h] [rbp-3Fh] BYREF void *__p; // [rsp+10h] [rbp-30h] if ( *(_BYTE *)(a1 + 400) == 1 && !*(_BYTE *)(a1 + 401) ) { *(_BYTE *)(a1 + 401) = 1; v1 = AchievementManager::sharedState(); AllAchievements = AchievementManager::getAllAchievements(v1); if ( (unsigned int)sub_100720070(AllAchievements) ) { v3 = 0; do { v4 = sub_1007200C0(AllAchievements, v3); v10 = 20; strcpy(v11, "identifier"); v5 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(v4, &v10); CString = cocos2d::CCString::getCString(v5); if ( (v10 & 1) != 0 ) operator delete(__p); v7 = AchievementManager::sharedState(); if ( AchievementManager::percentForAchievement(v7, CString) >= 100 ) { v8 = (_QWORD *)SteamInternal_ContextInit(&SteamUserStats(void)::s_CallbackCounterAndContext); (*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)*v8 + 56LL))(*v8, CString); } ++v3; } while ( v3 < (unsigned int)sub_100720070(AllAchievements) ); } v9 = (_QWORD *)SteamInternal_ContextInit(&SteamUserStats(void)::s_CallbackCounterAndContext); (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v9 + 80LL))(*v9); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source