// // MusicDownloadManager::createArtistsInfo from 0x1001557fc to 0x100155a64 (616 bytes) // // 2 xrefs: // > MusicDownloadManager::responseToDict @ 0x100154824 // > MusicDownloadManager::createSongsInfo @ 0x100155374 // // 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 __fastcall MusicDownloadManager::createArtistsInfo(const std::string *a1, char *a2) { __int64 v4; // x0 int v5; // w9 const std::string *v6; // x21 signed __int64 size; // x27 int v8; // w9 char *v9; // x22 signed __int64 v10; // x23 char *v11; // x26 char *v12; // x25 __int64 v13; // x28 __int64 v14; // x25 std::string::size_type v15; // x22 __int64 v16; // x26 bool v17; // zf std::string *v18; // x1 bool v19; // zf __int64 v20; // x0 __int64 v21; // x21 int v22; // w9 char **v23; // x21 char *v24; // x9 int v25; // w10 char *v26; // x23 signed __int64 v27; // x24 signed __int64 v28; // x8 char *v29; // x27 char *v30; // x26 char *v31; // x0 int v32; // w25 __int64 v33; // x8 char *v34; // x0 int v36; // w24 signed __int64 v37; // x8 std::string *v38; // x0 signed __int64 v39; // x8 char *v40; // x0 __int64 v41; // [xsp+8h] [xbp-98h] __int64 v42; // [xsp+10h] [xbp-90h] signed __int64 v43; // [xsp+18h] [xbp-88h] std::allocator __a[8]; // [xsp+20h] [xbp-80h] BYREF char v45; // [xsp+37h] [xbp-69h] std::string v46; // [xsp+38h] [xbp-68h] BYREF v4 = sub_10024A15C(a1); v5 = SHIBYTE(a1->__r_.__value_.__r.__words[2]); if ( v5 >= 0 ) v6 = a1; else v6 = (const std::string *)a1->__r_.__value_.__r.__words[0]; if ( v5 >= 0 ) size = HIBYTE(a1->__r_.__value_.__r.__words[2]); else size = a1->__r_.__value_.__l.__size_; v8 = a2[23]; if ( v8 >= 0 ) v9 = a2; else v9 = *(char **)a2; if ( v8 >= 0 ) v10 = (unsigned __int8)a2[23]; else v10 = *((_QWORD *)a2 + 1); v41 = v4; if ( v10 ) { v11 = (char *)v6 + size; if ( size >= v10 ) { v36 = *v9; v37 = size; v38 = (std::string *)v6; do { v39 = v37 - v10; if ( v39 == -1 ) break; v40 = (char *)memchr(v38, v36, v39 + 1); if ( !v40 ) break; v12 = v40; if ( !memcmp(v40, v9, v10) ) goto LABEL_16; v38 = (std::string *)(v12 + 1); v37 = v11 - (v12 + 1); } while ( v37 >= v10 ); } v12 = (char *)v6 + size; LABEL_16: if ( v12 == v11 ) v13 = -1; else v13 = v12 - (char *)v6; v14 = v41; } else { v14 = v4; v13 = 0; } v15 = 0; v16 = (int)v10; v42 = (int)v10; v43 = size; do { std::string::basic_string(&v46, a1, v15, v13 - v15, __a); if ( SHIBYTE(v46.__r_.__value_.__r.__words[2]) < 0 ) { if ( v46.__r_.__value_.__l.__size_ ) v19 = 0; else v19 = v15 == size; if ( v19 ) goto LABEL_35; v18 = (std::string *)v46.__r_.__value_.__r.__words[0]; } else { if ( *((_BYTE *)&v46.__r_.__value_.__s + 23) ) v17 = 0; else v17 = v15 == size; if ( v17 ) goto LABEL_35; v18 = &v46; } sub_100009900(__a, (char *)v18); v20 = sub_100268E48(__a); sub_10024A2D0(v14, v20); if ( v45 < 0 ) operator delete(*(void **)&__a[0].std::__non_trivial_if); LABEL_35: if ( v13 == -1 ) goto LABEL_36; v15 = v13 + v16; v22 = SHIBYTE(a1->__r_.__value_.__r.__words[2]); v23 = v22 >= 0 ? (char **)a1 : (char **)a1->__r_.__value_.__r.__words[0]; v24 = v22 >= 0 ? (char *)HIBYTE(a1->__r_.__value_.__r.__words[2]) : (char *)a1->__r_.__value_.__l.__size_; v25 = a2[23]; v26 = v25 >= 0 ? a2 : *(char **)a2; v27 = v25 >= 0 ? (unsigned __int8)a2[23] : *((_QWORD *)a2 + 1); v28 = (signed __int64)&v24[-v15]; if ( (unsigned __int64)v24 < v15 ) { LABEL_36: v21 = -1; } else if ( v27 ) { v29 = &v24[(_QWORD)v23]; if ( v28 >= v27 ) { v31 = (char *)v23 + v15; v32 = *v26; do { v33 = v28 - v27; if ( v33 == -1 ) break; v34 = (char *)memchr(v31, v32, v33 + 1); if ( !v34 ) break; v30 = v34; if ( !memcmp(v34, v26, v27) ) goto LABEL_65; v31 = v30 + 1; v28 = v29 - (v30 + 1); } while ( v28 >= v27 ); v30 = v29; LABEL_65: v14 = v41; } else { v30 = &v24[(_QWORD)v23]; } if ( v30 == v29 ) v21 = -1; else v21 = v30 - (char *)v23; v16 = v42; size = v43; } else { v21 = v13 + v16; } if ( SHIBYTE(v46.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v46.__r_.__value_.__l.__data_); v17 = v13 == -1; v13 = v21; } while ( !v17 ); return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source