{"type": "func", "start": 5370369056, "end": 5370369504, "name": "EditorSoundConfigInfoLayer::onLocalDelete", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onLocalDelete from 0x140195420 to 0x1401955e0 (448 bytes)\n// \n// 2 xrefs:\n// > EditorSoundConfigInfoLayer::init @ 0x140193d2f\n// > <???> @ 0x140919400\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:45 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditorSoundConfigInfoLayer::onLocalDelete(__int64 a1)\n{\n  __int64 result; // rax\n  const char *v3; // rdx\n  int v4; // ebp\n  __int64 v5; // rdi\n  cocos2d::CCArray *v6; // rcx\n  unsigned int v7; // ebx\n  struct cocos2d::CCObject *v8; // rax\n  int v9; // eax\n  int v10; // ebx\n  size_t v11; // r8\n  __int64 v12; // rax\n  cocos2d::CCObject *v13; // rbx\n  __int128 v14; // [rsp+50h] [rbp-58h] BYREF\n  __int64 v15; // [rsp+60h] [rbp-48h]\n  __int64 v16; // [rsp+68h] [rbp-40h]\n  _BYTE v17[32]; // [rsp+70h] [rbp-38h] BYREF\n\n  result = *(_QWORD *)(a1 + 1072);\n  if ( result )\n  {\n    if ( *(_DWORD *)(a1 + 1080) == 2 && *(int *)(result + 324) > 0 )\n    {\n      v3 = \"Delete this sound pack from your device?\";\n    }\n    else\n    {\n      if ( EditorSFXManager::sharedState()\n        && (v4 = *(_DWORD *)(*(_QWORD *)(a1 + 1072) + 320LL),\n            v5 = EditorSFXManager::sharedState(),\n            (v6 = *(cocos2d::CCArray **)(v5 + 208)) != nullptr)\n        && (v7 = 0, cocos2d::CCArray::count(v6)) )\n      {\n        while ( 1 )\n        {\n          v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v5 + 208), v7);\n          if ( v8 )\n          {\n            if ( *((_DWORD *)v8 + 80) == v4 )\n              break;\n          }\n          if ( ++v7 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(v5 + 208)) )\n            goto LABEL_11;\n        }\n        v9 = 1;\n      }\n      else\n      {\nLABEL_11:\n        v9 = 0;\n      }\n      v3 = \"Discard the downloaded data and close?\";\n      if ( v9 )\n        v3 = \"Remove this sound pack from your Favorites?\";\n    }\n    v10 = a1 + 1016;\n    if ( !a1 )\n      v10 = 0;\n    v14 = 0;\n    v15 = 0;\n    v16 = 0;\n    v11 = -1;\n    do\n      ++v11;\n    while ( v3[v11] );\n    sub_14003D230(&v14, v3, v11);\n    v12 = sub_14003F4F0((__int64)v17, (__int64)&v14);\n    v13 = FLAlertLayer::create(\n            v10,\n            (int)&xmmword_140720410,\n            v12,\n            (__int64)\"Cancel\",\n            (__int64)\"Delete\",\n            1136525312,\n            0,\n            0,\n            1065353216);\n    sub_14003D310((__int64)&v14);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v13 + 64LL))(v13, 7004);\n    return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v13 + 1064LL))(v13);\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onLocalDelete from 0x140195420 to 0x1401955e0 (448 bytes)\n; \n; 2 xrefs:\n; > EditorSoundConfigInfoLayer::init @ 0x140193d2f\n; > <???> @ 0x140919400\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:45 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140195420\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x140195425\npush    rsi                                                            ; +0xa, 0x14019542a\npush    rdi                                                            ; +0xb, 0x14019542b\npush    r14                                                            ; +0xc, 0x14019542c\nsub     rsp, 90h                                                       ; +0xe, 0x14019542e\nmov     rsi, rcx                                                       ; +0x15, 0x140195435\nmov     rax, [rcx+430h]                                                ; +0x18, 0x140195438\ntest    rax, rax                                                       ; +0x1f, 0x14019543f\njz      loc_1401955BE                                                  ; +0x22, 0x140195442\nxor     r14d, r14d                                                     ; +0x28, 0x140195448\ncmp     dword ptr [rcx+438h], 2                                        ; +0x2b, 0x14019544b\njnz     short loc_140195469                                            ; +0x32, 0x140195452\ncmp     [rax+144h], r14d                                               ; +0x34, 0x140195454\njle     short loc_140195469                                            ; +0x3b, 0x14019545b\nlea     rdx, aDeleteThisSoun; \"Delete this sound pack from your device\"... ; +0x3d, 0x14019545d\njmp     loc_1401954EB                                                  ; +0x44, 0x140195464\ncall    EditorSFXManager__sharedState                                  ; +0x49, 0x140195469\ntest    rax, rax                                                       ; +0x4e, 0x14019546e\njz      short loc_1401954D4                                            ; +0x51, 0x140195471\nmov     rax, [rsi+430h]                                                ; +0x53, 0x140195473\nmov     ebp, [rax+140h]                                                ; +0x5a, 0x14019547a\ncall    EditorSFXManager__sharedState                                  ; +0x60, 0x140195480\nmov     rdi, rax                                                       ; +0x65, 0x140195485\nmov     rcx, [rax+0D0h]                                                ; +0x68, 0x140195488\ntest    rcx, rcx                                                       ; +0x6f, 0x14019548f\njz      short loc_1401954D4                                            ; +0x72, 0x140195492\nmov     ebx, r14d                                                      ; +0x74, 0x140195494\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x77, 0x140195497\ntest    eax, eax                                                       ; +0x7d, 0x14019549d\njz      short loc_1401954D4                                            ; +0x7f, 0x14019549f\nmov     edx, ebx                                                       ; +0x81, 0x1401954a1\nmov     rcx, [rdi+0D0h]                                                ; +0x83, 0x1401954a3\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x8a, 0x1401954aa\ntest    rax, rax                                                       ; +0x90, 0x1401954b0\njz      short loc_1401954C1                                            ; +0x93, 0x1401954b3\ncmp     [rax+140h], ebp                                                ; +0x95, 0x1401954b5\njz      loc_1401955D6                                                  ; +0x9b, 0x1401954bb\ninc     ebx                                                            ; +0xa1, 0x1401954c1\nmov     rcx, [rdi+0D0h]                                                ; +0xa3, 0x1401954c3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xaa, 0x1401954ca\ncmp     ebx, eax                                                       ; +0xb0, 0x1401954d0\njb      short loc_1401954A1                                            ; +0xb2, 0x1401954d2\nmov     eax, r14d                                                      ; +0xb4, 0x1401954d4\nlea     rcx, aRemoveThisSoun; \"Remove this sound pack from your Favori\"... ; +0xb7, 0x1401954d7\nlea     rdx, aDiscardTheDown; \"Discard the downloaded data and close?\" ; +0xbe, 0x1401954de\ntest    eax, eax                                                       ; +0xc5, 0x1401954e5\ncmovnz  rdx, rcx                                                       ; +0xc7, 0x1401954e7\nlea     rbx, [rsi+3F8h]                                                ; +0xcb, 0x1401954eb\ntest    rsi, rsi                                                       ; +0xd2, 0x1401954f2\ncmovz   rbx, r14                                                       ; +0xd5, 0x1401954f5\nxorps   xmm0, xmm0                                                     ; +0xd9, 0x1401954f9\nmovups  [rsp+0A8h+var_58], xmm0                                        ; +0xdc, 0x1401954fc\nmov     [rsp+0A8h+var_48], r14                                         ; +0xe1, 0x140195501\nmov     [rsp+0A8h+var_40], r14                                         ; +0xe6, 0x140195506\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xeb, 0x14019550b\ninc     r8                                                             ; +0xf2, 0x140195512\ncmp     [rdx+r8], r14b                                                 ; +0xf5, 0x140195515\njnz     short loc_140195512                                            ; +0xf9, 0x140195519\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0xfb, 0x14019551b\ncall    sub_14003D230                                                  ; +0x100, 0x140195520\nlea     rax, [rsp+0A8h+var_58]                                         ; +0x105, 0x140195525\nmov     [rsp+0A8h+arg_0], rax                                          ; +0x10a, 0x14019552a\nlea     rdx, [rsp+0A8h+var_58]                                         ; +0x112, 0x140195532\nlea     rcx, [rsp+0A8h+var_38]                                         ; +0x117, 0x140195537\ncall    sub_14003F4F0                                                  ; +0x11c, 0x14019553c\nmovss   xmm0, cs:flt_140835080                                         ; +0x121, 0x140195541\nmovss   [rsp+0A8h+var_68], xmm0                                        ; +0x129, 0x140195549\nxorps   xmm1, xmm1                                                     ; +0x12f, 0x14019554f\nmovss   [rsp+0A8h+var_70], xmm1                                        ; +0x132, 0x140195552\nmov     [rsp+0A8h+var_78], 0                                           ; +0x138, 0x140195558\nmovss   xmm0, cs:dword_140835A04                                       ; +0x13d, 0x14019555d\nmovss   [rsp+0A8h+var_80], xmm0                                        ; +0x145, 0x140195565\nlea     rcx, aDelete_0; \"Delete\"                                       ; +0x14b, 0x14019556b\nmov     [rsp+0A8h+var_88], rcx                                         ; +0x152, 0x140195572\nlea     r9, aCancel; \"Cancel\"                                          ; +0x157, 0x140195577\nmov     r8, rax                                                        ; +0x15e, 0x14019557e\nlea     rdx, xmmword_140720410                                         ; +0x161, 0x140195581\nmov     rcx, rbx                                                       ; +0x168, 0x140195588\ncall    FLAlertLayer__create                                           ; +0x16b, 0x14019558b\nmov     rbx, rax                                                       ; +0x170, 0x140195590\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x173, 0x140195593\ncall    sub_14003D310                                                  ; +0x178, 0x140195598\nmov     rcx, [rbx]                                                     ; +0x17d, 0x14019559d\nmov     r8, [rcx+40h]                                                  ; +0x180, 0x1401955a0\nmov     edx, 1B5Ch                                                     ; +0x184, 0x1401955a4\nmov     rcx, rbx                                                       ; +0x189, 0x1401955a9\ncall    r8                                                             ; +0x18c, 0x1401955ac\nmov     rcx, [rbx]                                                     ; +0x18f, 0x1401955af\nmov     rdx, [rcx+428h]                                                ; +0x192, 0x1401955b2\nmov     rcx, rbx                                                       ; +0x199, 0x1401955b9\ncall    rdx                                                            ; +0x19c, 0x1401955bc\nlea     r11, [rsp+0A8h+var_18]                                         ; +0x19e, 0x1401955be\nmov     rbx, [r11+28h]                                                 ; +0x1a6, 0x1401955c6\nmov     rbp, [r11+38h]                                                 ; +0x1aa, 0x1401955ca\nmov     rsp, r11                                                       ; +0x1ae, 0x1401955ce\npop     r14                                                            ; +0x1b1, 0x1401955d1\npop     rdi                                                            ; +0x1b3, 0x1401955d3\npop     rsi                                                            ; +0x1b4, 0x1401955d4\nretn                                                                   ; +0x1b5, 0x1401955d5\nmov     eax, 1                                                         ; +0x1b6, 0x1401955d6\njmp     loc_1401954D7                                                  ; +0x1bb, 0x1401955db", "xrefs": ["EditorSoundConfigInfoLayer::init @ 0x140193d2f", "<???> @ 0x140919400"], "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"}