// // sub_100573A30 from 0x100573a30 to 0x100573e05 (981 bytes) // // 2 xrefs: // > sub_100539560 @ 0x10053a3a0 // > sub_10053A580 @ 0x10053a882 // // 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:32:16 +0000 // __int64 __fastcall sub_100573A30(__int64 a1) { const char *v1; // rbx size_t v2; // rax std::string::size_type v3; // r14 char *data; // r15 size_t v5; // r12 __int64 v6; // r13 unsigned int v7; // r15d __int64 v8; // rax const char *CString; // r12 size_t v10; // rax std::string::size_type v11; // rbx char *v12; // r14 unsigned int v13; // r13d __int64 v14; // rax size_t v15; // r15 __int64 v16; // rbx char *v17; // r12 __int64 v18; // rax const char *v19; // rax __int64 v20; // rax __int64 v21; // rax const char *v22; // r14 size_t v23; // rax std::string::size_type v24; // r13 char *v25; // r15 __int64 v26; // rax size_t v27; // rbx __int64 v28; // rax const char *v29; // rax __int64 v30; // rax __int64 v32; // [rsp+0h] [rbp-80h] __int64 v33; // [rsp+10h] [rbp-70h] __int64 v34; // [rsp+18h] [rbp-68h] std::string v35; // [rsp+20h] [rbp-60h] BYREF unsigned int v36; // [rsp+3Ch] [rbp-44h] std::string __dst[2]; // [rsp+40h] [rbp-40h] BYREF v34 = sub_1007FE900(a1); if ( (*(_BYTE *)a1 & 1) != 0 ) { if ( !*(_QWORD *)(a1 + 8) ) return v34; v1 = *(const char **)(a1 + 16); } else { if ( !*(_BYTE *)a1 ) return v34; v1 = (const char *)(a1 + 1); } v2 = strlen(v1); if ( v2 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_46: sub_100003630(); v3 = v2; if ( v2 >= 0x17 ) { v5 = 26; if ( (v2 | 7) != 0x17 ) v5 = (v2 | 7) + 1; data = (char *)operator new(v5); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst[0].__r_.__value_.__r.__words[0] = v5 + 1; __dst[0].__r_.__value_.__l.__size_ = v3; goto LABEL_13; } __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v2); data = __dst[0].__r_.__value_.__s.__data_; if ( v2 ) LABEL_13: memmove(data, v1, v3); data[v3] = 0; v6 = sub_10053FBE0((unsigned __int8 *)__dst, "|"); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( (unsigned int)sub_1007FEF90(v6) ) { v7 = 0; v33 = v6; while ( 1 ) { v8 = cocos2d::CCArray::stringAtIndex(v6, v7); CString = (const char *)cocos2d::CCString::getCString(v8); v10 = strlen(CString); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_46; v11 = v10; if ( v10 >= 0x17 ) break; __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v10); v12 = __dst[0].__r_.__value_.__s.__data_; if ( v10 ) goto LABEL_27; LABEL_28: v12[v11] = 0; v16 = sub_10053FBE0((unsigned __int8 *)__dst, ":"); if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst[0].__r_.__value_.__l.__data_); if ( (unsigned int)sub_1007FEF90(v16) < 4 ) goto LABEL_19; v17 = (char *)operator new(0x70u); cocos2d::CCObject::CCObject((__int64)v17); *(_QWORD *)v17 = off_100B6FE40; *((_QWORD *)v17 + 7) = 0; *((_DWORD *)v17 + 16) = 0; *(_OWORD *)(v17 + 72) = 0; *(_OWORD *)(v17 + 88) = 0; v17[104] = 0; cocos2d::CCObject::autorelease((__int64)v17); v18 = cocos2d::CCArray::stringAtIndex(v16, 0); v19 = (const char *)cocos2d::CCString::getCString(v18); *((_QWORD *)v17 + 7) = atoll(v19); v20 = cocos2d::CCArray::stringAtIndex(v16, 1); *((_DWORD *)v17 + 16) = cocos2d::CCString::intValue(v20); v21 = cocos2d::CCArray::stringAtIndex(v16, 2); v22 = (const char *)cocos2d::CCString::getCString(v21); v23 = strlen(v22); if ( v23 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_46; v24 = v23; v36 = v7; v32 = v16; if ( v23 >= 0x17 ) { v26 = v23 | 7; v27 = 26; if ( (v24 | 7) != 0x17 ) v27 = v26 + 1; v25 = (char *)operator new(v27); v35.__r_.__value_.__r.__words[2] = (std::string::size_type)v25; v35.__r_.__value_.__r.__words[0] = v27 + 1; v35.__r_.__value_.__l.__size_ = v24; } else { v35.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v23); v25 = v35.__r_.__value_.__s.__data_; if ( !v23 ) goto LABEL_39; } memmove(v25, v22, v24); LABEL_39: v25[v24] = 0; LevelTools::base64DecodeString(__dst, &v35); v6 = v33; v7 = v36; if ( (v17[72] & 1) != 0 ) operator delete(*((void **)v17 + 11)); *((std::string *)v17 + 3) = __dst[0]; *(_WORD *)&__dst[0].__r_.__value_.__l.0 = 0; if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v35.__r_.__value_.__l.__data_); v28 = cocos2d::CCArray::stringAtIndex(v32, 3); v29 = (const char *)cocos2d::CCString::getCString(v28); *((_QWORD *)v17 + 12) = atoll(v29); if ( (unsigned int)sub_1007FEF90(v32) >= 5 ) { v30 = cocos2d::CCArray::stringAtIndex(v32, 4); v17[104] = (unsigned int)cocos2d::CCString::intValue(v30) != 0; } sub_1007FEBF0(v34, v17); LABEL_19: if ( ++v7 >= (unsigned int)sub_1007FEF90(v6) ) return v34; } v13 = v7; v14 = v10 | 7; v15 = 26; if ( (v11 | 7) != 0x17 ) v15 = v14 + 1; v12 = (char *)operator new(v15); __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v12; __dst[0].__r_.__value_.__r.__words[0] = v15 + 1; __dst[0].__r_.__value_.__l.__size_ = v11; v7 = v13; v6 = v33; LABEL_27: memmove(v12, CString, v11); goto LABEL_28; } return v34; }
GD Web Decomp Icon

GD Web Decomp

Raw Source