// // LevelInfoLayer::confirmOwnerDelete from 0x1402fdb10 to 0x1402fdf37 (1063 bytes) // // 2 xrefs: // > LevelInfoLayer::init @ 0x1402f8abd // > @ 0x1406d425c // // 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 // // Hidden C++ exception states: #wind=4 void LevelInfoLayer::confirmOwnerDelete(LevelInfoLayer *a1, cocos2d::CCObject *a2) { _DWORD *v3; // r8 GJAccountManager *v4; // rax GJAccountManager *v5; // rax char v6; // bl int v7; // r12d char *v8; // rdi __int64 v9; // rsi __int64 v10; // r15 char *v11; // rbx __int64 v12; // rbx __int64 v13; // rax FLAlertLayer *v14; // rbx char *v15; // rax void *v16; // [rsp+50h] [rbp-49h] void *v17; // [rsp+50h] [rbp-49h] __int128 v18; // [rsp+58h] [rbp-41h] BYREF __int64 v19; // [rsp+68h] [rbp-31h] __int64 v20; // [rsp+70h] [rbp-29h] _BYTE v21[32]; // [rsp+80h] [rbp-19h] BYREF __int128 v22; // [rsp+A0h] [rbp+7h] __int64 v23; // [rsp+B0h] [rbp+17h] __int64 v24; // [rsp+B8h] [rbp+1Fh] if ( a1->m_isBusy ) return; v3 = (_DWORD *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v16 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (_DWORD *)qword_1406C2ED8; } if ( v3[163] - v3[164] != a1->m_level->m_userID.random - a1->m_level->m_userID.seed ) { v4 = GJAccountManager::sharedState(); if ( v4->m_accountID == v4->m_unkInt1 || (v5 = GJAccountManager::sharedState(), v5->m_accountID - v5->m_unkInt1 != a1->m_level->m_accountID.random - a1->m_level->m_accountID.seed) ) { v6 = 0; v3 = (_DWORD *)qword_1406C2ED8; goto LABEL_9; } v3 = (_DWORD *)qword_1406C2ED8; } v6 = 1; LABEL_9: if ( !v3 ) { v17 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (_DWORD *)qword_1406C2ED8; } v7 = v3[253] - v3[254]; v22 = 0; v8 = (char *)sub_14003AA10(0x90u); *(_QWORD *)&v22 = v8; v9 = 129; v23 = 129; v10 = 143; v24 = 143; strcpy( v8, "Do you want to delete this level from the server?\n" "(Your level will no longer be available online)"); if ( !v6 && v7 > 1 ) { v11 = (char *)sub_14003AA10(0xD7u); v9 = 152; v23 = 152; v10 = 214; v24 = 214; strcpy( v11, "Do you want to delete this level from the server?\n" "(The level will no longer be available online)\n" "(Elder Enabled)"); j_j_free(v8); v8 = v11; *(_QWORD *)&v22 = v11; } v18 = 0; v19 = 0; v12 = 0x7FFFFFFFFFFFFFFFLL; v20 = 15; if ( (v9 | 0xFuLL) <= 0x7FFFFFFFFFFFFFFFLL ) { v12 = v9 | 0xF; if ( (v9 | 0xFuLL) < 0x16 ) v12 = 22; } *(_QWORD *)&v18 = sub_14003AA10(v12 + 1); v19 = v9; v20 = v12; memcpy((void *)v18, v8, v9 + 1); v13 = sub_14003BDB0((__int64)v21, (__int64)&v18); v14 = FLAlertLayer::create( (int)a1 + 440, (int)"Remove Server Level", v13, (__int64)"Cancel", (__int64)"DELETE", 1136525312, 0, 0, 1065353216); sub_14003A830((__int64)&v18); ButtonSprite::updateBGImage(v14->m_button2, "GJ_button_06.png"); v14->setTag(v14, 5); v14->show(v14); v15 = v8; if ( (unsigned __int64)(v10 + 1) >= 0x1000 ) { v8 = *((char **)v8 - 1); if ( (unsigned __int64)(v15 - v8 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source