// // GameLevelManager::onAdminCloseCaseCompleted from 0x4c4f2c to 0x4c5032 (262 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4db494 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:50:29 +0000 // int __fastcall GameLevelManager::onAdminCloseCaseCompleted(int a1, unsigned __int8 *a2, int a3, int a4) { cocos2d::CCDictionary *v6; // r10 char v8; // r2 const char *v9; // r8 size_t v10; // r0 int v11; // r0 int v12; // r8 _BOOL4 v13; // r10 int result; // r0 cocos2d::CCArray *v15; // r5 int v16; // r0 cocos2d::CCString *v17; // r0 int v18; // r4 cocos2d::CCString *v19; // r0 _BOOL4 v20; // r3 int v21; // [sp+0h] [bp-10h] BYREF unsigned __int8 *v22; // [sp+4h] [bp-Ch] int v23; // [sp+8h] [bp-8h] int v24; // [sp+Ch] [bp-4h] v21 = a1; v22 = a2; v23 = a3; v24 = a4; v6 = *(cocos2d::CCDictionary **)(a1 + 748); v21 = 0; v22 = nullptr; v8 = *(_BYTE *)a3; v23 = 0; if ( (v8 & 1) != 0 ) v9 = *(const char **)(a3 + 8); else v9 = (const char *)(a3 + 1); v10 = strlen(v9); std::string::__init(&v21, v9, v10); cocos2d::CCDictionary::removeObjectForKey(v6); std::string::~string((int)&v21); v11 = sub_4ACB58(a3); v21 = 0; v22 = nullptr; v23 = 0; v12 = v11; std::string::__init(&v21, "-1", 2u); v13 = sub_4A9CC4(a2, (unsigned __int8 *)&v21); std::string::~string((int)&v21); if ( v13 ) { result = *(_DWORD *)(a1 + 836); if ( result ) return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 172))(result, v12); } else { v15 = sub_4C1A88(a2, ":"); v16 = cocos2d::CCArray::count(v15); if ( v16 ) { v17 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v15, 0); v16 = cocos2d::CCString::intValue(v17); } v18 = v16; if ( cocos2d::CCArray::count(v15) <= 1u ) { v20 = 0; } else { v19 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v15, 1u); v20 = cocos2d::CCString::intValue(v19) != 0; } result = *(_DWORD *)(a1 + 836); if ( result ) return (*(int (__fastcall **)(int, int, int, _BOOL4))(*(_DWORD *)result + 168))(result, v12, v18, v20); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source