// // GameStatsManager::storeSecretCoin from 0x100070540 to 0x10007062b (235 bytes) // // 4 xrefs: // > GJBaseGameLayer::processItems @ 0x100129738 // > LevelPage::ccTouchBegan @ 0x10043770e // > SecretLayer2::onSubmit @ 0x10049eb14 // > SecretLayer::onSubmit @ 0x1005fbe72 // // 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 GameStatsManager::storeSecretCoin(GameStatsManager *a1, const char *a2) { double v2; // xmm0_8 cocos2d::CCString *m_trueString; // rbx cocos2d::CCDictionary *m_playerStats; // r14 cocos2d::CCString *v5; // rax const char *CString; // r12 size_t v7; // rax size_t v8; // r15 char *v9; // r13 cocos2d::CCString *v10; // r14 size_t v11; // rbx char v12; // [rsp+0h] [rbp-50h] cocos2d::CCDictionary *v13; // [rsp+8h] [rbp-48h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] m_trueString = a1->m_trueString; m_playerStats = a1->m_playerStats; v5 = (cocos2d::CCString *)sub_1007AB580("unique_%s", v12); CString = cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v8 = v7; if ( v7 >= 0x17 ) { v13 = m_playerStats; v10 = m_trueString; v11 = 26; if ( (v7 | 7) != 0x17 ) v11 = (v7 | 7) + 1; v9 = (char *)operator new(v11); __p = v9; __dst[0] = v11 + 1; m_trueString = v10; m_playerStats = v13; __dst[1] = v8; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) LABEL_8: memmove(v9, CString, v8); v9[v8] = 0; cocos2d::CCDictionary::setObject_1(m_playerStats, m_trueString, __dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source