// // MusicDownloadManager::onProcessHttpRequestCompleted from 0x836f2c to 0x837164 (568 bytes) // // 3 xrefs: // > @ 0x91a58 // > MusicDownloadManager::ProcessHttpRequest @ 0x828bc4 // > @ 0x122cf90 // // 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 // void MusicDownloadManager::onProcessHttpRequestCompleted( MusicDownloadManager *a1, cocos2d::extension::CCHttpClient *a2, cocos2d::extension::CCHttpResponse *a3) { cocos2d::extension::CCHttpRequest *pHttpRequest; // x2 char *m_data; // x24 int requestTypeGJ; // w22 void *v8; // x0 void *v9; // x0 char *v10; // x0 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x1 int v14; // w2 unsigned int *v15; // x1 int v16; // w2 char *v17; // [xsp+60h] [xbp+60h] BYREF __int64 v18; // [xsp+68h] [xbp+68h] BYREF __int64 v19; // [xsp+70h] [xbp+70h] BYREF pHttpRequest = a3->_pHttpRequest; m_data = (char *)pHttpRequest->_tag.m_data.m_data; requestTypeGJ = pHttpRequest->_requestTypeGJ; GameToolbox::getResponse((GameToolbox *)a3, &v17); sub_D18D28(&v18); sub_D153B8((int)&v19, m_data); MusicDownloadManager::handleIt(a1, 1, (__int64)&v18, (__int64)&v19, requestTypeGJ); v8 = (void *)(v19 - 24); if ( (__int64 *)(v19 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v19 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v19 - 8); *(_DWORD *)(v19 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v8); } v9 = (void *)(v18 - 24); if ( (__int64 *)(v18 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v18 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v18 - 8); *(_DWORD *)(v18 - 8) = v14 - 1; } if ( v14 <= 0 ) operator delete(v9); } v10 = v17 - 24; if ( v17 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v17 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *((_DWORD *)v17 - 2); *((_DWORD *)v17 - 2) = v16 - 1; } if ( v16 <= 0 ) operator delete(v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source