{"type": "func", "start": 4301142800, "end": 4301142994, "name": "CustomSFXWidget::onDelete", "pseudocode": "// \n// CustomSFXWidget::onDelete from 0x1005e3b10 to 0x1005e3bd2 (194 bytes)\n// \n// 1 xrefs:\n// > CustomSFXWidget::init @ 0x1005e303d\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 __fastcall CustomSFXWidget::onDelete(CustomSFXWidget *a1, cocos2d::CCObject *a2)\n{\n  char *v2; // rbx\n  _QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( a1->m_sfxObject )\n  {\n    __p = operator new(0x28u);\n    v3[0] = 41;\n    v3[1] = 39;\n    strcpy((char *)__p, \"Do you want to <cr>Delete</c> this SFX?\");\n    v2 = FLAlertLayer::create_1(\n           (int)a1 + 328,\n           (int)\"Delete SFX\",\n           (__int64)v3,\n           (int)\"Cancel\",\n           (int)\"Delete\",\n           COERCE_DOUBLE(1133903872));\n    if ( (v3[0] & 1) != 0 )\n      operator delete(__p);\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v2 + 72LL))(v2, 3);\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 1288LL))(v2);\n  }\n}", "assembly": "; \n; CustomSFXWidget::onDelete from 0x1005e3b10 to 0x1005e3bd2 (194 bytes)\n; \n; 1 xrefs:\n; > CustomSFXWidget::init @ 0x1005e303d\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\npush    rbp                                                            ; +0x0, 0x1005e3b10\nmov     rbp, rsp                                                       ; +0x1, 0x1005e3b11\npush    rbx                                                            ; +0x4, 0x1005e3b14\nsub     rsp, 18h                                                       ; +0x5, 0x1005e3b15\ncmp     qword ptr [rdi+150h], 0                                        ; +0x9, 0x1005e3b19\njz      loc_1005E3BCB                                                  ; +0x11, 0x1005e3b21\nadd     rdi, 148h                                                      ; +0x17, 0x1005e3b27\nmov     rbx, rdi                                                       ; +0x1e, 0x1005e3b2e\nmov     edi, 28h ; '('; __sz                                           ; +0x21, 0x1005e3b31\ncall    __Znwm; operator new(ulong)                                    ; +0x26, 0x1005e3b36\nmov     [rbp+__p], rax                                                 ; +0x2b, 0x1005e3b3b\nmov     [rbp+var_20], 29h ; ')'                                        ; +0x2f, 0x1005e3b3f\nmov     [rbp+var_18], 27h ; '''                                        ; +0x37, 0x1005e3b47\nmov     rcx, 3F58465320736968h                                         ; +0x3f, 0x1005e3b4f\nmov     [rax+1Fh], rcx                                                 ; +0x49, 0x1005e3b59\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCrD_3+10h; \"cr>Delete</c> this SFX?\" ; +0x4d, 0x1005e3b5d\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x54, 0x1005e3b64\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCrD_3; \"Do you want to <cr>Delete</c> this SFX?\" ; +0x58, 0x1005e3b68\nmovups  xmmword ptr [rax], xmm0                                        ; +0x5f, 0x1005e3b6f\nmov     byte ptr [rax+27h], 0                                          ; +0x62, 0x1005e3b72\nlea     rsi, aDeleteSfx; \"Delete SFX\"                                  ; +0x66, 0x1005e3b76\nlea     rcx, aCancel; \"Cancel\"                                         ; +0x6d, 0x1005e3b7d\nlea     r8, aDelete_0; \"Delete\"                                        ; +0x74, 0x1005e3b84\nlea     rdx, [rbp+var_20]                                              ; +0x7b, 0x1005e3b8b\nmovss   xmm0, cs:dword_1008152B4                                       ; +0x7f, 0x1005e3b8f\nmov     rdi, rbx                                                       ; +0x87, 0x1005e3b97\ncall    FLAlertLayer__create_1                                         ; +0x8a, 0x1005e3b9a\nmov     rbx, rax                                                       ; +0x8f, 0x1005e3b9f\ntest    byte ptr [rbp+var_20], 1                                       ; +0x92, 0x1005e3ba2\njz      short loc_1005E3BB1                                            ; +0x96, 0x1005e3ba6\nmov     rdi, [rbp+__p]; __p                                            ; +0x98, 0x1005e3ba8\ncall    __ZdlPv; operator delete(void *)                               ; +0x9c, 0x1005e3bac\nmov     rax, [rbx]                                                     ; +0xa1, 0x1005e3bb1\nmov     rdi, rbx                                                       ; +0xa4, 0x1005e3bb4\nmov     esi, 3                                                         ; +0xa7, 0x1005e3bb7\ncall    qword ptr [rax+48h]                                            ; +0xac, 0x1005e3bbc\nmov     rax, [rbx]                                                     ; +0xaf, 0x1005e3bbf\nmov     rdi, rbx                                                       ; +0xb2, 0x1005e3bc2\ncall    qword ptr [rax+508h]                                           ; +0xb5, 0x1005e3bc5\nadd     rsp, 18h                                                       ; +0xbb, 0x1005e3bcb\npop     rbx                                                            ; +0xbf, 0x1005e3bcf\npop     rbp                                                            ; +0xc0, 0x1005e3bd0\nretn                                                                   ; +0xc1, 0x1005e3bd1", "xrefs": ["CustomSFXWidget::init @ 0x1005e303d"], "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"}