// // LevelInfoLayer::tryCloneLevel from 0x140422680 to 0x140422840 (448 bytes) // // 2 xrefs: // > LevelInfoLayer::init @ 0x14041da66 // > @ 0x140926888 // // 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:32:09 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall LevelInfoLayer::tryCloneLevel(__int64 a1) { _DWORD *v2; // rcx __int64 v3; // rax cocos2d::CCObject *v4; // rbx __int64 v5; // rax __int64 v6; // rbx __int128 v7; // [rsp+50h] [rbp-48h] BYREF __int64 v8; // [rsp+60h] [rbp-38h] __int64 v9; // [rsp+68h] [rbp-30h] _BYTE v10[40]; // [rsp+70h] [rbp-28h] BYREF void *v11; // [rsp+A0h] [rbp+8h] if ( !*(_BYTE *)(a1 + 488) ) { v2 = *(_DWORD **)(a1 + 504); if ( v2[263] - v2[264] == 1 ) { LevelInfoLayer::confirmClone(a1, 0); } else if ( (int)v2[269] < 5 ) { v11 = operator new(0x300u); v5 = NumberInputLayer::NumberInputLayer(v11); v6 = v5; if ( v5 ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 72LL))(v5) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6); } else { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1); v6 = 0; } } *(_DWORD *)(v6 + 692) = 6; *(_QWORD *)(v6 + 760) = a1 + 456; (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1064LL))(v6); } else { v7 = 0; *(_QWORD *)&v7 = sub_14003D460(0x20u); v8 = 25; v9 = 31; strcpy((char *)v7, "Too many failed attempts!"); v3 = sub_14003F4F0((__int64)v10, (__int64)&v7); v4 = FLAlertLayer::create(0, (int)"Error", v3, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); sub_14003D310((__int64)&v7); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v4 + 1064LL))(v4); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source