// // GameStatsManager::storeChallenge from 0x8cb93c to 0x8cba6c (304 bytes) // // 2 xrefs: // > GameStatsManager::processChallengeQueue @ 0x8cc558 // > @ 0x94c60 // // This function is hookable on this platform (idp: arm, 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:56:36 +0000 // __int64 __fastcall GameStatsManager::storeChallenge(GameStatsManager *this, const char *a2, GJChallengeItem *a3) { __int64 v4; // x24 cocos2d::CCString *v5; // x0 const char *CString; // x25 size_t v7; // x0 size_t v8; // x19 unsigned __int64 v9; // x0 char *v10; // x3 __int64 v12; // [xsp+50h] [xbp+50h] BYREF size_t v13; // [xsp+58h] [xbp+58h] void *v14; // [xsp+60h] [xbp+60h] *((_DWORD *)a3 + 26) = (_DWORD)a2; v4 = *((_QWORD *)this + 62); v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2); v12 = 0; CString = (const char *)cocos2d::CCString::getCString(v5); v13 = 0; v14 = nullptr; v7 = strlen(CString); v8 = v7; if ( v7 > 0xFFFFFFFFFFFFFFEFLL ) sub_62CC1C(); if ( v7 > 0x16 ) { v9 = (v7 + 16) & 0xFFFFFFFFFFFFFFF0LL; v12 = v9 | 1; v10 = (char *)operator new(v9); v14 = v10; v13 = v8; LABEL_4: v10 = (char *)memcpy(v10, CString, v8); goto LABEL_5; } LOBYTE(v12) = 2 * v7; v10 = (char *)&v12 + 1; if ( v7 ) goto LABEL_4; LABEL_5: v10[v8] = 0; cocos2d::CCDictionary::setObject(v4, a3); if ( (v12 & 1) != 0 ) operator delete(v14); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source