// // GameLevelManager::onReportLevelCompleted from 0x14016a520 to 0x14016a6b0 (400 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x1401435a5 // > @ 0x1406cad40 // // 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 // // Hidden C++ exception states: #wind=3 void __fastcall GameLevelManager::onReportLevelCompleted(__int64 a1, const void **a2, const char *a3) { const char *v6; // rcx int v7; // r14d const void *v8; // rcx unsigned __int64 v9; // rbp size_t v10; // r8 size_t v11; // rbx cocos2d::CCString *v12; // rax const char *CString; // rax void *v14; // rcx __int128 Buf2; // [rsp+30h] [rbp-58h] BYREF __int128 v16; // [rsp+40h] [rbp-48h] v6 = a3; if ( *((_QWORD *)a3 + 3) > 0xFu ) v6 = *(const char **)a3; v7 = atoi(v6); Buf2 = 0; *(_QWORD *)&v16 = 2; *((_QWORD *)&v16 + 1) = 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 = -1; if ( !memcmp(v8, &Buf2, v10) && v9 == 2 ) { v12 = cocos2d::CCString::createWithFormat("%i", v7); CString = cocos2d::CCString::getCString(v12); Buf2 = 0; v16 = 0; do ++v11; while ( CString[v11] ); sub_14003A930(&Buf2, CString, v11); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 416), &Buf2); if ( *((_QWORD *)&v16 + 1) > 0xFu ) { v14 = (void *)Buf2; if ( (unsigned __int64)(*((_QWORD *)&v16 + 1) + 1LL) >= 0x1000 ) { v14 = *(void **)(Buf2 - 8); if ( (unsigned __int64)(Buf2 - (_QWORD)v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v14); } } sub_14003A830((__int64)a2); sub_14003A830((__int64)a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source