{"type": "func", "start": 5370187616, "end": 5370187860, "name": "CustomSongWidget::dCustomSongWidget", "pseudocode": "// \n// CustomSongWidget::dCustomSongWidget from 0x140168f60 to 0x140169054 (244 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140744918\n// > <???> @ 0x14091805c\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:28 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar *__fastcall CustomSongWidget::dCustomSongWidget(char *Block, char a2)\n{\n  __int64 v4; // rcx\n  void *v5; // rax\n  cocos2d::CCObject *v6; // rcx\n\n  *(_QWORD *)Block = &CustomSongWidget::`vftable';\n  *((_QWORD *)Block + 40) = &CustomSongWidget::`vftable';\n  *((_QWORD *)Block + 41) = &CustomSongWidget::`vftable';\n  v4 = qword_14090C070;\n  if ( !qword_14090C070 )\n  {\n    v5 = operator new(0x3D0u);\n    qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n    v4 = qword_14090C070;\n  }\n  MusicDownloadManager::removeMusicDownloadDelegate(v4, Block + 320);\n  v6 = *((cocos2d::CCObject **)Block + 42);\n  if ( v6 )\n    cocos2d::CCObject::release(v6);\n  sub_1400BD560((void **)Block + 77, (__int64)(Block + 616));\n  sub_1400C6AA0((__int64)(Block + 584));\n  sub_140080450((void **)Block + 71);\n  sub_140080450((void **)Block + 69);\n  cocos2d::CCNode::~CCNode((cocos2d::CCNode *)Block);\n  if ( (a2 & 1) != 0 )\n    j_j_free(Block);\n  return Block;\n}", "assembly": "; \n; CustomSongWidget::dCustomSongWidget from 0x140168f60 to 0x140169054 (244 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140744918\n; > <???> @ 0x14091805c\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:28 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140168f60\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140168f65\npush    rdi                                                            ; +0xa, 0x140168f6a\nsub     rsp, 20h                                                       ; +0xb, 0x140168f6b\nmov     esi, edx                                                       ; +0xf, 0x140168f6f\nmov     rbx, rcx                                                       ; +0x11, 0x140168f71\nlea     rax, ??_7CustomSongWidget@@6B@; const CustomSongWidget::`vftable' ; +0x14, 0x140168f74\nmov     [rcx], rax                                                     ; +0x1b, 0x140168f7b\nlea     rax, ??_7CustomSongWidget@@6B@_0; const CustomSongWidget::`vftable' ; +0x1e, 0x140168f7e\nmov     [rcx+140h], rax                                                ; +0x25, 0x140168f85\nlea     rax, ??_7CustomSongWidget@@6B@_1; const CustomSongWidget::`vftable' ; +0x2c, 0x140168f8c\nmov     [rcx+148h], rax                                                ; +0x33, 0x140168f93\nmov     rcx, cs:qword_14090C070                                        ; +0x3a, 0x140168f9a\ntest    rcx, rcx                                                       ; +0x41, 0x140168fa1\njnz     short loc_140168FD3                                            ; +0x44, 0x140168fa4\nmov     ecx, 3D0h; Size                                                ; +0x46, 0x140168fa6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4b, 0x140168fab\nmov     rcx, rax                                                       ; +0x50, 0x140168fb0\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x53, 0x140168fb3\nmov     cs:qword_14090C070, rax                                        ; +0x58, 0x140168fb8\nmov     rcx, [rax]                                                     ; +0x5f, 0x140168fbf\nmov     r8, [rcx+48h]                                                  ; +0x62, 0x140168fc2\nmov     rcx, rax                                                       ; +0x66, 0x140168fc6\ncall    r8                                                             ; +0x69, 0x140168fc9\nmov     rcx, cs:qword_14090C070                                        ; +0x6c, 0x140168fcc\nlea     rdx, [rbx+140h]                                                ; +0x73, 0x140168fd3\ncall    MusicDownloadManager__removeMusicDownloadDelegate              ; +0x7a, 0x140168fda\nmov     rcx, [rbx+150h]                                                ; +0x7f, 0x140168fdf\ntest    rcx, rcx                                                       ; +0x86, 0x140168fe6\njz      short loc_140168FF1                                            ; +0x89, 0x140168fe9\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8b, 0x140168feb\nlea     rcx, [rbx+268h]                                                ; +0x91, 0x140168ff1\nmov     rdx, rcx                                                       ; +0x98, 0x140168ff8\ncall    sub_1400BD560                                                  ; +0x9b, 0x140168ffb\nlea     rcx, [rbx+248h]                                                ; +0xa0, 0x140169000\ncall    sub_1400C6AA0                                                  ; +0xa7, 0x140169007\nlea     rcx, [rbx+238h]                                                ; +0xac, 0x14016900c\ncall    sub_140080450                                                  ; +0xb3, 0x140169013\nlea     rcx, [rbx+228h]                                                ; +0xb8, 0x140169018\ncall    sub_140080450                                                  ; +0xbf, 0x14016901f\nmov     rcx, rbx                                                       ; +0xc4, 0x140169024\ncall    cs:__imp_??1CCNode@cocos2d@@UEAA@XZ; cocos2d::CCNode::~CCNode(void) ; +0xc7, 0x140169027\nnop                                                                    ; +0xcd, 0x14016902d\ntest    sil, 1                                                         ; +0xce, 0x14016902e\njz      short loc_140169041                                            ; +0xd2, 0x140169032\nmov     edx, 278h                                                      ; +0xd4, 0x140169034\nmov     rcx, rbx; Block                                                ; +0xd9, 0x140169039\ncall    j_j_free                                                       ; +0xdc, 0x14016903c\nmov     rax, rbx                                                       ; +0xe1, 0x140169041\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe4, 0x140169044\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xe9, 0x140169049\nadd     rsp, 20h                                                       ; +0xee, 0x14016904e\npop     rdi                                                            ; +0xf2, 0x140169052\nretn                                                                   ; +0xf3, 0x140169053", "xrefs": ["<???> @ 0x140744918", "<???> @ 0x14091805c"], "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"}