{"type": "func", "start": 5370377936, "end": 5370378236, "name": "EditorSoundConfigInfoLayer::onOverwrite", "pseudocode": "// \n// EditorSoundConfigInfoLayer::onOverwrite from 0x1401976d0 to 0x1401977fc (300 bytes)\n// \n// 3 xrefs:\n// > EditorSoundConfigInfoLayer::init @ 0x140193796\n// > EditorSoundConfigInfoLayer::init @ 0x140193813\n// > <???> @ 0x1409195bc\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__int64 __fastcall EditorSoundConfigInfoLayer::onOverwrite(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  v1 = a1 + 1016;\n  if ( !a1 )\n    v1 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003D460(0x40u);\n  v6 = 57;\n  v7 = 63;\n  strcpy((char *)v5, \"Replace this sound pack with your current sound settings?\");\n  v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n  v3 = FLAlertLayer::create(\n         v1,\n         (int)\"Overwrite?\",\n         v2,\n         (__int64)\"Cancel\",\n         (__int64)\"Overwrite\",\n         1136525312,\n         0,\n         0,\n         1065353216);\n  sub_14003D310((__int64)&v5);\n  (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 7003);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::onOverwrite from 0x1401976d0 to 0x1401977fc (300 bytes)\n; \n; 3 xrefs:\n; > EditorSoundConfigInfoLayer::init @ 0x140193796\n; > EditorSoundConfigInfoLayer::init @ 0x140193813\n; > <???> @ 0x1409195bc\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; \npush    rbx                                                            ; +0x0, 0x1401976d0\nsub     rsp, 90h                                                       ; +0x2, 0x1401976d2\nlea     rbx, [rcx+3F8h]                                                ; +0x9, 0x1401976d9\nxor     eax, eax                                                       ; +0x10, 0x1401976e0\ntest    rcx, rcx                                                       ; +0x12, 0x1401976e2\ncmovz   rbx, rax                                                       ; +0x15, 0x1401976e5\nxorps   xmm0, xmm0                                                     ; +0x19, 0x1401976e9\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x1401976ec\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x1401976f1\nmov     [rsp+98h+var_30], rax                                          ; +0x26, 0x1401976f6\nmov     ecx, 40h ; '@'                                                 ; +0x2b, 0x1401976fb\ncall    sub_14003D460                                                  ; +0x30, 0x140197700\nmov     rcx, rax                                                       ; +0x35, 0x140197705\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x38, 0x140197708\nmov     [rsp+98h+var_38], 39h ; '9'                                    ; +0x3d, 0x14019770d\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x46, 0x140197716\nmovups  xmm0, cs:xmmword_14074D780                                     ; +0x4f, 0x14019771f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x56, 0x140197726\nmovups  xmm1, cs:xmmword_14074D790                                     ; +0x59, 0x140197729\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x60, 0x140197730\nmovups  xmm0, cs:xmmword_14074D7A0                                     ; +0x64, 0x140197734\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x6b, 0x14019773b\nmovsd   xmm0, cs:qword_14074D7B0                                       ; +0x6f, 0x14019773f\nmovsd   qword ptr [rax+30h], xmm0                                      ; +0x77, 0x140197747\nmovzx   eax, cs:byte_14074D7B8                                         ; +0x7c, 0x14019774c\nmov     [rcx+38h], al                                                  ; +0x83, 0x140197753\nmov     byte ptr [rcx+39h], 0                                          ; +0x86, 0x140197756\nlea     rax, [rsp+98h+var_48]                                          ; +0x8a, 0x14019775a\nmov     [rsp+98h+arg_0], rax                                           ; +0x8f, 0x14019775f\nlea     rdx, [rsp+98h+var_48]                                          ; +0x97, 0x140197767\nlea     rcx, [rsp+98h+var_28]                                          ; +0x9c, 0x14019776c\ncall    sub_14003F4F0                                                  ; +0xa1, 0x140197771\nmovss   xmm0, cs:flt_140835080                                         ; +0xa6, 0x140197776\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xae, 0x14019777e\nxorps   xmm1, xmm1                                                     ; +0xb4, 0x140197784\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb7, 0x140197787\nmov     [rsp+98h+var_68], 0                                            ; +0xbd, 0x14019778d\nmovss   xmm0, cs:dword_140835A04                                       ; +0xc2, 0x140197792\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xca, 0x14019779a\nlea     rcx, aOverwrite; \"Overwrite\"                                   ; +0xd0, 0x1401977a0\nmov     [rsp+98h+var_78], rcx                                          ; +0xd7, 0x1401977a7\nlea     r9, aCancel; \"Cancel\"                                          ; +0xdc, 0x1401977ac\nmov     r8, rax                                                        ; +0xe3, 0x1401977b3\nlea     rdx, aOverwrite_0; \"Overwrite?\"                                ; +0xe6, 0x1401977b6\nmov     rcx, rbx                                                       ; +0xed, 0x1401977bd\ncall    FLAlertLayer__create                                           ; +0xf0, 0x1401977c0\nmov     rbx, rax                                                       ; +0xf5, 0x1401977c5\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf8, 0x1401977c8\ncall    sub_14003D310                                                  ; +0xfd, 0x1401977cd\nmov     rcx, [rbx]                                                     ; +0x102, 0x1401977d2\nmov     r8, [rcx+40h]                                                  ; +0x105, 0x1401977d5\nmov     edx, 1B5Bh                                                     ; +0x109, 0x1401977d9\nmov     rcx, rbx                                                       ; +0x10e, 0x1401977de\ncall    r8                                                             ; +0x111, 0x1401977e1\nmov     rcx, [rbx]                                                     ; +0x114, 0x1401977e4\nmov     rdx, [rcx+428h]                                                ; +0x117, 0x1401977e7\nmov     rcx, rbx                                                       ; +0x11e, 0x1401977ee\ncall    rdx                                                            ; +0x121, 0x1401977f1\nadd     rsp, 90h                                                       ; +0x123, 0x1401977f3\npop     rbx                                                            ; +0x12a, 0x1401977fa\nretn                                                                   ; +0x12b, 0x1401977fb", "xrefs": ["EditorSoundConfigInfoLayer::init @ 0x140193796", "EditorSoundConfigInfoLayer::init @ 0x140193813", "<???> @ 0x1409195bc"], "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"}