// // EditorSoundConfigInfoLayer::onLike from 0x1401959d0 to 0x140195b72 (418 bytes) // // 2 xrefs: // > EditorSoundConfigInfoLayer::init @ 0x140193fa9 // > @ 0x140919460 // // 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 // // Hidden C++ exception states: #wind=4 __int64 __fastcall EditorSoundConfigInfoLayer::onLike(__int64 a1) { __int64 result; // rax __int64 v3; // rbx int v4; // esi __int64 v5; // rcx _QWORD *v6; // rax void *v7; // [rsp+40h] [rbp+8h] void *v8; // [rsp+40h] [rbp+8h] void *v9; // [rsp+40h] [rbp+8h] result = *(_QWORD *)(a1 + 1072); if ( result && !*(_BYTE *)(result + 545) ) { LODWORD(v3) = qword_14090BFB0; if ( *(_QWORD *)&qword_14090BFB0 || (v7 = operator new(0x690u), *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v7), (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0), (v3 = *(_QWORD *)&qword_14090BFB0) != 0) ) { v4 = *(_DWORD *)(*(_QWORD *)(a1 + 1072) + 320LL); result = GameLevelManager::hasLikedAccountItem(v3, 5, v4, 1, 0); if ( (_BYTE)result ) return result; result = GameLevelManager::hasLikedAccountItem(v3, 5, v4, 0, 0); if ( (_BYTE)result ) return result; v3 = *(_QWORD *)&qword_14090BFB0; } v5 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v8 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = *(_QWORD *)&qword_14090BFB0; v5 = qword_14090BFD0; } if ( *(_DWORD *)(v5 + 692) == *(_DWORD *)(v5 + 696) ) { if ( !v3 ) { v9 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v9); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v3 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::updateUserScore(v3); } v6 = (_QWORD *)LikeItemLayer::create(5, *(unsigned int *)(*(_QWORD *)(a1 + 1072) + 320LL), 0); v6[85] = a1 + 1032; return (*(__int64 (__fastcall **)(_QWORD *))(*v6 + 1064LL))(v6); } return result; }