// // GameLevelManager::onLikeItemCompleted from 0x14025b210 to 0x14025b693 (1155 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x140219ced // > @ 0x14091c700 // // 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:45 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall GameLevelManager::onLikeItemCompleted(__int64 a1, const void **a2, _QWORD *a3) { _BYTE *v5; // rbx size_t v6; // rdi size_t v7; // r8 cocos2d::CCArray *v8; // rsi void *v9; // r8 cocos2d::CCString *v10; // rax const char *CString; // rax size_t v12; // r8 cocos2d::CCArray *v13; // rsi void *v14; // r8 cocos2d::CCString *v15; // rax const char *v16; // rax size_t v17; // r8 cocos2d::CCArray *v18; // rsi void *v19; // r8 cocos2d::CCString *v20; // rax const char *v21; // rax int v22; // r13d const void *v23; // rcx unsigned __int64 v24; // r15 size_t v25; // r8 int v26; // esi void *v27; // rcx __int64 SavedLevel; // rax __int64 v29; // rcx int v30; // [rsp+30h] [rbp-50h] void *v32; // [rsp+38h] [rbp-48h] void *Block[2]; // [rsp+58h] [rbp-28h] BYREF __int64 v35; // [rsp+68h] [rbp-18h] unsigned __int64 v36; // [rsp+70h] [rbp-10h] v5 = a3; if ( a3[3] > 0xFu ) v5 = (_BYTE *)*a3; *(_OWORD *)Block = 0; v35 = 0; v36 = 0; v6 = -1; v7 = -1; do ++v7; while ( v5[v7] ); sub_14003D230(Block, v5, v7); v8 = sub_1400D2840((__int64 *)Block, "_"); if ( v36 > 0xF ) { v9 = Block[0]; if ( v36 + 1 >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } v35 = 0; v36 = 15; LOBYTE(Block[0]) = 0; if ( cocos2d::CCArray::count(v8) < 5 ) { v30 = 0; } else { v10 = cocos2d::CCArray::objectAtIndex(v8, 1u); CString = cocos2d::CCString::getCString(v10); v30 = atoi(CString); } *(_OWORD *)Block = 0; v35 = 0; v36 = 0; v12 = -1; do ++v12; while ( v5[v12] ); sub_14003D230(Block, v5, v12); v13 = sub_1400D2840((__int64 *)Block, "_"); if ( v36 > 0xF ) { v14 = Block[0]; if ( v36 + 1 >= 0x1000 ) { v14 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v14); } v35 = 0; v36 = 15; LOBYTE(Block[0]) = 0; if ( cocos2d::CCArray::count(v13) >= 5 ) { v15 = cocos2d::CCArray::objectAtIndex(v13, 2u); v16 = cocos2d::CCString::getCString(v15); atoi(v16); } *(_OWORD *)Block = 0; v35 = 0; v36 = 0; v17 = -1; do ++v17; while ( v5[v17] ); sub_14003D230(Block, v5, v17); v18 = sub_1400D2840((__int64 *)Block, "_"); if ( v36 > 0xF ) { v19 = Block[0]; if ( v36 + 1 >= 0x1000 ) { v19 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v19); } v35 = 0; v36 = 15; LOBYTE(Block[0]) = 0; if ( cocos2d::CCArray::count(v18) < 5 ) { v22 = 0; } else { v20 = cocos2d::CCArray::objectAtIndex(v18, 3u); v21 = cocos2d::CCString::getCString(v20); v22 = atoi(v21); } *(_OWORD *)Block = 0; v35 = 2; v36 = 15; strcpy((char *)Block, "-1"); v23 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v23 = *a2; v24 = (unsigned __int64)a2[2]; v25 = v24; if ( v24 > 2 ) v25 = 2; v26 = memcmp(v23, Block, v25); if ( !v26 ) { if ( v24 >= 2 ) v26 = v24 > 2; else v26 = -1; } if ( v26 ) { if ( v30 == 1 ) { v29 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v32 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v32); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v29 = qword_14090BFE0; } GameStatsManager::incrementStat(v29, "10", 1); } } else { *(_OWORD *)Block = 0; v35 = 0; v36 = 0; do ++v6; while ( v5[v6] ); sub_14003D230(Block, v5, v6); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 896), Block); if ( v36 > 0xF ) { v27 = Block[0]; if ( v36 + 1 >= 0x1000 ) { v27 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v27 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v27); } if ( v30 == 1 ) { SavedLevel = GameLevelManager::getSavedLevel(a1); if ( SavedLevel ) { if ( v22 ) --*(_DWORD *)(SavedLevel + 964); else --*(_DWORD *)(SavedLevel + 968); } } } sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source