// // GJGameLevel::getListSnapshot from 0x14016db30 to 0x14016deba (906 bytes) // // 3 xrefs: // > GJLevelList::addLevelToList @ 0x140176ff7 // > GJLevelList::getListLevelsArray @ 0x140177429 // > @ 0x1406cae30 // // 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=2 GJGameLevel *GJGameLevel::getListSnapshot(GJGameLevel *a1) { int v2; // ebp GJGameLevel *v3; // rax GJGameLevel *v4; // rdi int v5; // ebx float v6; // xmm0_4 void **v7; // rdx int v8; // ebx float v9; // xmm0_4 void **v10; // rdx int v11; // ebx float v12; // xmm0_4 int v13; // ebx float v14; // xmm0_4 int v15; // ebx float v16; // xmm0_4 float v17; // xmm0_4 int v18; // ebx float v19; // xmm0_4 void *Src[4]; // [rsp+20h] [rbp-68h] BYREF void *v22[4]; // [rsp+40h] [rbp-48h] BYREF GJGameLevel *v23; // [rsp+90h] [rbp+8h] v2 = 0; v23 = (GJGameLevel *)operator new(0x5C8u); v3 = GJGameLevel::GJGameLevel(v23); v4 = v3; if ( v3 ) { if ( v3->init(v3) ) { cocos2d::CCObject::autorelease(v4); } else { ((void (__fastcall *)(GJGameLevel *, __int64))v4->~GJGameLevel)(v4, 1); v4 = nullptr; } } v5 = a1->m_levelID.random - a1->m_levelID.seed; v4->m_levelID.value = v5; v6 = (float)((float)rand() / 32767.0) * 1000.0; v4->m_levelID.seed = (int)v6; v4->m_levelID.random = v5 + (int)v6; sub_14003BDB0((__int64)Src, (__int64)&a1->m_levelName); if ( &v4->m_levelName != (std::string *)Src ) { v7 = Src; if ( Src[3] > (void *)0xF ) v7 = (void **)Src[0]; sub_14003CCE0((void **)&v4->m_levelName, v7, (size_t)Src[2]); } sub_14003A830((__int64)Src); v4->m_levelLength = a1->m_levelLength; v4->m_timestamp = a1->m_timestamp; v8 = a1->m_accountID.random - a1->m_accountID.seed; v4->m_accountID.value = v8; v9 = (float)((float)rand() / 32767.0) * 1000.0; v4->m_accountID.seed = (int)v9; v4->m_accountID.random = v8 + (int)v9; sub_14003BDB0((__int64)v22, (__int64)&a1->m_creatorName); if ( &v4->m_creatorName != (std::string *)v22 ) { v10 = v22; if ( v22[3] > (void *)0xF ) v10 = (void **)v22[0]; sub_14003CCE0((void **)&v4->m_creatorName, v10, (size_t)v22[2]); } sub_14003A830((__int64)v22); v4->m_likes = a1->m_likes; v4->m_downloads = a1->m_downloads; v4->m_audioTrack = a1->m_audioTrack; v4->m_songID = a1->m_songID; v4->m_levelType = a1->m_levelType; v4->m_ratings = a1->m_ratings; v4->m_ratingsSum = a1->m_ratingsSum; v11 = a1->m_demon.random - a1->m_demon.seed; v4->m_demon.value = v11; v12 = (float)((float)rand() / 32767.0) * 1000.0; v4->m_demon.seed = (int)v12; v4->m_demon.random = v11 + (int)v12; v4->m_demonDifficulty = a1->m_demonDifficulty; v4->m_autoLevel = a1->m_autoLevel; v4->m_featured = a1->m_featured; v4->m_isEpic = a1->m_isEpic; v13 = a1->m_stars.random - a1->m_stars.seed; v4->m_stars.value = v13; v14 = (float)((float)rand() / 32767.0) * 1000.0; v4->m_stars.seed = (int)v14; v4->m_stars.random = v13 + (int)v14; v4->m_coins = a1->m_coins; v15 = a1->m_coinsVerified.random - a1->m_coinsVerified.seed; v4->m_coinsVerified.value = v15; v16 = (float)((float)rand() / 32767.0) * 1000.0; v4->m_coinsVerified.seed = (int)v16; v4->m_coinsVerified.random = v15 + (int)v16; LOBYTE(v2) = a1->m_originalLevel.random != a1->m_originalLevel.seed; v4->m_originalLevel.value = v2; v17 = (float)((float)rand() / 32767.0) * 1000.0; v4->m_originalLevel.seed = (int)v17; v4->m_originalLevel.random = v2 + (int)v17; v18 = a1->m_objectCount.random - a1->m_objectCount.seed; v4->m_objectCount.value = v18; v19 = (float)((float)rand() / 32767.0) * 1000.0; v4->m_objectCount.seed = (int)v19; v4->m_objectCount.random = v18 + (int)v19; return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source