// // MusicDownloadManager::downloadNewsImage from 0x100663810 to 0x100663a68 (600 bytes) // // 3 xrefs: // > NewsPopup::rebuildPage @ 0x10095a363 // > NewsPopup::onBlockClicked @ 0x10095aa9f // > sub_10095AB50 @ 0x10095ade4 // // 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:57 +0000 // void __fastcall MusicDownloadManager::downloadNewsImage(__int64 a1, unsigned __int8 *a2) { unsigned int v3; // eax unsigned __int64 v4; // rdx __int64 v5; // rax const char *CString; // r15 unsigned int v7; // edx const std::string::value_type *v8; // rsi std::string::size_type v9; // rdx char v10; // r12 char *Request; // r14 char v12; // [rsp+0h] [rbp-D0h] __int128 v13; // [rsp+8h] [rbp-C8h] BYREF void *v14; // [rsp+18h] [rbp-B8h] __int128 v15; // [rsp+20h] [rbp-B0h] BYREF void *data; // [rsp+30h] [rbp-A0h] __int128 v17; // [rsp+40h] [rbp-90h] BYREF void *v18; // [rsp+50h] [rbp-80h] __int128 v19; // [rsp+60h] [rbp-70h] BYREF void *v20; // [rsp+70h] [rbp-60h] __int128 v21; // [rsp+80h] [rbp-50h] BYREF void *__p; // [rsp+90h] [rbp-40h] std::string v23; // [rsp+98h] [rbp-38h] BYREF v3 = *(unsigned __int8 *)(a1 + 368); if ( (v3 & 1) != 0 ) { if ( !*(_QWORD *)(a1 + 376) ) return; } else if ( !(v3 >> 1) ) { return; } if ( (*a2 & 1) != 0 ) { v4 = *((_QWORD *)a2 + 1); if ( !v4 ) return; sub_10001AD30(&v21, *((const void **)a2 + 2), v4); } else { if ( !*a2 ) return; __p = *((void **)a2 + 2); v21 = *(_OWORD *)a2; } v5 = sub_10088E820("news_%s", v12); CString = (const char *)cocos2d::CCString::getCString(v5); if ( (v21 & 1) != 0 ) operator delete(__p); if ( !MusicDownloadManager::getDLObject(a1, CString) ) { v23.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; strcpy(v23.__r_.__value_.__s.__data_, "/news/"); v7 = *a2; if ( (v7 & 1) != 0 ) { v8 = *((const std::string::value_type **)a2 + 2); v9 = *((_QWORD *)a2 + 1); } else { v8 = (const std::string::value_type *)(a2 + 1); v9 = v7 >> 1; } std::string::append(&v23, v8, v9); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) != 0 ) { sub_10001AD30(&v15, v23.__r_.__value_.__l.__data_, v23.__r_.__value_.__l.__size_); } else { data = v23.__r_.__value_.__l.__data_; v15 = *(_OWORD *)&v23.__r_.__value_.__l.0; } MusicDownloadManager::generateCustomContentURL((size_t *)&v13, a1); if ( (v15 & 1) != 0 ) operator delete(data); v10 = v13; if ( (v13 & 1) != 0 ) { sub_10001AD30(&v17, v14, *((unsigned __int64 *)&v13 + 1)); } else { v18 = v14; v17 = v13; } if ( (*a2 & 1) != 0 ) { sub_10001AD30(&v19, *((const void **)a2 + 2), *((_QWORD *)a2 + 1)); } else { v20 = *((void **)a2 + 2); v19 = *(_OWORD *)a2; } Request = MusicDownloadManager::ProcessHttpGetRequest( a1, (__int64)&v17, (__int64)&v19, (__int64)MusicDownloadManager::onDownloadNewsImageCompleted, 0, 5, 30); if ( (v19 & 1) != 0 ) operator delete(v20); if ( (v17 & 1) != 0 ) operator delete(v18); MusicDownloadManager::addDLToActive(a1, CString, (__int64)Request); if ( (v10 & 1) != 0 ) operator delete(v14); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v23.__r_.__value_.__l.__data_); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source