// // GameLevelManager::onAdminCloseCaseCompleted from 0x140247d70 to 0x140247f87 (535 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x14021ae76 // > @ 0x14091c2f8 // // 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:39 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall GameLevelManager::onAdminCloseCaseCompleted(__int64 a1, __int64 *a2, __int64 a3) { _BYTE *v6; // rdx size_t v7; // r8 __int64 v8; // r8 __int64 v9; // rdx void *v10; // rcx unsigned int v11; // r15d const void *v12; // rcx unsigned __int64 v13; // rsi size_t v14; // r8 __int64 v15; // rcx cocos2d::CCArray *v16; // rbp cocos2d::CCString *v17; // rax unsigned int v18; // esi __int64 v19; // r9 cocos2d::CCString *v20; // rax __int64 v21; // rcx void *Block[2]; // [rsp+40h] [rbp-58h] BYREF __int128 v23; // [rsp+50h] [rbp-48h] v6 = (_BYTE *)a3; if ( *(_QWORD *)(a3 + 24) > 0xFu ) v6 = *(_BYTE **)a3; *(_OWORD *)Block = 0; v23 = 0; v7 = -1; do ++v7; while ( v6[v7] ); sub_14003D230(Block, v6, v7); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block); v9 = *((_QWORD *)&v23 + 1); if ( *((_QWORD *)&v23 + 1) > 0xFu ) { v10 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v23 + 1) + 1LL) >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } v11 = sub_140241F40((const char *)a3, v9, v8); *(_OWORD *)Block = 0; *(_QWORD *)&v23 = 2; *((_QWORD *)&v23 + 1) = 15; strcpy((char *)Block, "-1"); v12 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v12 = (const void *)*a2; v13 = a2[2]; v14 = v13; if ( v13 > 2 ) v14 = 2; if ( !memcmp(v12, Block, v14) && v13 == 2 ) { v15 = *(_QWORD *)(a1 + 1384); if ( v15 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 344LL))(v15, v11); } else { v16 = sub_1400D2840(a2, ":"); if ( cocos2d::CCArray::count(v16) ) { v17 = cocos2d::CCArray::stringAtIndex(v16, 0); v18 = cocos2d::CCString::intValue(v17); } else { v18 = 0; } LOBYTE(v19) = cocos2d::CCArray::count(v16) >= 2 && (v20 = cocos2d::CCArray::stringAtIndex(v16, 1u), cocos2d::CCString::intValue(v20)); v21 = *(_QWORD *)(a1 + 1384); if ( v21 ) (*(void (__fastcall **)(__int64, _QWORD, _QWORD, __int64))(*(_QWORD *)v21 + 336LL))(v21, v11, v18, v19); } sub_14003D310((__int64)a2); sub_14003D310(a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source