{"type": "func", "start": 5370150464, "end": 5370150657, "name": "CustomSFXWidget::dCustomSFXWidget", "pseudocode": "// \n// CustomSFXWidget::dCustomSFXWidget from 0x14015fe40 to 0x14015ff01 (193 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140742148\n// > <???> @ 0x140917ca8\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:24 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCNode *__fastcall CustomSFXWidget::dCustomSFXWidget(cocos2d::CCNode *Block, char a2)\n{\n  __int64 v4; // rcx\n  void *v5; // rax\n  cocos2d::CCObject *v6; // rcx\n\n  *(_QWORD *)Block = &CustomSFXWidget::`vftable';\n  *((_QWORD *)Block + 40) = &CustomSFXWidget::`vftable';\n  *((_QWORD *)Block + 41) = &CustomSFXWidget::`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, (char *)Block + 320);\n  v6 = *((cocos2d::CCObject **)Block + 42);\n  if ( v6 )\n    cocos2d::CCObject::release(v6);\n  cocos2d::CCNode::~CCNode(Block);\n  if ( (a2 & 1) != 0 )\n    j_j_free(Block);\n  return Block;\n}", "assembly": "; \n; CustomSFXWidget::dCustomSFXWidget from 0x14015fe40 to 0x14015ff01 (193 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140742148\n; > <???> @ 0x140917ca8\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:24 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14015fe40\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14015fe45\npush    rdi                                                            ; +0xa, 0x14015fe4a\nsub     rsp, 20h                                                       ; +0xb, 0x14015fe4b\nmov     esi, edx                                                       ; +0xf, 0x14015fe4f\nmov     rbx, rcx                                                       ; +0x11, 0x14015fe51\nlea     rax, ??_7CustomSFXWidget@@6B@; const CustomSFXWidget::`vftable' ; +0x14, 0x14015fe54\nmov     [rcx], rax                                                     ; +0x1b, 0x14015fe5b\nlea     rax, ??_7CustomSFXWidget@@6B@_0; const CustomSFXWidget::`vftable' ; +0x1e, 0x14015fe5e\nmov     [rcx+140h], rax                                                ; +0x25, 0x14015fe65\nlea     rax, ??_7CustomSFXWidget@@6B@_1; const CustomSFXWidget::`vftable' ; +0x2c, 0x14015fe6c\nmov     [rcx+148h], rax                                                ; +0x33, 0x14015fe73\nmov     rcx, cs:qword_14090C070                                        ; +0x3a, 0x14015fe7a\ntest    rcx, rcx                                                       ; +0x41, 0x14015fe81\njnz     short loc_14015FEB3                                            ; +0x44, 0x14015fe84\nmov     ecx, 3D0h; Size                                                ; +0x46, 0x14015fe86\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4b, 0x14015fe8b\nmov     rcx, rax                                                       ; +0x50, 0x14015fe90\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x53, 0x14015fe93\nmov     cs:qword_14090C070, rax                                        ; +0x58, 0x14015fe98\nmov     rcx, [rax]                                                     ; +0x5f, 0x14015fe9f\nmov     r8, [rcx+48h]                                                  ; +0x62, 0x14015fea2\nmov     rcx, rax                                                       ; +0x66, 0x14015fea6\ncall    r8                                                             ; +0x69, 0x14015fea9\nmov     rcx, cs:qword_14090C070                                        ; +0x6c, 0x14015feac\nlea     rdx, [rbx+140h]                                                ; +0x73, 0x14015feb3\ncall    MusicDownloadManager__removeMusicDownloadDelegate              ; +0x7a, 0x14015feba\nmov     rcx, [rbx+150h]                                                ; +0x7f, 0x14015febf\ntest    rcx, rcx                                                       ; +0x86, 0x14015fec6\njz      short loc_14015FED1                                            ; +0x89, 0x14015fec9\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x8b, 0x14015fecb\nmov     rcx, rbx                                                       ; +0x91, 0x14015fed1\ncall    cs:__imp_??1CCNode@cocos2d@@UEAA@XZ; cocos2d::CCNode::~CCNode(void) ; +0x94, 0x14015fed4\nnop                                                                    ; +0x9a, 0x14015feda\ntest    sil, 1                                                         ; +0x9b, 0x14015fedb\njz      short loc_14015FEEE                                            ; +0x9f, 0x14015fedf\nmov     edx, 1F8h                                                      ; +0xa1, 0x14015fee1\nmov     rcx, rbx; Block                                                ; +0xa6, 0x14015fee6\ncall    j_j_free                                                       ; +0xa9, 0x14015fee9\nmov     rax, rbx                                                       ; +0xae, 0x14015feee\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb1, 0x14015fef1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb6, 0x14015fef6\nadd     rsp, 20h                                                       ; +0xbb, 0x14015fefb\npop     rdi                                                            ; +0xbf, 0x14015feff\nretn                                                                   ; +0xc0, 0x14015ff00", "xrefs": ["<???> @ 0x140742148", "<???> @ 0x140917ca8"], "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"}