{"type": "func", "start": 5370369504, "end": 5370369797, "name": "EditorSoundConfigInfoLayer::onDuplicate", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onDuplicate from 0x1401955e0 to 0x140195705 (293 bytes)\n// \n// 3 xrefs:\n// > EditorSoundConfigInfoLayer::init @ 0x1401943a9\n// > <???> @ 0x140919400\n// > <???> @ 0x14091940c\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\nvoid __fastcall EditorSoundConfigInfoLayer::onDuplicate(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  _BYTE v4[32]; // [rsp+50h] [rbp-58h] BYREF\n  __int128 v5; // [rsp+70h] [rbp-38h] BYREF\n  __int64 v6; // [rsp+80h] [rbp-28h]\n  __int64 v7; // [rsp+88h] [rbp-20h]\n\n  if ( *(_QWORD *)(a1 + 1072) )\n  {\n    v1 = a1 + 1016;\n    if ( !a1 )\n      v1 = 0;\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003D460(0x30u);\n    v6 = 33;\n    v7 = 47;\n    strcpy((char *)v5, \"Create a copy of this sound pack?\");\n    v2 = sub_14003F4F0((__int64)v4, (__int64)&v5);\n    v3 = FLAlertLayer::create(\n           v1,\n           (int)\"Clone Sound Pack\",\n           v2,\n           (__int64)\"Cancel\",\n           (__int64)\"Clone\",\n           1136525312,\n           0,\n           0,\n           1065353216);\n    sub_14003D310((__int64)&v5);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 7005);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onDuplicate from 0x1401955e0 to 0x140195705 (293 bytes)\n; \n; 3 xrefs:\n; > EditorSoundConfigInfoLayer::init @ 0x1401943a9\n; > <???> @ 0x140919400\n; > <???> @ 0x14091940c\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     r11, rsp                                                       ; +0x0, 0x1401955e0\npush    rbx                                                            ; +0x3, 0x1401955e3\nsub     rsp, 0A0h                                                      ; +0x4, 0x1401955e4\ncmp     qword ptr [rcx+430h], 0                                        ; +0xb, 0x1401955eb\njz      loc_1401956FC                                                  ; +0x13, 0x1401955f3\nlea     rbx, [rcx+3F8h]                                                ; +0x19, 0x1401955f9\nxor     eax, eax                                                       ; +0x20, 0x140195600\ntest    rcx, rcx                                                       ; +0x22, 0x140195602\ncmovz   rbx, rax                                                       ; +0x25, 0x140195605\nxorps   xmm0, xmm0                                                     ; +0x29, 0x140195609\nmovups  [rsp+0A8h+var_38], xmm0                                        ; +0x2c, 0x14019560c\nmov     [r11-28h], rax                                                 ; +0x31, 0x140195611\nmov     [r11-20h], rax                                                 ; +0x35, 0x140195615\nmov     ecx, 30h ; '0'                                                 ; +0x39, 0x140195619\ncall    sub_14003D460                                                  ; +0x3e, 0x14019561e\nmov     qword ptr [rsp+0A8h+var_38], rax                               ; +0x43, 0x140195623\nmov     [rsp+0A8h+var_28], 21h ; '!'                                   ; +0x48, 0x140195628\nmov     [rsp+0A8h+var_20], 2Fh ; '/'                                   ; +0x54, 0x140195634\nmovups  xmm0, cs:xmmword_14074D560                                     ; +0x60, 0x140195640\nmovups  xmmword ptr [rax], xmm0                                        ; +0x67, 0x140195647\nmovups  xmm1, cs:xmmword_14074D570                                     ; +0x6a, 0x14019564a\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x71, 0x140195651\nmovzx   ecx, cs:byte_14074D580                                         ; +0x75, 0x140195655\nmov     [rax+20h], cl                                                  ; +0x7c, 0x14019565c\nmov     byte ptr [rax+21h], 0                                          ; +0x7f, 0x14019565f\nlea     rax, [rsp+0A8h+var_38]                                         ; +0x83, 0x140195663\nmov     [rsp+0A8h+arg_0], rax                                          ; +0x88, 0x140195668\nlea     rdx, [rsp+0A8h+var_38]                                         ; +0x90, 0x140195670\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x95, 0x140195675\ncall    sub_14003F4F0                                                  ; +0x9a, 0x14019567a\nmovss   xmm0, cs:flt_140835080                                         ; +0x9f, 0x14019567f\nmovss   [rsp+0A8h+var_68], xmm0                                        ; +0xa7, 0x140195687\nxorps   xmm1, xmm1                                                     ; +0xad, 0x14019568d\nmovss   [rsp+0A8h+var_70], xmm1                                        ; +0xb0, 0x140195690\nmov     [rsp+0A8h+var_78], 0                                           ; +0xb6, 0x140195696\nmovss   xmm0, cs:dword_140835A04                                       ; +0xbb, 0x14019569b\nmovss   [rsp+0A8h+var_80], xmm0                                        ; +0xc3, 0x1401956a3\nlea     rcx, aClone; \"Clone\"                                           ; +0xc9, 0x1401956a9\nmov     [rsp+0A8h+var_88], rcx                                         ; +0xd0, 0x1401956b0\nlea     r9, aCancel; \"Cancel\"                                          ; +0xd5, 0x1401956b5\nmov     r8, rax                                                        ; +0xdc, 0x1401956bc\nlea     rdx, aCloneSoundPack; \"Clone Sound Pack\"                       ; +0xdf, 0x1401956bf\nmov     rcx, rbx                                                       ; +0xe6, 0x1401956c6\ncall    FLAlertLayer__create                                           ; +0xe9, 0x1401956c9\nmov     rbx, rax                                                       ; +0xee, 0x1401956ce\nlea     rcx, [rsp+0A8h+var_38]                                         ; +0xf1, 0x1401956d1\ncall    sub_14003D310                                                  ; +0xf6, 0x1401956d6\nmov     rcx, [rbx]                                                     ; +0xfb, 0x1401956db\nmov     r8, [rcx+40h]                                                  ; +0xfe, 0x1401956de\nmov     edx, 1B5Dh                                                     ; +0x102, 0x1401956e2\nmov     rcx, rbx                                                       ; +0x107, 0x1401956e7\ncall    r8                                                             ; +0x10a, 0x1401956ea\nmov     rcx, [rbx]                                                     ; +0x10d, 0x1401956ed\nmov     rdx, [rcx+428h]                                                ; +0x110, 0x1401956f0\nmov     rcx, rbx                                                       ; +0x117, 0x1401956f7\ncall    rdx                                                            ; +0x11a, 0x1401956fa\nadd     rsp, 0A0h                                                      ; +0x11c, 0x1401956fc\npop     rbx                                                            ; +0x123, 0x140195703\nretn                                                                   ; +0x124, 0x140195704", "xrefs": ["EditorSoundConfigInfoLayer::init @ 0x1401943a9", "<???> @ 0x140919400", "<???> @ 0x14091940c"], "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"}