// // GameLevelManager::updateLevel from 0x820484 to 0x8206f4 (624 bytes) // // 3 xrefs: // > LevelInfoLayer::onUpdate @ 0x7e7844 // > LevelInfoLayer::init @ 0x7ec94c // > @ 0xac0d8 // // This function is hookable on this platform (idp: arm, 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 12:55:00 +0000 // __int64 __fastcall GameLevelManager::updateLevel(GameLevelManager *this, GJGameLevel *a2) { unsigned int v3; // w20 char *LevelDownloadKey; // x22 cocos2d::CCString *v6; // x0 __int64 CString; // x0 cocos2d::CCString *v8; // x0 size_t v9; // x0 const char *v10; // x1 size_t v11; // x0 size_t v12; // x0 char *v13; // [xsp+48h] [xbp+48h] char *v14; // [xsp+48h] [xbp+48h] __int64 v15[2]; // [xsp+58h] [xbp+58h] BYREF void *v16; // [xsp+68h] [xbp+68h] __int64 v17[2]; // [xsp+70h] [xbp+70h] BYREF void *v18; // [xsp+80h] [xbp+80h] __int64 v19[2]; // [xsp+88h] [xbp+88h] BYREF void *v20; // [xsp+98h] [xbp+98h] __int64 v21[2]; // [xsp+A0h] [xbp+A0h] BYREF void *v22; // [xsp+B0h] [xbp+B0h] v3 = *((_DWORD *)a2 + 82) - *((_DWORD *)a2 + 83); LevelDownloadKey = (char *)GameLevelManager::getLevelDownloadKey(this, (const char *)v3, *((_BYTE *)a2 + 649)); if ( !GameLevelManager::isDLActive(this, LevelDownloadKey) ) { GameLevelManager::addDLToActive(this, LevelDownloadKey); GameLevelManager::getBasePostString(v15); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); CString = cocos2d::CCString::getCString(v6); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&levelID=%i&gameVersion=%i&secret=%s", (const char *)v3, 22, CString); v13 = (char *)cocos2d::CCString::getCString(v8); v9 = strlen(v13); std::string::append((__int64)v15, v13, v9); v17[0] = 0; v17[1] = 0; v18 = nullptr; std::string::__init(v17, "https://www.boomlings.com/database/downloadGJLevel22.php", 0x38u); v10 = (char *)v15 + 1; if ( (v15[0] & 1) != 0 ) v10 = (const char *)v16; v14 = (char *)v10; v19[0] = 0; v19[1] = 0; v20 = nullptr; v11 = strlen(v10); std::string::__init(v19, v14, v11); v21[0] = 0; v21[1] = 0; v22 = nullptr; v12 = strlen(LevelDownloadKey); std::string::__init(v21, LevelDownloadKey, v12); GameLevelManager::ProcessHttpRequest(this, v17, (__int64)v19, (char *)v21, 5); if ( (v21[0] & 1) != 0 ) operator delete(v22); if ( (v19[0] & 1) != 0 ) operator delete(v20); if ( (v17[0] & 1) != 0 ) operator delete(v18); if ( (v15[0] & 1) != 0 ) operator delete(v16); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source