{"type": "func", "start": 5369503264, "end": 5369503428, "name": "CustomSFXWidget::updateDownloadProgress", "pseudocode": "// \n// CustomSFXWidget::updateDownloadProgress from 0x1400c1e20 to 0x1400c1ec4 (164 bytes)\n// \n// 5 xrefs:\n// > CustomSFXWidget::startMonitorDownload @ 0x1400c1ba1\n// > CustomSFXWidget::startMonitorDownload @ 0x1400c1bb9\n// > CustomSFXWidget::updateDownloadProgress @ 0x1400c1e9d\n// > CustomSFXWidget::downloadSFXFailed @ 0x1400c2741\n// > <???> @ 0x1406c7fa4\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 CustomSFXWidget::updateDownloadProgress(CustomSFXWidget *a1, float a2)\n{\n  int m_sfxID; // 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_sfxID = a1->m_sfxObject->m_sfxID;\n  v4 = MusicDownloadManager::sharedState();\n  v5 = cocos2d::CCString::createWithFormat(\"sfx_%i\", m_sfxID);\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_sfxObject || v8 == -1 )\n  {\n    cocos2d::CCNode::unschedule(a1, CustomSFXWidget::updateDownloadProgress);\n    CustomSFXWidget::updateSFXInfo(a1);\n  }\n  else\n  {\n    CustomSFXWidget::updateProgressBar(a1, v8);\n  }\n}", "assembly": "; \n; CustomSFXWidget::updateDownloadProgress from 0x1400c1e20 to 0x1400c1ec4 (164 bytes)\n; \n; 5 xrefs:\n; > CustomSFXWidget::startMonitorDownload @ 0x1400c1ba1\n; > CustomSFXWidget::startMonitorDownload @ 0x1400c1bb9\n; > CustomSFXWidget::updateDownloadProgress @ 0x1400c1e9d\n; > CustomSFXWidget::downloadSFXFailed @ 0x1400c2741\n; > <???> @ 0x1406c7fa4\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, 0x1400c1e20\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400c1e25\npush    rdi                                                            ; +0xa, 0x1400c1e2a\nsub     rsp, 20h                                                       ; +0xb, 0x1400c1e2b\nmov     rax, [rcx+150h]                                                ; +0xf, 0x1400c1e2f\nmov     rsi, rcx                                                       ; +0x16, 0x1400c1e36\nmov     ebx, [rax+38h]                                                 ; +0x19, 0x1400c1e39\ncall    MusicDownloadManager__sharedState                              ; +0x1c, 0x1400c1e3c\nmov     edx, ebx                                                       ; +0x21, 0x1400c1e41\nlea     rcx, aSfxI; \"sfx_%i\"                                           ; +0x23, 0x1400c1e43\nmov     rdi, rax                                                       ; +0x2a, 0x1400c1e4a\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2d, 0x1400c1e4d\nmov     rcx, rax                                                       ; +0x33, 0x1400c1e53\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x36, 0x1400c1e56\nmov     rdx, rax                                                       ; +0x3c, 0x1400c1e5c\nmov     rcx, rdi                                                       ; +0x3f, 0x1400c1e5f\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x42, 0x1400c1e62\nmov     edx, 0FFFFFFFFh                                                ; +0x47, 0x1400c1e67\ntest    rax, rax                                                       ; +0x4c, 0x1400c1e6c\njz      short loc_1400C1E77                                            ; +0x4f, 0x1400c1e6f\nmov     edx, [rax+0D0h]                                                ; +0x51, 0x1400c1e71\ncmp     qword ptr [rsi+150h], 0                                        ; +0x57, 0x1400c1e77\njz      short loc_1400C1E9D                                            ; +0x5f, 0x1400c1e7f\ncmp     edx, 0FFFFFFFFh                                                ; +0x61, 0x1400c1e81\njz      short loc_1400C1E9D                                            ; +0x64, 0x1400c1e84\nmov     rcx, rsi                                                       ; +0x66, 0x1400c1e86\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x69, 0x1400c1e89\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6e, 0x1400c1e8e\nadd     rsp, 20h                                                       ; +0x73, 0x1400c1e93\npop     rdi                                                            ; +0x77, 0x1400c1e97\njmp     CustomSFXWidget__updateProgressBar                             ; +0x78, 0x1400c1e98\nlea     rdx, CustomSFXWidget__updateDownloadProgress                   ; +0x7d, 0x1400c1e9d\nmov     rcx, rsi                                                       ; +0x84, 0x1400c1ea4\ncall    cs:?unschedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0x87, 0x1400c1ea7\nmov     rcx, rsi                                                       ; +0x8d, 0x1400c1ead\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x90, 0x1400c1eb0\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x95, 0x1400c1eb5\nadd     rsp, 20h                                                       ; +0x9a, 0x1400c1eba\npop     rdi                                                            ; +0x9e, 0x1400c1ebe\njmp     CustomSFXWidget__updateSFXInfo                                 ; +0x9f, 0x1400c1ebf", "xrefs": ["CustomSFXWidget::startMonitorDownload @ 0x1400c1ba1", "CustomSFXWidget::startMonitorDownload @ 0x1400c1bb9", "CustomSFXWidget::updateDownloadProgress @ 0x1400c1e9d", "CustomSFXWidget::downloadSFXFailed @ 0x1400c2741", "<???> @ 0x1406c7fa4"], "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"}