// // GJGameLevel::create from 0x100540c90 to 0x10054257d (6381 bytes) // // 2 xrefs: // > sub_100540A10 @ 0x100540bf7 // > sub_10055F180 @ 0x10055f997 // // 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 12:31:58 +0000 // __int64 __fastcall GJGameLevel::create(__int64 a1, int a2) { void *v2; // rax void *v3; // rax const char *CString; // r14 size_t v5; // rax size_t v6; // r15 char *v7; // r12 void *v8; // rax const char *v9; // r14 size_t v10; // rax size_t v11; // r15 char *v12; // r12 void *v13; // rax const char *v14; // r14 size_t v15; // rax size_t v16; // r15 char *v17; // r12 __int64 v18; // rbx void *v19; // rax int v20; // r14d void *v21; // rax void *v22; // rax const char *v23; // r14 size_t v24; // rax size_t v25; // r15 char *v26; // r12 void *v27; // rax const char *v28; // r14 size_t v29; // rax size_t v30; // r15 char *v31; // r12 __int64 v32; // r14 void *v33; // rax void *v34; // rax void *v35; // rax void *v36; // rax void *v37; // rax void *v38; // rax void *v39; // rax void *v40; // rax void *v41; // rax void *v42; // rax void *v43; // rax void *v44; // rax void *v45; // rax void *v46; // rax void *v47; // rax void *v48; // rax void *v49; // rax void *v50; // rax void *v51; // rax const char *v52; // r14 size_t v53; // rax size_t v54; // r15 char *v55; // r12 unsigned __int64 v56; // rcx size_t v57; // r13 size_t v58; // r13 size_t v59; // r13 size_t v60; // r13 size_t v61; // r13 void *v62; // rax int v63; // r15d size_t v64; // r13 std::string::pointer data; // rbx void *v66; // rax void *v67; // rax char v68; // bl void *v69; // rax void *v70; // rax const char *v71; // r15 size_t v72; // rax size_t v73; // r13 char *v74; // r12 void *v75; // rax __int64 v76; // r14 int v77; // r12d __int64 v78; // r13 size_t v79; // r14 __int64 v80; // rax void *v81; // rax int v82; // r15d __int64 v83; // rax std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v84; // bl __int64 *v85; // rax int v86; // eax int v87; // eax int v88; // eax void *v89; // rax const char *v90; // r15 size_t v91; // rax std::string::size_type v92; // r12 char *v93; // r14 char v94; // bl size_t v95; // rbx __int64 v96; // r15 int v97; // ebx float v98; // xmm0_4 float v99; // xmm0_4 float v100; // xmm0_4 float v101; // xmm0_4 int v102; // ebx float v103; // xmm0_4 void *v104; // rax void *v105; // rax int v106; // r14d int v107; // eax void *v108; // rax float v109; // xmm0_4 void *v110; // rax void *v111; // rax void *v112; // rax void *v113; // rax void *v114; // rax void *v115; // rax const char *v116; // r14 size_t v117; // rax size_t v118; // r15 char *v119; // r12 __int64 v120; // rbx void *v121; // rax const std::string::value_type *v122; // rax void *v123; // rax const std::string::value_type *v124; // rax void *v125; // rax void *v126; // rax char v127; // r14 __int64 v128; // rax size_t v129; // rbx void *v130; // rbx _QWORD v132[2]; // [rsp+0h] [rbp-280h] BYREF void *v133; // [rsp+10h] [rbp-270h] __int128 v134; // [rsp+18h] [rbp-268h] BYREF void *v135; // [rsp+28h] [rbp-258h] std::string __str; // [rsp+30h] [rbp-250h] BYREF std::string v137; // [rsp+50h] [rbp-230h] BYREF std::string v138; // [rsp+70h] [rbp-210h] BYREF std::string v139; // [rsp+90h] [rbp-1F0h] BYREF std::string v140; // [rsp+B0h] [rbp-1D0h] BYREF std::string v141; // [rsp+D0h] [rbp-1B0h] BYREF std::string v142; // [rsp+F0h] [rbp-190h] BYREF std::string v143; // [rsp+110h] [rbp-170h] BYREF int v144; // [rsp+12Ch] [rbp-154h] int v145; // [rsp+130h] [rbp-150h] int v146; // [rsp+134h] [rbp-14Ch] int v147; // [rsp+138h] [rbp-148h] int v148; // [rsp+13Ch] [rbp-144h] int v149; // [rsp+140h] [rbp-140h] int v150; // [rsp+144h] [rbp-13Ch] int v151; // [rsp+148h] [rbp-138h] int v152; // [rsp+14Ch] [rbp-134h] int v153; // [rsp+150h] [rbp-130h] int v154; // [rsp+154h] [rbp-12Ch] int v155; // [rsp+158h] [rbp-128h] int v156; // [rsp+15Ch] [rbp-124h] int v157; // [rsp+160h] [rbp-120h] int v158; // [rsp+164h] [rbp-11Ch] int v159; // [rsp+168h] [rbp-118h] int v160; // [rsp+16Ch] [rbp-114h] int v161; // [rsp+170h] [rbp-110h] int v162; // [rsp+174h] [rbp-10Ch] __int128 __dst; // [rsp+178h] [rbp-108h] BYREF void *__p; // [rsp+188h] [rbp-F8h] __int128 v165; // [rsp+190h] [rbp-F0h] BYREF void *v166; // [rsp+1A0h] [rbp-E0h] __int128 v167; // [rsp+1A8h] [rbp-D8h] BYREF void *v168; // [rsp+1B8h] [rbp-C8h] __int128 v169; // [rsp+1C0h] [rbp-C0h] BYREF void *v170; // [rsp+1D0h] [rbp-B0h] int v171; // [rsp+1D8h] [rbp-A8h] int v172; // [rsp+1DCh] [rbp-A4h] __int64 v173; // [rsp+1E0h] [rbp-A0h] __int128 v174; // [rsp+1E8h] [rbp-98h] BYREF void *v175; // [rsp+1F8h] [rbp-88h] std::string v176; // [rsp+200h] [rbp-80h] BYREF unsigned __int8 v177; // [rsp+224h] [rbp-5Ch] unsigned __int8 v178; // [rsp+225h] [rbp-5Bh] char v179; // [rsp+226h] [rbp-5Ah] char v180; // [rsp+227h] [rbp-59h] std::string v181; // [rsp+228h] [rbp-58h] BYREF __int128 v182; // [rsp+240h] [rbp-40h] BYREF void *v183; // [rsp+250h] [rbp-30h] v172 = a2; LOWORD(__dst) = 12546; BYTE2(__dst) = 0; v2 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&__dst); v144 = cocos2d::CCString::intValue(v2); if ( (__dst & 1) != 0 ) operator delete(__p); LOWORD(v165) = 12802; BYTE2(v165) = 0; v173 = a1; v3 = cocos2d::CCDictionary::valueForKey(a1, (__int64)&v165); CString = (const char *)cocos2d::CCString::getCString(v3); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = v5; if ( v5 >= 0x17 ) { v57 = 26; if ( (v5 | 7) != 0x17 ) v57 = (v5 | 7) + 1; v7 = (char *)operator new(v57); __p = v7; *(_QWORD *)&__dst = v57 | 1; *((_QWORD *)&__dst + 1) = v6; } else { LOBYTE(__dst) = 2 * v5; v7 = (char *)&__dst + 1; if ( !v5 ) { BYTE1(__dst) = 0; if ( (v165 & 1) == 0 ) goto LABEL_8; goto LABEL_7; } } memmove(v7, CString, v6); v7[v6] = 0; if ( (v165 & 1) != 0 ) LABEL_7: operator delete(v166); LABEL_8: LOWORD(v167) = 13058; BYTE2(v167) = 0; v8 = cocos2d::CCDictionary::valueForKey(v173, (__int64)&v167); v9 = (const char *)cocos2d::CCString::getCString(v8); v10 = strlen(v9); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v11 = v10; if ( v10 >= 0x17 ) { v58 = 26; if ( (v10 | 7) != 0x17 ) v58 = (v10 | 7) + 1; v12 = (char *)operator new(v58); v166 = v12; *(_QWORD *)&v165 = v58 | 1; *((_QWORD *)&v165 + 1) = v11; } else { LOBYTE(v165) = 2 * v10; v12 = (char *)&v165 + 1; if ( !v10 ) { BYTE1(v165) = 0; if ( (v167 & 1) == 0 ) goto LABEL_13; goto LABEL_12; } } memmove(v12, v9, v11); v12[v11] = 0; if ( (v167 & 1) != 0 ) LABEL_12: operator delete(v168); LABEL_13: LOWORD(v174) = 13314; BYTE2(v174) = 0; v13 = cocos2d::CCDictionary::valueForKey(v173, (__int64)&v174); v14 = (const char *)cocos2d::CCString::getCString(v13); v15 = strlen(v14); if ( v15 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v16 = v15; if ( v15 >= 0x17 ) { v59 = 26; if ( (v15 | 7) != 0x17 ) v59 = (v15 | 7) + 1; v17 = (char *)operator new(v59); v168 = v17; *(_QWORD *)&v167 = v59 | 1; *((_QWORD *)&v167 + 1) = v16; } else { LOBYTE(v167) = 2 * v15; v17 = (char *)&v167 + 1; if ( !v15 ) { BYTE1(v167) = 0; if ( (v174 & 1) == 0 ) goto LABEL_18; goto LABEL_17; } } memmove(v17, v14, v16); v17[v16] = 0; if ( (v174 & 1) != 0 ) LABEL_17: operator delete(v175); LABEL_18: LOWORD(v174) = 13570; BYTE2(v174) = 0; v18 = v173; v19 = cocos2d::CCDictionary::valueForKey(v173, (__int64)&v174); v20 = cocos2d::CCString::intValue(v19); if ( (v174 & 1) != 0 ) operator delete(v175); LOWORD(v174) = 13826; BYTE2(v174) = 0; v21 = cocos2d::CCDictionary::valueForKey(v18, (__int64)&v174); v171 = cocos2d::CCString::intValue(v21); v145 = v20; if ( (v174 & 1) != 0 ) operator delete(v175); LOBYTE(v169) = 4; *(_WORD *)((char *)&v169 + 1) = 14386; BYTE3(v169) = 0; v22 = cocos2d::CCDictionary::valueForKey(v18, (__int64)&v169); v23 = (const char *)cocos2d::CCString::getCString(v22); v24 = strlen(v23); if ( v24 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v25 = v24; if ( v24 >= 0x17 ) { v60 = 26; if ( (v24 | 7) != 0x17 ) v60 = (v24 | 7) + 1; v26 = (char *)operator new(v60); v175 = v26; *(_QWORD *)&v174 = v60 | 1; *((_QWORD *)&v174 + 1) = v25; } else { LOBYTE(v174) = 2 * v24; v26 = (char *)&v174 + 1; if ( !v24 ) { BYTE1(v174) = 0; if ( (v169 & 1) == 0 ) goto LABEL_27; goto LABEL_26; } } memmove(v26, v23, v25); v26[v25] = 0; if ( (v169 & 1) != 0 ) LABEL_26: operator delete(v170); LABEL_27: LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 14642; BYTE3(v182) = 0; v27 = cocos2d::CCDictionary::valueForKey(v173, (__int64)&v182); v28 = (const char *)cocos2d::CCString::getCString(v27); v29 = strlen(v28); if ( v29 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v30 = v29; if ( v29 >= 0x17 ) { v61 = 26; if ( (v29 | 7) != 0x17 ) v61 = (v29 | 7) + 1; v31 = (char *)operator new(v61); v170 = v31; *(_QWORD *)&v169 = v61 | 1; *((_QWORD *)&v169 + 1) = v30; } else { LOBYTE(v169) = 2 * v29; v31 = (char *)&v169 + 1; if ( !v29 ) { BYTE1(v169) = 0; if ( (v182 & 1) == 0 ) goto LABEL_32; goto LABEL_31; } } memmove(v31, v28, v30); v31[v30] = 0; if ( (v182 & 1) != 0 ) LABEL_31: operator delete(v183); LABEL_32: LOWORD(v182) = 14338; BYTE2(v182) = 0; v32 = v173; v33 = cocos2d::CCDictionary::valueForKey(v173, (__int64)&v182); v146 = cocos2d::CCString::intValue(v33); if ( (v182 & 1) != 0 ) operator delete(v183); LOWORD(v182) = 14594; BYTE2(v182) = 0; v34 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v147 = cocos2d::CCString::intValue(v34); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 12337; BYTE3(v182) = 0; v35 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v148 = cocos2d::CCString::intValue(v35); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 12849; BYTE3(v182) = 0; v36 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v149 = cocos2d::CCString::intValue(v36); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 13105; BYTE3(v182) = 0; v37 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v150 = cocos2d::CCString::intValue(v37); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 13361; BYTE3(v182) = 0; v38 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v151 = cocos2d::CCString::intValue(v38); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 13873; BYTE3(v182) = 0; v39 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v152 = cocos2d::CCString::intValue(v39); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 13617; BYTE3(v182) = 0; v40 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v153 = cocos2d::CCString::intValue(v40); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 14129; BYTE3(v182) = 0; v41 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v177 = cocos2d::CCString::boolValue(v41); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 13108; BYTE3(v182) = 0; v42 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v154 = cocos2d::CCString::intValue(v42); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 14385; BYTE3(v182) = 0; v43 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v161 = cocos2d::CCString::intValue(v43); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 14131; BYTE3(v182) = 0; v44 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v155 = cocos2d::CCString::intValue(v44); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 14387; BYTE3(v182) = 0; v45 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v178 = cocos2d::CCString::boolValue(v45); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 14641; BYTE3(v182) = 0; v46 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v156 = cocos2d::CCString::intValue(v46); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 12852; BYTE3(v182) = 0; v47 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v157 = cocos2d::CCString::intValue(v47); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 13620; BYTE3(v182) = 0; v48 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v162 = cocos2d::CCString::intValue(v48); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 13618; BYTE3(v182) = 0; v49 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v179 = cocos2d::CCString::boolValue(v49); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 14643; BYTE3(v182) = 0; v50 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v158 = cocos2d::CCString::intValue(v50); if ( (v182 & 1) != 0 ) operator delete(v183); if ( (_BYTE)v172 ) { v176.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v176.__r_.__value_.__s.__data_, "27"); v51 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v176); v52 = (const char *)cocos2d::CCString::getCString(v51); v53 = strlen(v52); if ( v53 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v54 = v53; if ( v53 >= 0x17 ) { v64 = 26; if ( (v53 | 7) != 0x17 ) v64 = (v53 | 7) + 1; v55 = (char *)operator new(v64); v183 = v55; *(_QWORD *)&v182 = v64 | 1; *((_QWORD *)&v182 + 1) = v54; } else { LOBYTE(v182) = 2 * v53; v55 = (char *)&v182 + 1; if ( !v53 ) { BYTE1(v182) = 0; if ( (*(_BYTE *)&v176.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_74; goto LABEL_73; } } memmove(v55, v52, v54); v55[v54] = 0; if ( (*(_BYTE *)&v176.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_74: v32 = v173; if ( (v182 & 1) != 0 ) { v56 = *((_QWORD *)&v182 + 1); if ( !*((_QWORD *)&v182 + 1) ) goto LABEL_115; } else { if ( !(_BYTE)v182 ) { v63 = 0; goto LABEL_121; } v56 = (unsigned __int8)v182 >> 1; } if ( v56 >= 2 ) { strcpy((char *)&v134, "\n26364"); cocos2d::ZipUtils::base64DecodeEnc(&v176, (unsigned __int8 *)&v182, &v134); if ( (v134 & 1) != 0 ) operator delete(v135); if ( (*(_BYTE *)&v176.__r_.__value_.__s.0 & 1) != 0 ) { data = v176.__r_.__value_.__l.__data_; v63 = atoi(v176.__r_.__value_.__l.__data_); operator delete(data); } else { v63 = atoi(v176.__r_.__value_.__s.__data_); } if ( (v182 & 1) != 0 ) goto LABEL_120; goto LABEL_121; } LABEL_115: v63 = 0; if ( (v182 & 1) == 0 ) goto LABEL_121; goto LABEL_120; } LABEL_73: operator delete(v176.__r_.__value_.__l.__data_); goto LABEL_74; } LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 14130; BYTE3(v182) = 0; v62 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v63 = cocos2d::CCString::intValue(v62); if ( (v182 & 1) != 0 ) LABEL_120: operator delete(v183); LABEL_121: LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 12339; BYTE3(v182) = 0; v66 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v172 = cocos2d::CCString::intValue(v66); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 12595; BYTE3(v182) = 0; v67 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v68 = cocos2d::CCString::boolValue(v67); if ( (v182 & 1) != 0 ) operator delete(v183); LOBYTE(v182) = 4; *(_WORD *)((char *)&v182 + 1) = 13619; BYTE3(v182) = 0; v69 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v182); v160 = cocos2d::CCString::intValue(v69); v159 = v63; if ( (v182 & 1) != 0 ) operator delete(v183); v176.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v176.__r_.__value_.__s.__data_, "36"); v70 = cocos2d::CCDictionary::valueForKey(v32, (__int64)&v176); v71 = (const char *)cocos2d::CCString::getCString(v70); v72 = strlen(v71); if ( v72 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v73 = v72; if ( v72 >= 0x17 ) { v79 = 26; if ( (v72 | 7) != 0x17 ) v79 = (v72 | 7) + 1; v74 = (char *)operator new(v79); v183 = v74; *(_QWORD *)&v182 = v79 | 1; *((_QWORD *)&v182 + 1) = v73; } else { LOBYTE(v182) = 2 * v72; v74 = (char *)&v182 + 1; if ( !v72 ) { BYTE1(v182) = 0; if ( (*(_BYTE *)&v176.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_132; goto LABEL_131; } } memmove(v74, v71, v73); v74[v73] = 0; if ( (*(_BYTE *)&v176.__r_.__value_.__s.0 & 1) != 0 ) LABEL_131: operator delete(v176.__r_.__value_.__l.__data_); LABEL_132: v75 = operator new(0x740u); v76 = v173; v77 = v144; v78 = (__int64)v75; GJGameLevel::GJGameLevel(v75); if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v78 + 80LL))(v78) ) { cocos2d::CCObject::autorelease(v78); } else { (*(void (__fastcall **)(__int64))(*(_QWORD *)v78 + 16LL))(v78); v78 = 0; } v80 = GameLevelManager::sharedState(); v81 = cocos2d::CCDictionary::valueForKey_1(*(_QWORD *)(v80 + 992), v171); v82 = cocos2d::CCString::intValue(v81); v180 = v68; v83 = GameLevelManager::sharedState(); GameLevelManager::userNameForUserID(&v176, v83, v171); v84 = v176.__r_.__value_.__s.0; if ( (*(_BYTE *)&v176.__r_.__value_.__s.0 & 1) != 0 ) { if ( v176.__r_.__value_.__l.__size_ > 1 ) goto LABEL_147; } else if ( *(_BYTE *)&v176.__r_.__value_.__l.0 >> 1 > 1uLL ) { goto LABEL_147; } v85 = (__int64 *)GameLevelManager::sharedState(); GameLevelManager::tryGetUsername(&v181, v85, v82); if ( (*(_BYTE *)&v84 & 1) != 0 ) operator delete(v176.__r_.__value_.__l.__data_); v176 = v181; LABEL_147: *(_DWORD *)(v78 + 336) = v77; v86 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); *(_DWORD *)(v78 + 332) = v86; *(_DWORD *)(v78 + 328) = v86 + v77; if ( (__dst & 1) != 0 ) { sub_10001AD30(&__str, __p, *((unsigned __int64 *)&__dst + 1)); } else { __str.__r_.__value_.__r.__words[2] = (std::string::size_type)__p; *(_OWORD *)&__str.__r_.__value_.__l.0 = __dst; } std::string::operator=((std::string *)(v78 + 344), &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); *(_DWORD *)(v78 + 788) = v145; if ( (v165 & 1) != 0 ) { sub_10001AD30(&v137, v166, *((unsigned __int64 *)&v165 + 1)); } else { v137.__r_.__value_.__r.__words[2] = (std::string::size_type)v166; *(_OWORD *)&v137.__r_.__value_.__l.0 = v165; } std::string::operator=((std::string *)(v78 + 368), &v137); if ( (*(_BYTE *)&v137.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v137.__r_.__value_.__l.__data_); if ( (v167 & 1) != 0 ) { sub_10001AD30(&v138, v168, *((unsigned __int64 *)&v167 + 1)); } else { v138.__r_.__value_.__r.__words[2] = (std::string::size_type)v168; *(_OWORD *)&v138.__r_.__value_.__l.0 = v167; } std::string::operator=((std::string *)(v78 + 392), &v138); if ( (*(_BYTE *)&v138.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v138.__r_.__value_.__l.__data_); *(_DWORD *)(v78 + 584) = v171; v87 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); *(_DWORD *)(v78 + 580) = v87; *(_DWORD *)(v78 + 576) = v87 + v171; if ( (*(_BYTE *)&v176.__r_.__value_.__s.0 & 1) != 0 ) sub_10001AD30(&v139, v176.__r_.__value_.__l.__data_, v176.__r_.__value_.__l.__size_); else v139 = v176; std::string::operator=((std::string *)(v78 + 416), &v139); if ( (*(_BYTE *)&v139.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v139.__r_.__value_.__l.__data_); *(_DWORD *)(v78 + 596) = v82; v88 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); *(_DWORD *)(v78 + 592) = v88; *(_DWORD *)(v78 + 588) = v88 + v82; v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "58"); v89 = cocos2d::CCDictionary::valueForKey(v76, (__int64)&v181); v90 = (const char *)cocos2d::CCString::getCString(v89); v91 = strlen(v90); if ( v91 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v92 = v91; if ( v91 >= 0x17 ) { v95 = 26; if ( (v91 | 7) != 0x17 ) v95 = (v91 | 7) + 1; v93 = (char *)operator new(v95); v143.__r_.__value_.__r.__words[2] = (std::string::size_type)v93; v143.__r_.__value_.__r.__words[0] = v95 | 1; v143.__r_.__value_.__l.__size_ = v92; v94 = v180; goto LABEL_174; } v143.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v91); v93 = v143.__r_.__value_.__s.__data_; v94 = v180; if ( v91 ) LABEL_174: memmove(v93, v90, v92); v93[v92] = 0; std::string::operator=((std::string *)(v78 + 440), &v143); v96 = v173; if ( (*(_BYTE *)&v143.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v143.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); *(_DWORD *)(v78 + 636) = v146; *(_DWORD *)(v78 + 640) = v147; *(_DWORD *)(v78 + 644) = v148; *(_DWORD *)(v78 + 604) = v149; *(_BYTE *)(v78 + 1000) = v94; *(_DWORD *)(v78 + 792) = v150; *(_DWORD *)(v78 + 892) = v151; *(_DWORD *)(v78 + 896) = v152; *(_DWORD *)(v78 + 900) = v153; v97 = v177; *(_DWORD *)(v78 + 940) = v177; v98 = (float)((float)rand() * 4.6566129e-10) * 1000.0; *(_DWORD *)(v78 + 936) = (int)v98; *(_DWORD *)(v78 + 932) = (int)v98 + v97; *(_DWORD *)(v78 + 944) = v154; *(_DWORD *)(v78 + 956) = v161; v99 = (float)((float)rand() * 4.6566129e-10) * 1000.0; *(_DWORD *)(v78 + 952) = (int)v99; *(_DWORD *)(v78 + 948) = (int)v99 + v161; *(_DWORD *)(v78 + 904) = v156; *(_DWORD *)(v78 + 908) = v157; *(_BYTE *)(v78 + 960) = v179; v100 = (float)((float)rand() * 4.6566129e-10) * 1000.0; *(_DWORD *)(v78 + 984) = (int)v100; *(_DWORD *)(v78 + 980) = (int)v100 + v159; *(_DWORD *)(v78 + 996) = v172; v101 = (float)((float)rand() * 4.6566129e-10) * 1000.0; *(_DWORD *)(v78 + 992) = (int)v101; *(_DWORD *)(v78 + 988) = (int)v101 + v172; *(_DWORD *)(v78 + 608) = v160; *(_DWORD *)(v78 + 964) = v155; v102 = v178; *(_DWORD *)(v78 + 976) = v178; v103 = (float)((float)rand() * 4.6566129e-10) * 1000.0; *(_DWORD *)(v78 + 972) = (int)v103; *(_DWORD *)(v78 + 968) = (int)v103 + v102; *(_DWORD *)(v78 + 1044) = v158; if ( (v182 & 1) != 0 ) { sub_10001AD30(&v140, v183, *((unsigned __int64 *)&v182 + 1)); } else { v140.__r_.__value_.__r.__words[2] = (std::string::size_type)v183; *(_OWORD *)&v140.__r_.__value_.__l.0 = v182; } std::string::operator=((std::string *)(v78 + 1176), &v140); if ( (*(_BYTE *)&v140.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v140.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "40"); v104 = cocos2d::CCDictionary::valueForKey(v96, (__int64)&v181); *(_BYTE *)(v78 + 768) = cocos2d::CCString::boolValue(v104); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "41"); v105 = cocos2d::CCDictionary::valueForKey(v96, (__int64)&v181); v106 = cocos2d::CCString::intValue(v105); *(_DWORD *)(v78 + 928) = v106; v107 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); *(_DWORD *)(v78 + 924) = v107; *(_DWORD *)(v78 + 920) = v107 + v106; if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "44"); v108 = cocos2d::CCDictionary::valueForKey(v96, (__int64)&v181); *(_BYTE *)(v78 + 649) = cocos2d::CCString::boolValue(v108); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); *(_DWORD *)(v78 + 628) = v162; v109 = (float)((float)rand() * 4.6566129e-10) * 1000.0; *(_DWORD *)(v78 + 624) = (int)v109; *(_DWORD *)(v78 + 620) = (int)v109 + v162; v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "46"); v110 = cocos2d::CCDictionary::valueForKey(v96, (__int64)&v181); *(_DWORD *)(v78 + 652) = cocos2d::CCString::intValue(v110); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "47"); v111 = cocos2d::CCDictionary::valueForKey(v96, (__int64)&v181); *(_DWORD *)(v78 + 656) = cocos2d::CCString::intValue(v111); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "57"); v112 = cocos2d::CCDictionary::valueForKey(v96, (__int64)&v181); *(_DWORD *)(v78 + 1232) = cocos2d::CCString::intValue(v112); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); if ( (v174 & 1) != 0 ) { sub_10001AD30(&v141, v175, *((unsigned __int64 *)&v174 + 1)); } else { v141.__r_.__value_.__r.__words[2] = (std::string::size_type)v175; *(_OWORD *)&v141.__r_.__value_.__l.0 = v174; } std::string::operator=((std::string *)(v78 + 464), &v141); if ( (*(_BYTE *)&v141.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v141.__r_.__value_.__l.__data_); if ( (v169 & 1) != 0 ) { sub_10001AD30(&v142, v170, *((unsigned __int64 *)&v169 + 1)); } else { v142.__r_.__value_.__r.__words[2] = (std::string::size_type)v170; *(_OWORD *)&v142.__r_.__value_.__l.0 = v169; } std::string::operator=((std::string *)(v78 + 488), &v142); if ( (*(_BYTE *)&v142.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v142.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "62"); v113 = cocos2d::CCDictionary::valueForKey(v96, (__int64)&v181); *(_DWORD *)(v78 + 512) = cocos2d::CCString::intValue(v113); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "63"); v114 = cocos2d::CCDictionary::valueForKey(v96, (__int64)&v181); *(_DWORD *)(v78 + 516) = cocos2d::CCString::intValue(v114); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "48"); v115 = cocos2d::CCDictionary::valueForKey(v96, (__int64)&v181); v116 = (const char *)cocos2d::CCString::getCString(v115); v117 = strlen(v116); if ( v117 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v118 = v117; if ( v117 >= 0x17 ) { v129 = 26; if ( (v117 | 7) != 0x17 ) v129 = (v117 | 7) + 1; v119 = (char *)operator new(v129); v133 = v119; v132[0] = v129 | 1; v132[1] = v118; } else { LOBYTE(v132[0]) = 2 * v117; v119 = (char *)v132 + 1; if ( !v117 ) { BYTE1(v132[0]) = 0; if ( (v132[0] & 1) == 0 ) goto LABEL_215; goto LABEL_214; } } memmove(v119, v116, v118); v119[v118] = 0; if ( (v132[0] & 1) != 0 ) LABEL_214: operator delete(v133); LABEL_215: v120 = v173; if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "52"); v121 = cocos2d::CCDictionary::valueForKey(v120, (__int64)&v181); v122 = (const std::string::value_type *)cocos2d::CCString::getCString(v121); std::string::assign((std::string *)(v78 + 1240), v122); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "53"); v123 = cocos2d::CCDictionary::valueForKey(v120, (__int64)&v181); v124 = (const std::string::value_type *)cocos2d::CCString::getCString(v123); std::string::assign((std::string *)(v78 + 1264), v124); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "54"); v125 = cocos2d::CCDictionary::valueForKey(v120, (__int64)&v181); *(_DWORD *)(v78 + 1288) = cocos2d::CCString::intValue(v125); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v181.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)4; strcpy(v181.__r_.__value_.__s.__data_, "65"); v126 = cocos2d::CCDictionary::valueForKey(v120, (__int64)&v181); *(_DWORD *)(v78 + 1292) = cocos2d::CCString::intValue(v126); if ( (*(_BYTE *)&v181.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v181.__r_.__value_.__l.__data_); v127 = v167; if ( (v167 & 1) != 0 ) v128 = *((_QWORD *)&v167 + 1); else v128 = (unsigned __int8)v167 >> 1; v130 = v168; *(_DWORD *)(v78 + 1140) = (v128 == 0) + 3; if ( (*(_BYTE *)&v176.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v176.__r_.__value_.__l.__data_); if ( (v182 & 1) == 0 ) { LABEL_235: if ( (v169 & 1) == 0 ) goto LABEL_236; goto LABEL_244; } } else if ( (v182 & 1) == 0 ) { goto LABEL_235; } operator delete(v183); if ( (v169 & 1) == 0 ) { LABEL_236: if ( (v174 & 1) == 0 ) goto LABEL_237; goto LABEL_245; } LABEL_244: operator delete(v170); if ( (v174 & 1) == 0 ) { LABEL_237: if ( (v127 & 1) == 0 ) goto LABEL_238; goto LABEL_246; } LABEL_245: operator delete(v175); if ( (v127 & 1) == 0 ) { LABEL_238: if ( (v165 & 1) == 0 ) goto LABEL_239; LABEL_247: operator delete(v166); if ( (__dst & 1) == 0 ) return v78; goto LABEL_240; } LABEL_246: operator delete(v130); if ( (v165 & 1) != 0 ) goto LABEL_247; LABEL_239: if ( (__dst & 1) != 0 ) LABEL_240: operator delete(__p); return v78; }
GD Web Decomp Icon

GD Web Decomp

Raw Source