// // cocos2d::ZipUtils::urlDecode from 0x7fbdf0 to 0x7fbf42 (338 bytes) // // 7 xrefs: // > MusicDownloadManager::parseLinkRows @ 0x573516 // > MusicDownloadManager::parseLinkRows @ 0x573562 // > SongInfoObject::create @ 0x577a18 // > SongInfoObject::createWithCoder @ 0x57863e // > MusicDownloadManager::parseMusicLibrary @ 0x578a6a // > MusicDownloadManager::parseMusicLibrary @ 0x578b28 // > MusicDownloadManager::parseMusicLibrary @ 0x578ea6 // // 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::urlDecode(int *a1, unsigned __int8 *a2) { unsigned int v4; // r4 unsigned int v5; // r3 unsigned __int8 *v6; // r3 int v7; // r3 unsigned int v8; // r2 int *v9; // r0 char *v10; // r1 char *v11; // r2 char v13; // [sp+Eh] [bp-9Ah] BYREF char v14; // [sp+Fh] [bp-99h] BYREF int v15[3]; // [sp+10h] [bp-98h] BYREF _UNKNOWN **v16; // [sp+1Ch] [bp-8Ch] BYREF _UNKNOWN **v17; // [sp+20h] [bp-88h] BYREF char v18[4]; // [sp+24h] [bp-84h] BYREF char *v19; // [sp+28h] [bp-80h] int v20; // [sp+2Ch] [bp-7Ch] char *v21; // [sp+30h] [bp-78h] char *v22; // [sp+34h] [bp-74h] char *v23; // [sp+38h] [bp-70h] int v24; // [sp+3Ch] [bp-6Ch] int v25; // [sp+40h] [bp-68h] int v26; // [sp+44h] [bp-64h] int v27; // [sp+48h] [bp-60h] char *v28; // [sp+4Ch] [bp-5Ch] int v29; // [sp+50h] [bp-58h] _DWORD v30[20]; // [sp+54h] [bp-54h] BYREF v4 = 0; v30[0] = &unk_D11A10; std::ios_base::init((std::ios_base *)v30, &v17); v30[19] = -1; v30[18] = 0; v30[0] = &off_D11A48; v16 = &off_D11A34; v17 = &off_C99178; std::locale::locale((std::locale *)v18); v19 = nullptr; v20 = 0; v17 = &off_C992D8; v29 = 16; v21 = nullptr; v22 = nullptr; v23 = nullptr; v24 = 0; v25 = 0; v26 = 0; v27 = 0; v28 = nullptr; memset(v15, 0, sizeof(v15)); std::stringbuf::str((int)&v17, (unsigned __int8 *)v15); std::string::~string((int)v15); while ( 1 ) { v5 = *a2; if ( (v5 & 1) == 0 ) break; if ( v4 >= *((_DWORD *)a2 + 1) ) goto LABEL_11; v6 = *((unsigned __int8 **)a2 + 2); LABEL_7: v7 = v6[v4]; if ( v7 == 37 ) { v8 = v4 + 1; v4 += 2; std::string::basic_string(v15, a2, v8, 2u); v13 = cocos2d::ZipUtils::hexToChar((unsigned __int8 *)v15); std::__put_character_sequence>(&v16, (signed int)&v13, 1); std::string::~string((int)v15); } else { v14 = v7; std::__put_character_sequence>(&v16, (signed int)&v14, 1); } ++v4; } if ( v4 < v5 >> 1 ) { v6 = a2 + 1; goto LABEL_7; } LABEL_11: if ( (v29 & 0x10) != 0 ) { v9 = a1; v10 = v22; if ( v28 < v23 ) v28 = v23; v11 = v28; *a1 = 0; a1[1] = 0; a1[2] = 0; LABEL_17: std::string::__init(v9, v10, v11); } else { if ( (v29 & 8) != 0 ) { v10 = v19; v9 = a1; v11 = v21; *a1 = 0; a1[1] = 0; a1[2] = 0; goto LABEL_17; } *a1 = 0; a1[1] = 0; a1[2] = 0; } std::ostringstream::~ostringstream(&v16); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source