// // SongInfoObject::create_2 from 0x10064c600 to 0x10064d0da (2778 bytes) // // 2 xrefs: // > GameLevelManager::onGetTopArtistsCompleted @ 0x10052f0e1 // > MusicDownloadManager::addSongObjectFromString @ 0x10064c0e0 // // This function is hookable on this platform (idp: pc, 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:34:47 +0000 // __int64 __fastcall SongInfoObject::create_2(__int64 a1, double a2) { void *v2; // rax void *v3; // rax const char *CString; // r14 size_t v5; // rax size_t v6; // r15 char *v7; // r12 void *v8; // rax const char *v9; // r14 size_t v10; // rax size_t v11; // r15 char *v12; // r12 void *v13; // rax int v14; // r14d void *v15; // rax void *v16; // rax const char *v17; // r14 size_t v18; // rax std::string::size_type v19; // r12 char *data; // r13 size_t v21; // r13 size_t v22; // r13 size_t v23; // r15 void *v24; // rax void *v25; // rax const char *v26; // r14 size_t v27; // rax size_t v28; // r13 char *v29; // r15 void *v30; // rax char v31; // r13 void *v32; // rax int v33; // r14d size_t v34; // r12 double v35; // xmm0_8 __int64 v36; // r14 void *v37; // rax const char *v38; // r15 size_t v39; // rax std::string::size_type v40; // r12 char *v41; // r13 size_t v42; // rbx __int64 v43; // rbx void *v44; // rax const char *v45; // r15 size_t v46; // rax std::string::size_type v47; // r12 char *v48; // r13 size_t v49; // rbx __int64 v50; // rbx __int64 i; // r12 __int64 v52; // rbx void *v53; // rax const char *v54; // rbx size_t v55; // rax std::string::size_type v56; // r15 char *v57; // r12 size_t v58; // r13 __int64 v59; // r15 __int64 j; // r12 __int128 v62; // [rsp+20h] [rbp-170h] BYREF void *v63; // [rsp+30h] [rbp-160h] __int128 v64; // [rsp+40h] [rbp-150h] BYREF void *v65; // [rsp+50h] [rbp-140h] __int128 v66; // [rsp+60h] [rbp-130h] BYREF void *v67; // [rsp+70h] [rbp-120h] __int128 v68; // [rsp+80h] [rbp-110h] BYREF void *v69; // [rsp+90h] [rbp-100h] std::string __str; // [rsp+A0h] [rbp-F0h] BYREF float v71; // [rsp+BCh] [rbp-D4h] int v72; // [rsp+C0h] [rbp-D0h] int v73; // [rsp+C4h] [rbp-CCh] __int64 v74; // [rsp+C8h] [rbp-C8h] char v75; // [rsp+D0h] [rbp-C0h] BYREF char v76[15]; // [rsp+D1h] [rbp-BFh] BYREF void *v77; // [rsp+E0h] [rbp-B0h] __int128 __dst; // [rsp+E8h] [rbp-A8h] BYREF void *__p; // [rsp+F8h] [rbp-98h] __int128 v80; // [rsp+100h] [rbp-90h] BYREF void *v81; // [rsp+110h] [rbp-80h] __int128 v82; // [rsp+118h] [rbp-78h] BYREF void *v83; // [rsp+128h] [rbp-68h] std::string v84; // [rsp+130h] [rbp-60h] BYREF std::string v85; // [rsp+150h] [rbp-40h] BYREF LOWORD(__dst) = 12546; BYTE2(__dst) = 0; v2 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&__dst); LODWORD(v74) = cocos2d::CCString::intValue(v2); if ( (__dst & 1) != 0 ) operator delete(__p); LOWORD(v80) = 12802; BYTE2(v80) = 0; v3 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v80); CString = (const char *)cocos2d::CCString::getCString(v3); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = v5; if ( v5 >= 0x17 ) { v21 = 26; if ( (v5 | 7) != 0x17 ) v21 = (v5 | 7) + 1; v7 = (char *)operator new(v21); __p = v7; *(_QWORD *)&__dst = v21 | 1; *((_QWORD *)&__dst + 1) = v6; } else { LOBYTE(__dst) = 2 * v5; v7 = (char *)&__dst + 1; if ( !v5 ) { BYTE1(__dst) = 0; if ( (v80 & 1) == 0 ) goto LABEL_8; goto LABEL_7; } } memmove(v7, CString, v6); v7[v6] = 0; if ( (v80 & 1) != 0 ) LABEL_7: operator delete(v81); LABEL_8: *(_WORD *)&v84.__r_.__value_.__l.0 = 13314; v84.__r_.__value_.__s.__data_[1] = 0; v8 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v84); v9 = (const char *)cocos2d::CCString::getCString(v8); v10 = strlen(v9); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v11 = v10; if ( v10 >= 0x17 ) { v22 = 26; if ( (v10 | 7) != 0x17 ) v22 = (v10 | 7) + 1; v12 = (char *)operator new(v22); v81 = v12; *(_QWORD *)&v80 = v22 | 1; *((_QWORD *)&v80 + 1) = v11; } else { LOBYTE(v80) = 2 * v10; v12 = (char *)&v80 + 1; if ( !v10 ) { BYTE1(v80) = 0; if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_13; goto LABEL_12; } } memmove(v12, v9, v11); v12[v11] = 0; if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) != 0 ) LABEL_12: operator delete(v84.__r_.__value_.__l.__data_); LABEL_13: *(_WORD *)&v84.__r_.__value_.__l.0 = 13058; v84.__r_.__value_.__s.__data_[1] = 0; v13 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v84); v14 = cocos2d::CCString::intValue(v13); if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v84.__r_.__value_.__l.__data_); *(_WORD *)&v84.__r_.__value_.__l.0 = 13570; v84.__r_.__value_.__s.__data_[1] = 0; v15 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v84); v71 = cocos2d::CCString::floatValue(v15, a2); v72 = v14; if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v84.__r_.__value_.__l.__data_); LOBYTE(v82) = 4; *(_WORD *)((char *)&v82 + 1) = 12337; BYTE3(v82) = 0; v16 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v82); v17 = (const char *)cocos2d::CCString::getCString(v16); v18 = strlen(v17); if ( v18 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v19 = v18; if ( v18 >= 0x17 ) { v23 = 26; if ( (v18 | 7) != 0x17 ) v23 = (v18 | 7) + 1; data = (char *)operator new(v23); v84.__r_.__value_.__r.__words[2] = (std::string::size_type)data; v84.__r_.__value_.__r.__words[0] = v23 | 1; v84.__r_.__value_.__l.__size_ = v19; } else { v84.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v18); data = v84.__r_.__value_.__s.__data_; if ( !v18 ) { v84.__r_.__value_.__s.__data_[0] = 0; if ( (v82 & 1) == 0 ) goto LABEL_22; goto LABEL_21; } } memmove(data, v17, v19); data[v19] = 0; if ( (v82 & 1) != 0 ) LABEL_21: operator delete(v83); LABEL_22: if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) == 0 ) { if ( *(_BYTE *)&v84.__r_.__value_.__l.0 >> 1 > 1uLL ) goto LABEL_24; LABEL_43: std::string::assign(&v84, ""); goto LABEL_44; } if ( v84.__r_.__value_.__l.__size_ <= 1 ) goto LABEL_43; LABEL_24: cocos2d::ZipUtils::urlDecode(&v82, &v84); if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v84.__r_.__value_.__l.__data_); v84.__r_.__value_.__r.__words[2] = (std::string::size_type)v83; *(_OWORD *)&v84.__r_.__value_.__l.0 = v82; LABEL_44: LOBYTE(v82) = 4; *(_WORD *)((char *)&v82 + 1) = 12593; BYTE3(v82) = 0; v24 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v82); v73 = cocos2d::CCString::intValue(v24); if ( (v82 & 1) != 0 ) operator delete(v83); v85.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v85.__r_.__value_.__s.__data_, "12"); v25 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v85); v26 = (const char *)cocos2d::CCString::getCString(v25); v27 = strlen(v26); if ( v27 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v28 = v27; if ( v27 >= 0x17 ) { v34 = 26; if ( (v27 | 7) != 0x17 ) v34 = (v27 | 7) + 1; v29 = (char *)operator new(v34); v83 = v29; *(_QWORD *)&v82 = v34 | 1; *((_QWORD *)&v82 + 1) = v28; } else { LOBYTE(v82) = 2 * v27; v29 = (char *)&v82 + 1; if ( !v27 ) { BYTE1(v82) = 0; if ( (*(_BYTE *)&v85.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_51; goto LABEL_50; } } memmove(v29, v26, v28); v29[v28] = 0; if ( (*(_BYTE *)&v85.__r_.__value_.__s.0 & 1) != 0 ) LABEL_50: operator delete(v85.__r_.__value_.__l.__data_); LABEL_51: v85.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v85.__r_.__value_.__s.__data_, "13"); v30 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v85); v31 = cocos2d::CCString::boolValue(v30); if ( (*(_BYTE *)&v85.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v85.__r_.__value_.__l.__data_); v85.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v85.__r_.__value_.__s.__data_, "14"); v32 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v85); v33 = cocos2d::CCString::intValue(v32); if ( (*(_BYTE *)&v85.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v85.__r_.__value_.__l.__data_); if ( (__dst & 1) != 0 ) { sub_10001AD30(&v62, __p, *((unsigned __int64 *)&__dst + 1)); } else { v63 = __p; v62 = __dst; } if ( (v80 & 1) != 0 ) { sub_10001AD30(&v64, v81, *((unsigned __int64 *)&v80 + 1)); } else { v65 = v81; v64 = v80; } if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) != 0 ) { sub_10001AD30(&v66, v84.__r_.__value_.__l.__data_, v84.__r_.__value_.__l.__size_); } else { v67 = v84.__r_.__value_.__l.__data_; v66 = *(_OWORD *)&v84.__r_.__value_.__l.0; } if ( (v82 & 1) != 0 ) { sub_10001AD30(&v68, v83, *((unsigned __int64 *)&v82 + 1)); } else { v69 = v83; v68 = v82; } *(_QWORD *)&v35 = LODWORD(v71); v36 = SongInfoObject::create( v74, (unsigned int)&v62, (unsigned int)&v64, v72, (unsigned int)&v66, v73, (__int64)&v68, v31, v33, -1); if ( (v68 & 1) != 0 ) { operator delete(v69); if ( (v66 & 1) == 0 ) { LABEL_74: if ( (v64 & 1) == 0 ) goto LABEL_75; goto LABEL_83; } } else if ( (v66 & 1) == 0 ) { goto LABEL_74; } operator delete(v67); if ( (v64 & 1) == 0 ) { LABEL_75: if ( (v62 & 1) == 0 ) goto LABEL_77; goto LABEL_76; } LABEL_83: operator delete(v65); if ( (v62 & 1) != 0 ) LABEL_76: operator delete(v63); LABEL_77: v85.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v85.__r_.__value_.__s.__data_, "15"); v74 = a1; v37 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v85); v38 = (const char *)cocos2d::CCString::getCString(v37); v39 = strlen(v38); if ( v39 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v40 = v39; if ( v39 >= 0x17 ) { v42 = 26; if ( (v39 | 7) != 0x17 ) v42 = (v39 | 7) + 1; v41 = (char *)operator new(v42); __str.__r_.__value_.__r.__words[2] = (std::string::size_type)v41; __str.__r_.__value_.__r.__words[0] = v42 | 1; __str.__r_.__value_.__l.__size_ = v40; goto LABEL_88; } __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v39); v41 = __str.__r_.__value_.__s.__data_; if ( v39 ) LABEL_88: memmove(v41, v38, v40); v41[v40] = 0; std::string::operator=((std::string *)(v36 + 464), &__str); v43 = v74; if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v85.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v85.__r_.__value_.__l.__data_); v75 = 4; strcpy(v76, "17"); v44 = cocos2d::CCDictionary::valueForKey(v43, (__int64)&v75); v45 = (const char *)cocos2d::CCString::getCString(v44); v46 = strlen(v45); if ( v46 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v47 = v46; if ( v46 >= 0x17 ) { v49 = 26; if ( (v46 | 7) != 0x17 ) v49 = (v46 | 7) + 1; v48 = (char *)operator new(v49); v85.__r_.__value_.__r.__words[2] = (std::string::size_type)v48; v85.__r_.__value_.__r.__words[0] = v49 | 1; v85.__r_.__value_.__l.__size_ = v47; } else { v85.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v46); v48 = v85.__r_.__value_.__s.__data_; if ( !v46 ) goto LABEL_101; } memmove(v48, v45, v47); LABEL_101: v48[v47] = 0; std::string::operator=((std::string *)(v36 + 528), &v85); v50 = *(_QWORD *)(v36 + 576); for ( i = *(_QWORD *)(v36 + 584); i != v50; i -= 56 ) { if ( (*(_BYTE *)(i - 24) & 1) != 0 ) operator delete(*(void **)(i - 8)); if ( (*(_BYTE *)(i - 48) & 1) != 0 ) operator delete(*(void **)(i - 32)); } *(_QWORD *)(v36 + 584) = v50; sub_10065DF30(&v85, v36 + 576, v35); if ( (*(_BYTE *)&v85.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v85.__r_.__value_.__l.__data_); v52 = v74; if ( (v75 & 1) != 0 ) operator delete(v77); v75 = 4; strcpy(v76, "18"); v53 = cocos2d::CCDictionary::valueForKey(v52, (__int64)&v75); v54 = (const char *)cocos2d::CCString::getCString(v53); v55 = strlen(v54); if ( v55 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v56 = v55; if ( v55 >= 0x17 ) { v58 = 26; if ( (v55 | 7) != 0x17 ) v58 = (v55 | 7) + 1; v57 = (char *)operator new(v58); v85.__r_.__value_.__r.__words[2] = (std::string::size_type)v57; v85.__r_.__value_.__r.__words[0] = v58 | 1; v85.__r_.__value_.__l.__size_ = v56; } else { v85.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v55); v57 = v85.__r_.__value_.__s.__data_; if ( !v55 ) goto LABEL_120; } memmove(v57, v54, v56); LABEL_120: v57[v56] = 0; std::string::operator=((std::string *)(v36 + 552), &v85); v59 = *(_QWORD *)(v36 + 600); for ( j = *(_QWORD *)(v36 + 608); j != v59; j -= 56 ) { if ( (*(_BYTE *)(j - 24) & 1) != 0 ) operator delete(*(void **)(j - 8)); if ( (*(_BYTE *)(j - 48) & 1) != 0 ) operator delete(*(void **)(j - 32)); } *(_QWORD *)(v36 + 608) = v59; sub_10065DF30(&v85, v36 + 600, v35); if ( (*(_BYTE *)&v85.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v85.__r_.__value_.__l.__data_); if ( (v75 & 1) == 0 ) { LABEL_129: if ( (v82 & 1) == 0 ) goto LABEL_130; goto LABEL_137; } } else if ( (v75 & 1) == 0 ) { goto LABEL_129; } operator delete(v77); if ( (v82 & 1) == 0 ) { LABEL_130: if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_131; goto LABEL_138; } LABEL_137: operator delete(v83); if ( (*(_BYTE *)&v84.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_131: if ( (v80 & 1) == 0 ) goto LABEL_132; LABEL_139: operator delete(v81); if ( (__dst & 1) == 0 ) return v36; goto LABEL_133; } LABEL_138: operator delete(v84.__r_.__value_.__l.__data_); if ( (v80 & 1) != 0 ) goto LABEL_139; LABEL_132: if ( (__dst & 1) != 0 ) LABEL_133: operator delete(__p); return v36; }
GD Web Decomp Icon

GD Web Decomp

Raw Source