// // GJGameLevel::create from 0x140261d00 to 0x1402637f1 (6897 bytes) // // 3 xrefs: // > GameLevelManager::createAndGetLevels @ 0x14021e33f // > GameLevelManager::processOnDownloadLevelCompleted @ 0x140232a61 // > @ 0x14091c82c // // 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:48 +0000 // // Hidden C++ exception states: #wind=35 __int64 __fastcall GJGameLevel::create(__int64 a1) { cocos2d::CCString *v2; // rax void *v3; // r8 cocos2d::CCString *v4; // rax const char *CString; // rax size_t v6; // rsi size_t v7; // r8 void *v8; // rcx cocos2d::CCString *v9; // rax const char *v10; // rax size_t v11; // r8 void *v12; // rcx cocos2d::CCString *v13; // rax const char *v14; // rax size_t v15; // r8 void *v16; // rcx cocos2d::CCString *v17; // rax void *v18; // r8 cocos2d::CCString *v19; // rax int v20; // eax __int64 v21; // r14 void *v22; // r8 cocos2d::CCString *v23; // rax const char *v24; // rax size_t v25; // r8 void *v26; // rcx cocos2d::CCString *v27; // rax const char *v28; // rax size_t v29; // r8 void *v30; // rcx cocos2d::CCString *v31; // rax void *v32; // r8 cocos2d::CCString *v33; // rax void *v34; // r8 cocos2d::CCString *v35; // rax void *v36; // r8 cocos2d::CCString *v37; // rax void *v38; // r8 cocos2d::CCString *v39; // rax void *v40; // r8 cocos2d::CCString *v41; // rax void *v42; // r8 cocos2d::CCString *v43; // rax void *v44; // r8 cocos2d::CCString *v45; // rax void *v46; // r8 cocos2d::CCString *v47; // rax void *v48; // r8 cocos2d::CCString *v49; // rax void *v50; // r8 cocos2d::CCString *v51; // rax void *v52; // r8 cocos2d::CCString *v53; // rax void *v54; // r8 cocos2d::CCString *v55; // rax void *v56; // r8 cocos2d::CCString *v57; // rax void *v58; // r8 cocos2d::CCString *v59; // rax void *v60; // r8 cocos2d::CCString *v61; // rax void *v62; // r8 cocos2d::CCString *v63; // rax void *v64; // r8 cocos2d::CCString *v65; // rax void *v66; // r8 int v67; // r12d cocos2d::CCString *v68; // rax const char *v69; // rax __int64 v70; // rax const char *v71; // rax cocos2d::CCString *v72; // rax void *v73; // r8 cocos2d::CCString *v74; // rax void *v75; // r8 cocos2d::CCString *v76; // rax int v77; // r13d void *v78; // r8 cocos2d::CCString *v79; // rax const char *v80; // rax void *v81; // rcx __int64 v82; // rax __int64 v83; // rsi __int64 v84; // rcx cocos2d::CCString *v85; // rax unsigned int v86; // r15d __int64 v87; // rcx __int64 v88; // rax __int64 Username; // rax void **v90; // rax __int64 v91; // rax __int64 v92; // r14 void *v93; // rdx void **v94; // rax void **v95; // rax cocos2d::CCString *v96; // rax const char *v97; // rax void **v98; // rax void **v99; // rax cocos2d::CCString *v100; // rax cocos2d::CCString *v101; // rax int v102; // eax cocos2d::CCString *v103; // rax cocos2d::CCString *v104; // rax cocos2d::CCString *v105; // rax cocos2d::CCString *v106; // rax void **v107; // rax void **v108; // rax cocos2d::CCString *v109; // rax cocos2d::CCString *v110; // rax cocos2d::CCString *v111; // rax const char *v112; // rax __int64 v113; // rax cocos2d::CCString *v114; // rax char *v115; // rax cocos2d::CCString *v116; // rax char *v117; // rax cocos2d::CCString *v118; // rax void *v119; // rcx cocos2d::CCString *v120; // rax void *v121; // rcx void **v122; // rcx __int64 v123; // rdi size_t v124; // r8 int v125; // eax void *v126; // rcx void *v127; // rcx bool v129; // [rsp+30h] [rbp-D0h] bool v130; // [rsp+31h] [rbp-CFh] bool v131; // [rsp+32h] [rbp-CEh] bool v132; // [rsp+33h] [rbp-CDh] void *v133; // [rsp+38h] [rbp-C8h] void *v134; // [rsp+38h] [rbp-C8h] void *v135; // [rsp+38h] [rbp-C8h] int v136; // [rsp+40h] [rbp-C0h] int v137; // [rsp+44h] [rbp-BCh] int v138; // [rsp+48h] [rbp-B8h] int v139; // [rsp+4Ch] [rbp-B4h] int v140; // [rsp+50h] [rbp-B0h] int v141; // [rsp+54h] [rbp-ACh] int v142; // [rsp+58h] [rbp-A8h] int v143; // [rsp+5Ch] [rbp-A4h] int v144; // [rsp+60h] [rbp-A0h] int v145; // [rsp+64h] [rbp-9Ch] int v146; // [rsp+68h] [rbp-98h] int v147; // [rsp+6Ch] [rbp-94h] int v148; // [rsp+70h] [rbp-90h] int v149; // [rsp+74h] [rbp-8Ch] int v150; // [rsp+78h] [rbp-88h] int v151; // [rsp+7Ch] [rbp-84h] int v152; // [rsp+80h] [rbp-80h] int v153; // [rsp+84h] [rbp-7Ch] int v154; // [rsp+88h] [rbp-78h] void *Buf2[2]; // [rsp+90h] [rbp-70h] BYREF __int64 v156; // [rsp+A0h] [rbp-60h] unsigned __int64 v157; // [rsp+A8h] [rbp-58h] void *v158[2]; // [rsp+B0h] [rbp-50h] BYREF __int64 v159; // [rsp+C0h] [rbp-40h] unsigned __int64 v160; // [rsp+C8h] [rbp-38h] void *Block[2]; // [rsp+D0h] [rbp-30h] BYREF __int64 v162; // [rsp+E0h] [rbp-20h] unsigned __int64 v163; // [rsp+E8h] [rbp-18h] __int128 v164; // [rsp+F0h] [rbp-10h] BYREF __int64 v165; // [rsp+100h] [rbp+0h] __int64 v166; // [rsp+108h] [rbp+8h] _QWORD v167[2]; // [rsp+110h] [rbp+10h] BYREF unsigned __int64 v168; // [rsp+120h] [rbp+20h] void *v169[2]; // [rsp+130h] [rbp+30h] BYREF __int64 v170; // [rsp+140h] [rbp+40h] unsigned __int64 v171; // [rsp+148h] [rbp+48h] void *v172[2]; // [rsp+150h] [rbp+50h] BYREF __int64 v173; // [rsp+160h] [rbp+60h] unsigned __int64 v174; // [rsp+168h] [rbp+68h] __int128 v175; // [rsp+170h] [rbp+70h] BYREF __int64 v176; // [rsp+180h] [rbp+80h] __int64 v177; // [rsp+188h] [rbp+88h] __int128 v178; // [rsp+190h] [rbp+90h] BYREF __int64 v179; // [rsp+1A0h] [rbp+A0h] __int64 v180; // [rsp+1A8h] [rbp+A8h] *(_OWORD *)Block = 0; v162 = 1; v163 = 15; LOWORD(Block[0]) = 49; v2 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v153 = cocos2d::CCString::intValue(v2); if ( v163 > 0xF ) { v3 = Block[0]; if ( v163 + 1 >= 0x1000 ) { v3 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v3); } *(_OWORD *)Block = 0; v162 = 1; v163 = 15; LOWORD(Block[0]) = 50; v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); CString = cocos2d::CCString::getCString(v4); *(_OWORD *)v172 = 0; v173 = 0; v174 = 0; v6 = -1; v7 = -1; do ++v7; while ( CString[v7] ); sub_14003D230(v172, CString, v7); if ( v163 > 0xF ) { v8 = Block[0]; if ( v163 + 1 >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v8); } *(_OWORD *)Block = 0; v162 = 1; v163 = 15; LOWORD(Block[0]) = 51; v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Block); v10 = cocos2d::CCString::getCString(v9); v178 = 0; v179 = 0; v180 = 0; v11 = -1; do ++v11; while ( v10[v11] ); sub_14003D230(&v178, v10, v11); if ( v163 > 0xF ) { v12 = Block[0]; if ( v163 + 1 >= 0x1000 ) { v12 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v12); } *(_OWORD *)v158 = 0; v159 = 1; v160 = 15; LOWORD(v158[0]) = 52; v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, v158); v14 = cocos2d::CCString::getCString(v13); *(_OWORD *)Block = 0; v162 = 0; v163 = 0; v15 = -1; do ++v15; while ( v14[v15] ); sub_14003D230(Block, v14, v15); if ( v160 > 0xF ) { v16 = v158[0]; if ( v160 + 1 >= 0x1000 ) { v16 = *((void **)v158[0] - 1); if ( (unsigned __int64)((char *)v158[0] - (char *)v16 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v16); } *(_OWORD *)v158 = 0; v159 = 1; v160 = 15; LOWORD(v158[0]) = 53; v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, v158); v136 = cocos2d::CCString::intValue(v17); if ( v160 > 0xF ) { v18 = v158[0]; if ( v160 + 1 >= 0x1000 ) { v18 = *((void **)v158[0] - 1); if ( (unsigned __int64)((char *)v158[0] - (char *)v18 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v18); } *(_OWORD *)v158 = 0; v159 = 1; v160 = 15; LOWORD(v158[0]) = (unsigned __int8)a6[0]; v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, v158); v20 = cocos2d::CCString::intValue(v19); v21 = v20; v137 = v20; if ( v160 > 0xF ) { v22 = v158[0]; if ( v160 + 1 >= 0x1000 ) { v22 = *((void **)v158[0] - 1); if ( (unsigned __int64)((char *)v158[0] - (char *)v22 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v22); } *(_OWORD *)v158 = 0; v159 = 2; v160 = 15; strcpy((char *)v158, "28"); v23 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, v158); v24 = cocos2d::CCString::getCString(v23); v175 = 0; v176 = 0; v177 = 0; v25 = -1; do ++v25; while ( v24[v25] ); sub_14003D230(&v175, v24, v25); if ( v160 > 0xF ) { v26 = v158[0]; if ( v160 + 1 >= 0x1000 ) { v26 = *((void **)v158[0] - 1); if ( (unsigned __int64)((char *)v158[0] - (char *)v26 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v26); } *(_OWORD *)v158 = 0; v159 = 2; v160 = 15; strcpy((char *)v158, "29"); v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, v158); v28 = cocos2d::CCString::getCString(v27); *(_OWORD *)v169 = 0; v170 = 0; v171 = 0; v29 = -1; do ++v29; while ( v28[v29] ); sub_14003D230(v169, v28, v29); if ( v160 > 0xF ) { v30 = v158[0]; if ( v160 + 1 >= 0x1000 ) { v30 = *((void **)v158[0] - 1); if ( (unsigned __int64)((char *)v158[0] - (char *)v30 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v30); } v159 = 0; v160 = 15; LOBYTE(v158[0]) = 0; *(_OWORD *)Buf2 = 0; v156 = 1; v157 = 15; LOWORD(Buf2[0]) = 56; v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v138 = cocos2d::CCString::intValue(v31); if ( v157 > 0xF ) { v32 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v32 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v32 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v32); } *(_OWORD *)Buf2 = 0; v156 = 1; v157 = 15; LOWORD(Buf2[0]) = (unsigned __int8)a9[0]; v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v139 = cocos2d::CCString::intValue(v33); if ( v157 > 0xF ) { v34 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v34 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v34 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v34); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "10"); v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v140 = cocos2d::CCString::intValue(v35); if ( v157 > 0xF ) { v36 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v36 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v36 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v36); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "12"); v37 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v141 = cocos2d::CCString::intValue(v37); if ( v157 > 0xF ) { v38 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v38 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v38 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v38); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "13"); v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v142 = cocos2d::CCString::intValue(v39); if ( v157 > 0xF ) { v40 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v40 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v40 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v40); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "14"); v41 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v143 = cocos2d::CCString::intValue(v41); if ( v157 > 0xF ) { v42 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v42 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v42 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v42); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "16"); v43 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v144 = cocos2d::CCString::intValue(v43); if ( v157 > 0xF ) { v44 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v44 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v44 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v44); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "15"); v45 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v145 = cocos2d::CCString::intValue(v45); if ( v157 > 0xF ) { v46 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v46 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v46 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v46); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "17"); v47 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v130 = cocos2d::CCString::boolValue(v47); if ( v157 > 0xF ) { v48 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v48 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v48 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v48); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "43"); v49 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v146 = cocos2d::CCString::intValue(v49); if ( v157 > 0xF ) { v50 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v50 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v50 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v50); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "18"); v51 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v147 = cocos2d::CCString::intValue(v51); if ( v157 > 0xF ) { v52 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v52 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v52 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v52); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "37"); v53 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v150 = cocos2d::CCString::intValue(v53); if ( v157 > 0xF ) { v54 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v54 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v54 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v54); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "38"); v55 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v132 = cocos2d::CCString::boolValue(v55); if ( v157 > 0xF ) { v56 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v56 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v56 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v56); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "19"); v57 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v148 = cocos2d::CCString::intValue(v57); if ( v157 > 0xF ) { v58 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v58 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v58 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v58); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "42"); v59 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v149 = cocos2d::CCString::intValue(v59); if ( v157 > 0xF ) { v60 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v60 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v60 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v60); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "45"); v61 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v152 = cocos2d::CCString::intValue(v61); if ( v157 > 0xF ) { v62 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v62 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v62 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v62); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "25"); v63 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v131 = cocos2d::CCString::boolValue(v63); if ( v157 > 0xF ) { v64 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v64 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v64 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v64); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "39"); v65 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v151 = cocos2d::CCString::intValue(v65); if ( v157 > 0xF ) { v66 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v66 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v66 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v66); } v67 = 0; sub_14003D1F0((__int64)&v164, (__int64)&unk_1407380DC); v68 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v164); v69 = cocos2d::CCString::getCString(v68); sub_14003D1F0((__int64)v167, (__int64)v69); sub_14003D310((__int64)&v164); if ( v168 >= 2 ) { v70 = sub_14003D1F0((__int64)v158, (__int64)"26364"); cocos2d::ZipUtils::base64DecodeEnc(Buf2, v167, v70); v71 = (const char *)sub_14003D1D0(Buf2); v67 = atoi(v71); sub_14003D310((__int64)Buf2); } sub_14003D310((__int64)v167); *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "30"); v72 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v154 = cocos2d::CCString::intValue(v72); if ( v157 > 0xF ) { v73 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v73 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v73 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v73); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "31"); v74 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v129 = cocos2d::CCString::boolValue(v74); if ( v157 > 0xF ) { v75 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v75 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v75 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v75); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "35"); v76 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v77 = cocos2d::CCString::intValue(v76); if ( v157 > 0xF ) { v78 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v78 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v78 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v78); } *(_OWORD *)v158 = 0; v159 = 2; v160 = 15; strcpy((char *)v158, "36"); v79 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, v158); v80 = cocos2d::CCString::getCString(v79); v164 = 0; v165 = 0; v166 = 0; do ++v6; while ( v80[v6] ); sub_14003D230(&v164, v80, v6); if ( v160 > 0xF ) { v81 = v158[0]; if ( v160 + 1 >= 0x1000 ) { v81 = *((void **)v158[0] - 1); if ( (unsigned __int64)((char *)v158[0] - (char *)v81 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v81); } v159 = 0; v160 = 15; LOBYTE(v158[0]) = 0; v133 = operator new(0x840u); v82 = GJGameLevel::GJGameLevel((__int64)v133); v83 = v82; if ( v82 ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v82 + 72LL))(v82) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v83); } else { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v83 + 8LL))(v83, 1); v83 = 0; } } v84 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v134 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v134); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v84 = *(_QWORD *)&qword_14090BFB0; } v85 = cocos2d::CCDictionary::valueForKey(*(cocos2d::CCDictionary **)(v84 + 1080), v21); v86 = cocos2d::CCString::intValue(v85); v87 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v135 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v135); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v87 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::userNameForUserID(v87, v167, v21); if ( v168 < 2 ) { v88 = GameLevelManager::sharedState(); Username = GameLevelManager::tryGetUsername(v88, (__int64)Buf2, v86); sub_140059C40((__int64)v167, Username); sub_14003D310((__int64)Buf2); } GJGameLevel::setLevelID((_DWORD *)v83, v153); v90 = (void **)sub_14003F4F0((__int64)Buf2, (__int64)v172); sub_140178020(v83, v90); *(_DWORD *)(v83 + 860) = v136; v91 = sub_14003F4F0((__int64)Buf2, (__int64)&v178); v92 = v91; if ( v83 + 376 != v91 ) { v93 = (void *)v91; if ( *(_QWORD *)(v91 + 24) > 0xFu ) v93 = *(void **)v91; sub_1400405A0((void **)(v83 + 376), v93, *(_QWORD *)(v91 + 16)); } sub_14003D310(v92); v94 = (void **)sub_14003F4F0((__int64)Buf2, (__int64)Block); GJGameLevel::setLevelString(v83, v94); GJGameLevel::setUserID((_DWORD *)v83, v137); v95 = (void **)sub_14003F4F0((__int64)Buf2, (__int64)v167); GJGameLevel::setUserName(v83, v95); GJGameLevel::setAccountID((_DWORD *)v83, v86); sub_14003D1F0((__int64)Buf2, (__int64)&word_14075A9C0); v96 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v97 = cocos2d::CCString::getCString(v96); v98 = (void **)sub_14003D1F0((__int64)v158, (__int64)v97); GJGameLevel::setRecordString(v83, v98); sub_14003D310((__int64)Buf2); *(_DWORD *)(v83 + 708) = v138; *(_DWORD *)(v83 + 712) = v139; *(_DWORD *)(v83 + 716) = v140; *(_DWORD *)(v83 + 676) = v141; *(_BYTE *)(v83 + 1072) = v129; *(_DWORD *)(v83 + 864) = v142; *(_DWORD *)(v83 + 964) = v143; *(_DWORD *)(v83 + 968) = v144; *(_DWORD *)(v83 + 972) = v145; GJGameLevel::setDemon((_DWORD *)v83, v130); *(_DWORD *)(v83 + 1016) = v146; GJGameLevel::setStars((_DWORD *)v83, v147); *(_DWORD *)(v83 + 976) = v148; *(_DWORD *)(v83 + 980) = v149; *(_BYTE *)(v83 + 1032) = v131; GJGameLevel::setPassword(v83, v67); GJGameLevel::setOriginalLevel((_DWORD *)v83, v154); *(_DWORD *)(v83 + 680) = v77; *(_DWORD *)(v83 + 1036) = v150; GJGameLevel::setCoinsVerified((_DWORD *)v83, v132); *(_DWORD *)(v83 + 1116) = v151; v99 = (void **)sub_14003F4F0((__int64)Buf2, (__int64)&v164); sub_1402183B0(v83, v99); sub_14003D1F0((__int64)Buf2, (__int64)"40"); v100 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); *(_BYTE *)(v83 + 840) = cocos2d::CCString::boolValue(v100); sub_14003D310((__int64)Buf2); sub_14003D1F0((__int64)Buf2, (__int64)"41"); v101 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v102 = cocos2d::CCString::intValue(v101); GJGameLevel::setDailyID((_DWORD *)v83, v102); sub_14003D310((__int64)Buf2); sub_14003D1F0((__int64)Buf2, (__int64)&word_14075A9BC); v103 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); *(_BYTE *)(v83 + 721) = cocos2d::CCString::boolValue(v103); sub_14003D310((__int64)Buf2); GJGameLevel::setObjectCount((_DWORD *)v83, v152); sub_14003D1F0((__int64)Buf2, (__int64)&word_14075A9B8); v104 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); *(_DWORD *)(v83 + 724) = cocos2d::CCString::intValue(v104); sub_14003D310((__int64)Buf2); sub_14003D1F0((__int64)Buf2, (__int64)&word_14075A9B4); v105 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); *(_DWORD *)(v83 + 728) = cocos2d::CCString::intValue(v105); sub_14003D310((__int64)Buf2); sub_14003D1F0((__int64)Buf2, (__int64)"57"); v106 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); *(_DWORD *)(v83 + 1336) = cocos2d::CCString::intValue(v106); sub_14003D310((__int64)Buf2); v107 = (void **)sub_14003F4F0((__int64)Buf2, (__int64)&v175); GJGameLevel::setUploadDate(v83, v107); v108 = (void **)sub_14003F4F0((__int64)Buf2, (__int64)v169); GJGameLevel::setUpdateDate(v83, v108); sub_14003D1F0((__int64)Buf2, (__int64)"62"); v109 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); *(_DWORD *)(v83 + 568) = cocos2d::CCString::intValue(v109); sub_14003D310((__int64)Buf2); sub_14003D1F0((__int64)Buf2, (__int64)"63"); v110 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); *(_DWORD *)(v83 + 572) = cocos2d::CCString::intValue(v110); sub_14003D310((__int64)Buf2); sub_14003D1F0((__int64)Buf2, (__int64)"48"); v111 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v112 = cocos2d::CCString::getCString(v111); v113 = sub_14003D1F0((__int64)v158, (__int64)v112); sub_14003D310(v113); sub_14003D310((__int64)Buf2); sub_14003D1F0((__int64)Buf2, (__int64)"52"); v114 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v115 = (char *)cocos2d::CCString::getCString(v114); sub_140040580((void *)(v83 + 1344), v115); sub_14003D310((__int64)Buf2); sub_14003D1F0((__int64)Buf2, (__int64)&word_14075AA38); v116 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); v117 = (char *)cocos2d::CCString::getCString(v116); sub_140040580((void *)(v83 + 1376), v117); sub_14003D310((__int64)Buf2); *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "54"); v118 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); *(_DWORD *)(v83 + 1408) = cocos2d::CCString::intValue(v118); if ( v157 > 0xF ) { v119 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v119 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v119 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v119); } *(_OWORD *)Buf2 = 0; v156 = 2; v157 = 15; strcpy((char *)Buf2, "65"); v120 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, Buf2); *(_DWORD *)(v83 + 1412) = cocos2d::CCString::intValue(v120); if ( v157 > 0xF ) { v121 = Buf2[0]; if ( v157 + 1 >= 0x1000 ) { v121 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v121 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v121); } *(_OWORD *)Buf2 = 0; v156 = 0; v157 = 15; LOBYTE(Buf2[0]) = 0; v122 = Block; if ( v163 > 0xF ) v122 = (void **)Block[0]; v123 = v162; v124 = v162; if ( v162 ) v124 = 0; if ( memcmp(v122, Buf2, v124) || (v125 = 4, v123) ) v125 = 3; *(_DWORD *)(v83 + 1220) = v125; sub_14003D310((__int64)v167); sub_14003D310((__int64)&v164); if ( v171 > 0xF ) { v126 = v169[0]; if ( v171 + 1 >= 0x1000 ) { v126 = *((void **)v169[0] - 1); if ( (unsigned __int64)((char *)v169[0] - (char *)v126 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v126); } sub_14003D310((__int64)&v175); sub_14003D310((__int64)Block); sub_14003D310((__int64)&v178); if ( v174 > 0xF ) { v127 = v172[0]; if ( v174 + 1 >= 0x1000 ) { v127 = *((void **)v172[0] - 1); if ( (unsigned __int64)((char *)v172[0] - (char *)v127 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v127); } return v83; }