{"type": "func", "start": 5372111264, "end": 5372111382, "name": "MusicDownloadManager::downloadSongStarted", "pseudocode": "// \n// MusicDownloadManager::downloadSongStarted from 0x14033e9a0 to 0x14033ea16 (118 bytes)\n// \n// 3 xrefs:\n// > MusicDownloadManager::downloadSong @ 0x14033ea92\n// > MusicDownloadManager::downloadCustomSong @ 0x14034037f\n// > <???> @ 0x1406d5684\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid MusicDownloadManager::downloadSongStarted(MusicDownloadManager *a1, int a2)\n{\n  unsigned int i; // ebx\n  __int64 v5; // rcx\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_musicDownloadDelegates); ++i )\n  {\n    v5 = *(_QWORD *)&cocos2d::CCArray::objectAtIndex(a1->m_musicDownloadDelegates, i)[5].m_unknown2;\n    if ( v5 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 16LL))(v5, (unsigned int)a2);\n  }\n}", "assembly": "; \n; MusicDownloadManager::downloadSongStarted from 0x14033e9a0 to 0x14033ea16 (118 bytes)\n; \n; 3 xrefs:\n; > MusicDownloadManager::downloadSong @ 0x14033ea92\n; > MusicDownloadManager::downloadCustomSong @ 0x14034037f\n; > <???> @ 0x1406d5684\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14033e9a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14033e9a5\npush    rdi                                                            ; +0xa, 0x14033e9aa\nsub     rsp, 20h                                                       ; +0xb, 0x14033e9ab\nmov     rdi, rcx                                                       ; +0xf, 0x14033e9af\nmov     esi, edx                                                       ; +0x12, 0x14033e9b2\nmov     rcx, [rcx+150h]                                                ; +0x14, 0x14033e9b4\nxor     ebx, ebx                                                       ; +0x1b, 0x14033e9bb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1d, 0x14033e9bd\ntest    eax, eax                                                       ; +0x23, 0x14033e9c3\njz      short loc_14033EA06                                            ; +0x25, 0x14033e9c5\nnop     word ptr [rax+rax+00000000h]                                   ; +0x27, 0x14033e9c7\nmov     rcx, [rdi+150h]                                                ; +0x30, 0x14033e9d0\nmov     edx, ebx                                                       ; +0x37, 0x14033e9d7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x14033e9d9\nmov     rcx, [rax+140h]                                                ; +0x3f, 0x14033e9df\ntest    rcx, rcx                                                       ; +0x46, 0x14033e9e6\njz      short loc_14033E9F3                                            ; +0x49, 0x14033e9e9\nmov     rax, [rcx]                                                     ; +0x4b, 0x14033e9eb\nmov     edx, esi                                                       ; +0x4e, 0x14033e9ee\ncall    qword ptr [rax+10h]                                            ; +0x50, 0x14033e9f0\nmov     rcx, [rdi+150h]                                                ; +0x53, 0x14033e9f3\ninc     ebx                                                            ; +0x5a, 0x14033e9fa\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5c, 0x14033e9fc\ncmp     ebx, eax                                                       ; +0x62, 0x14033ea02\njb      short loc_14033E9D0                                            ; +0x64, 0x14033ea04\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x14033ea06\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6b, 0x14033ea0b\nadd     rsp, 20h                                                       ; +0x70, 0x14033ea10\npop     rdi                                                            ; +0x74, 0x14033ea14\nretn                                                                   ; +0x75, 0x14033ea15", "xrefs": ["MusicDownloadManager::downloadSong @ 0x14033ea92", "MusicDownloadManager::downloadCustomSong @ 0x14034037f", "<???> @ 0x1406d5684"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}