// // GJEditorSoundConfig::create from 0x140360310 to 0x140360edf (3023 bytes) // // 3 xrefs: // > GameLevelManager::onDownloadEditorSoundCompleted @ 0x14022fa50 // > GameLevelManager::createAndGetEditorSoundConfigs @ 0x1402309b6 // > @ 0x140921368 // // 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:30:53 +0000 // // Hidden C++ exception states: #wind=4 char *__fastcall GJEditorSoundConfig::create(__int64 a1) { char *v2; // r15 __m128i si128; // xmm6 cocos2d::CCString *v4; // rax void *v5; // rcx cocos2d::CCString *v6; // rax const char *CString; // rax size_t v8; // rdi size_t v9; // r8 _QWORD *v10; // rdx void *v11; // rcx cocos2d::CCString *v12; // rax const char *v13; // rax size_t v14; // r8 _QWORD *v15; // rdx void *v16; // rcx cocos2d::CCString *v17; // rax void *v18; // rcx __m128i v19; // xmm6 cocos2d::CCString *v20; // rax void *v21; // rcx cocos2d::CCString *v22; // rax const char *v23; // rax size_t v24; // r8 void **v25; // rdx void *v26; // rcx cocos2d::CCString *v27; // rax void *v28; // rcx cocos2d::CCString *v29; // rax void *v30; // rcx cocos2d::CCString *v31; // rax void *v32; // rcx cocos2d::CCString *v33; // rax void *v34; // rcx cocos2d::CCString *v35; // rax void *v36; // rcx cocos2d::CCString *v37; // rax void *v38; // rcx cocos2d::CCString *v39; // rax void *v40; // rcx cocos2d::CCString *v41; // rax void *v42; // rcx cocos2d::CCString *v43; // rax const char *v44; // rax size_t v45; // r8 void **v46; // rdx void *v47; // rcx cocos2d::CCString *v48; // rax const char *v49; // rax __int64 v50; // rcx void *v51; // rcx void **v52; // r12 char *v53; // r14 unsigned __int64 v54; // r13 __int64 v55; // rsi size_t v56; // rdi size_t v57; // r8 unsigned __int64 v58; // rax _QWORD *v59; // rdx char *v60; // rax _QWORD v62[3]; // [rsp+38h] [rbp-D0h] BYREF size_t v63; // [rsp+50h] [rbp-B8h] _QWORD Src[3]; // [rsp+58h] [rbp-B0h] BYREF size_t Size; // [rsp+70h] [rbp-98h] _QWORD v66[3]; // [rsp+78h] [rbp-90h] BYREF size_t v67; // [rsp+90h] [rbp-78h] unsigned __int64 v68; // [rsp+98h] [rbp-70h] void *v69[2]; // [rsp+A0h] [rbp-68h] BYREF size_t v70; // [rsp+B0h] [rbp-58h] unsigned __int64 v71; // [rsp+B8h] [rbp-50h] void *v72[2]; // [rsp+C0h] [rbp-48h] BYREF size_t v73; // [rsp+D0h] [rbp-38h] unsigned __int64 v74; // [rsp+D8h] [rbp-30h] void *Block[2]; // [rsp+E0h] [rbp-28h] BYREF __m128i v76; // [rsp+F0h] [rbp-18h] void *v77[2]; // [rsp+100h] [rbp-8h] BYREF __m128i v78; // [rsp+110h] [rbp+8h] v2 = GJEditorSoundConfig::create_1(); if ( v2 && a1 ) { *(_OWORD *)Block = 0; si128 = _mm_load_si128((const __m128i *)&xmmword_140836520); v76 = si128; LOWORD(Block[0]) = 49; v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 80) = cocos2d::CCString::intValue(v4); if ( v76.m128i_i64[1] > 0xFuLL ) { v5 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v5 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v5); si128 = _mm_load_si128((const __m128i *)&xmmword_140836520); } *(_OWORD *)Block = 0; v76 = si128; LOWORD(Block[0]) = 50; v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); CString = cocos2d::CCString::getCString(v6); *(_OWORD *)&Src[1] = 0; Size = 0; v66[0] = 0; v8 = -1; v9 = -1; do ++v9; while ( CString[v9] ); sub_14003D230(&Src[1], CString, v9); if ( v2 + 384 != (char *)&Src[1] ) { v10 = &Src[1]; if ( v66[0] > 0xFu ) v10 = (_QWORD *)Src[1]; sub_1400405A0((void **)v2 + 48, v10, Size); } sub_14003D310((__int64)&Src[1]); if ( v76.m128i_i64[1] > 0xFuLL ) { v11 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v11); } *(_OWORD *)Block = 0; v76 = _mm_load_si128((const __m128i *)&xmmword_140836520); LOWORD(Block[0]) = 51; v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v13 = cocos2d::CCString::getCString(v12); *(_OWORD *)&v66[1] = 0; v67 = 0; v68 = 0; v14 = -1; do ++v14; while ( v13[v14] ); sub_14003D230(&v66[1], v13, v14); if ( v2 + 416 != (char *)&v66[1] ) { v15 = &v66[1]; if ( v68 > 0xF ) v15 = (_QWORD *)v66[1]; sub_1400405A0((void **)v2 + 52, v15, v67); } sub_14003D310((__int64)&v66[1]); if ( v76.m128i_i64[1] > 0xFuLL ) { v16 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v16 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v16 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v16); } *(_OWORD *)Block = 0; v76 = _mm_load_si128((const __m128i *)&xmmword_140836520); LOWORD(Block[0]) = 53; v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 83) = cocos2d::CCString::intValue(v17); if ( v76.m128i_i64[1] > 0xFuLL ) { v18 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v18 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v18); } *(_OWORD *)Block = 0; v19 = _mm_load_si128((const __m128i *)&xmmword_140836530); v76 = v19; strcpy((char *)Block, "49"); v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 86) = cocos2d::CCString::intValue(v20); if ( v76.m128i_i64[1] > 0xFuLL ) { v21 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v21 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v21 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v21); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "50"); v22 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v23 = cocos2d::CCString::getCString(v22); *(_OWORD *)v69 = 0; v70 = 0; v71 = 0; v24 = -1; do ++v24; while ( v23[v24] ); sub_14003D230(v69, v23, v24); if ( v2 + 480 != (char *)v69 ) { v25 = v69; if ( v71 > 0xF ) v25 = (void **)v69[0]; sub_1400405A0((void **)v2 + 60, v25, v70); } sub_14003D310((__int64)v69); if ( v76.m128i_i64[1] > 0xFuLL ) { v26 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v26 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v26 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v26); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "10"); v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 87) = cocos2d::CCString::intValue(v27); if ( v76.m128i_i64[1] > 0xFuLL ) { v28 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v28 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v28 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v28); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "14"); v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 88) = cocos2d::CCString::intValue(v29); if ( v76.m128i_i64[1] > 0xFuLL ) { v30 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v30 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v30 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v30); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "19"); v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v2[376] = cocos2d::CCString::boolValue(v31); if ( v76.m128i_i64[1] > 0xFuLL ) { v32 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v32 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v32 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v32); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "28"); v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 92) = cocos2d::CCString::intValue(v33); if ( v76.m128i_i64[1] > 0xFuLL ) { v34 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v34 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v34 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v34); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "29"); v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 93) = cocos2d::CCString::intValue(v35); if ( v76.m128i_i64[1] > 0xFuLL ) { v36 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v36 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v36 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v36); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "59"); v37 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 89) = cocos2d::CCString::intValue(v37); if ( v76.m128i_i64[1] > 0xFuLL ) { v38 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v38 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v38 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v38); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "60"); v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 90) = cocos2d::CCString::intValue(v39); if ( v76.m128i_i64[1] > 0xFuLL ) { v40 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v40 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v40 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v40); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "61"); v41 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *((_DWORD *)v2 + 91) = cocos2d::CCString::intValue(v41); if ( v76.m128i_i64[1] > 0xFuLL ) { v42 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v42 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v42 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v42); } *(_OWORD *)Block = 0; v76 = v19; strcpy((char *)Block, "64"); v43 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v44 = cocos2d::CCString::getCString(v43); *(_OWORD *)v72 = 0; v73 = 0; v74 = 0; v45 = -1; do ++v45; while ( v44[v45] ); sub_14003D230(v72, v44, v45); if ( v2 + 448 != (char *)v72 ) { v46 = v72; if ( v74 > 0xF ) v46 = (void **)v72[0]; sub_1400405A0((void **)v2 + 56, v46, v73); } sub_14003D310((__int64)v72); if ( v76.m128i_i64[1] > 0xFuLL ) { v47 = Block[0]; if ( (unsigned __int64)(v76.m128i_i64[1] + 1) >= 0x1000 ) { v47 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v47 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v47); } *(_OWORD *)v77 = 0; v78 = v19; strcpy((char *)v77, "51"); v48 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, v77); v49 = cocos2d::CCString::getCString(v48); *(_OWORD *)Block = 0; v76 = 0u; do ++v8; while ( v49[v8] ); sub_14003D230(Block, v49, v8); if ( v78.m128i_i64[1] > 0xFuLL ) { v51 = v77[0]; if ( (unsigned __int64)(v78.m128i_i64[1] + 1) >= 0x1000 ) { v51 = *((void **)v77[0] - 1); if ( (unsigned __int64)((char *)v77[0] - (char *)v51 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v51); } v78 = _mm_load_si128((const __m128i *)&::Size); LOBYTE(v77[0]) = 0; *(_OWORD *)&v62[1] = 0; v63 = 0; Src[0] = 0; v52 = Block; v53 = (char *)Block[0]; v54 = v76.m128i_u64[1]; if ( v76.m128i_i64[1] > 0xFuLL ) v52 = (void **)Block[0]; v55 = 0x7FFFFFFFFFFFFFFFLL; v56 = v76.m128i_i64[0]; if ( v76.m128i_i64[0] > 0x7FFFFFFFFFFFFFFFuLL ) sub_140009D90(v50); if ( v76.m128i_i64[0] > 0xFuLL ) { if ( (v76.m128i_i64[0] | 0xFuLL) <= 0x7FFFFFFFFFFFFFFFLL ) { v55 = v76.m128i_i64[0] | 0xF; if ( (v76.m128i_i64[0] | 0xFuLL) < 0x16 ) v55 = 22; } v62[1] = sub_14003D460(v55 + 1); v63 = v56; Src[0] = v55; memcpy((void *)v62[1], v52, v56 + 1); v58 = v55; v57 = v56; } else { v57 = v76.m128i_i64[0]; v63 = v76.m128i_i64[0]; v58 = 15; Src[0] = 15; *(_OWORD *)&v62[1] = *(_OWORD *)v52; } if ( v2 + 512 != (char *)&v62[1] ) { v59 = &v62[1]; if ( v58 > 0xF ) v59 = (_QWORD *)v62[1]; sub_1400405A0((void **)v2 + 64, v59, v57); } sub_14003D310((__int64)&v62[1]); v2[544] = v56 != 0; if ( v54 > 0xF ) { v60 = v53; if ( v54 + 1 >= 0x1000 ) { v53 = *((char **)v53 - 1); if ( (unsigned __int64)(v60 - v53 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v53); } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source