{"type": "func", "start": 4304329024, "end": 4304329574, "name": "EditorSFXManager::copyFavoriteToMyConfig", "pseudocode": "// \n// EditorSFXManager::copyFavoriteToMyConfig from 0x1008ed940 to 0x1008edb66 (550 bytes)\n// \n// 1 xrefs:\n// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f8f60\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 12:37:54 +0000\n// \n\n__int64 __fastcall EditorSFXManager::copyFavoriteToMyConfig(__int64 a1, __int64 a2, double a3)\n{\n  __int64 v4; // rdi\n  void *v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // r15\n  int v8; // eax\n  std::string __str; // [rsp+0h] [rbp-80h] BYREF\n  std::string v11; // [rsp+20h] [rbp-60h] BYREF\n  std::string v12; // [rsp+40h] [rbp-40h] BYREF\n\n  if ( !a2 )\n    return 0;\n  v4 = *(_QWORD *)(a1 + 152);\n  if ( v4 )\n  {\n    if ( (unsigned int)sub_1007FEF90(v4) > 0x31 )\n      return 0;\n  }\n  else\n  {\n    v5 = sub_1007FE900();\n    *(_QWORD *)(a1 + 152) = v5;\n    cocos2d::CCObject::retain((__int64)v5);\n    if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 152)) > 0x31 )\n      return 0;\n  }\n  v6 = GJEditorSoundConfig::create_1(a3);\n  if ( !v6 )\n    return 0;\n  v7 = v6;\n  v8 = *(_DWORD *)(a1 + 160);\n  *(_DWORD *)(a1 + 160) = v8 + 1;\n  *(_DWORD *)(v7 + 320) = v8;\n  *(_BYTE *)(v7 + 324) = 1;\n  *(_DWORD *)(v7 + 316) = 0;\n  *(_DWORD *)(v7 + 336) = *(_DWORD *)(a2 + 316);\n  *(_DWORD *)(v7 + 340) = *(_DWORD *)(a2 + 340);\n  if ( (*(_BYTE *)(a2 + 376) & 1) != 0 )\n    sub_10001AD30(&__str, *(const void **)(a2 + 392), *(_QWORD *)(a2 + 384));\n  else\n    __str = *(std::string *)(a2 + 376);\n  std::string::operator=((std::string *)(v7 + 376), &__str);\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__str.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)(a2 + 400) & 1) != 0 )\n    sub_10001AD30(&v11, *(const void **)(a2 + 416), *(_QWORD *)(a2 + 408));\n  else\n    v11 = *(std::string *)(a2 + 400);\n  std::string::operator=((std::string *)(v7 + 400), &v11);\n  if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v11.__r_.__value_.__l.__data_);\n  *(_DWORD *)(v7 + 360) = *(_DWORD *)(a2 + 360);\n  *(_QWORD *)(v7 + 328) = 1;\n  *(_QWORD *)(v7 + 352) = *(_QWORD *)(a2 + 352);\n  if ( (*(_BYTE *)(a2 + 472) & 1) != 0 )\n    sub_10001AD30(&v12, *(const void **)(a2 + 488), *(_QWORD *)(a2 + 480));\n  else\n    v12 = *(std::string *)(a2 + 472);\n  std::string::operator=((std::string *)(v7 + 472), &v12);\n  if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v12.__r_.__value_.__l.__data_);\n  *(_BYTE *)(v7 + 496) = *(_BYTE *)(a2 + 496);\n  sub_1007FF110(*(_QWORD *)(a1 + 152), v7, 0);\n  return v7;\n}", "assembly": "; \n; EditorSFXManager::copyFavoriteToMyConfig from 0x1008ed940 to 0x1008edb66 (550 bytes)\n; \n; 1 xrefs:\n; > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f8f60\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 12:37:54 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008ed940\nmov     rbp, rsp                                                       ; +0x1, 0x1008ed941\npush    r15                                                            ; +0x4, 0x1008ed944\npush    r14                                                            ; +0x6, 0x1008ed946\npush    r12                                                            ; +0x8, 0x1008ed948\npush    rbx                                                            ; +0xa, 0x1008ed94a\nsub     rsp, 60h                                                       ; +0xb, 0x1008ed94b\ntest    rsi, rsi                                                       ; +0xf, 0x1008ed94f\njz      loc_1008EDA12                                                  ; +0x12, 0x1008ed952\nmov     r14, rsi                                                       ; +0x18, 0x1008ed958\nmov     rbx, rdi                                                       ; +0x1b, 0x1008ed95b\nmov     rdi, [rdi+98h]                                                 ; +0x1e, 0x1008ed95e\ntest    rdi, rdi                                                       ; +0x25, 0x1008ed965\njz      short loc_1008ED979                                            ; +0x28, 0x1008ed968\ncall    sub_1007FEF90                                                  ; +0x2a, 0x1008ed96a\ncmp     eax, 31h ; '1'                                                 ; +0x2f, 0x1008ed96f\njbe     short loc_1008ED99E                                            ; +0x32, 0x1008ed972\njmp     loc_1008EDA12                                                  ; +0x34, 0x1008ed974\ncall    sub_1007FE900                                                  ; +0x39, 0x1008ed979\nmov     [rbx+98h], rax                                                 ; +0x3e, 0x1008ed97e\nmov     rdi, rax                                                       ; +0x45, 0x1008ed985\ncall    cocos2d__CCObject__retain                                      ; +0x48, 0x1008ed988\nmov     rdi, [rbx+98h]                                                 ; +0x4d, 0x1008ed98d\ncall    sub_1007FEF90                                                  ; +0x54, 0x1008ed994\ncmp     eax, 31h ; '1'                                                 ; +0x59, 0x1008ed999\nja      short loc_1008EDA12                                            ; +0x5c, 0x1008ed99c\ncall    GJEditorSoundConfig__create_1                                  ; +0x5e, 0x1008ed99e\ntest    rax, rax                                                       ; +0x63, 0x1008ed9a3\njz      short loc_1008EDA12                                            ; +0x66, 0x1008ed9a6\nmov     r15, rax                                                       ; +0x68, 0x1008ed9a8\nmov     eax, [rbx+0A0h]                                                ; +0x6b, 0x1008ed9ab\nlea     ecx, [rax+1]                                                   ; +0x71, 0x1008ed9b1\nmov     [rbx+0A0h], ecx                                                ; +0x74, 0x1008ed9b4\nmov     [r15+140h], eax                                                ; +0x7a, 0x1008ed9ba\nmov     byte ptr [r15+144h], 1                                         ; +0x81, 0x1008ed9c1\nmov     dword ptr [r15+13Ch], 0                                        ; +0x89, 0x1008ed9c9\nmov     eax, [r14+13Ch]                                                ; +0x94, 0x1008ed9d4\nmov     [r15+150h], eax                                                ; +0x9b, 0x1008ed9db\nmov     eax, [r14+154h]                                                ; +0xa2, 0x1008ed9e2\nmov     [r15+154h], eax                                                ; +0xa9, 0x1008ed9e9\ntest    byte ptr [r14+178h], 1                                         ; +0xb0, 0x1008ed9f0\njnz     short loc_1008EDA25                                            ; +0xb8, 0x1008ed9f8\nlea     rax, [r14+178h]                                                ; +0xba, 0x1008ed9fa\nmov     rcx, [rax+10h]                                                 ; +0xc1, 0x1008eda01\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rcx                   ; +0xc5, 0x1008eda05\nmovups  xmm0, xmmword ptr [rax]                                        ; +0xc9, 0x1008eda09\nmovaps  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0xcc, 0x1008eda0c\njmp     short loc_1008EDA3C                                            ; +0xd0, 0x1008eda10\nxor     r15d, r15d                                                     ; +0xd2, 0x1008eda12\nmov     rax, r15                                                       ; +0xd5, 0x1008eda15\nadd     rsp, 60h                                                       ; +0xd8, 0x1008eda18\npop     rbx                                                            ; +0xdc, 0x1008eda1c\npop     r12                                                            ; +0xdd, 0x1008eda1d\npop     r14                                                            ; +0xdf, 0x1008eda1f\npop     r15                                                            ; +0xe1, 0x1008eda21\npop     rbp                                                            ; +0xe3, 0x1008eda23\nretn                                                                   ; +0xe4, 0x1008eda24\nmov     rdx, [r14+180h]                                                ; +0xe5, 0x1008eda25\nmov     rsi, [r14+188h]                                                ; +0xec, 0x1008eda2c\nlea     rdi, [rbp+__str]                                               ; +0xf3, 0x1008eda33\ncall    sub_10001AD30                                                  ; +0xf7, 0x1008eda37\nlea     r12, [rbp+__str.__r_.__value_+10h]                             ; +0xfc, 0x1008eda3c\nlea     rdi, [r15+178h]; this                                          ; +0x100, 0x1008eda40\nlea     rsi, [rbp+__str]; __str                                        ; +0x107, 0x1008eda47\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x10b, 0x1008eda4b\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x110, 0x1008eda50\njz      short loc_1008EDA5F                                            ; +0x114, 0x1008eda54\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x116, 0x1008eda56\ncall    __ZdlPv; operator delete(void *)                               ; +0x11a, 0x1008eda5a\ntest    byte ptr [r14+190h], 1                                         ; +0x11f, 0x1008eda5f\njnz     short loc_1008EDA81                                            ; +0x127, 0x1008eda67\nlea     rax, [r14+190h]                                                ; +0x129, 0x1008eda69\nmov     rcx, [rax+10h]                                                 ; +0x130, 0x1008eda70\nmov     qword ptr [rbp+var_60.__r_.__value_+10h], rcx                  ; +0x134, 0x1008eda74\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x138, 0x1008eda78\nmovaps  xmmword ptr [rbp+var_60.__r_.__value_], xmm0                   ; +0x13b, 0x1008eda7b\njmp     short loc_1008EDA98                                            ; +0x13f, 0x1008eda7f\nmov     rdx, [r14+198h]                                                ; +0x141, 0x1008eda81\nmov     rsi, [r14+1A0h]                                                ; +0x148, 0x1008eda88\nlea     rdi, [rbp+var_60]                                              ; +0x14f, 0x1008eda8f\ncall    sub_10001AD30                                                  ; +0x153, 0x1008eda93\nlea     r12, [rbp+var_60.__r_.__value_+10h]                            ; +0x158, 0x1008eda98\nlea     rdi, [r15+190h]; this                                          ; +0x15c, 0x1008eda9c\nlea     rsi, [rbp+var_60]; __str                                       ; +0x163, 0x1008edaa3\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x167, 0x1008edaa7\ntest    byte ptr [rbp+var_60.__r_.__value_], 1                         ; +0x16c, 0x1008edaac\njz      short loc_1008EDABB                                            ; +0x170, 0x1008edab0\nmov     rdi, qword ptr [rbp+var_60.__r_.__value_+10h]; __p             ; +0x172, 0x1008edab2\ncall    __ZdlPv; operator delete(void *)                               ; +0x176, 0x1008edab6\nmov     eax, [r14+168h]                                                ; +0x17b, 0x1008edabb\nmov     [r15+168h], eax                                                ; +0x182, 0x1008edac2\nmov     qword ptr [r15+148h], 1                                        ; +0x189, 0x1008edac9\nmov     rax, [r14+160h]                                                ; +0x194, 0x1008edad4\nmov     [r15+160h], rax                                                ; +0x19b, 0x1008edadb\ntest    byte ptr [r14+1D8h], 1                                         ; +0x1a2, 0x1008edae2\njnz     short loc_1008EDB04                                            ; +0x1aa, 0x1008edaea\nlea     rax, [r14+1D8h]                                                ; +0x1ac, 0x1008edaec\nmov     rcx, [rax+10h]                                                 ; +0x1b3, 0x1008edaf3\nmov     qword ptr [rbp+var_40.__r_.__value_+10h], rcx                  ; +0x1b7, 0x1008edaf7\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x1bb, 0x1008edafb\nmovaps  xmmword ptr [rbp+var_40.__r_.__value_], xmm0                   ; +0x1be, 0x1008edafe\njmp     short loc_1008EDB1B                                            ; +0x1c2, 0x1008edb02\nmov     rdx, [r14+1E0h]                                                ; +0x1c4, 0x1008edb04\nmov     rsi, [r14+1E8h]                                                ; +0x1cb, 0x1008edb0b\nlea     rdi, [rbp+var_40]                                              ; +0x1d2, 0x1008edb12\ncall    sub_10001AD30                                                  ; +0x1d6, 0x1008edb16\nlea     r12, [rbp+var_40.__r_.__value_+10h]                            ; +0x1db, 0x1008edb1b\nmov     rdi, r15                                                       ; +0x1df, 0x1008edb1f\nadd     rdi, 1D8h; this                                                ; +0x1e2, 0x1008edb22\nlea     rsi, [rbp+var_40]; __str                                       ; +0x1e9, 0x1008edb29\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x1ed, 0x1008edb2d\ntest    byte ptr [rbp+var_40.__r_.__value_], 1                         ; +0x1f2, 0x1008edb32\njz      short loc_1008EDB41                                            ; +0x1f6, 0x1008edb36\nmov     rdi, qword ptr [rbp+var_40.__r_.__value_+10h]; __p             ; +0x1f8, 0x1008edb38\ncall    __ZdlPv; operator delete(void *)                               ; +0x1fc, 0x1008edb3c\nmovzx   eax, byte ptr [r14+1F0h]                                       ; +0x201, 0x1008edb41\nmov     [r15+1F0h], al                                                 ; +0x209, 0x1008edb49\nmov     rdi, [rbx+98h]                                                 ; +0x210, 0x1008edb50\nmov     rsi, r15                                                       ; +0x217, 0x1008edb57\nxor     edx, edx                                                       ; +0x21a, 0x1008edb5a\ncall    sub_1007FF110                                                  ; +0x21c, 0x1008edb5c\njmp     loc_1008EDA15                                                  ; +0x221, 0x1008edb61", "xrefs": ["EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f8f60"], "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"}