// // cocos2d::ZipUtils::urlDecode from 0x10023e3e0 to 0x10023e560 (384 bytes) // // 6 xrefs: // > SongInfoObject::create_2 @ 0x100154b84 // > SongInfoObject::create_2 @ 0x100154be4 // > MusicDownloadManager::parseMusicLibrary @ 0x1001582d0 // > MusicDownloadManager::parseMusicLibrary @ 0x100158328 // > MusicDownloadManager::parseMusicLibrary @ 0x100158714 // > MusicDownloadManager::parseMusicLibrary @ 0x10015876c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __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_10023E594(&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_10016479C(&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_10016479C(&v9, (int)&v8, 1); } v6 = *(unsigned __int8 *)(a1 + 23); if ( (v6 & 0x80u) != 0LL ) v6 = *(_QWORD *)(a1 + 8); } } sub_100164224(&v10, a2); v13 = off_1007C9478; v9 = off_1007C9450; v10 = (void (__cdecl **)(std::streambuf *__hidden))off_1007814C8; if ( v12 < 0 ) operator delete(v11[7].__locale_); v10 = &`vtable for'std::streambuf.~basic_streambuf; std::locale::~locale(v11); std::ostream::~ostream(&v9, off_1007C9490); return std::ios::~ios(&v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source