{"type": "func", "start": 5370200704, "end": 5370200908, "name": "CustomSongWidget::updateDownloadProgress", "pseudocode": "// \n// CustomSongWidget::updateDownloadProgress from 0x14016c280 to 0x14016c34c (204 bytes)\n// \n// 7 xrefs:\n// > CustomSongWidget::startMonitorDownload @ 0x14016bbfe\n// > CustomSongWidget::startMonitorDownload @ 0x14016bc16\n// > CustomSongWidget::updateDownloadProgress @ 0x14016c32a\n// > CustomSongWidget::loadSongInfoFailed @ 0x14016e13b\n// > CustomSongWidget::downloadSongFailed @ 0x14016e2a4\n// > CustomSongWidget::musicActionFailed @ 0x14016e9c7\n// > <???> @ 0x140918164\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:27:29 +0000\n// \n\n__int64 __fastcall CustomSongWidget::updateDownloadProgress(__int64 a1)\n{\n  __int64 v2; // rdi\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  __int64 AchievementsWithID; // rax\n  int v6; // edx\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  v2 = qword_14090C070;\n  if ( !qword_14090C070 )\n  {\n    v8 = operator new(0x3D0u);\n    qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n    v2 = qword_14090C070;\n  }\n  v3 = cocos2d::CCString::createWithFormat(\"d_%i\", *(_DWORD *)(*(_QWORD *)(a1 + 336) + 320LL));\n  CString = cocos2d::CCString::getCString(v3);\n  AchievementsWithID = AchievementManager::getAchievementsWithID(v2, (__int64)CString);\n  v6 = -1;\n  if ( AchievementsWithID )\n    v6 = *(_DWORD *)(AchievementsWithID + 208);\n  if ( *(_QWORD *)(a1 + 336) && v6 != -1 )\n    return CustomSFXWidget::updateProgressBar(a1, v6);\n  cocos2d::CCNode::unschedule(a1, CustomSongWidget::updateDownloadProgress);\n  return CustomSongWidget::updateSongInfo(a1);\n}", "assembly": "; \n; CustomSongWidget::updateDownloadProgress from 0x14016c280 to 0x14016c34c (204 bytes)\n; \n; 7 xrefs:\n; > CustomSongWidget::startMonitorDownload @ 0x14016bbfe\n; > CustomSongWidget::startMonitorDownload @ 0x14016bc16\n; > CustomSongWidget::updateDownloadProgress @ 0x14016c32a\n; > CustomSongWidget::loadSongInfoFailed @ 0x14016e13b\n; > CustomSongWidget::downloadSongFailed @ 0x14016e2a4\n; > CustomSongWidget::musicActionFailed @ 0x14016e9c7\n; > <???> @ 0x140918164\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:27:29 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14016c280\npush    rdi                                                            ; +0x5, 0x14016c285\nsub     rsp, 20h                                                       ; +0x6, 0x14016c286\nmov     rbx, rcx                                                       ; +0xa, 0x14016c28a\nmov     rdi, cs:qword_14090C070                                        ; +0xd, 0x14016c28d\ntest    rdi, rdi                                                       ; +0x14, 0x14016c294\njnz     short loc_14016C2CB                                            ; +0x17, 0x14016c297\nmov     ecx, 3D0h; Size                                                ; +0x19, 0x14016c299\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x14016c29e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x14016c2a3\nmov     rcx, rax                                                       ; +0x28, 0x14016c2a8\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x2b, 0x14016c2ab\nnop                                                                    ; +0x30, 0x14016c2b0\nmov     cs:qword_14090C070, rax                                        ; +0x31, 0x14016c2b1\nmov     rcx, [rax]                                                     ; +0x38, 0x14016c2b8\nmov     rdx, [rcx+48h]                                                 ; +0x3b, 0x14016c2bb\nmov     rcx, rax                                                       ; +0x3f, 0x14016c2bf\ncall    rdx                                                            ; +0x42, 0x14016c2c2\nmov     rdi, cs:qword_14090C070                                        ; +0x44, 0x14016c2c4\nmov     rdx, [rbx+150h]                                                ; +0x4b, 0x14016c2cb\nmov     edx, [rdx+140h]                                                ; +0x52, 0x14016c2d2\nlea     rcx, aDI; \"d_%i\"                                               ; +0x58, 0x14016c2d8\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x5f, 0x14016c2df\nmov     rcx, rax                                                       ; +0x65, 0x14016c2e5\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x68, 0x14016c2e8\nmov     rdx, rax                                                       ; +0x6e, 0x14016c2ee\nmov     rcx, rdi                                                       ; +0x71, 0x14016c2f1\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x74, 0x14016c2f4\ntest    rax, rax                                                       ; +0x79, 0x14016c2f9\nmov     edx, 0FFFFFFFFh                                                ; +0x7c, 0x14016c2fc\njz      short loc_14016C309                                            ; +0x81, 0x14016c301\nmov     edx, [rax+0D0h]                                                ; +0x83, 0x14016c303\ncmp     qword ptr [rbx+150h], 0                                        ; +0x89, 0x14016c309\njz      short loc_14016C32A                                            ; +0x91, 0x14016c311\ncmp     edx, 0FFFFFFFFh                                                ; +0x93, 0x14016c313\njz      short loc_14016C32A                                            ; +0x96, 0x14016c316\nmov     rcx, rbx                                                       ; +0x98, 0x14016c318\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9b, 0x14016c31b\nadd     rsp, 20h                                                       ; +0xa0, 0x14016c320\npop     rdi                                                            ; +0xa4, 0x14016c324\njmp     CustomSFXWidget__updateProgressBar; Merged with: CustomSFXWidget::updateProgressBar, CustomSongWidget::updateProgressBar ; +0xa5, 0x14016c325\nlea     rdx, CustomSongWidget__updateDownloadProgress                  ; +0xaa, 0x14016c32a\nmov     rcx, rbx                                                       ; +0xb1, 0x14016c331\ncall    cs:?unschedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0xb4, 0x14016c334\nmov     rcx, rbx                                                       ; +0xba, 0x14016c33a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbd, 0x14016c33d\nadd     rsp, 20h                                                       ; +0xc2, 0x14016c342\npop     rdi                                                            ; +0xc6, 0x14016c346\njmp     CustomSongWidget__updateSongInfo                               ; +0xc7, 0x14016c347", "xrefs": ["CustomSongWidget::startMonitorDownload @ 0x14016bbfe", "CustomSongWidget::startMonitorDownload @ 0x14016bc16", "CustomSongWidget::updateDownloadProgress @ 0x14016c32a", "CustomSongWidget::loadSongInfoFailed @ 0x14016e13b", "CustomSongWidget::downloadSongFailed @ 0x14016e2a4", "CustomSongWidget::musicActionFailed @ 0x14016e9c7", "<???> @ 0x140918164"], "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"}