// // GameStatsManager::processOnlineChests from 0x100055590 to 0x10005570b (379 bytes) // // 1 xrefs: // > GameStatsManager::removeErrorFromSpecialChests @ 0x10003cd94 // // 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:36 +0000 // __int64 __fastcall GameStatsManager::processOnlineChests(__int64 a1) { __int64 v1; // r14 __int64 v2; // rbx __int64 result; // rax unsigned int v4; // r15d __int64 v5; // rax const char *CString; // r13 size_t v7; // rax size_t v8; // r12 char *v9; // rbx __int64 v10; // rax size_t v11; // r14 __int64 v12; // r12 __int64 v13; // [rsp+0h] [rbp-70h] std::string v14; // [rsp+10h] [rbp-60h] BYREF __int128 __dst; // [rsp+30h] [rbp-40h] BYREF void *v16; // [rsp+40h] [rbp-30h] v1 = a1; v2 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 800)); result = sub_1007FEF90(v2); if ( (_DWORD)result ) { v4 = 0; v13 = v2; do { v5 = cocos2d::CCArray::stringAtIndex(v2, v4); CString = (const char *)cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v8 = v7; if ( v7 >= 0x17 ) { v10 = v7 | 7; v11 = 26; if ( (v8 | 7) != 0x17 ) v11 = v10 + 1; v9 = (char *)operator new(v11); v16 = v9; *(_QWORD *)&__dst = v11 + 1; *((_QWORD *)&__dst + 1) = v8; v1 = a1; } else { LOBYTE(__dst) = 2 * v7; v9 = (char *)&__dst + 1; if ( !v7 ) goto LABEL_12; } memmove(v9, CString, v8); LABEL_12: v9[v8] = 0; v2 = v13; v12 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(v1 + 784), &__dst); if ( (__dst & 1) != 0 ) { sub_10001AD30(&v14, v16, *((unsigned __int64 *)&__dst + 1)); } else { v14.__r_.__value_.__r.__words[2] = (std::string::size_type)v16; *(_OWORD *)&v14.__r_.__value_.__l.0 = __dst; } GameStatsManager::linkSpecialChestUnlocks(v1, v12, &v14); if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v14.__r_.__value_.__l.__data_); if ( (__dst & 1) != 0 ) operator delete(v16); ++v4; result = sub_1007FEF90(v13); } while ( v4 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source