// // LevelBindingsLayer::onCopy from 0xcf13ec to 0xcf16fc (784 bytes) // // 3 xrefs: // > @ 0x4e7c0 // > LevelBindingsLayer::settingsEntries @ 0xcf118c // > @ 0x1541a00 // // This function is hookable on this platform (idp: arm, 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 13:06:45 +0000 // __int64 __fastcall LevelBindingsLayer::onCopy(LevelBindingsLayer *this, cocos2d::CCObject *a2) { unsigned int *v3; // x23 __int64 v4; // x0 LevelControlConfig *v5; // x28 __int64 v6; // x20 unsigned int v7; // w22 unsigned int *v8; // x19 unsigned int *v9; // x21 __int64 v10; // x19 __int64 *v11; // x22 void *v12; // x20 void *v13; // x0 int v14; // w19 __int64 v15; // x2 size_t v16; // x2 __int64 v17; // x1 __int64 v18; // x3 void (__fastcall *v19)(LevelBindingsLayer *, __int64, __int64); // x20 __int64 v20; // x0 unsigned __int64 v22; // x0 unsigned __int64 v23; // x0 unsigned __int8 v24; // w2 void *v25; // [xsp+60h] [xbp+60h] BYREF void *v26; // [xsp+68h] [xbp+68h] __int64 v27[2]; // [xsp+78h] [xbp+78h] BYREF void *v28; // [xsp+88h] [xbp+88h] __int64 v29; // [xsp+90h] [xbp+90h] BYREF __int64 v30; // [xsp+98h] [xbp+98h] void *v31; // [xsp+A0h] [xbp+A0h] v3 = (unsigned int *)&unk_11A5000; v4 = LevelControlConfig::create(_stack_chk_guard); v5 = (LevelControlConfig *)v4; v6 = v4 + 72; if ( *((_BYTE *)this + 1200) ) v6 = v4 + 112; do { v7 = *v3; (*(void (__fastcall **)(void **__return_ptr, _QWORD, _QWORD))(**((_QWORD **)this + 149) + 16LL))( &v25, *((_QWORD *)this + 149), *v3); v8 = (unsigned int *)v25; v9 = (unsigned int *)v26; if ( v25 != v26 ) { do (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v6 + 32LL))(v6, *v8++, v7); while ( v9 != v8 ); v9 = (unsigned int *)v25; } if ( v9 ) { if ( v26 != v9 ) v26 = (char *)v26 + 4 * ~((unsigned __int64)((char *)v26 - 4 - (char *)v9) >> 2); operator delete(v9); } ++v3; } while ( v3 != (unsigned int *)&unk_11A5018 ); v10 = 3LL * *((unsigned __int8 *)this + 1200); v11 = &qword_155F4A8[v10]; LevelControlConfig::encodeB64(&v29, v5); if ( (qword_155F4A8[v10] & 1) != 0 ) { *(_BYTE *)v11[2] = 0; v11[1] = 0; if ( (qword_155F4A8[v10] & 1) != 0 ) { v12 = (void *)v11[2]; v13 = (char *)v11 + 1; v14 = 1; LABEL_14: v15 = v11[1]; LABEL_15: v16 = v15 + 1; if ( v16 ) memcpy(v13, v12, v16); if ( v14 ) operator delete(v12); goto LABEL_19; } v22 = LOBYTE(qword_155F4A8[v10]) >> 1; if ( v22 <= 0x16 ) goto LABEL_19; v23 = (v22 + 16) & 0xFFFFFFFFFFFFFFF0LL; if ( v23 == 23 ) goto LABEL_19; if ( v23 - 1 > 0x16 ) { v13 = (void *)operator new(v23); v24 = qword_155F4A8[v10]; v14 = v24 & 1; if ( (v24 & 1) == 0 ) { LABEL_31: v12 = (char *)v11 + 1; v15 = v24 >> 1; goto LABEL_15; } } else { v13 = (void *)operator new(v23); v24 = qword_155F4A8[v10]; v14 = v24 & 1; if ( (v24 & 1) == 0 ) goto LABEL_31; } v12 = (void *)v11[2]; goto LABEL_14; } LABEL_19: v11[2] = (__int64)v31; v17 = v30; *v11 = v29; v11[1] = v17; v18 = *(_QWORD *)this; v27[0] = 0; v27[1] = 0; v19 = *(void (__fastcall **)(LevelBindingsLayer *, __int64, __int64))(v18 + 464); v28 = nullptr; std::string::__init(v27, "Copied", 6u); v29 = 0; v30 = 0; v31 = nullptr; std::string::__init(&v29, &byte_11B8890, 0); v20 = TextAlertPopup::create((char *)v27, 150, (char *)&v29, 0.5, 0.6); v19(this, v20, 100); if ( (v29 & 1) != 0 ) operator delete(v31); if ( (v27[0] & 1) != 0 ) operator delete(v28); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source