{"type": "func", "start": 5369539232, "end": 5369539366, "name": "CustomSongWidget::onCancelDownload", "pseudocode": "// \n// CustomSongWidget::onCancelDownload from 0x1400caaa0 to 0x1400cab26 (134 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::init @ 0x1400c8855\n// > <???> @ 0x1406c82e0\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::onCancelDownload(CustomSongWidget *a1, cocos2d::CCObject *a2)\n{\n  int m_customSongID; // ebx\n  MusicDownloadManager *v4; // rsi\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rbx\n  __int64 AchievementsWithID; // rax\n\n  m_customSongID = a1->m_customSongID;\n  v4 = MusicDownloadManager::sharedState();\n  v5 = cocos2d::CCString::createWithFormat(\"d_%i\", m_customSongID);\n  CString = cocos2d::CCString::getCString(v5);\n  AchievementsWithID = AchievementManager::getAchievementsWithID((__int64)v4, (__int64)CString);\n  if ( AchievementsWithID )\n    *(_BYTE *)(AchievementsWithID + 204) = 1;\n  MusicDownloadManager::removeDLFromActive(v4, CString);\n  a1->downloadSongFailed(&a1->MusicDownloadDelegate, a1->m_customSongID, DownloadCancelled);\n}", "assembly": "; \n; CustomSongWidget::onCancelDownload from 0x1400caaa0 to 0x1400cab26 (134 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::init @ 0x1400c8855\n; > <???> @ 0x1406c82e0\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, 0x1400caaa0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400caaa5\npush    rdi                                                            ; +0xa, 0x1400caaaa\nsub     rsp, 20h                                                       ; +0xb, 0x1400caaab\nmov     ebx, [rcx+1F0h]                                                ; +0xf, 0x1400caaaf\nmov     rdi, rcx                                                       ; +0x15, 0x1400caab5\ncall    MusicDownloadManager__sharedState                              ; +0x18, 0x1400caab8\nmov     edx, ebx                                                       ; +0x1d, 0x1400caabd\nlea     rcx, aDI; \"d_%i\"                                               ; +0x1f, 0x1400caabf\nmov     rsi, rax                                                       ; +0x26, 0x1400caac6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x29, 0x1400caac9\nmov     rcx, rax                                                       ; +0x2f, 0x1400caacf\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x32, 0x1400caad2\nmov     rdx, rax                                                       ; +0x38, 0x1400caad8\nmov     rcx, rsi                                                       ; +0x3b, 0x1400caadb\nmov     rbx, rax                                                       ; +0x3e, 0x1400caade\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x41, 0x1400caae1\ntest    rax, rax                                                       ; +0x46, 0x1400caae6\njz      short loc_1400CAAF2                                            ; +0x49, 0x1400caae9\nmov     byte ptr [rax+0CCh], 1                                         ; +0x4b, 0x1400caaeb\nmov     rdx, rbx                                                       ; +0x52, 0x1400caaf2\nmov     rcx, rsi                                                       ; +0x55, 0x1400caaf5\ncall    MusicDownloadManager__removeDLFromActive                       ; +0x58, 0x1400caaf8\nmov     edx, [rdi+1F0h]                                                ; +0x5d, 0x1400caafd\nlea     rcx, [rdi+140h]                                                ; +0x63, 0x1400cab03\nmov     rax, [rcx]                                                     ; +0x6a, 0x1400cab0a\nmov     r8d, 3                                                         ; +0x6d, 0x1400cab0d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x73, 0x1400cab13\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x78, 0x1400cab18\nadd     rsp, 20h                                                       ; +0x7d, 0x1400cab1d\npop     rdi                                                            ; +0x81, 0x1400cab21\njmp     qword ptr [rax+20h]                                            ; +0x82, 0x1400cab22", "xrefs": ["CustomSongWidget::init @ 0x1400c8855", "<???> @ 0x1406c82e0"], "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"}