// // GameStatsManager::resetSpecialStatAchievements from 0x1401e52b0 to 0x1401e5820 (1392 bytes) // // 2 xrefs: // > GameStatsManager::recountSpecialStats @ 0x1401e4e63 // > @ 0x1406cc5e8 // // 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 // // Hidden C++ exception states: #wind=3 void GameStatsManager::resetSpecialStatAchievements(GameStatsManager *a1) { int i; // esi int v2; // edi char *v3; // rax char *v4; // r8 __int64 v5; // xmm0_8 int v6; // ebx const char *v7; // rdx cocos2d::CCString *v8; // rax const char *CString; // rax size_t v10; // r8 __int64 v11; // rcx __int128 v12; // [rsp+20h] [rbp-60h] BYREF __int64 v13; // [rsp+30h] [rbp-50h] __int64 v14; // [rsp+38h] [rbp-48h] __int128 *v15; // [rsp+40h] [rbp-40h] void *v16; // [rsp+48h] [rbp-38h] __int128 v17; // [rsp+50h] [rbp-30h] BYREF __int64 v18; // [rsp+60h] [rbp-20h] unsigned __int64 v19; // [rsp+68h] [rbp-18h] for ( i = 0; i <= 12; ++i ) { v17 = 0; v18 = 0; v19 = 15; LOBYTE(v17) = 0; switch ( i ) { case 0: v2 = 18; v3 = (char *)sub_14003AA10(0x20u); v18 = 21; v19 = 31; strcpy(v3, "geometry.ach.diamonds"); goto LABEL_17; case 1: v2 = 5; v4 = (char *)sub_14003AA10(0x20u); v18 = 22; v19 = 31; strcpy(v4, "geometry.ach.shardFire"); *(_QWORD *)&v17 = v4; goto LABEL_18; case 2: v2 = 5; v4 = (char *)sub_14003AA10(0x20u); v18 = 21; v19 = 31; strcpy(v4, "geometry.ach.shardIce"); *(_QWORD *)&v17 = v4; goto LABEL_18; case 3: v2 = 5; v3 = (char *)sub_14003AA10(0x20u); v18 = 24; v19 = 31; *(_OWORD *)v3 = xmmword_140562770; v5 = 0x6E6F73696F506472LL; goto LABEL_16; case 4: v2 = 5; v3 = (char *)sub_14003AA10(0x20u); v18 = 24; v19 = 31; *(_OWORD *)v3 = xmmword_140562750; v5 = 0x776F646168536472LL; goto LABEL_16; case 5: v2 = 5; v4 = (char *)sub_14003AA10(0x20u); v18 = 22; v19 = 31; strcpy(v4, "geometry.ach.shardLava"); *(_QWORD *)&v17 = v4; goto LABEL_18; case 6: v2 = 5; v4 = (char *)sub_14003AA10(0x20u); v18 = 23; v19 = 31; strcpy(v4, "geometry.ach.shardBonus"); *(_QWORD *)&v17 = v4; goto LABEL_18; case 7: v2 = 5; v4 = (char *)sub_14003AA10(0x20u); v18 = 23; v19 = 31; strcpy(v4, "geometry.ach.shardEarth"); *(_QWORD *)&v17 = v4; goto LABEL_18; case 8: v2 = 5; v4 = (char *)sub_14003AA10(0x20u); v18 = 23; v19 = 31; strcpy(v4, "geometry.ach.shardBlood"); *(_QWORD *)&v17 = v4; goto LABEL_18; case 9: v2 = 5; v4 = (char *)sub_14003AA10(0x20u); v18 = 23; v19 = 31; strcpy(v4, "geometry.ach.shardMetal"); *(_QWORD *)&v17 = v4; goto LABEL_18; case 10: v2 = 5; v4 = (char *)sub_14003AA10(0x20u); v18 = 23; v19 = 31; strcpy(v4, "geometry.ach.shardLight"); *(_QWORD *)&v17 = v4; goto LABEL_18; case 11: v2 = 5; v4 = (char *)sub_14003AA10(0x20u); v18 = 22; v19 = 31; strcpy(v4, "geometry.ach.shardSoul"); *(_QWORD *)&v17 = v4; goto LABEL_18; case 12: v2 = 5; v3 = (char *)sub_14003AA10(0x20u); v18 = 24; v19 = 31; *(_OWORD *)v3 = xmmword_1405628E0; v5 = 0x4273756E6F426472LL; LABEL_16: *((_QWORD *)v3 + 2) = v5; v3[24] = 0; LABEL_17: *(_QWORD *)&v17 = v3; v4 = v3; LABEL_18: v6 = 1; while ( 1 ) { v7 = (const char *)&v17; if ( v19 > 0xF ) v7 = v4; v8 = cocos2d::CCString::createWithFormat("%s%02d", v7, v6); CString = cocos2d::CCString::getCString(v8); v15 = &v12; v12 = 0; v13 = 0; v14 = 0; v10 = -1; do ++v10; while ( CString[v10] ); sub_14003A930(&v12, CString, v10); v11 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v16 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v11 = qword_1406C2ED8; } GameManager::resetAchievement(v11, (const char *)&v12); if ( ++v6 > v2 ) break; v4 = (char *)v17; } break; default: break; } sub_14003A830((__int64)&v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source