// // cocos2d::ZipUtils::base64DecodeEnc from 0x7fb5dc to 0x7fb6a4 (200 bytes) // // 7 xrefs: // > GameLevelManager::rewardItemFromResponse @ 0x4c95b6 // > GameLevelManager::onGetGJRewardsCompleted @ 0x4c9a6a // > GameLevelManager::onGetGJChallengesCompleted @ 0x4c9f0c // > GameLevelManager::parseEventReward @ 0x4ca34a // > GJUserMessage::create @ 0x4cc748 // > GJGameLevel::create @ 0x4cf1e8 // > MusicDownloadManager::generateCustomContentURL @ 0x56fd2a // // 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::base64DecodeEnc(int *a1, unsigned __int8 *a2, int a3) { int v4; // r1 int v7; // r1 cocos2d *v8; // r0 signed int v9; // r2 int v10; // r0 int v11; // r1 int v12; // r2 void *v14; // [sp+4h] [bp-2Ch] BYREF _DWORD v15[3]; // [sp+8h] [bp-28h] BYREF int v16; // [sp+14h] [bp-1Ch] BYREF int v17; // [sp+18h] [bp-18h] int v18; // [sp+1Ch] [bp-14h] int v19[3]; // [sp+20h] [bp-10h] BYREF v4 = *a2; if ( (v4 & 1) != 0 ) { v7 = *((_DWORD *)a2 + 1); if ( !v7 ) goto LABEL_5; v8 = *((cocos2d **)a2 + 2); v14 = nullptr; } else { v7 = v4 >> 1; if ( !v7 ) { LABEL_5: std::string::basic_string(a1, (int)a2); return a1; } v14 = nullptr; v8 = (cocos2d *)(a2 + 1); } v9 = base64Decode(v8, (const unsigned __int8 *)v7, &v14, (unsigned int *)((char *)&dword_0 + 1)); if ( v9 <= 0 ) { if ( v14 ) { operator delete[](v14); v14 = nullptr; } goto LABEL_5; } memset(v15, 0, sizeof(v15)); std::string::append(v15, v14, v9); std::string::basic_string(v19, a3); cocos2d::ZipUtils::encryptDecryptWKey((int)&v16, (unsigned __int8 *)v15, (unsigned __int8 *)v19); std::string::~string((int)v19); if ( v14 ) { operator delete[](v14); v14 = nullptr; } v10 = v16; v11 = v17; v12 = v18; v16 = 0; v17 = 0; v18 = 0; *a1 = v10; a1[1] = v11; a1[2] = v12; std::string::~string((int)&v16); std::string::~string((int)v15); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source