// // GameToolbox::extractServerPopup from 0x1004e9bc0 to 0x1004ea964 (3492 bytes) // // 4 xrefs: // > GJAccountManager::handleIt @ 0x10009d9f5 // > GameLevelManager::handleIt @ 0x10051c50e // > MusicDownloadManager::handleIt @ 0x10064a3a5 // > GJMultiplayerManager::handleIt @ 0x100738705 // // 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:21 +0000 // __int64 __fastcall GameToolbox::extractServerPopup(std::string *a1) { unsigned int v1; // eax char **p_data; // r12 std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v3; // r13 char *v4; // r14 std::string::size_type size; // rsi std::string::pointer data; // rbx __int64 v7; // rdx char *v9; // r15 __int64 v10; // rdx void *v11; // rax char *v12; // rax bool v13; // cl signed __int64 v14; // rax char *v15; // r15 std::string::size_type v16; // r14 signed __int64 v17; // rbx char *v18; // r12 size_t v19; // r13 std::string::size_type v20; // rax std::string::size_type v21; // r13 std::string::size_type v22; // rax std::string::size_type v23; // r15 std::string::pointer v24; // r14 std::string::size_type v25; // r15 char *v26; // rbx unsigned int v27; // eax size_t v28; // r13 std::string::size_type v29; // r12 std::string *v30; // rsi size_t v31; // r15 char *v32; // rbx std::string::size_type v33; // r14 size_t v34; // r13 std::string::size_type v35; // rax std::string::pointer v36; // r14 std::string::size_type v37; // r12 std::string::size_type v38; // r15 char *v39; // rbx size_t v40; // r13 char v41; // r14 char *v42; // rcx std::string *v43; // rdi int v44; // ecx std::string::size_type v45; // rax std::string *v47; // rbx char *v48; // r14 std::string::size_type *v49; // r14 __int64 v50; // rax __int64 v51; // rcx __int64 v52; // r13 unsigned __int64 v53; // rax unsigned __int64 v54; // rdx std::string::size_type *v55; // r15 std::string::pointer v56; // rbx void *v57; // rcx char *v58; // rax unsigned __int64 v59; // r12 size_t v60; // r12 char **v61; // r15 char **v62; // rdx std::string::size_type *v63; // rbx std::string::size_type *v64; // rdx std::string *v65; // rbx __int64 v66; // r13 unsigned __int64 v67; // rbx char *v68; // rax std::string *v69; // r14 void *v70; // r12 char **v71; // rbx std::string *v72; // rax unsigned __int64 v73; // r13 char *v74; // r14 std::string::pointer v75; // rdi std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610 v76; // rcx std::string *v77; // r14 char **v78; // r12 size_t v79; // r13 char **v80; // rsi char **v81; // r15 unsigned __int64 v82; // rbx _BYTE *v83; // rax unsigned __int64 v84; // rdx unsigned __int64 v85; // r13 unsigned __int64 v86; // r13 char *v87; // r8 char **v88; // rcx char **v89; // rbx void *v90; // r15 __int64 v91; // r13 unsigned __int64 v92; // rsi __int64 v93; // rdx __int64 v94; // rdi __int128 v95; // xmm1 std::string::__raw *v96; // rdi std::string *v97; // rcx bool v98; // zf _OWORD *v99; // r14 __int64 v100; // rax __int64 v101; // r14 __int64 v102; // rax __int64 v103; // rax __int64 v104; // rbx unsigned __int64 v105; // rax unsigned __int64 v106; // rbx char *v107; // rax unsigned __int64 v108; // r8 char *v109; // rsi std::string::size_type v110; // rdi char *v111; // r13 unsigned __int64 v112; // r9 char *v113; // rcx std::string::size_type *v114; // rdi __int64 v115; // r11 unsigned __int64 v116; // r9 __int64 v117; // r8 __int64 v118; // r10 __int128 v119; // xmm1 std::string __str; // [rsp+0h] [rbp-110h] BYREF std::string v121; // [rsp+18h] [rbp-F8h] BYREF std::string v122[2]; // [rsp+30h] [rbp-E0h] BYREF __int128 v123; // [rsp+60h] [rbp-B0h] BYREF void *v124; // [rsp+70h] [rbp-A0h] __int64 v125; // [rsp+80h] [rbp-90h] BYREF size_t v126; // [rsp+88h] [rbp-88h] void *v127; // [rsp+90h] [rbp-80h] std::string __dst; // [rsp+98h] [rbp-78h] BYREF char *v129; // [rsp+B0h] [rbp-60h] std::string v130; // [rsp+B8h] [rbp-58h] BYREF char *v131; // [rsp+D0h] [rbp-40h] void *v132; // [rsp+D8h] [rbp-38h] std::string *v133; // [rsp+E0h] [rbp-30h] byte_100BE4718 = 0; if ( (*(_BYTE *)&stru_100BE4700.__r_.__value_.__s.0 & 1) == 0 ) { *(_WORD *)&stru_100BE4700.__r_.__value_.__l.0 = 0; v1 = (unsigned int)a1->__r_.__value_.__l.0; if ( (v1 & 1) == 0 ) goto LABEL_3; LABEL_6: if ( a1->__r_.__value_.__l.__size_ < 0xA ) goto LABEL_13; goto LABEL_7; } *stru_100BE4700.__r_.__value_.__l.__data_ = 0; stru_100BE4700.__r_.__value_.__l.__size_ = 0; v1 = (unsigned int)a1->__r_.__value_.__l.0; if ( (v1 & 1) != 0 ) goto LABEL_6; LABEL_3: if ( v1 >> 1 < 0xAuLL ) goto LABEL_13; LABEL_7: LODWORD(p_data) = 0; v133 = a1; if ( std::string::compare(a1, 0, 5u, "##P##") ) return (unsigned int)p_data; v3 = v133->__r_.__value_.__s.0; v4 = (char *)(*(_BYTE *)&v133->__r_.__value_.__l.0 >> 1); size = v133->__r_.__value_.__l.__size_; data = v133->__r_.__value_.__l.__data_; if ( (*(_BYTE *)&v133->__r_.__value_.__s.0 & 1) == 0 ) data = v133->__r_.__value_.__s.__data_; v7 = v133->__r_.__value_.__l.__size_; if ( (*(_BYTE *)&v3 & 1) == 0 ) v7 = *(_BYTE *)&v133->__r_.__value_.__l.0 >> 1; if ( v7 <= 9 ) goto LABEL_13; v129 = v133->__r_.__value_.__l.__data_; v131 = (char *)size; v132 = (char *)&v133->__r_.__value_.__l.0 + 1; v9 = &data[v7]; v10 = v7 - 5; v11 = data + 5; while ( 1 ) { v12 = (char *)memchr(v11, 35, v10 - 4); if ( !v12 ) goto LABEL_13; if ( !(*(_DWORD *)v12 ^ 0x23502323 | (unsigned __int8)v12[4] ^ 0x23) ) break; v11 = v12 + 1; v10 = v9 - (_BYTE *)v11; LODWORD(p_data) = 0; if ( v9 - (_BYTE *)v11 < 5 ) return (unsigned int)p_data; } v13 = v12 == v9; v14 = v12 - data; if ( v13 || v14 == -1 ) { LABEL_13: LODWORD(p_data) = 0; return (unsigned int)p_data; } if ( (*(_BYTE *)&v3 & 1) == 0 ) { v15 = (char *)v132; if ( *(unsigned __int8 *)&v3 >= 0xAu ) goto LABEL_23; LABEL_30: sub_100056810(); } v4 = v131; v15 = v129; if ( (unsigned __int64)v131 <= 4 ) goto LABEL_30; LABEL_23: v16 = (std::string::size_type)(v4 - 5); if ( v16 >= v14 - 5 ) v16 = v14 - 5; if ( v16 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v17 = v14; if ( v16 >= 0x17 ) { v19 = 26; if ( (v16 | 7) != 0x17 ) v19 = (v16 | 7) + 1; v18 = (char *)operator new(v19); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)v18; __dst.__r_.__value_.__r.__words[0] = v19 + 1; __dst.__r_.__value_.__l.__size_ = v16; } else { __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v16); v18 = __dst.__r_.__value_.__s.__data_; if ( !v16 ) goto LABEL_35; } memmove(v18, v15 + 5, v16); LABEL_35: v18[v16] = 0; std::string::erase(v133, 0, v17 + 5); v123 = 0; memset(v122, 0, sizeof(v122)); v124 = nullptr; p_data = nullptr; do { while ( 1 ) { v20 = std::string::find(&__dst, 58, (std::string::size_type)p_data); if ( v20 == -1 ) { if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) { v21 = __dst.__r_.__value_.__l.__size_; v22 = __dst.__r_.__value_.__l.__size_ - (_QWORD)p_data; v23 = __dst.__r_.__value_.__l.__size_; if ( __dst.__r_.__value_.__l.__size_ < (unsigned __int64)p_data ) LABEL_207: sub_100056810(); goto LABEL_46; } v21 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1; v22 = v21 - (_QWORD)p_data; } else { v21 = v20; v22 = v20 - (_QWORD)p_data; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) { v23 = __dst.__r_.__value_.__l.__size_; if ( __dst.__r_.__value_.__l.__size_ < (unsigned __int64)p_data ) goto LABEL_207; LABEL_46: v24 = __dst.__r_.__value_.__l.__data_; goto LABEL_47; } } v23 = *(_BYTE *)&__dst.__r_.__value_.__s.0 >> 1; v24 = __dst.__r_.__value_.__s.__data_; if ( (unsigned __int64)p_data > v23 ) goto LABEL_207; LABEL_47: v25 = v23 - (_QWORD)p_data; if ( v25 >= v22 ) v25 = v22; if ( v25 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v25 >= 0x17 ) { v133 = (std::string *)v21; v28 = (v25 | 7) + 1; if ( (v25 | 7) == 0x17 ) v28 = 26; v26 = (char *)operator new(v28); v130.__r_.__value_.__r.__words[2] = (std::string::size_type)v26; v130.__r_.__value_.__r.__words[0] = v28 | 1; v130.__r_.__value_.__l.__size_ = v25; v21 = (std::string::size_type)v133; } else { v130.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v25); v26 = v130.__r_.__value_.__s.__data_; if ( !v25 ) { v130.__r_.__value_.__s.__data_[0] = 0; v27 = (unsigned int)v130.__r_.__value_.__l.0; if ( (*(_BYTE *)&v130.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_59; goto LABEL_53; } } memmove(v26, &v24[(_QWORD)p_data], v25); v26[v25] = 0; v27 = (unsigned int)v130.__r_.__value_.__l.0; if ( (*(_BYTE *)&v130.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_59: if ( !(v27 >> 1) ) goto LABEL_110; goto LABEL_60; } LABEL_53: if ( !v130.__r_.__value_.__l.__size_ ) goto LABEL_110; LABEL_60: v29 = std::string::find(&v130, 61, 0); LOBYTE(v27) = v130.__r_.__value_.__s.0; if ( v29 == -1 ) goto LABEL_110; if ( (*(_BYTE *)&v130.__r_.__value_.__s.0 & 1) != 0 ) { v30 = (std::string *)v130.__r_.__value_.__l.__data_; v31 = v130.__r_.__value_.__l.__size_; } else { v31 = *(_BYTE *)&v130.__r_.__value_.__l.0 >> 1; v30 = (std::string *)((char *)&v130.__r_.__value_.__l.0 + 1); } if ( v31 >= v29 ) v31 = v29; if ( v31 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v31 >= 0x17 ) { v133 = v30; v33 = v21; v34 = (v31 | 7) + 1; if ( (v31 | 7) == 0x17 ) v34 = 26; v32 = (char *)operator new(v34); v127 = v32; v125 = v34 | 1; v126 = v31; v21 = v33; v30 = v133; LABEL_73: memmove(v32, v30, v31); goto LABEL_74; } LOBYTE(v125) = 2 * v31; v32 = (char *)&v125 + 1; if ( v31 ) goto LABEL_73; LABEL_74: v32[v31] = 0; if ( (*(_BYTE *)&v130.__r_.__value_.__s.0 & 1) != 0 ) { v35 = v130.__r_.__value_.__l.__size_; if ( v130.__r_.__value_.__l.__size_ <= v29 ) LABEL_210: sub_100056810(); v36 = v130.__r_.__value_.__l.__data_; } else { v35 = *(_BYTE *)&v130.__r_.__value_.__l.0 >> 1; v36 = v130.__r_.__value_.__s.__data_; if ( v29 >= v35 ) goto LABEL_210; } v37 = v29 + 1; v38 = v35 - v37; if ( v35 - v37 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); if ( v38 >= 0x17 ) { v133 = (std::string *)v21; v40 = (v38 | 7) + 1; if ( (v38 | 7) == 0x17 ) v40 = 26; v39 = (char *)operator new(v40); v121.__r_.__value_.__r.__words[2] = (std::string::size_type)v39; v121.__r_.__value_.__r.__words[0] = v40 | 1; v121.__r_.__value_.__l.__size_ = v38; v21 = (std::string::size_type)v133; LABEL_86: memmove(v39, &v36[v37], v38); goto LABEL_87; } v121.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v38); v39 = v121.__r_.__value_.__s.__data_; if ( v35 != v37 ) goto LABEL_86; LABEL_87: v39[v38] = 0; cocos2d::ZipUtils::base64URLDecode(&__str, &v121); if ( (*(_BYTE *)&v121.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v121.__r_.__value_.__l.__data_); v41 = v125 & 1; if ( (v125 & 1) == 0 ) { if ( (unsigned __int8)v125 == 2 ) { v43 = &v122[1]; if ( BYTE1(v125) != 98 ) { if ( BYTE1(v125) != 116 ) goto LABEL_105; LABEL_103: v43 = v122; } LABEL_104: std::string::operator=(v43, &__str); goto LABEL_105; } v42 = (char *)&v125 + 1; if ( (unsigned __int8)v125 != 6 ) goto LABEL_105; goto LABEL_96; } if ( v126 == 1 ) { v44 = *(unsigned __int8 *)v127; v43 = &v122[1]; if ( v44 == 98 ) goto LABEL_104; if ( v44 == 116 ) goto LABEL_103; } if ( v126 == 3 ) { v42 = (char *)v127; LABEL_96: v43 = (std::string *)&v123; if ( !(*(_WORD *)v42 ^ 0x7462 | (unsigned __int8)v42[2] ^ 0x6E) ) goto LABEL_104; } LABEL_105: if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( v41 ) operator delete(v127); LOBYTE(v27) = v130.__r_.__value_.__s.0; LABEL_110: if ( (v27 & 1) != 0 ) operator delete(v130.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) break; p_data = (char **)(v21 + 1); if ( v21 + 1 > __dst.__r_.__value_.__l.__size_ ) goto LABEL_114; } p_data = (char **)(v21 + 1); } while ( v21 + 1 <= *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1 ); LABEL_114: if ( (*(_BYTE *)&v122[0].__r_.__value_.__s.0 & 1) != 0 ) v45 = v122[0].__r_.__value_.__l.__size_; else v45 = *(_BYTE *)&v122[0].__r_.__value_.__l.0 >> 1; if ( !v45 && !((*(_BYTE *)&v122[1].__r_.__value_.__s.0 & 1) != 0 ? v122[1].__r_.__value_.__l.__size_ : *(_BYTE *)&v122[1].__r_.__value_.__l.0 >> 1) ) { LODWORD(p_data) = 0; goto LABEL_184; } std::string::operator=(&stru_100BE4700, v122); v47 = (std::string *)qword_100BE50F8; if ( !qword_100BE50F8 ) { v48 = (char *)operator new(0x190u); cocos2d::CCNode::CCNode((__int64)v48); *(_QWORD *)v48 = off_100B631B8; *((_QWORD *)v48 + 40) = &off_100B63550; *(_OWORD *)(v48 + 328) = 0; *(_OWORD *)(v48 + 344) = 0; *(_OWORD *)(v48 + 360) = 0; v48[376] = 0; *((_OWORD *)v48 + 24) = 0; qword_100BE50F8 = (__int64)v48; cocos2d::CCNode::init(); cocos2d::CCObject::retain(qword_100BE50F8); v47 = (std::string *)qword_100BE50F8; } v49 = (std::string::size_type *)v47[14].__r_.__value_.__r.__words[0]; v50 = 56 * ((v47[14].__r_.__value_.__l.__size_ - (unsigned __int64)v49) >> 3) - 1; v51 = 0; v131 = (char *)v47[14].__r_.__value_.__l.__size_; v52 = v131 - (char *)v49; if ( v131 != (char *)v49 ) v51 = v50; v53 = v47[15].__r_.__value_.__r.__words[0]; v54 = v53 + v47[15].__r_.__value_.__l.__size_; v133 = v47; if ( v51 != v54 ) goto LABEL_150; p_data = &v47[13].__r_.__value_.__l.__data_; if ( v53 >= 0x38 ) { v47[15].__r_.__value_.__r.__words[0] = v53 - 56; v130.__r_.__value_.__r.__words[0] = *v49; v47[14].__r_.__value_.__r.__words[0] = (std::string::size_type)(v49 + 1); sub_100426FB0(&v47[13].__r_.__value_.__l.__data_, &v130); goto LABEL_129; } v55 = (std::string::size_type *)v47[13].__r_.__value_.__l.__data_; v56 = v47[14].__r_.__value_.__l.__data_; if ( v52 >= (unsigned __int64)(v56 - (std::string::pointer)v55) ) { v59 = 1; if ( v56 != (std::string::pointer)v55 ) v59 = (v56 - (std::string::pointer)v55) >> 2; if ( v59 >> 61 ) goto LABEL_214; v60 = 8 * v59; v132 = operator new(v60); v129 = (char *)operator new(0xFC0u); v61 = (char **)((char *)v132 + v52); v62 = (char **)((char *)v132 + v60); v63 = (std::string::size_type *)v131; if ( v52 == v60 ) { if ( v52 <= 0 ) { v66 = v52 >> 2; v67 = 1; if ( v131 != (char *)v49 ) v67 = v66; if ( v67 > 0x1FFFFFFFFFFFFFFFLL ) sub_10001ADB0(); v68 = (char *)operator new(8 * v67); v69 = v133; v70 = v68; v61 = (char **)&v68[2 * (v67 & 0xFFFFFFFFFFFFFFFCLL)]; v71 = (char **)&v68[8 * v67]; operator delete(v132); v62 = v71; v72 = v69; v49 = (std::string::size_type *)v69[14].__r_.__value_.__r.__words[0]; v63 = (std::string::size_type *)v72[14].__r_.__value_.__l.__size_; v132 = v70; } else { v61 = (char **)((char *)v61 - ((((unsigned __int64)v52 >> 1) + 4) & 0xFFFFFFFFFFFFFFF8LL)); } } *v61 = v129; v73 = (unsigned __int64)(v61 + 1); if ( v63 == v49 ) { p_data = v61; v74 = (char *)(v61 + 1); LABEL_148: v47 = v133; v75 = v133[13].__r_.__value_.__l.__data_; v133[13].__r_.__value_.__r.__words[2] = (std::string::size_type)v132; v47[14].__r_.__value_.__r.__words[0] = (std::string::size_type)p_data; v47[14].__r_.__value_.__l.__size_ = (std::string::size_type)v74; v47[14].__r_.__value_.__r.__words[2] = (std::string::size_type)v62; if ( v75 ) operator delete(v75); goto LABEL_150; } while ( v61 != v132 ) { v74 = (char *)v73; v78 = v61; LABEL_153: *(v78 - 1) = (char *)*--v63; p_data = v78 - 1; v73 = (unsigned __int64)v74; v61 = p_data; if ( v63 == (std::string::size_type *)v133[14].__r_.__value_.__r.__words[0] ) goto LABEL_148; } if ( v73 < (unsigned __int64)v62 ) { v74 = (char *)(v73 + 4 * ((((unsigned __int64)(((__int64)((__int64)v62 - v73) >> 3) + 1) >> 63) + ((__int64)((__int64)v62 - v73) >> 3) + 1) & 0xFFFFFFFFFFFFFFFELL)); v78 = (char **)((char *)v61 + 4 * ((((unsigned __int64)(((__int64)((__int64)v62 - v73) >> 3) + 1) >> 63) + ((__int64)((__int64)v62 - v73) >> 3) + 1) & 0xFFFFFFFFFFFFFFFELL)); v79 = v73 - (_QWORD)v61; if ( v79 ) { v80 = v61; v81 = v62; memmove(v78, v80, v79); v62 = v81; } goto LABEL_153; } v131 = (char *)v63; v82 = ((char *)v62 - (char *)v61) >> 2; if ( v62 == v61 ) v82 = 1; if ( v82 > 0x1FFFFFFFFFFFFFFFLL ) sub_10001ADB0(); v83 = operator new(8 * v82); v84 = (v82 + 3) >> 2; v78 = (char **)&v83[8 * v84]; v74 = (char *)v78; v85 = v73 - (_QWORD)v61; if ( v85 ) { v74 = (char *)v78 + v85; v86 = v85 - 8; if ( v86 >= 0x38 && (unsigned __int64)(&v83[8 * v84] - (_BYTE *)v61) >= 0x20 ) { v91 = (v86 >> 3) + 1; v92 = v91 & 0xFFFFFFFFFFFFFFFCLL; v87 = (char *)&v78[v91 & 0xFFFFFFFFFFFFFFFCLL]; v88 = &v61[v91 & 0xFFFFFFFFFFFFFFFCLL]; v93 = (__int64)&v83[8 * v84 + 16]; v94 = 0; do { v95 = *(_OWORD *)&v61[v94 + 2]; *(_OWORD *)(v93 + 8 * v94 - 16) = *(_OWORD *)&v61[v94]; *(_OWORD *)(v93 + 8 * v94) = v95; v94 += 4; } while ( v92 != v94 ); if ( v91 == v92 ) goto LABEL_166; } else { v87 = &v83[8 * v84]; v88 = v61; } do { *(_QWORD *)v87 = *v88; v87 += 8; ++v88; } while ( v87 != v74 ); } LABEL_166: v89 = (char **)&v83[8 * v82]; v90 = v83; operator delete(v132); v62 = v89; v132 = v90; v63 = (std::string::size_type *)v131; goto LABEL_153; } v57 = operator new(0xFC0u); v58 = v131; if ( v56 != v131 ) { *(_QWORD *)v131 = v57; v47 = v133; v133[14].__r_.__value_.__l.__size_ = (std::string::size_type)(v58 + 8); goto LABEL_150; } if ( v49 == v55 ) { v132 = v57; v104 = (v56 - (std::string::pointer)v49) >> 2; v105 = 1; if ( v131 != (char *)v49 ) v105 = v104; v106 = v105; if ( !(v105 >> 61) ) { v107 = (char *)operator new(8 * v105); v57 = v132; v108 = (v106 + 3) >> 2; v64 = (std::string::size_type *)&v107[8 * v108]; v109 = &v107[8 * v106]; v110 = (std::string::size_type)v64; if ( v131 != (char *)v49 ) { v111 = (char *)v64 + v52; v112 = v131 - (char *)v49 - 8; v113 = &v107[8 * v108]; v114 = v49; if ( v112 < 0x68 ) goto LABEL_218; v113 = &v107[8 * v108]; v114 = v49; if ( (unsigned __int64)(v113 - (char *)v49) < 0x20 ) goto LABEL_218; v115 = (v112 >> 3) + 1; v116 = v115 & 0xFFFFFFFFFFFFFFFCLL; v113 = (char *)&v64[v115 & 0xFFFFFFFFFFFFFFFCLL]; v114 = &v49[v115 & 0xFFFFFFFFFFFFFFFCLL]; v117 = (__int64)&v107[8 * v108 + 16]; v118 = 0; do { v119 = *(_OWORD *)&v49[v118 + 2]; *(_OWORD *)(v117 + 8 * v118 - 16) = *(_OWORD *)&v49[v118]; *(_OWORD *)(v117 + 8 * v118) = v119; v118 += 4; } while ( v116 != v118 ); if ( v115 != v116 ) { LABEL_218: do { *(_QWORD *)v113 = *v114; v113 += 8; ++v114; } while ( v113 != v111 ); } v110 = (std::string::size_type)v111; v57 = v132; } v65 = v133; v133[13].__r_.__value_.__r.__words[2] = (std::string::size_type)v107; v65[14].__r_.__value_.__r.__words[0] = (std::string::size_type)v64; v65[14].__r_.__value_.__l.__size_ = v110; v65[14].__r_.__value_.__r.__words[2] = (std::string::size_type)v109; if ( v49 ) { operator delete(v55); v57 = v132; v64 = (std::string::size_type *)v65[14].__r_.__value_.__r.__words[0]; } goto LABEL_206; } LABEL_214: sub_10001ADB0(); } v64 = v49; v65 = v133; LABEL_206: *(v64 - 1) = (std::string::size_type)v57; v130.__r_.__value_.__r.__words[0] = (std::string::size_type)v57; v65[14].__r_.__value_.__r.__words[0] = (std::string::size_type)v64; sub_100426FB0(p_data, &v130); LABEL_129: v47 = v133; LABEL_150: v76 = (std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610)v47[14].__r_.__value_.__r.__words[0]; if ( v47[14].__r_.__value_.__l.__size_ == v76 ) v77 = nullptr; else v77 = (std::string *)(*(_QWORD *)(*(_QWORD *)&v76 + 8 * ((v47[15].__r_.__value_.__r.__words[0] + v47[15].__r_.__value_.__l.__size_) / 0x38)) + 72 * ((v47[15].__r_.__value_.__r.__words[0] + v47[15].__r_.__value_.__l.__size_) % 0x38)); if ( (*(_BYTE *)&v122[0].__r_.__value_.__s.0 & 1) != 0 ) sub_10001AD30(v77, v122[0].__r_.__value_.__l.__data_, v122[0].__r_.__value_.__l.__size_); else *v77 = v122[0]; if ( (*(_BYTE *)&v122[1].__r_.__value_.__s.0 & 1) != 0 ) sub_10001AD30( v77[1].__r_.__value_.__r.__words, v122[1].__r_.__value_.__l.__data_, v122[1].__r_.__value_.__l.__size_); else v77[1] = v122[1]; v96 = (std::string::__raw *)&v77[2]; if ( (v123 & 1) != 0 ) { sub_10001AD30(v96, v124, *((unsigned __int64 *)&v123 + 1)); } else { v77[2].__r_.__value_.__r.__words[2] = (std::string::size_type)v124; *(_OWORD *)v96->__words = v123; } v97 = v133; v98 = v133[15].__r_.__value_.__l.__size_++ == -1; if ( !(v97[15].__r_.__value_.__s.__data_[15] & 1 | v98) ) { v133[15].__r_.__value_.__s.__data_[15] = 1; v99 = cocos2d::CCDelayTime::create((__m128)0LL); v100 = cocos2d::CCCallFunc::create(v133, sub_1004F6720, 0); v101 = sub_10039EB60((__int64)v99, v100, 0); v102 = cocos2d::CCDirector::sharedDirector(); v103 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v102 + 144LL))(v102); cocos2d::CCActionManager::addAction(v103, v101, (__int64)v133, 0); } byte_100BE4718 = 1; LOBYTE(p_data) = 1; LABEL_184: if ( (v123 & 1) != 0 ) { operator delete(v124); if ( (*(_BYTE *)&v122[1].__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_190; LABEL_186: if ( (*(_BYTE *)&v122[0].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_187; LABEL_191: operator delete(v122[0].__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) LABEL_192: operator delete(__dst.__r_.__value_.__l.__data_); } else { if ( (*(_BYTE *)&v122[1].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_186; LABEL_190: operator delete(v122[1].__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v122[0].__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_191; LABEL_187: if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_192; } return (unsigned int)p_data; }
GD Web Decomp Icon

GD Web Decomp

Raw Source