// // GJGameLevel::copyLevelInfo from 0x14016d810 to 0x14016db22 (786 bytes) // // 4 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x1400d8db8 // > LevelInfoLayer::FLAlert_Clicked @ 0x140300475 // > @ 0x1406cae18 // > @ 0x1406cae24 // // 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 GJGameLevel::copyLevelInfo(GJGameLevel *a1) { __int64 v1; // rdx __int64 v2; // rdi __int64 v4; // rcx __int64 v5; // rax __int64 v6; // rsi void *v7; // rdx void **v8; // rdx void **v9; // rdx void **v10; // rdx void *v11; // rdx void *v12; // rdx void *v13; // [rsp+20h] [rbp-99h] _BYTE *v14; // [rsp+28h] [rbp-91h] BYREF void *Src[4]; // [rsp+30h] [rbp-89h] BYREF void *v16[4]; // [rsp+50h] [rbp-69h] BYREF void *v17[4]; // [rsp+70h] [rbp-49h] BYREF _BYTE v18[32]; // [rsp+90h] [rbp-29h] BYREF _BYTE v19[32]; // [rsp+B0h] [rbp-9h] BYREF _BYTE v20[32]; // [rsp+D0h] [rbp+17h] BYREF v2 = v1; v14 = v18; sub_14003BDB0((__int64)v18, v1 + 344); if ( !qword_1406C2EC0 ) { v13 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); } GameLevelManager::getNextLevelName(v4, (__int64)v20, (__int64)v18); v5 = sub_14003BDB0((__int64)v19, (__int64)v20); v6 = v5; if ( &a1->m_levelName != (std::string *)v5 ) { v7 = (void *)v5; if ( *(_QWORD *)(v5 + 24) > 0xFu ) v7 = *(void **)v5; sub_14003CCE0((void **)&a1->m_levelName, v7, *(_QWORD *)(v5 + 16)); } sub_14003A830(v6); sub_14003BDB0((__int64)Src, v2 + 408); if ( &a1->m_levelString != (std::string *)Src ) { v8 = Src; if ( Src[3] > (void *)0xF ) v8 = (void **)Src[0]; sub_14003CCE0((void **)&a1->m_levelString, v8, (size_t)Src[2]); } sub_14003A830((__int64)Src); a1->m_audioTrack = *(_DWORD *)(v2 + 668); a1->m_songID = *(_DWORD *)(v2 + 672); a1->m_twoPlayerMode = *(_BYTE *)(v2 + 956); a1->m_levelLength = *(_DWORD *)(v2 + 856); a1->m_timestamp = *(_DWORD *)(v2 + 1224); a1->m_coins = *(_DWORD *)(v2 + 920); GJGameLevel::unverifyCoins(a1); a1->m_lastBuildTab = *(_DWORD *)(v2 + 1096); a1->m_lastBuildPage = *(_DWORD *)(v2 + 1100); a1->m_lastEditorZoom = *(float *)(v2 + 1092); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14); cocos2d::CCPoint::operator=(&a1->m_lastCameraPos, &v14); a1->m_lastBuildGroupID = *(_DWORD *)(v2 + 1104); a1->m_workingTime2 = *(_DWORD *)(v2 + 716) + *(_DWORD *)(v2 + 720); a1->m_workingTime = 0; sub_14003BDB0((__int64)v16, v2 + 600); if ( &a1->m_savedCameraPositions != (std::string *)v16 ) { v9 = v16; if ( v16[3] > (void *)0xF ) v9 = (void **)v16[0]; sub_14003CCE0((void **)&a1->m_savedCameraPositions, v9, (size_t)v16[2]); } sub_14003A830((__int64)v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14); cocos2d::CCPoint::operator=(&a1->m_previewLock, &v14); sub_14003BDB0((__int64)v17, v2 + 568); if ( &a1->m_lockedEditorLayers != (std::string *)v17 ) { v10 = v17; if ( v17[3] > (void *)0xF ) v10 = (void **)v17[0]; sub_14003CCE0((void **)&a1->m_lockedEditorLayers, v10, (size_t)v17[2]); } sub_14003A830((__int64)v17); if ( &a1->m_sfxIDs != (std::string *)(v2 + 1264) ) { v11 = (void *)(v2 + 1264); if ( *(_QWORD *)(v2 + 1288) > 0xFu ) v11 = *(void **)(v2 + 1264); sub_14003CCE0((void **)&a1->m_sfxIDs, v11, *(_QWORD *)(v2 + 1280)); } if ( &a1->m_songIDs != (std::string *)(v2 + 1232) ) { v12 = (void *)(v2 + 1232); if ( *(_QWORD *)(v2 + 1256) > 0xFu ) v12 = *(void **)(v2 + 1232); sub_14003CCE0((void **)&a1->m_songIDs, v12, *(_QWORD *)(v2 + 1248)); } a1->m_songSize = *(_DWORD *)(v2 + 1296); sub_14003A830((__int64)v20); }