//
// EditorSoundConfigInfoLayer::isOwner from 0x140196160 to 0x1401961c2 (98 bytes)
//
// 5 xrefs:
// > EditorSoundConfigInfoLayer::init @ 0x140194135
// > EditorSoundConfigInfoLayer::init @ 0x140194296
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x140195fba
// > EditorSoundConfigInfoLayer::onDeleteServer @ 0x140197ae9
// > ??> @ 0x1409194c0
//
// 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 11:27:45 +0000
//
bool __fastcall EditorSoundConfigInfoLayer::isOwner(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rax
__int64 v4; // rax
bool result; // al
result = false;
if ( *(_QWORD *)(a1 + 1072) )
{
if ( GJAccountManager::sharedState(a1) )
{
v3 = GJAccountManager::sharedState(v2);
if ( *(_DWORD *)(v3 + 360) - *(_DWORD *)(v3 + 364) > 0 )
{
v4 = GJAccountManager::sharedState((unsigned int)(*(_DWORD *)(v3 + 360) - *(_DWORD *)(v3 + 364)));
if ( *(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364) == *(_DWORD *)(*(_QWORD *)(a1 + 1072) + 344LL) )
return true;
}
}
}
return result;
}