// // EditorUI::getRandomStartKey from 0x14012d520 to 0x14012d7b6 (662 bytes) // // 4 xrefs: // > EditorUI::processSmartObjectsFromType @ 0x14011861f // > @ 0x140670d54 // > @ 0x140670d64 // > @ 0x1406c9d38 // // 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 // int EditorUI::getRandomStartKey(int a1) { int v1; // ecx int v2; // ecx int v3; // ecx int v4; // ecx int result; // eax int v6; // ecx int v7; // ecx int v8; // ecx int v9; // ebx if ( a1 > 1861 ) { if ( a1 == 2703 ) { qword_1406C2EB8 = 214013 * qword_1406C2EB8 + 2531011; return ((int)floorf( (float)((float)(((unsigned __int64)qword_1406C2EB8 >> 16) & 0x7FFF) / 32767.0) + (float)((float)(((unsigned __int64)qword_1406C2EB8 >> 16) & 0x7FFF) / 32767.0)) != 0) + 2703; } else { v9 = 2838; if ( a1 == 2838 ) { qword_1406C2EB8 = 214013 * qword_1406C2EB8 + 2531011; if ( (int)floorf( (float)((float)(((unsigned __int64)qword_1406C2EB8 >> 16) & 0x7FFF) / 32767.0) + (float)((float)(((unsigned __int64)qword_1406C2EB8 >> 16) & 0x7FFF) / 32767.0)) ) return 2840; return v9; } } } else if ( a1 == 1861 ) { qword_1406C2EB8 = 214013 * qword_1406C2EB8 + 2531011; v7 = (int)floorf((float)((float)(((unsigned __int64)qword_1406C2EB8 >> 16) & 0x7FFF) / 32767.0) * 4.0); if ( v7 ) { v8 = v7 - 1; if ( v8 ) { if ( v8 == 1 ) return 1863; else return 1864; } else { return 1862; } } else { return 1861; } } else { v1 = a1 - 869; if ( v1 ) { v2 = v1 - 562; if ( v2 ) { if ( v2 == 30 ) { qword_1406C2EB8 = 214013 * qword_1406C2EB8 + 2531011; v3 = (int)floorf((float)((float)(((unsigned __int64)qword_1406C2EB8 >> 16) & 0x7FFF) / 32767.0) * 4.0); if ( v3 ) { v4 = v3 - 1; if ( v4 ) { if ( v4 == 1 ) return 1463; else return 1464; } else { return 1462; } } else { return 1461; } } } else { qword_1406C2EB8 = 214013 * qword_1406C2EB8 + 2531011; v6 = (int)floorf((float)((float)(((unsigned __int64)qword_1406C2EB8 >> 16) & 0x7FFF) / 32767.0) * 3.0); if ( v6 ) { if ( v6 == 1 ) return 1432; else return 1433; } else { return 1431; } } } else { qword_1406C2EB8 = 214013 * qword_1406C2EB8 + 2531011; return ((int)floorf( (float)((float)(((unsigned __int64)qword_1406C2EB8 >> 16) & 0x7FFF) / 32767.0) + (float)((float)(((unsigned __int64)qword_1406C2EB8 >> 16) & 0x7FFF) / 32767.0)) != 0) + 869; } } return result; }