// // MusicDownloadManager::ProcessHttpRequest from 0x45a3a4 to 0x45a480 (220 bytes) // // 2 xrefs: // > MusicDownloadManager::getSongInfo @ 0x45a588 // > MusicDownloadManager::getCustomContentURL @ 0x45a658 // // 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 __fastcall MusicDownloadManager::ProcessHttpRequest( cocos2d::CCObject *a1, char **a2, const char **a3, char **a4, int a5) { int v9; // r4 const char *v10; // r8 unsigned int v11; // r0 char *v12; // r3 size_t v13; // r5 char *v14; // r9 void *v15; // r0 char *v16; // r5 size_t v17; // r2 const char *v18; // r9 char *v19; // r3 size_t v20; // r5 cocos2d::extension::CCHttpClient *Instance; // r0 v9 = operator new(0x7Cu); cocos2d::extension::CCHttpRequest::CCHttpRequest((cocos2d::extension::CCHttpRequest *)v9); sub_7753D4(v9 + 56, *a2); *(_DWORD *)(v9 + 52) = 1; *(_DWORD *)(v9 + 76) = a1; *(_DWORD *)(v9 + 80) = MusicDownloadManager::onProcessHttpRequestCompleted; *(_DWORD *)(v9 + 84) = 0; if ( a1 ) cocos2d::CCObject::retain(a1); v10 = *a3; v11 = strlen(v10); v12 = *(char **)(v9 + 60); v13 = v11; if ( v11 <= *(_DWORD *)(v9 + 68) - (int)v12 ) { v17 = *(_DWORD *)(v9 + 64) - (_DWORD)v12; if ( v17 < v11 ) { v18 = &v10[v17]; if ( v17 ) memmove(*(void **)(v9 + 60), v10, v17); v19 = *(char **)(v9 + 64); v20 = &v10[v13] - v18; if ( v20 ) v19 = (char *)memmove(*(void **)(v9 + 64), v18, v20); *(_DWORD *)(v9 + 64) = &v19[v20]; } else { if ( v11 ) v12 = (char *)memmove(*(void **)(v9 + 60), v10, v11); *(_DWORD *)(v9 + 64) = &v12[v13]; } } else { v14 = (char *)operator new(v11); memmove(v14, v10, v13); v15 = *(void **)(v9 + 60); if ( v15 ) operator delete(v15); v16 = &v14[v13]; *(_DWORD *)(v9 + 60) = v14; *(_DWORD *)(v9 + 64) = v16; *(_DWORD *)(v9 + 68) = v16; } sub_7753D4(v9 + 72, *a4); *(_DWORD *)(v9 + 104) = a5; Instance = cocos2d::extension::CCHttpClient::getInstance(); cocos2d::extension::CCHttpClient::send(Instance, (cocos2d::extension::CCHttpRequest *)v9); cocos2d::CCObject::release((cocos2d::CCObject *)v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source