// // sub_100896C50 from 0x100896c50 to 0x100896e99 (585 bytes) // // 2 xrefs: // > InfoLayer::toggleExtendedMode @ 0x1008942e6 // > InfoLayer::toggleSmallCommentMode @ 0x10089440f // // 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:07 +0000 // char __fastcall sub_100896C50(__int64 *a1) { _DWORD *v1; // rbx _DWORD *v2; // r14 _DWORD *v3; // r15 _DWORD *v4; // r12 __int64 v5; // rax __int64 v6; // rax __int64 v7; // rax __int64 v8; // rax __int64 v9; // rax __int64 v10; // rax __int64 v11; // rax __int64 v12; // rax void *v13; // r13 __int64 v14; // rax char result; // al __int64 v16; // [rsp+8h] [rbp-38h] unsigned int v17; // [rsp+10h] [rbp-30h] char v18; // [rsp+16h] [rbp-2Ah] v1 = (_DWORD *)a1[87]; if ( v1 ) cocos2d::CCObject::retain(a1[87]); v2 = (_DWORD *)a1[88]; if ( v2 ) cocos2d::CCObject::retain(a1[88]); v3 = (_DWORD *)a1[89]; if ( v3 ) cocos2d::CCObject::retain(a1[89]); v4 = (_DWORD *)a1[90]; if ( v4 ) cocos2d::CCObject::retain(a1[90]); v16 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 512))(a1); v17 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 104))(a1); v18 = *((_BYTE *)a1 + 880); if ( a1[97] ) { v5 = cocos2d::CCDirector::sharedDirector(); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5); cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1[97]); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[97] + 536LL))(a1[97]); a1[97] = 0; a1[112] = 0; } (*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1072))(a1, 0); (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 528))(a1, 1); v7 = GameManager::sharedState(); GameManager::getGameVariable(v7, "0090"); v8 = GameManager::sharedState(); GameManager::setGameVariable(v8, "0090"); if ( a1[97] ) { v9 = cocos2d::CCDirector::sharedDirector(); v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 160LL))(v9); cocos2d::CCTouchDispatcher::unregisterForcePrio(v10, a1[97]); } v11 = cocos2d::CCDirector::sharedDirector(); v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 160LL))(v11); cocos2d::CCTouchDispatcher::unregisterForcePrio(v12, (__int64)a1); v13 = operator new(0x3C0u); InfoLayer::InfoLayer(v13); if ( (unsigned __int8)InfoLayer::init((__int64)v13, (__int64)v1, (__int64)v2, (__int64)v3, (__int64)v4) ) { cocos2d::CCObject::autorelease((__int64)v13); } else { (*(void (__fastcall **)(void *))(*(_QWORD *)v13 + 16LL))(v13); v13 = nullptr; } v14 = GameManager::sharedState(); GameManager::setGameVariable(v14, "0090"); result = (*(__int64 (__fastcall **)(__int64, void *, _QWORD))(*(_QWORD *)v16 + 464LL))(v16, v13, v17); if ( v18 ) result = sub_100894470((__int64)v13); if ( v1 ) result = cocos2d::CCObject::release(v1); if ( v2 ) result = cocos2d::CCObject::release(v2); if ( v3 ) result = cocos2d::CCObject::release(v3); if ( v4 ) return cocos2d::CCObject::release(v4); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source