{"type": "func", "start": 5369541520, "end": 5369541687, "name": "CustomSongWidget::updateDownloadProgress", "pseudocode": "// \n// CustomSongWidget::updateDownloadProgress from 0x1400cb390 to 0x1400cb437 (167 bytes)\n// \n// 7 xrefs:\n// > CustomSongWidget::startDownload @ 0x1400cae1b\n// > CustomSongWidget::startDownload @ 0x1400cae33\n// > CustomSongWidget::updateDownloadProgress @ 0x1400cb410\n// > CustomSongWidget::loadSongInfoFailed @ 0x1400ccebd\n// > CustomSongWidget::downloadSongFailed @ 0x1400cd034\n// > CustomSongWidget::musicActionFailed @ 0x1400cd67f\n// > <???> @ 0x1406c8334\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 CustomSongWidget::updateDownloadProgress(CustomSongWidget *a1, float a2)\n{\n  int m_songID; // ebx\n  MusicDownloadManager *v4; // rdi\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  __int64 AchievementsWithID; // rax\n  int v8; // edx\n\n  m_songID = a1->m_songInfoObject->m_songID;\n  v4 = MusicDownloadManager::sharedState();\n  v5 = cocos2d::CCString::createWithFormat(\"d_%i\", m_songID);\n  CString = cocos2d::CCString::getCString(v5);\n  AchievementsWithID = AchievementManager::getAchievementsWithID((__int64)v4, (__int64)CString);\n  v8 = -1;\n  if ( AchievementsWithID )\n    v8 = *(_DWORD *)(AchievementsWithID + 208);\n  if ( !a1->m_songInfoObject || v8 == -1 )\n  {\n    cocos2d::CCNode::unschedule(a1, CustomSongWidget::updateDownloadProgress);\n    CustomSongWidget::updateSongInfo(a1);\n  }\n  else\n  {\n    CustomSongWidget::updateProgressBar(a1, v8);\n  }\n}", "assembly": "; \n; CustomSongWidget::updateDownloadProgress from 0x1400cb390 to 0x1400cb437 (167 bytes)\n; \n; 7 xrefs:\n; > CustomSongWidget::startDownload @ 0x1400cae1b\n; > CustomSongWidget::startDownload @ 0x1400cae33\n; > CustomSongWidget::updateDownloadProgress @ 0x1400cb410\n; > CustomSongWidget::loadSongInfoFailed @ 0x1400ccebd\n; > CustomSongWidget::downloadSongFailed @ 0x1400cd034\n; > CustomSongWidget::musicActionFailed @ 0x1400cd67f\n; > <???> @ 0x1406c8334\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, 0x1400cb390\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400cb395\npush    rdi                                                            ; +0xa, 0x1400cb39a\nsub     rsp, 20h                                                       ; +0xb, 0x1400cb39b\nmov     rax, [rcx+150h]                                                ; +0xf, 0x1400cb39f\nmov     rsi, rcx                                                       ; +0x16, 0x1400cb3a6\nmov     ebx, [rax+140h]                                                ; +0x19, 0x1400cb3a9\ncall    MusicDownloadManager__sharedState                              ; +0x1f, 0x1400cb3af\nmov     edx, ebx                                                       ; +0x24, 0x1400cb3b4\nlea     rcx, aDI; \"d_%i\"                                               ; +0x26, 0x1400cb3b6\nmov     rdi, rax                                                       ; +0x2d, 0x1400cb3bd\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x30, 0x1400cb3c0\nmov     rcx, rax                                                       ; +0x36, 0x1400cb3c6\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x39, 0x1400cb3c9\nmov     rdx, rax                                                       ; +0x3f, 0x1400cb3cf\nmov     rcx, rdi                                                       ; +0x42, 0x1400cb3d2\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x45, 0x1400cb3d5\nmov     edx, 0FFFFFFFFh                                                ; +0x4a, 0x1400cb3da\ntest    rax, rax                                                       ; +0x4f, 0x1400cb3df\njz      short loc_1400CB3EA                                            ; +0x52, 0x1400cb3e2\nmov     edx, [rax+0D0h]                                                ; +0x54, 0x1400cb3e4\ncmp     qword ptr [rsi+150h], 0                                        ; +0x5a, 0x1400cb3ea\njz      short loc_1400CB410                                            ; +0x62, 0x1400cb3f2\ncmp     edx, 0FFFFFFFFh                                                ; +0x64, 0x1400cb3f4\njz      short loc_1400CB410                                            ; +0x67, 0x1400cb3f7\nmov     rcx, rsi                                                       ; +0x69, 0x1400cb3f9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6c, 0x1400cb3fc\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x71, 0x1400cb401\nadd     rsp, 20h                                                       ; +0x76, 0x1400cb406\npop     rdi                                                            ; +0x7a, 0x1400cb40a\njmp     CustomSongWidget__updateProgressBar                            ; +0x7b, 0x1400cb40b\nlea     rdx, CustomSongWidget__updateDownloadProgress                  ; +0x80, 0x1400cb410\nmov     rcx, rsi                                                       ; +0x87, 0x1400cb417\ncall    cs:?unschedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x8a, 0x1400cb41a\nmov     rcx, rsi                                                       ; +0x90, 0x1400cb420\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x93, 0x1400cb423\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x98, 0x1400cb428\nadd     rsp, 20h                                                       ; +0x9d, 0x1400cb42d\npop     rdi                                                            ; +0xa1, 0x1400cb431\njmp     CustomSongWidget__updateSongInfo                               ; +0xa2, 0x1400cb432", "xrefs": ["CustomSongWidget::startDownload @ 0x1400cae1b", "CustomSongWidget::startDownload @ 0x1400cae33", "CustomSongWidget::updateDownloadProgress @ 0x1400cb410", "CustomSongWidget::loadSongInfoFailed @ 0x1400ccebd", "CustomSongWidget::downloadSongFailed @ 0x1400cd034", "CustomSongWidget::musicActionFailed @ 0x1400cd67f", "<???> @ 0x1406c8334"], "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"}