// // GJLevelList::create from 0x140271b10 to 0x14027246e (2398 bytes) // // 2 xrefs: // > GameLevelManager::createAndGetLevelLists @ 0x14021e8ad // > @ 0x14091cb14 // // 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:28:54 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall GJLevelList::create(__int64 a1) { __int64 v2; // rsi __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 void **v10; // rdx void *v11; // rcx cocos2d::CCString *v12; // rax const char *v13; // rax size_t v14; // r8 void **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 void *v45; // rcx void *Src[2]; // [rsp+40h] [rbp-71h] BYREF size_t Size; // [rsp+50h] [rbp-61h] unsigned __int64 v49; // [rsp+58h] [rbp-59h] void *v50[2]; // [rsp+60h] [rbp-51h] BYREF size_t v51; // [rsp+70h] [rbp-41h] unsigned __int64 v52; // [rsp+78h] [rbp-39h] void *v53[2]; // [rsp+80h] [rbp-31h] BYREF size_t v54; // [rsp+90h] [rbp-21h] unsigned __int64 v55; // [rsp+98h] [rbp-19h] __int128 v56; // [rsp+A0h] [rbp-11h] BYREF __int64 v57; // [rsp+B0h] [rbp-1h] __int64 v58; // [rsp+B8h] [rbp+7h] void *Block[2]; // [rsp+C0h] [rbp+Fh] BYREF __m128i v60; // [rsp+D0h] [rbp+1Fh] v2 = GJLevelList::create_1(); *(_OWORD *)Block = 0; si128 = _mm_load_si128((const __m128i *)&xmmword_140836520); v60 = si128; LOWORD(Block[0]) = 49; v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 344) = cocos2d::CCString::intValue(v4); if ( v60.m128i_i64[1] > 0xFuLL ) { v5 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = si128; LOWORD(Block[0]) = 50; v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); CString = cocos2d::CCString::getCString(v6); *(_OWORD *)Src = 0; Size = 0; v49 = 0; v8 = -1; v9 = -1; do ++v9; while ( CString[v9] ); sub_14003D230(Src, CString, v9); if ( (void **)(v2 + 440) != Src ) { v10 = Src; if ( v49 > 0xF ) v10 = (void **)Src[0]; sub_1400405A0((void **)(v2 + 440), v10, Size); } sub_14003D310((__int64)Src); if ( v60.m128i_i64[1] > 0xFuLL ) { v11 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = _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 *)v50 = 0; v51 = 0; v52 = 0; v14 = -1; do ++v14; while ( v13[v14] ); sub_14003D230(v50, v13, v14); if ( (void **)(v2 + 536) != v50 ) { v15 = v50; if ( v52 > 0xF ) v15 = (void **)v50[0]; sub_1400405A0((void **)(v2 + 536), v15, v51); } sub_14003D310((__int64)v50); if ( v60.m128i_i64[1] > 0xFuLL ) { v16 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = _mm_load_si128((const __m128i *)&xmmword_140836520); LOWORD(Block[0]) = 53; v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 348) = cocos2d::CCString::intValue(v17); if ( v60.m128i_i64[1] > 0xFuLL ) { v18 = Block[0]; if ( (unsigned __int64)(v60.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); v60 = v19; strcpy((char *)Block, "49"); v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 364) = cocos2d::CCString::intValue(v20); if ( v60.m128i_i64[1] > 0xFuLL ) { v21 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = v19; strcpy((char *)Block, "50"); v22 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v23 = cocos2d::CCString::getCString(v22); *(_OWORD *)v53 = 0; v54 = 0; v55 = 0; v24 = -1; do ++v24; while ( v23[v24] ); sub_14003D230(v53, v23, v24); if ( (void **)(v2 + 408) != v53 ) { v25 = v53; if ( v55 > 0xF ) v25 = (void **)v53[0]; sub_1400405A0((void **)(v2 + 408), v25, v54); } sub_14003D310((__int64)v53); if ( v60.m128i_i64[1] > 0xFuLL ) { v26 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = v19; strcpy((char *)Block, "10"); v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 352) = cocos2d::CCString::intValue(v27); if ( v60.m128i_i64[1] > 0xFuLL ) { v28 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = v19; strcpy((char *)Block, "14"); v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 356) = cocos2d::CCString::intValue(v29); if ( v60.m128i_i64[1] > 0xFuLL ) { v30 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = _mm_load_si128((const __m128i *)&xmmword_140836520); LOWORD(Block[0]) = 55; v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 360) = cocos2d::CCString::intValue(v31); if ( v60.m128i_i64[1] > 0xFuLL ) { v32 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = v19; strcpy((char *)Block, "28"); v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 568) = cocos2d::CCString::intValue(v33); if ( v60.m128i_i64[1] > 0xFuLL ) { v34 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = v19; strcpy((char *)Block, "29"); v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 572) = cocos2d::CCString::intValue(v35); if ( v60.m128i_i64[1] > 0xFuLL ) { v36 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = v19; strcpy((char *)Block, "55"); v37 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 384) = cocos2d::CCString::intValue(v37); if ( v60.m128i_i64[1] > 0xFuLL ) { v38 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = v19; strcpy((char *)Block, "56"); v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_DWORD *)(v2 + 388) = cocos2d::CCString::intValue(v39); if ( v60.m128i_i64[1] > 0xFuLL ) { v40 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = v19; strcpy((char *)Block, "19"); v41 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); *(_BYTE *)(v2 + 397) = cocos2d::CCString::boolValue(v41); if ( v60.m128i_i64[1] > 0xFuLL ) { v42 = Block[0]; if ( (unsigned __int64)(v60.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; v60 = v19; strcpy((char *)Block, "51"); v43 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v44 = cocos2d::CCString::getCString(v43); v56 = 0; v57 = 0; v58 = 0; do ++v8; while ( v44[v8] ); sub_14003D230(&v56, v44, v8); GJLevelList::parseListLevels(v2, &v56); if ( v60.m128i_i64[1] > 0xFuLL ) { v45 = Block[0]; if ( (unsigned __int64)(v60.m128i_i64[1] + 1) >= 0x1000 ) { v45 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v45 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v45); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source