// // GameLevelManager::getGJSecretReward from 0x82b85c to 0x82bb1c (704 bytes) // // 2 xrefs: // > SecretLayer5::onSubmit @ 0xbc7d0c // > @ 0xdd3b0 // // 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:06 +0000 // __int64 __fastcall GameLevelManager::getGJSecretReward(GameLevelManager *a1, __int64 a2) { _BOOL4 isDLActive; // w1 __int64 result; // x0 const char *v6; // x24 cocos2d::CCString *v7; // x0 __int64 CString; // x25 char *v9; // x3 cocos2d::CCString *v10; // x0 size_t v11; // x0 const char *v12; // x1 size_t v13; // x0 char *v14; // [xsp+58h] [xbp+58h] char *v15; // [xsp+58h] [xbp+58h] __int64 v16[2]; // [xsp+60h] [xbp+60h] BYREF void *v17; // [xsp+70h] [xbp+70h] void *v18[2]; // [xsp+78h] [xbp+78h] BYREF void *v19; // [xsp+88h] [xbp+88h] __int64 v20[2]; // [xsp+90h] [xbp+90h] BYREF void *v21; // [xsp+A0h] [xbp+A0h] __int64 v22[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v23; // [xsp+B8h] [xbp+B8h] __int64 v24[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v25; // [xsp+D0h] [xbp+D0h] isDLActive = GameLevelManager::isDLActive(a1, "get_sreward"); result = 0; if ( !isDLActive ) { GameLevelManager::addDLToActive(a1, "get_sreward"); GameLevelManager::getBasePostString(v16); v6 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v6 = *(const char **)(a2 + 16); v7 = (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(v7); GameLevelManager::rewardSessionToken(v18); v9 = (char *)v18 + 1; if ( ((__int64)v18[0] & 1) != 0 ) v9 = (char *)v19; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&rewardKey=%s&secret=%s&chk=%s", v6, CString, v9); v14 = (char *)cocos2d::CCString::getCString(v10); v11 = strlen(v14); std::string::append((__int64)v16, v14, v11); if ( ((__int64)v18[0] & 1) != 0 ) operator delete(v19); v20[0] = 0; v20[1] = 0; v21 = nullptr; std::string::__init(v20, "https://www.boomlings.com/database/getGJSecretReward.php", 0x38u); v12 = (char *)v16 + 1; if ( (v16[0] & 1) != 0 ) v12 = (const char *)v17; v15 = (char *)v12; v22[0] = 0; v22[1] = 0; v23 = nullptr; v13 = strlen(v12); std::string::__init(v22, v15, v13); v24[0] = 0; v24[1] = 0; v25 = nullptr; std::string::__init(v24, "get_sreward", 0xBu); GameLevelManager::ProcessHttpRequest(a1, v20, (__int64)v22, (char *)v24, 75); if ( (v24[0] & 1) != 0 ) operator delete(v25); if ( (v22[0] & 1) != 0 ) operator delete(v23); if ( (v20[0] & 1) != 0 ) operator delete(v21); if ( (v16[0] & 1) != 0 ) operator delete(v17); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source