// // GameStatsManager::verifyPathAchievements from 0x1000321f0 to 0x1000323b7 (455 bytes) // // 2 xrefs: // > GJAccountManager::onSyncAccountCompleted @ 0x10009f7d0 // > GameManager::dataLoaded @ 0x10037357d // // 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 12:19:31 +0000 // void __fastcall GameStatsManager::verifyPathAchievements(__int64 a1, __m128 a2) { unsigned int v2; // ebx const char *v3; // rsi int v4; // r12d int i; // r13d const char *v6; // rsi __int64 v7; // rax const char *CString; // r15 const char *v9; // rdi size_t v10; // rax __int64 v11; // rdx size_t v12; // r14 __int8 *v13; // rbx __int64 v14; // rax size_t v15; // r15 __int64 v16; // r14 char v17; // r15 char v18; // [rsp+0h] [rbp-80h] const char *v19; // [rsp+8h] [rbp-78h] unsigned int v20; // [rsp+10h] [rbp-70h] __m128 v22; // [rsp+20h] [rbp-60h] BYREF void *v23; // [rsp+30h] [rbp-50h] int Stat; // [rsp+38h] [rbp-48h] unsigned int v25; // [rsp+3Ch] [rbp-44h] __m128 __dst; // [rsp+40h] [rbp-40h] BYREF void *__p; // [rsp+50h] [rbp-30h] v2 = 30; while ( 2 ) { GameToolbox::intToString(&__dst, v2); v3 = &__dst.i8[1]; if ( (__dst.i8[0] & 1) != 0 ) v3 = (const char *)__p; Stat = GameStatsManager::getStat(a1, v3, a2); if ( (__dst.i8[0] & 1) != 0 ) operator delete(__p); v20 = v2; v25 = v2 - 29; v4 = 1; for ( i = 100; i != 1100; i += 100 ) { if ( Stat >= i ) goto LABEL_8; v6 = (const char *)v25; v7 = sub_10088E820("geometry.ach.path%02d.%02d", v18); CString = (const char *)cocos2d::CCString::getCString(v7); v9 = CString; v10 = strlen(CString); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v12 = v10; if ( v10 >= 0x17 ) { v19 = CString; v14 = v10 | 7; v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = v14 + 1; v13 = (__int8 *)operator new(v15); __p = v13; __dst.i64[0] = v15 + 1; __dst.i64[1] = v12; CString = v19; } else { __dst.i8[0] = 2 * v10; v13 = &__dst.i8[1]; if ( !v10 ) goto LABEL_18; } v9 = v13; v6 = CString; memmove(v13, CString, v12); LABEL_18: v13[v12] = 0; v16 = GameManager::sharedState(v9, v6, v11); v17 = __dst.i8[0] & 1; if ( (__dst.i8[0] & 1) != 0 ) { sub_10001AD30(&v22, __p, __dst.u64[1]); } else { v23 = __p; a2 = __dst; v22 = __dst; } GameManager::resetAchievement(v16, &v22); if ( (v22.i8[0] & 1) != 0 ) operator delete(v23); if ( v17 ) operator delete(__p); LABEL_8: ++v4; } v2 = v20 + 1; if ( v20 != 39 ) continue; break; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source