{"type": "func", "start": 5373443168, "end": 5373443286, "name": "MusicDownloadManager::downloadSongStarted", "pseudocode": "// \n// MusicDownloadManager::downloadSongStarted from 0x140483c60 to 0x140483cd6 (118 bytes)\n// \n// 3 xrefs:\n// > MusicDownloadManager::downloadSong @ 0x140483d50\n// > MusicDownloadManager::downloadCustomSong @ 0x14048c49f\n// > <???> @ 0x140928a78\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:46 +0000\n// \n\nunsigned int __fastcall MusicDownloadManager::downloadSongStarted(__int64 a1, unsigned int a2)\n{\n  unsigned int v4; // ebx\n  unsigned int result; // eax\n  __int64 v6; // rcx\n\n  v4 = 0;\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));\n  if ( result )\n  {\n    do\n    {\n      v6 = *((_QWORD *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 336), v4) + 40);\n      if ( v6 )\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 16LL))(v6, a2);\n      ++v4;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));\n    }\n    while ( v4 < result );\n  }\n  return result;\n}", "assembly": "; \n; MusicDownloadManager::downloadSongStarted from 0x140483c60 to 0x140483cd6 (118 bytes)\n; \n; 3 xrefs:\n; > MusicDownloadManager::downloadSong @ 0x140483d50\n; > MusicDownloadManager::downloadCustomSong @ 0x14048c49f\n; > <???> @ 0x140928a78\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:46 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140483c60\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140483c65\npush    rdi                                                            ; +0xa, 0x140483c6a\nsub     rsp, 20h                                                       ; +0xb, 0x140483c6b\nmov     rdi, rcx                                                       ; +0xf, 0x140483c6f\nmov     esi, edx                                                       ; +0x12, 0x140483c72\nmov     rcx, [rcx+150h]                                                ; +0x14, 0x140483c74\nxor     ebx, ebx                                                       ; +0x1b, 0x140483c7b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1d, 0x140483c7d\ntest    eax, eax                                                       ; +0x23, 0x140483c83\njz      short loc_140483CC6                                            ; +0x25, 0x140483c85\nnop     word ptr [rax+rax+00000000h]                                   ; +0x27, 0x140483c87\nmov     rcx, [rdi+150h]                                                ; +0x30, 0x140483c90\nmov     edx, ebx                                                       ; +0x37, 0x140483c97\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x140483c99\nmov     rcx, [rax+140h]                                                ; +0x3f, 0x140483c9f\ntest    rcx, rcx                                                       ; +0x46, 0x140483ca6\njz      short loc_140483CB3                                            ; +0x49, 0x140483ca9\nmov     rax, [rcx]                                                     ; +0x4b, 0x140483cab\nmov     edx, esi                                                       ; +0x4e, 0x140483cae\ncall    qword ptr [rax+10h]                                            ; +0x50, 0x140483cb0\nmov     rcx, [rdi+150h]                                                ; +0x53, 0x140483cb3\ninc     ebx                                                            ; +0x5a, 0x140483cba\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5c, 0x140483cbc\ncmp     ebx, eax                                                       ; +0x62, 0x140483cc2\njb      short loc_140483C90                                            ; +0x64, 0x140483cc4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x140483cc6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6b, 0x140483ccb\nadd     rsp, 20h                                                       ; +0x70, 0x140483cd0\npop     rdi                                                            ; +0x74, 0x140483cd4\nretn                                                                   ; +0x75, 0x140483cd5", "xrefs": ["MusicDownloadManager::downloadSong @ 0x140483d50", "MusicDownloadManager::downloadCustomSong @ 0x14048c49f", "<???> @ 0x140928a78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}