// // LevelTools::getLevel from 0x601334 to 0x603b6c (10296 bytes) // // 6 xrefs: // > LevelTools::getLevel @ 0x602664 // > GameLevelManager::getMainLevel @ 0x6f16dc // > GameLevelManager::getMainLevel @ 0x6f186c // > GameLevelManager::getStarLevelsString @ 0x736f90 // > GameLevelManager::getStarLevelsString @ 0x737048 // > @ 0xb40a8 // // 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 // GJGameLevel *LevelTools::getLevel(int a1, bool a2) { _BOOL4 v3; // w24 __int64 v4; // x19 void *v5; // x0 int v6; // w3 __int64 v7; // x1 void *v8; // x0 unsigned int *v9; // x1 int v10; // w2 void *v11; // x0 int v12; // w0 int v13; // w0 int v14; // w3 unsigned int *v15; // x1 void *v16; // x0 int v17; // w3 unsigned int *v18; // x1 void *v19; // x0 int v20; // w3 __int64 v21; // x1 void *v22; // x0 LocalLevelManager *v23; // x0 void *v24; // x0 int v25; // w0 float v26; // s0 GJGameLevel *result; // x0 void *v28; // x0 int v29; // w3 unsigned int *v30; // x1 void *v31; // x0 int v32; // w3 unsigned int *v33; // x1 void *v34; // x0 int v35; // w3 unsigned int *v36; // x1 void *v37; // x0 int v38; // w3 unsigned int *v39; // x1 void *v40; // x0 int v41; // w3 unsigned int *v42; // x1 void *v43; // x0 int v44; // w3 unsigned int *v45; // x1 void *v46; // x0 int v47; // w3 unsigned int *v48; // x1 void *v49; // x0 int v50; // w3 unsigned int *v51; // x1 void *v52; // x0 int v53; // w3 unsigned int *v54; // x1 void *v55; // x0 int v56; // w3 void *v57; // x0 void *v58; // x0 int v59; // w3 unsigned int *v60; // x1 void *v61; // x0 int v62; // w3 unsigned int *v63; // x1 void *v64; // x0 int v65; // w3 unsigned int *v66; // x1 int v67; // w2 void *v68; // x0 int v69; // w3 unsigned int *v70; // x1 void *v71; // x0 int v72; // w3 unsigned int *v73; // x1 void *v74; // x0 int v75; // w0 int v76; // w0 int v77; // w3 unsigned int *v78; // x1 unsigned int *v79; // x21 int v80; // w1 void *v81; // x0 int v82; // w3 unsigned int *v83; // x1 void *v84; // x0 int v85; // w3 unsigned int *v86; // x1 void *v87; // x0 int v88; // w3 unsigned int *v89; // x1 void *v90; // x0 int v91; // w0 int v92; // w0 int v93; // w3 unsigned int *v94; // x1 void *v95; // x0 int v96; // w3 unsigned int *v97; // x1 void *v98; // x0 int v99; // w3 unsigned int *v100; // x1 void *v101; // x0 int v102; // w3 unsigned int *v103; // x1 unsigned int *v104; // x1 int v105; // w2 unsigned int *v106; // x1 int v107; // w2 unsigned int *v108; // x1 int v109; // w2 unsigned int *v110; // x1 int v111; // w2 unsigned int *v112; // x1 int v113; // w2 unsigned int *v114; // x1 int v115; // w2 unsigned int *v116; // x1 int v117; // w2 unsigned int *v118; // x1 int v119; // w2 unsigned int *v120; // x1 int v121; // w2 unsigned int *v122; // x1 int v123; // w2 unsigned int *v124; // x1 int v125; // w2 unsigned int *v126; // x1 int v127; // w2 unsigned int *v128; // x1 int v129; // w2 unsigned int *v130; // x1 unsigned int *v131; // x1 int v132; // w2 unsigned int *v133; // x1 int v134; // w2 unsigned int *v135; // x1 int v136; // w2 unsigned int *v137; // x1 int v138; // w2 unsigned int *v139; // x1 int v140; // w2 unsigned int *v141; // x1 int v142; // w2 unsigned int *v143; // x1 int v144; // w2 unsigned int *v145; // x1 int v146; // w2 unsigned int *v147; // x1 int v148; // w2 unsigned int *v149; // x1 int v150; // w2 unsigned int *v151; // x1 int v152; // w2 unsigned int *v153; // x1 int v154; // w2 unsigned int *v155; // x1 int v156; // w2 unsigned int *v157; // x1 int v158; // w2 unsigned int *v159; // x1 int v160; // w2 __int64 v161; // [xsp+70h] [xbp+70h] BYREF v3 = a2; v4 = GJGameLevel::create(_stack_chk_guard); if ( a1 == 14 ) { LevelTools::getAudioTitle((LevelTools *)&byte_9[4], (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v90 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v128 = (unsigned int *)(v161 - 8); do v129 = __ldaxr(v128); while ( __stlxr(v129 - 1, v128) ); } else { v129 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v129 - 1; } if ( v129 <= 0 ) operator delete(v90); } *(_DWORD *)(v4 + 452) = 13; *(_DWORD *)(v4 + 448) = 6; *(_DWORD *)(v4 + 696) = 14; v91 = rand(); *(_DWORD *)(v4 + 836) = 10; *(_DWORD *)(v4 + 680) = 1; v92 = (int)(float)((float)((float)v91 * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v92; *(_DWORD *)(v4 + 688) = v92 + 14; v93 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 676) = v93; *(_DWORD *)(v4 + 672) = v93 + 1; sub_D153B8((int)&v161, "29_237_29_54_29_29_29_132_29_29_98_29_132_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v94 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v94); while ( __stlxr(v10 - 1, v94) ); goto LABEL_67; } if ( a1 <= 14 ) { if ( a1 == 7 ) { LevelTools::getAudioTitle((LevelTools *)&byte_6, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v87 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v110 = (unsigned int *)(v161 - 8); do v111 = __ldaxr(v110); while ( __stlxr(v111 - 1, v110) ); } else { v111 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v111 - 1; } if ( v111 <= 0 ) operator delete(v87); } *(_DWORD *)(v4 + 452) = 6; *(_DWORD *)(v4 + 448) = 4; *(_DWORD *)(v4 + 696) = 7; v88 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v88; *(_DWORD *)(v4 + 688) = v88 + 7; sub_D153B8((int)&v161, "29_98_29_40_29_29_29_29_29_29_98_29_98_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v89 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v89); while ( __stlxr(v10 - 1, v89) ); goto LABEL_67; } if ( a1 > 7 ) { if ( a1 == 10 ) { LevelTools::getAudioTitle((LevelTools *)byte_9, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v68 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v147 = (unsigned int *)(v161 - 8); do v148 = __ldaxr(v147); while ( __stlxr(v148 - 1, v147) ); } else { v148 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v148 - 1; } if ( v148 <= 0 ) operator delete(v68); } *(_DWORD *)(v4 + 452) = 9; *(_DWORD *)(v4 + 448) = 5; *(_DWORD *)(v4 + 696) = 10; v69 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v69; *(_DWORD *)(v4 + 688) = v69 + 10; sub_D153B8((int)&v161, "29_132_29_40_29_29_29_54_29_29_132_29_73_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v70 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v70); while ( __stlxr(v10 - 1, v70) ); } else if ( a1 <= 10 ) { if ( a1 == 8 ) { LevelTools::getAudioTitle((LevelTools *)&byte_7, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v43 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v141 = (unsigned int *)(v161 - 8); do v142 = __ldaxr(v141); while ( __stlxr(v142 - 1, v141) ); } else { v142 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v142 - 1; } if ( v142 <= 0 ) operator delete(v43); } *(_DWORD *)(v4 + 452) = 7; *(_DWORD *)(v4 + 448) = 4; *(_DWORD *)(v4 + 696) = 8; v44 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v44; *(_DWORD *)(v4 + 688) = v44 + 8; sub_D153B8((int)&v161, "29_132_29_40_29_29_29_29_29_29_73_29_98_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v45 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v45); while ( __stlxr(v10 - 1, v45) ); } else { LevelTools::getAudioTitle((LevelTools *)byte_8, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v28 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v157 = (unsigned int *)(v161 - 8); do v158 = __ldaxr(v157); while ( __stlxr(v158 - 1, v157) ); } else { v158 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v158 - 1; } if ( v158 <= 0 ) operator delete(v28); } *(_DWORD *)(v4 + 452) = 8; *(_DWORD *)(v4 + 448) = 4; *(_DWORD *)(v4 + 696) = 9; v29 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v29; *(_DWORD *)(v4 + 688) = v29 + 9; sub_D153B8((int)&v161, "29_98_29_40_29_29_29_40_29_29_98_29_98_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v30 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v30); while ( __stlxr(v10 - 1, v30) ); } } else if ( a1 == 12 ) { LevelTools::getAudioTitle((LevelTools *)&byte_9[2], (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v81 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v133 = (unsigned int *)(v161 - 8); do v134 = __ldaxr(v133); while ( __stlxr(v134 - 1, v133) ); } else { v134 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v134 - 1; } if ( v134 <= 0 ) operator delete(v81); } *(_DWORD *)(v4 + 452) = 11; *(_DWORD *)(v4 + 448) = 5; *(_DWORD *)(v4 + 696) = 12; v82 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v82; *(_DWORD *)(v4 + 688) = v82 + 12; sub_D153B8((int)&v161, "29_237_29_54_29_29_29_73_29_29_132_29_132_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v83 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v83); while ( __stlxr(v10 - 1, v83) ); } else if ( a1 <= 12 ) { LevelTools::getAudioTitle((LevelTools *)&byte_9[1], (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v16 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v120 = (unsigned int *)(v161 - 8); do v121 = __ldaxr(v120); while ( __stlxr(v121 - 1, v120) ); } else { v121 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v121 - 1; } if ( v121 <= 0 ) operator delete(v16); } *(_DWORD *)(v4 + 452) = 10; *(_DWORD *)(v4 + 448) = 5; *(_DWORD *)(v4 + 696) = 11; v17 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v17; *(_DWORD *)(v4 + 688) = v17 + 11; sub_D153B8((int)&v161, "29_237_29_40_29_29_29_73_29_29_29_29_98_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v18 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v18); while ( __stlxr(v10 - 1, v18) ); } else { LevelTools::getAudioTitle((LevelTools *)&byte_9[3], (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v58 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v139 = (unsigned int *)(v161 - 8); do v140 = __ldaxr(v139); while ( __stlxr(v140 - 1, v139) ); } else { v140 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v140 - 1; } if ( v140 <= 0 ) operator delete(v58); } *(_DWORD *)(v4 + 452) = 12; *(_DWORD *)(v4 + 448) = 5; *(_DWORD *)(v4 + 696) = 10; v59 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v59; *(_DWORD *)(v4 + 688) = v59 + 10; sub_D153B8((int)&v161, "29_237_29_40_29_29_29_98_29_29_98_29_132_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v60 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v60); while ( __stlxr(v10 - 1, v60) ); } goto LABEL_67; } if ( a1 == 3 ) { LevelTools::getAudioTitle((LevelTools *)&dword_0 + 2, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v46 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v124 = (unsigned int *)(v161 - 8); do v125 = __ldaxr(v124); while ( __stlxr(v125 - 1, v124) ); } else { v125 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v125 - 1; } if ( v125 <= 0 ) operator delete(v46); } *(_DWORD *)(v4 + 452) = 2; *(_DWORD *)(v4 + 448) = 2; *(_DWORD *)(v4 + 696) = 3; v47 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v47; *(_DWORD *)(v4 + 688) = v47 + 3; sub_D153B8((int)&v161, "29_98_29_40_29_29_29_29_29_29_29_29_98_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v48 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v48); while ( __stlxr(v10 - 1, v48) ); goto LABEL_67; } if ( a1 > 3 ) { if ( a1 == 5 ) { LevelTools::getAudioTitle((LevelTools *)&byte_4, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v101 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v153 = (unsigned int *)(v161 - 8); do v154 = __ldaxr(v153); while ( __stlxr(v154 - 1, v153) ); } else { v154 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v154 - 1; } if ( v154 <= 0 ) operator delete(v101); } *(_DWORD *)(v4 + 452) = 4; *(_DWORD *)(v4 + 448) = 3; *(_DWORD *)(v4 + 696) = 5; v102 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v102; *(_DWORD *)(v4 + 688) = v102 + 5; sub_D153B8((int)&v161, "29_73_29_40_29_29_29_29_29_29_98_29_73_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v103 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v103); while ( __stlxr(v10 - 1, v103) ); } else { if ( a1 > 5 ) { LevelTools::getAudioTitle((LevelTools *)&byte_5, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v52 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v126 = (unsigned int *)(v161 - 8); do v127 = __ldaxr(v126); while ( __stlxr(v127 - 1, v126) ); } else { v127 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v127 - 1; } if ( v127 <= 0 ) operator delete(v52); } *(_DWORD *)(v4 + 452) = 5; *(_DWORD *)(v4 + 448) = 3; *(_DWORD *)(v4 + 696) = 6; v53 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v53; *(_DWORD *)(v4 + 688) = v53 + 6; sub_D153B8((int)&v161, "29_73_29_40_29_29_29_29_29_29_29_29_73_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( &pthread_create ) { v54 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v54); while ( __stlxr(v10 - 1, v54) ); goto LABEL_67; } LABEL_202: v10 = *(_DWORD *)(v7 - 8); *(_DWORD *)(v7 - 8) = v10 - 1; goto LABEL_67; } LevelTools::getAudioTitle((LevelTools *)&dword_0 + 3, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v5 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v149 = (unsigned int *)(v161 - 8); do v150 = __ldaxr(v149); while ( __stlxr(v150 - 1, v149) ); } else { v150 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v150 - 1; } if ( v150 <= 0 ) operator delete(v5); } *(_DWORD *)(v4 + 452) = 3; *(_DWORD *)(v4 + 448) = 2; *(_DWORD *)(v4 + 696) = 4; v6 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v6; *(_DWORD *)(v4 + 688) = v6 + 4; sub_D153B8((int)&v161, "29_73_29_40_29_29_29_29_29_29_73_29_73_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v9 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } LABEL_67: if ( v10 <= 0 ) operator delete(v8); goto LABEL_48; } if ( a1 == 1 ) { LevelTools::getAudioTitle(nullptr, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v40 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v112 = (unsigned int *)(v161 - 8); do v113 = __ldaxr(v112); while ( __stlxr(v113 - 1, v112) ); } else { v113 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v113 - 1; } if ( v113 <= 0 ) operator delete(v40); } *(_QWORD *)(v4 + 448) = 1; *(_DWORD *)(v4 + 696) = 1; v41 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v41; *(_DWORD *)(v4 + 688) = v41 + 1; sub_D153B8((int)&v161, "29_98_29_40_29_29_29_29_29_29_177_29_73_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v42 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v42); while ( __stlxr(v10 - 1, v42) ); goto LABEL_67; } if ( a1 == 2 ) { LevelTools::getAudioTitle((LevelTools *)&dword_0 + 1, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v31 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v108 = (unsigned int *)(v161 - 8); do v109 = __ldaxr(v108); while ( __stlxr(v109 - 1, v108) ); } else { v109 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v109 - 1; } if ( v109 <= 0 ) operator delete(v31); } *(_DWORD *)(v4 + 452) = 1; *(_DWORD *)(v4 + 448) = 1; *(_DWORD *)(v4 + 696) = 2; v32 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v32; *(_DWORD *)(v4 + 688) = v32 + 2; sub_D153B8((int)&v161, "29_54_29_40_29_29_29_29_29_29_98_29_54_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v33 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v33); while ( __stlxr(v10 - 1, v33) ); goto LABEL_67; } return LevelTools::getLevel((int)&dword_0 + 1, v3); } if ( a1 == 21 ) { LevelTools::getAudioTitle((LevelTools *)&dword_14, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v98 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v145 = (unsigned int *)(v161 - 8); do v146 = __ldaxr(v145); while ( __stlxr(v146 - 1, v145) ); } else { v146 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v146 - 1; } if ( v146 <= 0 ) operator delete(v98); } *(_DWORD *)(v4 + 452) = 20; *(_DWORD *)(v4 + 448) = 5; *(_DWORD *)(v4 + 696) = 12; v99 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v99; *(_DWORD *)(v4 + 688) = v99 + 12; sub_D153B8( (int)&v161, "40_630_195_48_0_0_210_114_0_0_572_247_97_0_0_53_466_135_0_459_276_71_448_0_101_88_101_0_0_0_0_0_0_0_0_0_0_0_0_0_0_" "0_0_0_0_0_0_0_0_0_0_0_0_0_0"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v100 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v100); while ( __stlxr(v10 - 1, v100) ); goto LABEL_67; } if ( a1 <= 21 ) { if ( a1 == 17 ) { LevelTools::getAudioTitle((LevelTools *)&word_10, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v49 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v106 = (unsigned int *)(v161 - 8); do v107 = __ldaxr(v106); while ( __stlxr(v107 - 1, v106) ); } else { v107 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v107 - 1; } if ( v107 <= 0 ) operator delete(v49); } *(_DWORD *)(v4 + 452) = 16; *(_DWORD *)(v4 + 448) = 4; *(_DWORD *)(v4 + 696) = 10; v50 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v50; *(_DWORD *)(v4 + 688) = v50 + 10; sub_D153B8((int)&v161, "29_237_29_73_29_29_98_132_29_29_566_54_132_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v51 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v51); while ( __stlxr(v10 - 1, v51) ); } else if ( a1 <= 17 ) { if ( a1 == 15 ) { LevelTools::getAudioTitle((LevelTools *)&byte_9[5], (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v61 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v114 = (unsigned int *)(v161 - 8); do v115 = __ldaxr(v114); while ( __stlxr(v115 - 1, v114) ); } else { v115 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v115 - 1; } if ( v115 <= 0 ) operator delete(v61); } *(_DWORD *)(v4 + 452) = 14; *(_DWORD *)(v4 + 448) = 5; *(_DWORD *)(v4 + 696) = 12; v62 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v62; *(_DWORD *)(v4 + 688) = v62 + 12; sub_D153B8((int)&v161, "29_237_98_40_29_29_29_237_29_29_98_73_177_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v63 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v63); while ( __stlxr(v10 - 1, v63) ); } else { LevelTools::getAudioTitle((LevelTools *)&byte_9[6], (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v37 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v122 = (unsigned int *)(v161 - 8); do v123 = __ldaxr(v122); while ( __stlxr(v123 - 1, v122) ); } else { v123 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v123 - 1; } if ( v123 <= 0 ) operator delete(v37); } *(_DWORD *)(v4 + 452) = 15; *(_DWORD *)(v4 + 448) = 5; *(_DWORD *)(v4 + 696) = 12; v38 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v38; *(_DWORD *)(v4 + 688) = v38 + 12; sub_D153B8((int)&v161, "29_317_73_73_29_29_54_132_29_29_237_132_177_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v39 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v39); while ( __stlxr(v10 - 1, v39) ); } } else if ( a1 == 19 ) { LevelTools::getAudioTitle((LevelTools *)&word_12, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v95 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v151 = (unsigned int *)(v161 - 8); do v152 = __ldaxr(v151); while ( __stlxr(v152 - 1, v151) ); } else { v152 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v152 - 1; } if ( v152 <= 0 ) operator delete(v95); } *(_DWORD *)(v4 + 452) = 18; *(_DWORD *)(v4 + 448) = 4; *(_DWORD *)(v4 + 696) = 10; v96 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v96; *(_DWORD *)(v4 + 688) = v96 + 10; sub_D153B8((int)&v161, "29_424_132_40_29_29_566_132_29_29_756_237_132_29_73_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v97 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v97); while ( __stlxr(v10 - 1, v97) ); } else if ( a1 <= 19 ) { LevelTools::getAudioTitle((LevelTools *)&word_10 + 1, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v11 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v118 = (unsigned int *)(v161 - 8); do v119 = __ldaxr(v118); while ( __stlxr(v119 - 1, v118) ); } else { v119 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v119 - 1; } if ( v119 <= 0 ) operator delete(v11); } *(_DWORD *)(v4 + 452) = 17; *(_DWORD *)(v4 + 448) = 6; *(_DWORD *)(v4 + 696) = 14; v12 = rand(); *(_DWORD *)(v4 + 836) = 20; *(_DWORD *)(v4 + 680) = 1; v13 = (int)(float)((float)((float)v12 * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v13; *(_DWORD *)(v4 + 688) = v13 + 14; v14 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 676) = v14; *(_DWORD *)(v4 + 672) = v14 + 1; sub_D153B8((int)&v161, "29_317_40_54_29_40_132_132_29_29_424_98_237_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v15 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v15); while ( __stlxr(v10 - 1, v15) ); } else { LevelTools::getAudioTitle((LevelTools *)&word_12 + 1, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v74 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v137 = (unsigned int *)(v161 - 8); do v138 = __ldaxr(v137); while ( __stlxr(v138 - 1, v137) ); } else { v138 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v138 - 1; } if ( v138 <= 0 ) operator delete(v74); } *(_DWORD *)(v4 + 452) = 19; *(_DWORD *)(v4 + 448) = 6; *(_DWORD *)(v4 + 696) = 15; v75 = rand(); *(_DWORD *)(v4 + 836) = 30; *(_DWORD *)(v4 + 680) = 1; v76 = (int)(float)((float)((float)v75 * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v76; *(_DWORD *)(v4 + 688) = v76 + 15; v77 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 676) = v77; *(_DWORD *)(v4 + 672) = v77 + 1; sub_D153B8((int)&v161, "29_317_73_73_29_29_317_424_73_29_566_317_177_29_132_54"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v78 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v78); while ( __stlxr(v10 - 1, v78) ); } goto LABEL_67; } if ( a1 == 5001 ) { sub_D153B8((int)&v161, "The Tower"); sub_D18EA8(v4 + 344, &v161); v71 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v143 = (unsigned int *)(v161 - 8); do v144 = __ldaxr(v143); while ( __stlxr(v144 - 1, v143) ); } else { v144 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v144 - 1; } if ( v144 <= 0 ) operator delete(v71); } *(_DWORD *)(v4 + 452) = 0; *(_DWORD *)(v4 + 456) = 10003039; *(_DWORD *)(v4 + 448) = 2; *(_DWORD *)(v4 + 696) = 5; v72 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v72; *(_DWORD *)(v4 + 688) = v72 + 5; sub_D153B8((int)&v161, "1,210,25,209,56,310,58,250,62,249"); sub_D18EA8(v4 + 888, &v161); v21 = v161; v22 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_47; if ( !&pthread_create ) goto LABEL_204; v73 = (unsigned int *)(v161 - 8); do v67 = __ldaxr(v73); while ( __stlxr(v67 - 1, v73) ); LABEL_134: if ( v67 <= 0 ) operator delete(v22); goto LABEL_47; } if ( a1 <= 5001 ) { if ( a1 == 22 ) { LevelTools::getAudioTitle((LevelTools *)&dword_14 + 1, (__int64)&v161); sub_D18EA8(v4 + 344, &v161); v55 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v159 = (unsigned int *)(v161 - 8); do v160 = __ldaxr(v159); while ( __stlxr(v160 - 1, v159) ); } else { v160 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v160 - 1; } if ( v160 <= 0 ) operator delete(v55); } *(_DWORD *)(v4 + 452) = 21; *(_DWORD *)(v4 + 448) = 5; *(_DWORD *)(v4 + 696) = 12; v56 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v56; *(_DWORD *)(v4 + 688) = v56 + 12; sub_D153B8((int)&v161, "24,340,52,244,54,1335,56,356,58,510,60,1257"); sub_D18EA8(v4 + 888, &v161); v57 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v135 = (unsigned int *)(v161 - 8); do v136 = __ldaxr(v135); while ( __stlxr(v136 - 1, v135) ); } else { v136 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v136 - 1; } if ( v136 <= 0 ) operator delete(v57); } *(_DWORD *)(v4 + 912) = 21940; goto LABEL_48; } if ( a1 == 3001 ) { sub_D153B8((int)&v161, "The Challenge"); sub_D18EA8(v4 + 344, &v161); v34 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v131 = (unsigned int *)(v161 - 8); do v132 = __ldaxr(v131); while ( __stlxr(v132 - 1, v131) ); } else { v132 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v132 - 1; } if ( v132 <= 0 ) operator delete(v34); } *(_DWORD *)(v4 + 448) = 3; *(_DWORD *)(v4 + 452) = 26; *(_DWORD *)(v4 + 696) = 3; v35 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v35; *(_DWORD *)(v4 + 688) = v35 + 3; sub_D153B8((int)&v161, "73_237_29_40_29_29_237_98_29_29_237_237_132_29_29_29"); sub_D18EA8(v4 + 888, &v161); v7 = v161; v8 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_48; if ( !&pthread_create ) goto LABEL_202; v36 = (unsigned int *)(v161 - 8); do v10 = __ldaxr(v36); while ( __stlxr(v10 - 1, v36) ); goto LABEL_67; } return LevelTools::getLevel((int)&dword_0 + 1, v3); } if ( a1 == 5003 ) { sub_D153B8((int)&v161, "The Cellar"); sub_D18EA8(v4 + 344, &v161); v84 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v104 = (unsigned int *)(v161 - 8); do v105 = __ldaxr(v104); while ( __stlxr(v105 - 1, v104) ); } else { v105 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v105 - 1; } if ( v105 <= 0 ) operator delete(v84); } *(_DWORD *)(v4 + 452) = 0; *(_DWORD *)(v4 + 456) = 10002875; *(_DWORD *)(v4 + 448) = 4; *(_DWORD *)(v4 + 696) = 7; v85 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v85; *(_DWORD *)(v4 + 688) = v85 + 7; sub_D153B8((int)&v161, "50,206,52,396,54,682"); sub_D18EA8(v4 + 888, &v161); v21 = v161; v22 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_47; if ( !&pthread_create ) goto LABEL_204; v86 = (unsigned int *)(v161 - 8); do v67 = __ldaxr(v86); while ( __stlxr(v67 - 1, v86) ); goto LABEL_134; } if ( a1 < 5003 ) { sub_D153B8((int)&v161, "The Sewers"); sub_D18EA8(v4 + 344, &v161); v64 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v116 = (unsigned int *)(v161 - 8); do v117 = __ldaxr(v116); while ( __stlxr(v117 - 1, v116) ); } else { v117 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v117 - 1; } if ( v117 <= 0 ) operator delete(v64); } *(_DWORD *)(v4 + 452) = 0; *(_DWORD *)(v4 + 456) = 10003129; *(_DWORD *)(v4 + 448) = 3; *(_DWORD *)(v4 + 696) = 6; v65 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v65; *(_DWORD *)(v4 + 688) = v65 + 6; sub_D153B8((int)&v161, "50,366,52,332,54,408"); sub_D18EA8(v4 + 888, &v161); v21 = v161; v22 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) == &qword_124B6B0 ) goto LABEL_47; if ( !&pthread_create ) goto LABEL_204; v66 = (unsigned int *)(v161 - 8); do v67 = __ldaxr(v66); while ( __stlxr(v67 - 1, v66) ); goto LABEL_134; } if ( a1 != 5004 ) return LevelTools::getLevel((int)&dword_0 + 1, v3); sub_D153B8((int)&v161, "The Secret Hollow"); sub_D18EA8(v4 + 344, &v161); v19 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v155 = (unsigned int *)(v161 - 8); do v156 = __ldaxr(v155); while ( __stlxr(v156 - 1, v155) ); } else { v156 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v156 - 1; } if ( v156 <= 0 ) operator delete(v19); } *(_DWORD *)(v4 + 452) = 0; *(_DWORD *)(v4 + 456) = 10006086; *(_DWORD *)(v4 + 448) = 4; *(_DWORD *)(v4 + 696) = 7; v20 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *(_DWORD *)(v4 + 692) = v20; *(_DWORD *)(v4 + 688) = v20 + 7; sub_D153B8((int)&v161, "52,505,54,1104,56,556,58,368"); sub_D18EA8(v4 + 888, &v161); v21 = v161; v22 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v130 = (unsigned int *)(v161 - 8); do v67 = __ldaxr(v130); while ( __stlxr(v67 - 1, v130) ); goto LABEL_134; } LABEL_204: v67 = *(_DWORD *)(v21 - 8); *(_DWORD *)(v21 - 8) = v67 - 1; goto LABEL_134; } LABEL_47: *(_DWORD *)(v4 + 640) = (unsigned int)&byte_5; LABEL_48: if ( !v3 ) { v23 = LocalLevelManager::sharedState(); LocalLevelManager::getMainLevelString(v23, a1); sub_D18EA8(v4 + 360, &v161); v24 = (void *)(v161 - 24); if ( (__int64 *)(v161 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v79 = (unsigned int *)(v161 - 8); do v80 = __ldaxr(v79); while ( __stlxr(v80 - 1, v79) ); } else { v80 = *(_DWORD *)(v161 - 8); *(_DWORD *)(v161 - 8) = v80 - 1; } if ( v80 <= 0 ) operator delete(v24); } } *(_DWORD *)(v4 + 336) = a1; v25 = rand(); *(_DWORD *)(v4 + 868) = 1; v26 = (float)((float)v25 * 4.6566e-10) * 1000.0; *(_DWORD *)(v4 + 332) = (int)v26; *(_DWORD *)(v4 + 328) = a1 + (int)v26; result = (GJGameLevel *)v4; if ( a1 != 3001 ) *(_DWORD *)(v4 + 704) = 3; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source