// // sub_830154 from 0x830154 to 0x830398 (580 bytes) // // 16 xrefs: // > MusicDownloadManager::createArtistsInfo @ 0x8303ec // > MusicDownloadManager::parseSFXLibrary @ 0x830928 // > MusicDownloadManager::parseSFXLibrary @ 0x83095c // > MusicDownloadManager::parseSFXLibrary @ 0x8309c4 // > MusicDownloadManager::parseSFXLibrary @ 0x830a8c // > MusicDownloadManager::parseSFXLibrary @ 0x830f2c // > SongInfoObject::addTags @ 0x833468 // > SongInfoObject::getArtistNames @ 0x833874 // > SongInfoObject::updateArtists @ 0x834210 // > MusicDownloadManager::parseMusicLibrary @ 0x83831c // > MusicDownloadManager::parseMusicLibrary @ 0x838468 // > MusicDownloadManager::parseMusicLibrary @ 0x838548 // > MusicDownloadManager::parseMusicLibrary @ 0x838598 // > MusicDownloadManager::parseMusicLibrary @ 0x838670 // > MusicDownloadManager::parseMusicLibrary @ 0x8386cc // > MusicDownloadManager::parseMusicLibrary @ 0x838788 // // 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 sub_830154(_QWORD *a1, char *a2, __int64 a3) { unsigned __int64 v6; // x19 size_t v7; // x0 __int64 v8; // x20 __int64 v9; // x3 __int64 v10; // x26 __int64 v11; // x0 size_t v12; // x0 void *v13; // x0 unsigned int *v14; // x1 int v15; // w2 void *v16; // x0 unsigned int *v18; // x19 int v19; // w1 __int64 v20; // [xsp+80h] [xbp+80h] BYREF v6 = 0; v7 = strlen(a2); v8 = sub_D168E0((int)a1, a2, 0, v7); v9 = v8; v10 = *(_QWORD *)(*a1 - 24LL); while ( 1 ) { sub_D14F84(&v20, a1, v6, v9); if ( v6 == v10 && !*(_QWORD *)(v20 - 24) ) goto LABEL_9; v11 = *(_QWORD *)(a3 + 8); if ( v11 == *(_QWORD *)(a3 + 16) ) break; if ( v11 ) { sub_D18D28(v11); v11 = *(_QWORD *)(a3 + 8); } *(_QWORD *)(a3 + 8) = v11 + 8; LABEL_9: if ( v8 == -1 ) goto LABEL_17; LABEL_10: v6 = v8 + 1; v12 = strlen(a2); v8 = sub_D168E0((int)a1, a2, (int)v8 + 1, v12); v13 = (void *)(v20 - 24); if ( (__int64 *)(v20 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v20 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(_DWORD *)(v20 - 8); *(_DWORD *)(v20 - 8) = v15 - 1; } if ( v15 <= 0 ) operator delete(v13); } v9 = v8 - v6; if ( v6 > *(_QWORD *)(*a1 - 24LL) ) sub_D13C5C( "%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::substr", v6, *(_QWORD *)(*a1 - 24LL)); } std::vector::_M_emplace_back_aux(a3, (__int64)&v20); if ( v8 != -1 ) goto LABEL_10; LABEL_17: v16 = (void *)(v20 - 24); if ( (__int64 *)(v20 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v18 = (unsigned int *)(v20 - 8); do v19 = __ldaxr(v18); while ( __stlxr(v19 - 1, v18) ); } else { v19 = *(_DWORD *)(v20 - 8); *(_DWORD *)(v20 - 8) = v19 - 1; } if ( v19 <= 0 ) operator delete(v16); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source