// // GameStatsManager::storeUserCoin from 0x100035b20 to 0x100035bf5 (213 bytes) // // 5 xrefs: // > GameStatsManager::checkCoinsForLevel @ 0x100035695 // > GameStatsManager::checkCoinsForLevel @ 0x100035788 // > GameStatsManager::checkCoinsForLevel @ 0x10003587b // > GameStatsManager::dataLoaded @ 0x10005475c // > GJBaseGameLayer::processItems @ 0x100107192 // // 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:32 +0000 // void __fastcall GameStatsManager::storeUserCoin(__int64 a1, const char *a2) { __int64 v2; // rbx __int64 v3; // r14 size_t v4; // rax size_t v5; // r12 char *v6; // r13 __int64 v7; // r14 size_t v8; // rbx __int64 v9; // [rsp+8h] [rbp-48h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v2 = *(_QWORD *)(a1 + 320); v3 = *(_QWORD *)(a1 + 616); v4 = strlen(a2); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v5 = v4; if ( v4 >= 0x17 ) { v9 = *(_QWORD *)(a1 + 616); v7 = *(_QWORD *)(a1 + 320); v8 = 26; if ( (v4 | 7) != 0x17 ) v8 = (v4 | 7) + 1; v6 = (char *)operator new(v8); __p = v6; __dst[0] = v8 + 1; v2 = v7; v3 = v9; __dst[1] = v5; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v4; v6 = (char *)__dst + 1; if ( v4 ) LABEL_8: memcpy(v6, a2, v5); v6[v5] = 0; cocos2d::CCDictionary::setObject(v3, v2, __dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source