{"type": "func", "start": 5370197584, "end": 5370197770, "name": "CustomSongWidget::onCancelDownload", "pseudocode": "// \n// CustomSongWidget::onCancelDownload from 0x14016b650 to 0x14016b70a (186 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::init @ 0x140169720\n// > <???> @ 0x1409180f8\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::onCancelDownload(__int64 a1)\n{\n  __int64 v2; // rbx\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rsi\n  __int64 AchievementsWithID; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  v2 = qword_14090C070;\n  if ( !qword_14090C070 )\n  {\n    v7 = operator new(0x3D0u);\n    qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n    v2 = qword_14090C070;\n  }\n  v3 = cocos2d::CCString::createWithFormat(\"d_%i\", *(_DWORD *)(a1 + 504));\n  CString = cocos2d::CCString::getCString(v3);\n  AchievementsWithID = AchievementManager::getAchievementsWithID(v2, (__int64)CString);\n  if ( AchievementsWithID )\n    *(_BYTE *)(AchievementsWithID + 204) = 1;\n  MusicDownloadManager::removeDLFromActive(v2, CString);\n  return (*(__int64 (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)(a1 + 320) + 32LL))(\n           a1 + 320,\n           *(unsigned int *)(a1 + 504),\n           3);\n}", "assembly": "; \n; CustomSongWidget::onCancelDownload from 0x14016b650 to 0x14016b70a (186 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::init @ 0x140169720\n; > <???> @ 0x1409180f8\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, 0x14016b650\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14016b655\npush    rdi                                                            ; +0xa, 0x14016b65a\nsub     rsp, 20h                                                       ; +0xb, 0x14016b65b\nmov     rdi, rcx                                                       ; +0xf, 0x14016b65f\nmov     rbx, cs:qword_14090C070                                        ; +0x12, 0x14016b662\ntest    rbx, rbx                                                       ; +0x19, 0x14016b669\njnz     short loc_14016B6A0                                            ; +0x1c, 0x14016b66c\nmov     ecx, 3D0h; Size                                                ; +0x1e, 0x14016b66e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x14016b673\nmov     [rsp+28h+arg_0], rax                                           ; +0x28, 0x14016b678\nmov     rcx, rax                                                       ; +0x2d, 0x14016b67d\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x30, 0x14016b680\nnop                                                                    ; +0x35, 0x14016b685\nmov     cs:qword_14090C070, rax                                        ; +0x36, 0x14016b686\nmov     rcx, [rax]                                                     ; +0x3d, 0x14016b68d\nmov     rdx, [rcx+48h]                                                 ; +0x40, 0x14016b690\nmov     rcx, rax                                                       ; +0x44, 0x14016b694\ncall    rdx                                                            ; +0x47, 0x14016b697\nmov     rbx, cs:qword_14090C070                                        ; +0x49, 0x14016b699\nmov     edx, [rdi+1F8h]                                                ; +0x50, 0x14016b6a0\nlea     rcx, aDI; \"d_%i\"                                               ; +0x56, 0x14016b6a6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x5d, 0x14016b6ad\nmov     rcx, rax                                                       ; +0x63, 0x14016b6b3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x66, 0x14016b6b6\nmov     rsi, rax                                                       ; +0x6c, 0x14016b6bc\nmov     rdx, rax                                                       ; +0x6f, 0x14016b6bf\nmov     rcx, rbx                                                       ; +0x72, 0x14016b6c2\ncall    AchievementManager__getAchievementsWithID; Merged with: AchievementManager::getAchievementsWithID, MusicDownloadManager::getDLObject ; +0x75, 0x14016b6c5\ntest    rax, rax                                                       ; +0x7a, 0x14016b6ca\njz      short loc_14016B6D6                                            ; +0x7d, 0x14016b6cd\nmov     byte ptr [rax+0CCh], 1                                         ; +0x7f, 0x14016b6cf\nmov     rdx, rsi                                                       ; +0x86, 0x14016b6d6\nmov     rcx, rbx                                                       ; +0x89, 0x14016b6d9\ncall    MusicDownloadManager__removeDLFromActive                       ; +0x8c, 0x14016b6dc\nlea     rcx, [rdi+140h]                                                ; +0x91, 0x14016b6e1\nmov     rax, [rcx]                                                     ; +0x98, 0x14016b6e8\nmov     r8d, 3                                                         ; +0x9b, 0x14016b6eb\nmov     edx, [rdi+1F8h]                                                ; +0xa1, 0x14016b6f1\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa7, 0x14016b6f7\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xac, 0x14016b6fc\nadd     rsp, 20h                                                       ; +0xb1, 0x14016b701\npop     rdi                                                            ; +0xb5, 0x14016b705\njmp     qword ptr [rax+20h]                                            ; +0xb6, 0x14016b706", "xrefs": ["CustomSongWidget::init @ 0x140169720", "<???> @ 0x1409180f8"], "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"}