// // EditorSFXManager::copyFavoriteToMyConfig from 0x1008ed940 to 0x1008edb66 (550 bytes) // // 1 xrefs: // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x1008f8f60 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:37:54 +0000 // __int64 __fastcall EditorSFXManager::copyFavoriteToMyConfig(__int64 a1, __int64 a2, double a3) { __int64 v4; // rdi void *v5; // rax __int64 v6; // rax __int64 v7; // r15 int v8; // eax std::string __str; // [rsp+0h] [rbp-80h] BYREF std::string v11; // [rsp+20h] [rbp-60h] BYREF std::string v12; // [rsp+40h] [rbp-40h] BYREF if ( !a2 ) return 0; v4 = *(_QWORD *)(a1 + 152); if ( v4 ) { if ( (unsigned int)sub_1007FEF90(v4) > 0x31 ) return 0; } else { v5 = sub_1007FE900(); *(_QWORD *)(a1 + 152) = v5; cocos2d::CCObject::retain((__int64)v5); if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 152)) > 0x31 ) return 0; } v6 = GJEditorSoundConfig::create_1(a3); if ( !v6 ) return 0; v7 = v6; v8 = *(_DWORD *)(a1 + 160); *(_DWORD *)(a1 + 160) = v8 + 1; *(_DWORD *)(v7 + 320) = v8; *(_BYTE *)(v7 + 324) = 1; *(_DWORD *)(v7 + 316) = 0; *(_DWORD *)(v7 + 336) = *(_DWORD *)(a2 + 316); *(_DWORD *)(v7 + 340) = *(_DWORD *)(a2 + 340); if ( (*(_BYTE *)(a2 + 376) & 1) != 0 ) sub_10001AD30(&__str, *(const void **)(a2 + 392), *(_QWORD *)(a2 + 384)); else __str = *(std::string *)(a2 + 376); std::string::operator=((std::string *)(v7 + 376), &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( (*(_BYTE *)(a2 + 400) & 1) != 0 ) sub_10001AD30(&v11, *(const void **)(a2 + 416), *(_QWORD *)(a2 + 408)); else v11 = *(std::string *)(a2 + 400); std::string::operator=((std::string *)(v7 + 400), &v11); if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v11.__r_.__value_.__l.__data_); *(_DWORD *)(v7 + 360) = *(_DWORD *)(a2 + 360); *(_QWORD *)(v7 + 328) = 1; *(_QWORD *)(v7 + 352) = *(_QWORD *)(a2 + 352); if ( (*(_BYTE *)(a2 + 472) & 1) != 0 ) sub_10001AD30(&v12, *(const void **)(a2 + 488), *(_QWORD *)(a2 + 480)); else v12 = *(std::string *)(a2 + 472); std::string::operator=((std::string *)(v7 + 472), &v12); if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v12.__r_.__value_.__l.__data_); *(_BYTE *)(v7 + 496) = *(_BYTE *)(a2 + 496); sub_1007FF110(*(_QWORD *)(a1 + 152), v7, 0); return v7; }