{"type": "func", "start": 5370157072, "end": 5370157382, "name": "CustomSFXWidget::onDelete", "pseudocode": "// \n// CustomSFXWidget::onDelete from 0x140161810 to 0x140161946 (310 bytes)\n// \n// 3 xrefs:\n// > CustomSFXWidget::init @ 0x140160a01\n// > <???> @ 0x140917cd8\n// > <???> @ 0x140917ce4\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:25 +0000\n// \n\nvoid __fastcall CustomSFXWidget::onDelete(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int128 v4; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v5; // [rsp+60h] [rbp-38h]\n  __int64 v6; // [rsp+68h] [rbp-30h]\n  _BYTE v7[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( *(_QWORD *)(a1 + 336) )\n  {\n    v1 = a1 + 328;\n    if ( !a1 )\n      v1 = 0;\n    v4 = 0;\n    *(_QWORD *)&v4 = sub_14003D460(0x30u);\n    v5 = 39;\n    v6 = 47;\n    strcpy((char *)v4, \"Do you want to <cr>Delete</c> this SFX?\");\n    v2 = sub_14003F4F0((__int64)v7, (__int64)&v4);\n    v3 = FLAlertLayer::create(\n           v1,\n           (int)\"Delete SFX\",\n           v2,\n           (__int64)\"Cancel\",\n           (__int64)\"Delete\",\n           1133903872,\n           0,\n           0,\n           1065353216);\n    sub_14003D310((__int64)&v4);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 3);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n  }\n}", "assembly": "; \n; CustomSFXWidget::onDelete from 0x140161810 to 0x140161946 (310 bytes)\n; \n; 3 xrefs:\n; > CustomSFXWidget::init @ 0x140160a01\n; > <???> @ 0x140917cd8\n; > <???> @ 0x140917ce4\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:25 +0000\n; \npush    rbx                                                            ; +0x0, 0x140161810\nsub     rsp, 90h                                                       ; +0x2, 0x140161812\ncmp     qword ptr [rcx+150h], 0                                        ; +0x9, 0x140161819\njz      loc_14016193D                                                  ; +0x11, 0x140161821\nlea     rbx, [rcx+148h]                                                ; +0x17, 0x140161827\nxor     eax, eax                                                       ; +0x1e, 0x14016182e\ntest    rcx, rcx                                                       ; +0x20, 0x140161830\ncmovz   rbx, rax                                                       ; +0x23, 0x140161833\nxorps   xmm0, xmm0                                                     ; +0x27, 0x140161837\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x2a, 0x14016183a\nmov     [rsp+98h+var_38], rax                                          ; +0x2f, 0x14016183f\nmov     [rsp+98h+var_30], rax                                          ; +0x34, 0x140161844\nmov     ecx, 30h ; '0'                                                 ; +0x39, 0x140161849\ncall    sub_14003D460                                                  ; +0x3e, 0x14016184e\nmov     rdx, rax                                                       ; +0x43, 0x140161853\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x46, 0x140161856\nmov     [rsp+98h+var_38], 27h ; '''                                    ; +0x4b, 0x14016185b\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x54, 0x140161864\nmovups  xmm0, cs:xmmword_140741B28                                     ; +0x5d, 0x14016186d\nmovups  xmmword ptr [rax], xmm0                                        ; +0x64, 0x140161874\nmovups  xmm1, cs:xmmword_140741B38                                     ; +0x67, 0x140161877\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6e, 0x14016187e\nmov     ecx, cs:dword_140741B48                                        ; +0x72, 0x140161882\nmov     [rax+20h], ecx                                                 ; +0x78, 0x140161888\nmovzx   ecx, cs:word_140741B4C                                         ; +0x7b, 0x14016188b\nmov     [rax+24h], cx                                                  ; +0x82, 0x140161892\nmovzx   eax, cs:byte_140741B4E                                         ; +0x86, 0x140161896\nmov     [rdx+26h], al                                                  ; +0x8d, 0x14016189d\nmov     byte ptr [rdx+27h], 0                                          ; +0x90, 0x1401618a0\nlea     rax, [rsp+98h+var_48]                                          ; +0x94, 0x1401618a4\nmov     [rsp+98h+arg_0], rax                                           ; +0x99, 0x1401618a9\nlea     rdx, [rsp+98h+var_48]                                          ; +0xa1, 0x1401618b1\nlea     rcx, [rsp+98h+var_28]                                          ; +0xa6, 0x1401618b6\ncall    sub_14003F4F0                                                  ; +0xab, 0x1401618bb\nmovss   xmm0, cs:flt_140835080                                         ; +0xb0, 0x1401618c0\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xb8, 0x1401618c8\nxorps   xmm1, xmm1                                                     ; +0xbe, 0x1401618ce\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xc1, 0x1401618d1\nmov     [rsp+98h+var_68], 0                                            ; +0xc7, 0x1401618d7\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xcc, 0x1401618dc\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xd4, 0x1401618e4\nlea     rcx, aDelete_0; \"Delete\"                                       ; +0xda, 0x1401618ea\nmov     [rsp+98h+var_78], rcx                                          ; +0xe1, 0x1401618f1\nlea     r9, aCancel; \"Cancel\"                                          ; +0xe6, 0x1401618f6\nmov     r8, rax                                                        ; +0xed, 0x1401618fd\nlea     rdx, aDeleteSfx; \"Delete SFX\"                                  ; +0xf0, 0x140161900\nmov     rcx, rbx                                                       ; +0xf7, 0x140161907\ncall    FLAlertLayer__create                                           ; +0xfa, 0x14016190a\nmov     rbx, rax                                                       ; +0xff, 0x14016190f\nlea     rcx, [rsp+98h+var_48]                                          ; +0x102, 0x140161912\ncall    sub_14003D310                                                  ; +0x107, 0x140161917\nmov     rcx, [rbx]                                                     ; +0x10c, 0x14016191c\nmov     r8, [rcx+40h]                                                  ; +0x10f, 0x14016191f\nmov     edx, 3                                                         ; +0x113, 0x140161923\nmov     rcx, rbx                                                       ; +0x118, 0x140161928\ncall    r8                                                             ; +0x11b, 0x14016192b\nmov     rcx, [rbx]                                                     ; +0x11e, 0x14016192e\nmov     rdx, [rcx+428h]                                                ; +0x121, 0x140161931\nmov     rcx, rbx                                                       ; +0x128, 0x140161938\ncall    rdx                                                            ; +0x12b, 0x14016193b\nadd     rsp, 90h                                                       ; +0x12d, 0x14016193d\npop     rbx                                                            ; +0x134, 0x140161944\nretn                                                                   ; +0x135, 0x140161945", "xrefs": ["CustomSFXWidget::init @ 0x140160a01", "<???> @ 0x140917cd8", "<???> @ 0x140917ce4"], "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"}