// // SimplePlayer::dSimplePlayer from 0x1402791e0 to 0x14027939f (447 bytes) // // 2 xrefs: // > sub_140272D10 @ 0x140272d1f // > @ 0x1406d1058 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall SimplePlayer::dSimplePlayer(__int64 a1) { GameManager *v2; // rcx void *v3; // rax __int64 v4; // r14 void *v5; // rax int v6; // ebp _QWORD *v7; // rax _QWORD *v8; // rbx int v9; // edi __int64 v10; // rax __int64 v11; // rsi __int64 **v12; // rax __int64 i; // rax __int64 *j; // rax *(_QWORD *)a1 = &SimplePlayer::`vftable'; *(_QWORD *)(a1 + 320) = &SimplePlayer::`vftable'; *(_QWORD *)(a1 + 344) = &SimplePlayer::`vftable'; v2 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v3 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v3); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v2 = (GameManager *)qword_1406C2ED8; } GameManager::unloadIcons(v2, *(_DWORD *)(a1 + 664)); if ( *(_BYTE *)(a1 + 672) ) { v4 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v5 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v5); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v4 = qword_1406C2ED8; } v6 = *(_DWORD *)(a1 + 664); v7 = *(_QWORD **)(v4 + 1160); v8 = (_QWORD *)*v7; if ( (_QWORD *)*v7 != v7 ) { do { v9 = 0; v10 = v8[5]; if ( (v8[6] - v10) >> 3 ) { v11 = 0; do { if ( *(_DWORD *)(*(_QWORD *)(v11 + v10) + 664LL) == v6 ) { memmove((void *)(v10 + 8LL * v9), (const void *)(v10 + 8LL * v9 + 8), v8[6] - (v10 + 8LL * v9 + 8)); v8[6] -= 8LL; } else { ++v9; v11 += 8; } v10 = v8[5]; } while ( v9 < (unsigned __int64)((v8[6] - v10) >> 3) ); } v12 = (__int64 **)v8[2]; if ( *((_BYTE *)v12 + 25) ) { for ( i = v8[1]; !*(_BYTE *)(i + 25); i = *(_QWORD *)(i + 8) ) { if ( v8 != *(_QWORD **)(i + 16) ) break; v8 = (_QWORD *)i; } v8 = (_QWORD *)i; } else { v8 = (_QWORD *)v8[2]; for ( j = *v12; !*((_BYTE *)j + 25); j = (__int64 *)*j ) v8 = j; } } while ( v8 != *(_QWORD **)(v4 + 1160) ); } } cocos2d::CCSprite::~CCSprite((cocos2d::CCSprite *)a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source