// // cocos2d::ZipUtils::base64EncodeEnc from 0x7fb6a8 to 0x7fb774 (204 bytes) // // 13 xrefs: // > GameLevelManager::getGJChallenges @ 0x4bac5a // > GameLevelManager::rewardSessionToken @ 0x4bbf20 // > GameLevelManager::downloadLevel @ 0x4bd578 // > GameLevelManager::rateStars @ 0x4bd8c2 // > GameLevelManager::getLevelLeaderboard @ 0x4bdc80 // > GameLevelManager::getLevelLeaderboard @ 0x4bdfd0 // > GameLevelManager::likeItem @ 0x4c05a8 // > GameLevelManager::uploadUserMessage @ 0x4ccba4 // > GameLevelManager::uploadComment @ 0x4cd042 // > GameLevelManager::uploadLevelList @ 0x4d050c // > GameLevelManager::updateUserScore @ 0x4d6b68 // > GameLevelManager::uploadLevel @ 0x4d79bc // > GJMultiplayerManager::uploadComment @ 0x642510 // // 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 12:01:15 +0000 // int *__fastcall cocos2d::ZipUtils::base64EncodeEnc(int *a1, unsigned __int8 *a2, int a3) { int v4; // r4 int v6; // r3 cocos2d *v7; // r0 int v8; // r1 signed int v9; // r2 int v10; // r0 int v11; // r1 int v12; // r2 void *v14; // [sp+0h] [bp-20h] BYREF unsigned __int8 v15; // [sp+4h] [bp-1Ch] BYREF char v16; // [sp+5h] [bp-1Bh] BYREF int v17; // [sp+8h] [bp-18h] cocos2d *v18; // [sp+Ch] [bp-14h] int v19; // [sp+10h] [bp-10h] BYREF int v20; // [sp+14h] [bp-Ch] int v21; // [sp+18h] [bp-8h] v4 = *a2; if ( (v4 & 1) != 0 ) v6 = *((_DWORD *)a2 + 1); else v6 = v4 >> 1; if ( v6 ) { std::string::basic_string(&v19, a3); cocos2d::ZipUtils::encryptDecryptWKey((int)&v15, a2, (unsigned __int8 *)&v19); std::string::~string((int)&v19); v14 = nullptr; if ( (v15 & 1) != 0 ) { v7 = v18; v8 = v17; } else { v8 = (int)v15 >> 1; v7 = (cocos2d *)&v16; } v9 = base64Encode(v7, (const unsigned __int8 *)v8, &v14, (_BYTE *)&dword_0 + 1); if ( v9 <= 0 ) { if ( v14 ) { operator delete[](v14); v14 = nullptr; } std::string::basic_string(a1, (int)a2); } else { v19 = 0; v20 = 0; v21 = 0; std::string::append(&v19, v14, v9); if ( v14 ) { operator delete[](v14); v14 = nullptr; } v10 = v19; v11 = v20; v12 = v21; v19 = 0; v20 = 0; v21 = 0; *a1 = v10; a1[1] = v11; a1[2] = v12; std::string::~string((int)&v19); } std::string::~string((int)&v15); } else { std::string::basic_string(a1, (int)a2); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source