{"type": "func", "start": 5370160256, "end": 5370160457, "name": "CustomSFXWidget::updateDownloadProgress", "pseudocode": "// \n// CustomSFXWidget::updateDownloadProgress from 0x140162480 to 0x140162549 (201 bytes)\n// \n// 5 xrefs:\n// > CustomSFXWidget::startMonitorDownload @ 0x140162024\n// > CustomSFXWidget::startMonitorDownload @ 0x14016203c\n// > CustomSFXWidget::updateDownloadProgress @ 0x140162527\n// > CustomSFXWidget::downloadSFXFailed @ 0x140163931\n// > <???> @ 0x140917da4\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:25 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall CustomSFXWidget::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(\"sfx_%i\", *(_DWORD *)(*(_QWORD *)(a1 + 336) + 56LL));\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);\n  cocos2d::CCNode::unschedule(a1, CustomSFXWidget::updateDownloadProgress);\n  return CustomSFXWidget::updateSFXInfo(a1);\n}", "assembly": "; \n; CustomSFXWidget::updateDownloadProgress from 0x140162480 to 0x140162549 (201 bytes)\n; \n; 5 xrefs:\n; > CustomSFXWidget::startMonitorDownload @ 0x140162024\n; > CustomSFXWidget::startMonitorDownload @ 0x14016203c\n; > CustomSFXWidget::updateDownloadProgress @ 0x140162527\n; > CustomSFXWidget::downloadSFXFailed @ 0x140163931\n; > <???> @ 0x140917da4\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:25 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140162480\npush    rdi                                                            ; +0x5, 0x140162485\nsub     rsp, 20h                                                       ; +0x6, 0x140162486\nmov     rbx, rcx                                                       ; +0xa, 0x14016248a\nmov     rdi, cs:qword_14090C070                                        ; +0xd, 0x14016248d\ntest    rdi, rdi                                                       ; +0x14, 0x140162494\njnz     short loc_1401624CB                                            ; +0x17, 0x140162497\nmov     ecx, 3D0h; Size                                                ; +0x19, 0x140162499\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x14016249e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x1401624a3\nmov     rcx, rax                                                       ; +0x28, 0x1401624a8\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x2b, 0x1401624ab\nnop                                                                    ; +0x30, 0x1401624b0\nmov     cs:qword_14090C070, rax                                        ; +0x31, 0x1401624b1\nmov     rcx, [rax]                                                     ; +0x38, 0x1401624b8\nmov     rdx, [rcx+48h]                                                 ; +0x3b, 0x1401624bb\nmov     rcx, rax                                                       ; +0x3f, 0x1401624bf\ncall    rdx                                                            ; +0x42, 0x1401624c2\nmov     rdi, cs:qword_14090C070                                        ; +0x44, 0x1401624c4\nmov     rdx, [rbx+150h]                                                ; +0x4b, 0x1401624cb\nmov     edx, [rdx+38h]                                                 ; +0x52, 0x1401624d2\nlea     rcx, aSfxI_0; \"sfx_%i\"                                         ; +0x55, 0x1401624d5\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x5c, 0x1401624dc\nmov     rcx, rax                                                       ; +0x62, 0x1401624e2\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x65, 0x1401624e5\nmov     rdx, rax                                                       ; +0x6b, 0x1401624eb\nmov     rcx, rdi                                                       ; +0x6e, 0x1401624ee\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x71, 0x1401624f1\ntest    rax, rax                                                       ; +0x76, 0x1401624f6\nmov     edx, 0FFFFFFFFh                                                ; +0x79, 0x1401624f9\njz      short loc_140162506                                            ; +0x7e, 0x1401624fe\nmov     edx, [rax+0D0h]                                                ; +0x80, 0x140162500\ncmp     qword ptr [rbx+150h], 0                                        ; +0x86, 0x140162506\njz      short loc_140162527                                            ; +0x8e, 0x14016250e\ncmp     edx, 0FFFFFFFFh                                                ; +0x90, 0x140162510\njz      short loc_140162527                                            ; +0x93, 0x140162513\nmov     rcx, rbx                                                       ; +0x95, 0x140162515\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x98, 0x140162518\nadd     rsp, 20h                                                       ; +0x9d, 0x14016251d\npop     rdi                                                            ; +0xa1, 0x140162521\njmp     CustomSFXWidget__updateProgressBar; Merged with: CustomSFXWidget::updateProgressBar, CustomSongWidget::updateProgressBar ; +0xa2, 0x140162522\nlea     rdx, CustomSFXWidget__updateDownloadProgress                   ; +0xa7, 0x140162527\nmov     rcx, rbx                                                       ; +0xae, 0x14016252e\ncall    cs:?unschedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0xb1, 0x140162531\nmov     rcx, rbx                                                       ; +0xb7, 0x140162537\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xba, 0x14016253a\nadd     rsp, 20h                                                       ; +0xbf, 0x14016253f\npop     rdi                                                            ; +0xc3, 0x140162543\njmp     CustomSFXWidget__updateSFXInfo                                 ; +0xc4, 0x140162544", "xrefs": ["CustomSFXWidget::startMonitorDownload @ 0x140162024", "CustomSFXWidget::startMonitorDownload @ 0x14016203c", "CustomSFXWidget::updateDownloadProgress @ 0x140162527", "CustomSFXWidget::downloadSFXFailed @ 0x140163931", "<???> @ 0x140917da4"], "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"}