// // GJBaseGameLayer::parseRecording from 0x1001351c0 to 0x1001361e6 (4134 bytes) // // 2 xrefs: // > GJBaseGameLayer::setupReplay @ 0x100135188 // > GJBaseGameLayer::restoreRecording @ 0x10013647c // // 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:24:50 +0000 // void __fastcall GJBaseGameLayer::parseRecording(__int64 a1, __int64 a2, int a3) { __int64 v4; // rsi bool v5; // zf __int64 v6; // rdx __int64 v7; // rax const char *v8; // r14 size_t v9; // rax size_t v10; // r15 char *v11; // rbx size_t v12; // r12 __int64 v13; // rbx __int64 v14; // rax const char *CString; // r15 size_t v16; // rax size_t v17; // r14 char *v18; // rbx size_t v19; // r12 __int64 v20; // rbx unsigned int v21; // r14d __int64 v22; // rax const char *v23; // r12 size_t v24; // rax std::string::size_type v25; // r15 char *data; // rbx size_t v27; // r14 __int64 v28; // r12 __int64 v29; // rax const char *v30; // r15 size_t v31; // rax std::string::size_type v32; // r13 char *v33; // rbx size_t v34; // r14 unsigned int v35; // ebx const char *v36; // rdi int v37; // eax std::string::size_type size; // rbx int v39; // r13d bool v40; // al int v41; // eax __int64 v42; // rax const char *v43; // rdi signed int v44; // ebx int v45; // eax __int64 v46; // rbx __int64 v47; // rax const char *v48; // r15 size_t v49; // rax size_t v50; // r12 char *v51; // rbx size_t v52; // r14 __int64 **i; // rbx unsigned int v54; // r14d unsigned __int64 v55; // r14 __int64 *v56; // r15 int v57; // eax bool v58; // cl int v59; // eax bool v60; // cl __int64 v61; // rax const char *v62; // rax __int64 v63; // rax const char *v64; // rax __int64 v65; // rax const char *v66; // rax __int64 v67; // rax const char *v68; // rax __int64 **v69; // rbx unsigned int v70; // r14d unsigned __int64 v71; // r14 __int64 *v72; // r15 int v73; // eax bool v74; // cl int v75; // eax bool v76; // cl __int64 v77; // rax unsigned int v78; // r13d const char *v79; // r12 __int64 v80; // rax __int64 v81; // rax __int128 v82; // xmm0 __int64 v83; // rdx char *v84; // r12 unsigned __int64 v85; // rax __int64 v86; // r14 __int64 v87; // rcx _BYTE *v88; // r15 signed __int64 v89; // r12 unsigned __int64 v90; // rcx __int64 v91; // rax unsigned __int64 v92; // r13 char *v93; // rbx __int64 v94; // r14 __int64 v95; // rax unsigned int v96; // r14d __int64 v97; // rax const char *v98; // r12 size_t v99; // rax std::string::size_type v100; // r15 char *v101; // rbx size_t v102; // r14 size_t v103; // rax std::string::size_type v104; // r15 char *v105; // rbx size_t v106; // r14 __int64 v107; // rax const char *v108; // r14 size_t v109; // rax std::string::size_type v110; // r15 char *v111; // r12 size_t v112; // rbx int v113; // ebx int v114; // r15d unsigned __int64 v115; // r14 std::string *v116; // r12 __int64 v117; // rdi __int64 v118; // rbx int v119; // eax __int64 v120; // rbx __int64 v121; // rbx __int64 v122; // r14 void *v123; // rdi __int64 v124; // [rsp+8h] [rbp-198h] __int64 v125; // [rsp+18h] [rbp-188h] __int128 v126; // [rsp+20h] [rbp-180h] BYREF void *v127; // [rsp+30h] [rbp-170h] _QWORD v128[2]; // [rsp+38h] [rbp-168h] BYREF void *v129; // [rsp+48h] [rbp-158h] unsigned int v130; // [rsp+54h] [rbp-14Ch] __int16 *v131; // [rsp+58h] [rbp-148h] BYREF __int64 v132; // [rsp+60h] [rbp-140h] std::string v133; // [rsp+68h] [rbp-138h] BYREF __int128 *v134; // [rsp+80h] [rbp-120h] BYREF __int128 v135; // [rsp+88h] [rbp-118h] BYREF int v136; // [rsp+9Ch] [rbp-104h] __int128 v137; // [rsp+A0h] [rbp-100h] BYREF __int16 v138; // [rsp+B8h] [rbp-E8h] BYREF char v139; // [rsp+BAh] [rbp-E6h] void *v140; // [rsp+C8h] [rbp-D8h] __int128 __dst; // [rsp+D0h] [rbp-D0h] BYREF void *__p[2]; // [rsp+E0h] [rbp-C0h] _QWORD __str[5]; // [rsp+F0h] [rbp-B0h] BYREF __int64 v144; // [rsp+118h] [rbp-88h] __int64 v145; // [rsp+120h] [rbp-80h] std::string v146; // [rsp+128h] [rbp-78h] BYREF std::string v147; // [rsp+140h] [rbp-60h] BYREF char v148; // [rsp+15Fh] [rbp-41h] BYREF _QWORD __s1[2]; // [rsp+160h] [rbp-40h] BYREF void *v150; // [rsp+170h] [rbp-30h] v4 = a1 + 12944; v136 = a3; v5 = a3 == 0; v6 = 12920; if ( !v5 ) v6 = 12848; v132 = v6; if ( !v5 ) v4 = a1 + 12872; v7 = *(_QWORD *)(a1 + v6); v144 = a1; *(_QWORD *)(a1 + v6 + 8) = v7; if ( (*(_BYTE *)a2 & 1) != 0 ) v8 = *(const char **)(a2 + 16); else v8 = (const char *)(a2 + 1); v9 = strlen(v8); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_221; v10 = v9; if ( v9 >= 0x17 ) { v12 = 26; if ( (v9 | 7) != 0x17 ) v12 = (v9 | 7) + 1; v11 = (char *)operator new(v12); __p[0] = v11; *(_QWORD *)&__dst = v12 + 1; *((_QWORD *)&__dst + 1) = v10; goto LABEL_15; } LOBYTE(__dst) = 2 * v9; v11 = (char *)&__dst + 1; if ( v9 ) LABEL_15: memmove(v11, v8, v10); v11[v10] = 0; v13 = sub_1000F2A50((unsigned __int8 *)&__dst, "#"); if ( (__dst & 1) != 0 ) operator delete(__p[0]); if ( (unsigned int)sub_1007FEF90(v13) >= 2 ) { v125 = v13; v14 = cocos2d::CCArray::stringAtIndex(v13, 0); CString = (const char *)cocos2d::CCString::getCString(v14); v16 = strlen(CString); if ( v16 < 0xFFFFFFFFFFFFFFF8LL ) { v17 = v16; if ( v16 >= 0x17 ) { v19 = 26; if ( (v16 | 7) != 0x17 ) v19 = (v16 | 7) + 1; v18 = (char *)operator new(v19); __p[0] = v18; *(_QWORD *)&__dst = v19 + 1; *((_QWORD *)&__dst + 1) = v17; } else { LOBYTE(__dst) = 2 * v16; v18 = (char *)&__dst + 1; if ( !v16 ) { LABEL_27: v18[v17] = 0; v20 = sub_1000F2A50((unsigned __int8 *)&__dst, ";"); if ( (__dst & 1) != 0 ) operator delete(__p[0]); if ( (unsigned int)sub_1007FEF90(v20) ) { v145 = 0; v21 = 0; v124 = v20; while ( 1 ) { v22 = cocos2d::CCArray::stringAtIndex(v20, v21); v23 = (const char *)cocos2d::CCString::getCString(v22); v24 = strlen(v23); if ( v24 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_221; v25 = v24; v130 = v21; if ( v24 >= 0x17 ) break; v147.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v24); data = v147.__r_.__value_.__s.__data_; if ( v24 ) goto LABEL_39; LABEL_40: data[v25] = 0; v28 = sub_1000F2A50((unsigned __int8 *)&v147, ","); v137 = 0; v29 = cocos2d::CCArray::stringAtIndex(v28, 0); v30 = (const char *)cocos2d::CCString::getCString(v29); v31 = strlen(v30); if ( v31 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v32 = v31; if ( v31 >= 0x17 ) { v34 = (v31 | 7) + 1; if ( (v31 | 7) == 0x17 ) v34 = 26; v33 = (char *)operator new(v34); v133.__r_.__value_.__r.__words[2] = (std::string::size_type)v33; v133.__r_.__value_.__r.__words[0] = v34 | 1; v133.__r_.__value_.__l.__size_ = v32; LABEL_47: memmove(v33, v30, v32); goto LABEL_48; } v133.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v31); v33 = v133.__r_.__value_.__s.__data_; if ( v31 ) goto LABEL_47; LABEL_48: v33[v32] = 0; v35 = (unsigned int)v133.__r_.__value_.__l.0; v36 = v133.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) != 0 ) v36 = v133.__r_.__value_.__l.__data_; v37 = atoi(v36); if ( (v35 & 1) != 0 ) size = v133.__r_.__value_.__l.__size_; else size = v35 >> 1; v39 = -v37; if ( v37 > 0 ) v39 = v37; LODWORD(v137) = 1; if ( size ) v40 = *std::string::at(&v133, 0) != 45; else v40 = 1; BYTE4(v137) = v40; v145 = (unsigned int)(v39 + v145); v41 = v145; if ( (_BYTE)v136 ) v41 = v39; DWORD2(v137) = v41; if ( (unsigned int)sub_1007FEF90(v28) < 2 ) goto LABEL_128; v42 = cocos2d::CCArray::stringAtIndex(v28, 1); v43 = (const char *)cocos2d::CCString::getCString(v42); v44 = atoi(v43); LODWORD(v137) = GJBaseGameLayer::buttonIDToButton((__int64)v43, v44); BYTE5(v137) = v44 >= 6; if ( (v137 & 0xFFFFFFFE) != 0x62 ) goto LABEL_128; v45 = *(_DWORD *)(v144 + 12912); *(_DWORD *)(v144 + 12912) = v45 + 1; HIDWORD(v137) = v45; v46 = sub_1000F2A50((unsigned __int8 *)&v147, ":"); if ( (unsigned int)sub_1007FEF90(v46) < 2 ) goto LABEL_128; v47 = cocos2d::CCArray::stringAtIndex(v46, 1); v48 = (const char *)cocos2d::CCString::getCString(v47); v49 = strlen(v48); if ( v49 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v50 = v49; if ( v49 >= 0x17 ) { v52 = (v49 | 7) + 1; if ( (v49 | 7) == 0x17 ) v52 = 26; v51 = (char *)operator new(v52); v129 = v51; v128[0] = v52 | 1; v128[1] = v50; } else { LOBYTE(v128[0]) = 2 * v49; v51 = (char *)v128 + 1; if ( !v49 ) goto LABEL_71; } memmove(v51, v48, v50); LABEL_71: LODWORD(v145) = v39; v51[v50] = 0; v135 = 0; v134 = &v135; GameToolbox::stringSetupToMap(v128, ",", &v134); __dst = 0; memset(__str, 0, 32); *(_OWORD *)__p = 0; LODWORD(__dst) = HIDWORD(v137); LOWORD(__s1[0]) = 12546; BYTE2(__s1[0]) = 0; for ( i = (__int64 **)v135; ; i = (__int64 **)*i ) { if ( !i ) { *((_QWORD *)&__dst + 1) = 0; goto LABEL_85; } v54 = *((unsigned __int8 *)i + 32); if ( (v54 & 1) != 0 ) { v55 = (unsigned __int64)i[5]; v56 = i[6]; } else { v55 = v54 >> 1; v56 = (__int64 *)((char *)i + 33); } v57 = memcmp((char *)__s1 + 1, v56, v55 != 0); v58 = v55 >= 2; if ( v57 ) v58 = v57 < 0; if ( !v58 ) break; LABEL_72: ; } v59 = memcmp(v56, (char *)__s1 + 1, v55 != 0); v60 = v55 == 0; if ( v59 ) v60 = v59 < 0; if ( v60 ) { ++i; goto LABEL_72; } v138 = 12546; v139 = 0; v131 = &v138; v97 = sub_100152610(&v134, &v138, &unk_100A04ED8, &v131, &v148); if ( (*(_BYTE *)(v97 + 56) & 1) != 0 ) v98 = *(const char **)(v97 + 72); else v98 = (const char *)(v97 + 57); v99 = strlen(v98); if ( v99 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v100 = v99; if ( v99 >= 0x17 ) { v102 = (v99 | 7) + 1; if ( (v99 | 7) == 0x17 ) v102 = 26; v101 = (char *)operator new(v102); v146.__r_.__value_.__r.__words[2] = (std::string::size_type)v101; v146.__r_.__value_.__r.__words[0] = v102 | 1; v146.__r_.__value_.__l.__size_ = v100; LABEL_155: memmove(v101, v98, v100); goto LABEL_156; } v146.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v99); v101 = v146.__r_.__value_.__s.__data_; if ( v99 ) goto LABEL_155; LABEL_156: v101[v100] = 0; *((_QWORD *)&__dst + 1) = std::stoull(&v146, nullptr, 10); if ( (*(_BYTE *)&v146.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v146.__r_.__value_.__l.__data_); if ( (v138 & 1) != 0 ) goto LABEL_161; LABEL_158: if ( (__s1[0] & 1) != 0 ) LABEL_162: operator delete(v150); } else { if ( (v138 & 1) == 0 ) goto LABEL_158; LABEL_161: operator delete(v140); if ( (__s1[0] & 1) != 0 ) goto LABEL_162; } LABEL_85: LOWORD(__s1[0]) = 13058; BYTE2(__s1[0]) = 0; v146.__r_.__value_.__r.__words[0] = (std::string::size_type)__s1; v61 = sub_100152610(&v134, __s1, &unk_100A04ED8, &v146, &v138); if ( (*(_BYTE *)(v61 + 56) & 1) != 0 ) v62 = *(const char **)(v61 + 72); else v62 = (const char *)(v61 + 57); LODWORD(__p[0]) = atoi(v62); if ( (__s1[0] & 1) != 0 ) operator delete(v150); LOWORD(__s1[0]) = 13314; BYTE2(__s1[0]) = 0; v146.__r_.__value_.__r.__words[0] = (std::string::size_type)__s1; v63 = sub_100152610(&v134, __s1, &unk_100A04ED8, &v146, &v138); if ( (*(_BYTE *)(v63 + 56) & 1) != 0 ) v64 = *(const char **)(v63 + 72); else v64 = (const char *)(v63 + 57); HIDWORD(__p[0]) = atoi(v64); if ( (__s1[0] & 1) != 0 ) operator delete(v150); LOWORD(__s1[0]) = 13570; BYTE2(__s1[0]) = 0; v146.__r_.__value_.__r.__words[0] = (std::string::size_type)__s1; v65 = sub_100152610(&v134, __s1, &unk_100A04ED8, &v146, &v138); if ( (*(_BYTE *)(v65 + 56) & 1) != 0 ) v66 = *(const char **)(v65 + 72); else v66 = (const char *)(v65 + 57); LODWORD(__str[0]) = atoi(v66); if ( (__s1[0] & 1) != 0 ) operator delete(v150); LOWORD(__s1[0]) = 13826; BYTE2(__s1[0]) = 0; v146.__r_.__value_.__r.__words[0] = (std::string::size_type)__s1; v67 = sub_100152610(&v134, __s1, &unk_100A04ED8, &v146, &v138); if ( (*(_BYTE *)(v67 + 56) & 1) != 0 ) v68 = *(const char **)(v67 + 72); else v68 = (const char *)(v67 + 57); HIDWORD(__str[0]) = atoi(v68); if ( (__s1[0] & 1) != 0 ) operator delete(v150); LOWORD(__s1[0]) = 14082; BYTE2(__s1[0]) = 0; v69 = (__int64 **)v135; while ( 2 ) { if ( !v69 ) { __p[1] = nullptr; v78 = v145; goto LABEL_121; } v70 = *((unsigned __int8 *)v69 + 32); if ( (v70 & 1) != 0 ) { v71 = (unsigned __int64)v69[5]; v72 = v69[6]; } else { v71 = v70 >> 1; v72 = (__int64 *)((char *)v69 + 33); } v73 = memcmp((char *)__s1 + 1, v72, v71 != 0); v74 = v71 >= 2; if ( v73 ) v74 = v73 < 0; if ( v74 ) goto LABEL_107; v75 = memcmp(v72, (char *)__s1 + 1, v71 != 0); v76 = v71 == 0; if ( v75 ) v76 = v75 < 0; if ( v76 ) { ++v69; LABEL_107: v69 = (__int64 **)*v69; continue; } break; } v138 = 14082; v139 = 0; v131 = &v138; v77 = sub_100152610(&v134, &v138, &unk_100A04ED8, &v131, &v148); v78 = v145; if ( (*(_BYTE *)(v77 + 56) & 1) != 0 ) v79 = *(const char **)(v77 + 72); else v79 = (const char *)(v77 + 57); v103 = strlen(v79); if ( v103 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v104 = v103; if ( v103 >= 0x17 ) { v106 = (v103 | 7) + 1; if ( (v103 | 7) == 0x17 ) v106 = 26; v105 = (char *)operator new(v106); v146.__r_.__value_.__r.__words[2] = (std::string::size_type)v105; v146.__r_.__value_.__r.__words[0] = v106 | 1; v146.__r_.__value_.__l.__size_ = v104; LABEL_171: memmove(v105, v79, v104); goto LABEL_172; } v146.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v103); v105 = v146.__r_.__value_.__s.__data_; if ( v103 ) goto LABEL_171; LABEL_172: v105[v104] = 0; __p[1] = (void *)std::stoull(&v146, nullptr, 10); if ( (*(_BYTE *)&v146.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v146.__r_.__value_.__l.__data_); if ( (v138 & 1) != 0 ) goto LABEL_177; LABEL_174: if ( (__s1[0] & 1) != 0 ) LABEL_178: operator delete(v150); } else { if ( (v138 & 1) == 0 ) goto LABEL_174; LABEL_177: operator delete(v140); if ( (__s1[0] & 1) != 0 ) goto LABEL_178; } LABEL_121: LOWORD(__s1[0]) = 14338; BYTE2(__s1[0]) = 0; v146.__r_.__value_.__r.__words[0] = (std::string::size_type)__s1; v80 = sub_100152610(&v134, __s1, &unk_100A04ED8, &v146, &v138); std::string::operator=((std::string *)&__str[1], (const std::string *)(v80 + 56)); if ( (__s1[0] & 1) != 0 ) operator delete(v150); __s1[0] = (char *)&v137 + 12; v81 = sub_1001520F0(v4, (char *)&v137 + 12, &unk_100A04ED8, __s1, &v146, 0.0); *(_QWORD *)(v81 + 56) = __str[0]; v82 = __dst; *(_OWORD *)(v81 + 40) = *(_OWORD *)__p; *(_OWORD *)(v81 + 24) = v82; std::string::operator=((std::string *)(v81 + 64), (const std::string *)&__str[1]); DWORD2(v137) = v78; if ( (__str[1] & 1) != 0 ) operator delete((void *)__str[3]); sub_1001525B0(&v134, v135); if ( (v128[0] & 1) != 0 ) operator delete(v129); v145 = v78; LABEL_128: v83 = v132; v84 = *(char **)(v144 + v132 + 8); v85 = *(_QWORD *)(v144 + v132 + 16); if ( (unsigned __int64)v84 >= v85 ) { v88 = *(_BYTE **)(v144 + v132); v89 = v84 - v88; v90 = (v89 >> 4) + 1; if ( v90 > 0xFFFFFFFFFFFFFFFLL ) sub_100151F50(); v91 = v85 - (_QWORD)v88; v92 = v91 >> 3; if ( v91 >> 3 <= v90 ) v92 = (v89 >> 4) + 1; if ( (unsigned __int64)v91 >= 0x7FFFFFFFFFFFFFF0LL ) v92 = 0xFFFFFFFFFFFFFFFLL; if ( v92 ) { if ( v92 > 0xFFFFFFFFFFFFFFFLL ) sub_10001ADB0(); v93 = (char *)operator new(16 * v92); } else { v93 = nullptr; } v94 = 16 * (v89 >> 4); *(_OWORD *)&v93[v94] = v137; v86 = (__int64)&v93[v94 + 16]; memcpy(v93, v88, v89); v95 = v144; v87 = v132; *(_QWORD *)(v144 + v132) = v93; *(_QWORD *)(v95 + v87 + 8) = v86; *(_QWORD *)(v95 + v87 + 16) = &v93[16 * v92]; if ( v88 ) { operator delete(v88); v87 = v132; } } else { *(_OWORD *)v84 = v137; v86 = (__int64)(v84 + 16); v87 = v83; } *(_QWORD *)(v144 + v87 + 8) = v86; if ( (*(_BYTE *)&v133.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v133.__r_.__value_.__l.__data_); v20 = v124; v96 = v130; if ( (*(_BYTE *)&v147.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v147.__r_.__value_.__l.__data_); v21 = v96 + 1; if ( v21 >= (unsigned int)sub_1007FEF90(v124) ) goto LABEL_179; } v27 = (v24 | 7) + 1; if ( (v24 | 7) == 0x17 ) v27 = 26; data = (char *)operator new(v27); v147.__r_.__value_.__r.__words[2] = (std::string::size_type)data; v147.__r_.__value_.__r.__words[0] = v27 + 1; v147.__r_.__value_.__l.__size_ = v25; LABEL_39: memmove(data, v23, v25); goto LABEL_40; } LABEL_179: __dst = 0; __p[0] = nullptr; v107 = cocos2d::CCArray::stringAtIndex(v125, 1); v108 = (const char *)cocos2d::CCString::getCString(v107); v109 = strlen(v108); if ( v109 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v110 = v109; if ( v109 >= 0x17 ) { v112 = 26; if ( (v109 | 7) != 0x17 ) v112 = (v109 | 7) + 1; v111 = (char *)operator new(v112); v147.__r_.__value_.__r.__words[2] = (std::string::size_type)v111; v147.__r_.__value_.__r.__words[0] = v112 | 1; v147.__r_.__value_.__l.__size_ = v110; } else { v147.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v109); v111 = v147.__r_.__value_.__s.__data_; if ( !v109 ) { LABEL_187: v111[v110] = 0; sub_1000F2760((unsigned __int8 *)&v147, (__int64)&__dst); if ( (*(_BYTE *)&v147.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v147.__r_.__value_.__l.__data_); v113 = -1431655765 * ((*((_QWORD *)&__dst + 1) - (_QWORD)__dst) >> 3); if ( v113 <= 0 ) { v114 = 0; v115 = 0; goto LABEL_195; } v114 = 0; v115 = std::stoull((const std::string *)__dst, nullptr, 10); if ( v113 != 1 ) { v116 = (std::string *)__dst; if ( (*(_BYTE *)(__dst + 24) & 1) != 0 ) { v114 = atoi(*(const char **)(__dst + 40)); if ( (unsigned int)v113 <= 4 ) goto LABEL_195; } else { v114 = atoi((const char *)(__dst + 25)); if ( (unsigned int)v113 <= 4 ) goto LABEL_195; } if ( v113 != 5 ) { if ( (*(_BYTE *)&v116[5].__r_.__value_.__s.0 & 1) != 0 ) sub_10001AD30(&v147, v116[5].__r_.__value_.__l.__data_, v116[5].__r_.__value_.__l.__size_); else v147 = v116[5]; goto LABEL_196; } } LABEL_195: *(_WORD *)&v147.__r_.__value_.__l.0 = 0; LABEL_196: if ( (_BYTE)v136 ) { v117 = v144; *(_QWORD *)(v144 + 12800) = v115; *(_DWORD *)(v117 + 13088) = v114; std::string::operator=((std::string *)(v117 + 13064), &v147); } else { v118 = v144; *(_QWORD *)(v144 + 12808) = v115; v119 = 1; if ( v114 >= 2 ) v119 = v114; *(_DWORD *)(v118 + 12212) = v119 - 1; GameToolbox::fast_srand(v115); v120 = *(_QWORD *)(v118 + 2152); if ( (*(_BYTE *)&v147.__r_.__value_.__s.0 & 1) != 0 ) { sub_10001AD30(&v126, v147.__r_.__value_.__l.__data_, v147.__r_.__value_.__l.__size_); } else { v127 = v147.__r_.__value_.__l.__data_; v126 = *(_OWORD *)&v147.__r_.__value_.__l.0; } GJEffectManager::loadPersistentStateString(v120, &v126); if ( (v126 & 1) != 0 ) operator delete(v127); } if ( (*(_BYTE *)&v147.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v147.__r_.__value_.__l.__data_); v121 = __dst; if ( (_QWORD)__dst ) { v122 = *((_QWORD *)&__dst + 1); v123 = (void *)__dst; if ( *((_QWORD *)&__dst + 1) != (_QWORD)__dst ) { do { if ( (*(_BYTE *)(v122 - 24) & 1) != 0 ) operator delete(*(void **)(v122 - 8)); v122 -= 24; } while ( v122 != v121 ); v123 = (void *)__dst; } *((_QWORD *)&__dst + 1) = v121; operator delete(v123); } return; } } memmove(v111, v108, v110); goto LABEL_187; } } memmove(v18, CString, v17); goto LABEL_27; } LABEL_221: sub_100003630(); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source