// // SongInfoObject::create from 0x973fdc to 0x974a1c (2624 bytes) // // 4 xrefs: // > GameLevelManager::onGetTopArtistsCompleted @ 0x8109b8 // > MusicDownloadManager::addSongObjectFromString @ 0x975a8c // > MusicDownloadManager::addSongObjectFromString @ 0x975be8 // > @ 0xd8178 // // 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 12:57:43 +0000 // __int64 *__fastcall SongInfoObject::create(SongInfoObject *this, cocos2d::CCDictionary *a2) { cocos2d::CCString *v3; // x0 cocos2d::CCString *v4; // x0 size_t v5; // x0 cocos2d::CCString *v6; // x0 size_t v7; // x0 cocos2d::CCString *v8; // x0 cocos2d::CCString *v9; // x0 float v10; // s0 float v11; // s8 cocos2d::CCString *v12; // x0 const char *v13; // x0 size_t v14; // x0 size_t v15; // x1 cocos2d::CCString *v16; // x0 cocos2d::CCString *v17; // x0 size_t v18; // x0 cocos2d::CCString *v19; // x0 cocos2d::CCString *v20; // x0 __int64 *v21; // x25 cocos2d::CCString *v22; // x0 size_t v23; // x0 char *v24; // x1 size_t v25; // x2 cocos2d::CCString *v26; // x0 size_t v27; // x0 cocos2d::CCString *v28; // x0 size_t v29; // x0 char v31; // [xsp+87h] [xbp+77h] int v32; // [xsp+88h] [xbp+78h] int v33; // [xsp+8Ch] [xbp+7Ch] int v34; // [xsp+90h] [xbp+80h] int v35; // [xsp+94h] [xbp+84h] char *CString; // [xsp+98h] [xbp+88h] char *v37; // [xsp+98h] [xbp+88h] char *v38; // [xsp+98h] [xbp+88h] char *v39; // [xsp+98h] [xbp+88h] char *v40; // [xsp+98h] [xbp+88h] char *v41; // [xsp+98h] [xbp+88h] char *v42; // [xsp+98h] [xbp+88h] __int64 v43; // [xsp+A0h] [xbp+90h] BYREF size_t v44; // [xsp+A8h] [xbp+98h] void *v45; // [xsp+B0h] [xbp+A0h] __int64 v46; // [xsp+B8h] [xbp+A8h] BYREF size_t v47; // [xsp+C0h] [xbp+B0h] void *v48; // [xsp+C8h] [xbp+B8h] __int64 v49[2]; // [xsp+D0h] [xbp+C0h] BYREF void *v50; // [xsp+E0h] [xbp+D0h] __int64 v51[2]; // [xsp+E8h] [xbp+D8h] BYREF void *v52; // [xsp+F8h] [xbp+E8h] __int64 v53[2]; // [xsp+100h] [xbp+F0h] BYREF void *v54; // [xsp+110h] [xbp+100h] __int64 v55; // [xsp+118h] [xbp+108h] BYREF size_t v56; // [xsp+120h] [xbp+110h] _BYTE *v57; // [xsp+128h] [xbp+118h] __int64 v58[2]; // [xsp+130h] [xbp+120h] BYREF void *v59; // [xsp+140h] [xbp+130h] __int64 v60; // [xsp+148h] [xbp+138h] size_t v61; // [xsp+150h] [xbp+140h] _BYTE *v62; // [xsp+158h] [xbp+148h] __int64 v63[2]; // [xsp+160h] [xbp+150h] BYREF void *v64; // [xsp+170h] [xbp+160h] __int64 v65; // [xsp+178h] [xbp+168h] BYREF size_t v66; // [xsp+180h] [xbp+170h] void *v67; // [xsp+188h] [xbp+178h] __int64 v68[2]; // [xsp+190h] [xbp+180h] BYREF void *v69; // [xsp+1A0h] [xbp+190h] __int64 v70[2]; // [xsp+1A8h] [xbp+198h] BYREF void *v71; // [xsp+1B8h] [xbp+1A8h] __int64 v72[2]; // [xsp+1C0h] [xbp+1B0h] BYREF void *v73; // [xsp+1D0h] [xbp+1C0h] __int64 v74; // [xsp+1D8h] [xbp+1C8h] BYREF size_t v75; // [xsp+1E0h] [xbp+1D0h] void *v76; // [xsp+1E8h] [xbp+1D8h] __int64 v77; // [xsp+1F0h] [xbp+1E0h] BYREF size_t v78; // [xsp+1F8h] [xbp+1E8h] void *v79; // [xsp+200h] [xbp+1F0h] __int64 v80; // [xsp+208h] [xbp+1F8h] BYREF size_t v81; // [xsp+210h] [xbp+200h] void *v82; // [xsp+218h] [xbp+208h] __int64 v83; // [xsp+220h] [xbp+210h] BYREF size_t v84; // [xsp+228h] [xbp+218h] void *v85; // [xsp+230h] [xbp+220h] __int64 v86[2]; // [xsp+238h] [xbp+228h] BYREF void *v87; // [xsp+248h] [xbp+238h] __int64 v88; // [xsp+250h] [xbp+240h] BYREF size_t v89; // [xsp+258h] [xbp+248h] void *v90; // [xsp+260h] [xbp+250h] __int64 v91[2]; // [xsp+268h] [xbp+258h] BYREF void *v92; // [xsp+278h] [xbp+268h] __int64 v93[2]; // [xsp+280h] [xbp+270h] BYREF void *v94; // [xsp+290h] [xbp+280h] __int64 v95[2]; // [xsp+298h] [xbp+288h] BYREF void *v96; // [xsp+2A8h] [xbp+298h] __int64 v97; // [xsp+2B0h] [xbp+2A0h] BYREF __int64 v98; // [xsp+2B8h] [xbp+2A8h] void *v99; // [xsp+2C0h] [xbp+2B0h] v97 = 0; v98 = 0; v99 = nullptr; std::string::__init(&v97, "1", 1u); v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v97); v35 = cocos2d::CCString::intValue(v3); if ( (v97 & 1) != 0 ) operator delete(v99); v97 = 0; v98 = 0; v99 = nullptr; std::string::__init(&v97, &byte_120A098, 1u); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v97); CString = (char *)cocos2d::CCString::getCString(v4); v43 = 0; v44 = 0; v45 = nullptr; v5 = strlen(CString); std::string::__init(&v43, CString, v5); if ( (v97 & 1) != 0 ) operator delete(v99); v49[0] = 0; v49[1] = 0; v50 = nullptr; std::string::__init(v49, &byte_11BCA00, 1u); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v49); v37 = (char *)cocos2d::CCString::getCString(v6); v46 = 0; v47 = 0; v48 = nullptr; v7 = strlen(v37); std::string::__init(&v46, v37, v7); if ( (v49[0] & 1) != 0 ) operator delete(v50); v51[0] = 0; v51[1] = 0; v52 = nullptr; std::string::__init(v51, "3", 1u); v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v51); v34 = cocos2d::CCString::intValue(v8); if ( (v51[0] & 1) != 0 ) operator delete(v52); v53[0] = 0; v53[1] = 0; v54 = nullptr; std::string::__init(v53, "5", 1u); v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v53); cocos2d::CCString::floatValue(v9); v11 = v10; if ( (v53[0] & 1) != 0 ) operator delete(v54); v58[0] = 0; v58[1] = 0; v59 = nullptr; std::string::__init(v58, "10", 2u); v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v58); v13 = (const char *)cocos2d::CCString::getCString(v12); v55 = 0; v56 = 0; v57 = nullptr; v38 = (char *)v13; v14 = strlen(v13); std::string::__init(&v55, v38, v14); if ( (v58[0] & 1) != 0 ) operator delete(v59); v15 = (unsigned __int8)v55 >> 1; if ( (v55 & 1) != 0 ) v15 = v56; if ( v15 <= 1 ) { std::string::assign(&v55, &byte_11B8890); } else { cocos2d::ZipUtils::urlDecode(&v55); if ( (v55 & 1) != 0 ) { *v57 = 0; v56 = 0; } else { LOWORD(v55) = 0; } std::string::reserve(&v55, 0); v57 = v62; v55 = v60; v56 = v61; } v63[0] = 0; v63[1] = 0; v64 = nullptr; std::string::__init(v63, "11", 2u); v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v63); v33 = cocos2d::CCString::intValue(v16); if ( (v63[0] & 1) != 0 ) operator delete(v64); v68[0] = 0; v68[1] = 0; v69 = nullptr; std::string::__init(v68, &word_120A570, 2u); v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v68); v39 = (char *)cocos2d::CCString::getCString(v17); v65 = 0; v66 = 0; v67 = nullptr; v18 = strlen(v39); std::string::__init(&v65, v39, v18); if ( (v68[0] & 1) != 0 ) operator delete(v69); v70[0] = 0; v70[1] = 0; v71 = nullptr; std::string::__init(v70, "13", 2u); v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v70); v31 = cocos2d::CCString::boolValue(v19); if ( (v70[0] & 1) != 0 ) operator delete(v71); v72[0] = 0; v72[1] = 0; v73 = nullptr; std::string::__init(v72, &word_1217DE8, 2u); v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v72); v32 = cocos2d::CCString::intValue(v20); if ( (v72[0] & 1) != 0 ) operator delete(v73); v74 = 0; v75 = 0; v76 = nullptr; if ( (v43 & 1) != 0 ) { std::string::__init(&v74, v45, v44); } else { v76 = v45; v74 = v43; v75 = v44; } v77 = 0; v78 = 0; v79 = nullptr; if ( (v46 & 1) != 0 ) { std::string::__init(&v77, v48, v47); } else { v79 = v48; v77 = v46; v78 = v47; } v80 = 0; v81 = 0; v82 = nullptr; if ( (v55 & 1) != 0 ) { std::string::__init(&v80, v57, v56); } else { v82 = v57; v80 = v55; v81 = v56; } v83 = 0; v84 = 0; v85 = nullptr; if ( (v65 & 1) != 0 ) { std::string::__init(&v83, v67, v66); } else { v85 = v67; v83 = v65; v84 = v66; } v21 = (__int64 *)SongInfoObject::create( v35, (char *)&v74, (char *)&v77, v34, (char *)&v80, v33, (char *)&v83, v31, v11, v32, -1); if ( (v83 & 1) != 0 ) operator delete(v85); if ( (v80 & 1) != 0 ) operator delete(v82); if ( (v77 & 1) != 0 ) operator delete(v79); if ( (v74 & 1) != 0 ) operator delete(v76); v86[0] = 0; v86[1] = 0; v87 = nullptr; std::string::__init(v86, "15", 2u); v22 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v86); v40 = (char *)cocos2d::CCString::getCString(v22); v88 = 0; v89 = 0; v90 = nullptr; v23 = strlen(v40); std::string::__init(&v88, v40, v23); if ( v21 + 58 != &v88 ) { if ( (v88 & 1) != 0 ) { v24 = (char *)v90; v25 = v89; } else { v25 = (unsigned __int8)v88 >> 1; v24 = (char *)&v88 + 1; } std::string::assign(v21 + 58, v24, v25); } if ( (v88 & 1) != 0 ) operator delete(v90); if ( (v86[0] & 1) != 0 ) operator delete(v87); v91[0] = 0; v91[1] = 0; v92 = nullptr; std::string::__init(v91, "17", 2u); v26 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v91); v41 = (char *)cocos2d::CCString::getCString(v26); v93[0] = 0; v93[1] = 0; v94 = nullptr; v27 = strlen(v41); std::string::__init(v93, v41, v27); SongInfoObject::setSongLinks(v21, (__int64)v93); if ( (v93[0] & 1) != 0 ) operator delete(v94); if ( (v91[0] & 1) != 0 ) operator delete(v92); v95[0] = 0; v95[1] = 0; v96 = nullptr; std::string::__init(v95, "18", 2u); v28 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v95); v42 = (char *)cocos2d::CCString::getCString(v28); v97 = 0; v98 = 0; v99 = nullptr; v29 = strlen(v42); std::string::__init(&v97, v42, v29); SongInfoObject::setArtistLinks(v21, (__int64)&v97); if ( (v97 & 1) != 0 ) operator delete(v99); if ( (v95[0] & 1) != 0 ) { operator delete(v96); if ( (v65 & 1) == 0 ) { LABEL_59: if ( (v55 & 1) == 0 ) goto LABEL_60; LABEL_68: operator delete(v57); if ( (v46 & 1) == 0 ) goto LABEL_61; goto LABEL_69; } } else if ( (v65 & 1) == 0 ) { goto LABEL_59; } operator delete(v67); if ( (v55 & 1) != 0 ) goto LABEL_68; LABEL_60: if ( (v46 & 1) == 0 ) goto LABEL_61; LABEL_69: operator delete(v48); LABEL_61: if ( (v43 & 1) != 0 ) operator delete(v45); return v21; }
GD Web Decomp Icon

GD Web Decomp

Raw Source