// // GameLevelManager::onRateStarsCompleted from 0x1402345c0 to 0x1402347bd (509 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x140219a1c // > @ 0x14091bf68 // // 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 11:28:31 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall GameLevelManager::onRateStarsCompleted(__int64 a1, const void **a2, const char *a3) { const char *v6; // rcx unsigned int v7; // r12d const void *v8; // rcx unsigned __int64 v9; // r15 size_t v10; // r8 int v11; // ebp size_t v12; // rbx cocos2d::CCString *v13; // rax const char *CString; // rax void *v15; // rcx __int64 v16; // rcx void *v17; // [rsp+30h] [rbp-78h] __int128 Buf2; // [rsp+48h] [rbp-60h] BYREF __int64 v19; // [rsp+58h] [rbp-50h] unsigned __int64 v20; // [rsp+60h] [rbp-48h] v6 = a3; if ( *((_QWORD *)a3 + 3) > 0xFu ) v6 = *(const char **)a3; v7 = atoi(v6); Buf2 = 0; v19 = 2; v20 = 15; strcpy((char *)&Buf2, "-1"); v8 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v8 = *a2; v9 = (unsigned __int64)a2[2]; v10 = v9; if ( v9 > 2 ) v10 = 2; v11 = memcmp(v8, &Buf2, v10); v12 = -1; if ( !v11 ) { if ( v9 >= 2 ) v11 = v9 > 2; else v11 = -1; } if ( v11 ) { v16 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v17 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v16 = qword_14090BFE0; } GameStatsManager::incrementStat(v16, "11", 1); } else { v13 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v7); CString = cocos2d::CCString::getCString(v13); Buf2 = 0; v19 = 0; v20 = 0; do ++v12; while ( CString[v12] ); sub_14003D230(&Buf2, CString, v12); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 904), &Buf2); if ( v20 > 0xF ) { v15 = (void *)Buf2; if ( v20 + 1 >= 0x1000 ) { v15 = *(void **)(Buf2 - 8); if ( (unsigned __int64)(Buf2 - (_QWORD)v15 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v15); } } sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source