// // cocos2d::ZipUtils::urlDecode from 0x1002db42c to 0x1002db5ac (384 bytes) // // 7 xrefs: // > SongInfoObject::create_2 @ 0x1001d3884 // > MusicDownloadManager::parseMusicLibrary @ 0x1001dc018 // > MusicDownloadManager::parseMusicLibrary @ 0x1001dc0b8 // > MusicDownloadManager::parseMusicLibrary @ 0x1001dc514 // > sub_1001DDEA4 @ 0x1001ddfc4 // > sub_1001DDEA4 @ 0x1001ddff4 // > SongInfoObject::createWithCoder @ 0x1001e27b0 // // 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 11:02:44 +0000 // __int64 __usercall cocos2d::ZipUtils::urlDecode@(__int64 a1@, _QWORD *a2@) { __int64 v4; // x8 std::string::size_type i; // x21 std::string::size_type v6; // x8 std::string v8; // [xsp+8h] [xbp-158h] BYREF __int64 (__fastcall **v9)(); // [xsp+20h] [xbp-140h] BYREF void (__cdecl **v10)(std::streambuf *__hidden); // [xsp+28h] [xbp-138h] BYREF std::locale v11[9]; // [xsp+30h] [xbp-130h] BYREF char v12; // [xsp+7Fh] [xbp-E1h] __int64 (__fastcall **v13)(); // [xsp+90h] [xbp-D0h] BYREF std::allocator __a; // [xsp+12Fh] [xbp-31h] BYREF sub_1002DB5E0(&v9); v4 = *(unsigned __int8 *)(a1 + 23); if ( (v4 & 0x80u) != 0LL ) v4 = *(_QWORD *)(a1 + 8); if ( v4 ) { for ( i = 0; i < v6; ++i ) { if ( *std::string::at((const std::string *)a1, i) == 37 ) { std::string::basic_string(&v8, (const std::string *)a1, i + 1, 2u, &__a); __a.std::__non_trivial_if = (std::__non_trivial_if)cocos2d::ZipUtils::hexToChar(&v8); sub_1001ED540(&v9, (int)&__a, 1); if ( SHIBYTE(v8.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v8.__r_.__value_.__l.__data_); i += 2LL; } else { v8.__r_.__value_.__s.__data_[0] = *std::string::at((const std::string *)a1, i); sub_1001ED540(&v9, (int)&v8, 1); } v6 = *(unsigned __int8 *)(a1 + 23); if ( (v6 & 0x80u) != 0LL ) v6 = *(_QWORD *)(a1 + 8); } } sub_1001ED064(&v10, a2); v13 = off_100921B18; v9 = off_100921AF0; v10 = (void (__cdecl **)(std::streambuf *__hidden))off_1008CF0A8; if ( v12 < 0 ) operator delete(v11[7].__locale_); v10 = &`vtable for'std::streambuf.~basic_streambuf; std::locale::~locale(v11); std::ostream::~ostream(&v9, off_100921B30); return std::ios::~ios(&v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source