// // GameStatsManager::resetSpecialStatAchievements from 0x1402e8ed0 to 0x1402e9464 (1428 bytes) // // 2 xrefs: // > GameStatsManager::recountSpecialStats @ 0x1402e8a43 // > @ 0x14091e074 // // This function is hookable on this platform (idp: pc, 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:29:51 +0000 // // Hidden C++ exception states: #wind=3 void GameStatsManager::resetSpecialStatAchievements() { int v0; // esi int v1; // edi char *v2; // rax char *v3; // r8 __int64 v4; // xmm0_8 int v5; // ebx const char *v6; // rdx cocos2d::CCString *v7; // rax const char *CString; // rax size_t v9; // r8 __int64 v10; // rcx __int128 v11; // [rsp+20h] [rbp-60h] BYREF __int64 v12; // [rsp+30h] [rbp-50h] __int64 v13; // [rsp+38h] [rbp-48h] __int128 *v14; // [rsp+40h] [rbp-40h] void *v15; // [rsp+48h] [rbp-38h] __int128 v16; // [rsp+50h] [rbp-30h] BYREF __int64 v17; // [rsp+60h] [rbp-20h] unsigned __int64 v18; // [rsp+68h] [rbp-18h] v0 = 0; while ( 2 ) { v16 = 0; v17 = 0; v18 = 15; LOBYTE(v16) = 0; switch ( v0 ) { case 0: v1 = 18; v2 = (char *)sub_14003D460(0x20u); v17 = 21; v18 = 31; strcpy(v2, "geometry.ach.diamonds"); goto LABEL_17; case 1: v1 = 5; v3 = (char *)sub_14003D460(0x20u); v17 = 22; v18 = 31; strcpy(v3, "geometry.ach.shardFire"); *(_QWORD *)&v16 = v3; goto LABEL_18; case 2: v1 = 5; v3 = (char *)sub_14003D460(0x20u); v17 = 21; v18 = 31; strcpy(v3, "geometry.ach.shardIce"); *(_QWORD *)&v16 = v3; goto LABEL_18; case 3: v1 = 5; v2 = (char *)sub_14003D460(0x20u); v17 = 24; v18 = 31; *(_OWORD *)v2 = xmmword_140767510; v4 = 0x6E6F73696F506472LL; goto LABEL_16; case 4: v1 = 5; v2 = (char *)sub_14003D460(0x20u); v17 = 24; v18 = 31; *(_OWORD *)v2 = xmmword_140767560; v4 = 0x776F646168536472LL; goto LABEL_16; case 5: v1 = 5; v3 = (char *)sub_14003D460(0x20u); v17 = 22; v18 = 31; strcpy(v3, "geometry.ach.shardLava"); *(_QWORD *)&v16 = v3; goto LABEL_18; case 6: v1 = 5; v3 = (char *)sub_14003D460(0x20u); v17 = 23; v18 = 31; strcpy(v3, "geometry.ach.shardBonus"); *(_QWORD *)&v16 = v3; goto LABEL_18; case 7: v1 = 5; v3 = (char *)sub_14003D460(0x20u); v17 = 23; v18 = 31; strcpy(v3, "geometry.ach.shardEarth"); *(_QWORD *)&v16 = v3; goto LABEL_18; case 8: v1 = 5; v3 = (char *)sub_14003D460(0x20u); v17 = 23; v18 = 31; strcpy(v3, "geometry.ach.shardBlood"); *(_QWORD *)&v16 = v3; goto LABEL_18; case 9: v1 = 5; v3 = (char *)sub_14003D460(0x20u); v17 = 23; v18 = 31; strcpy(v3, "geometry.ach.shardMetal"); *(_QWORD *)&v16 = v3; goto LABEL_18; case 10: v1 = 5; v3 = (char *)sub_14003D460(0x20u); v17 = 23; v18 = 31; strcpy(v3, "geometry.ach.shardLight"); *(_QWORD *)&v16 = v3; goto LABEL_18; case 11: v1 = 5; v3 = (char *)sub_14003D460(0x20u); v17 = 22; v18 = 31; strcpy(v3, "geometry.ach.shardSoul"); *(_QWORD *)&v16 = v3; goto LABEL_18; case 12: v1 = 5; v2 = (char *)sub_14003D460(0x20u); v17 = 24; v18 = 31; *(_OWORD *)v2 = xmmword_140767618; v4 = 0x4273756E6F426472LL; LABEL_16: *((_QWORD *)v2 + 2) = v4; v2[24] = 0; LABEL_17: *(_QWORD *)&v16 = v2; v3 = v2; LABEL_18: v5 = 1; while ( 1 ) { v6 = (const char *)&v16; if ( v18 > 0xF ) v6 = v3; v7 = cocos2d::CCString::createWithFormat("%s%02d", v6, v5); CString = cocos2d::CCString::getCString(v7); v14 = &v11; v11 = 0; v12 = 0; v13 = 0; v9 = -1; do ++v9; while ( CString[v9] ); sub_14003D230(&v11, CString, v9); v10 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v15 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v10 = qword_14090BFD0; } GameManager::resetAchievement(v10, (__int64 *)&v11); if ( ++v5 > v1 ) break; v3 = (char *)v16; } sub_14003D310((__int64)&v16); if ( ++v0 <= 12 ) continue; return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source