// // cocos2d::ZipUtils::base64URLEncode from 0x100205de0 to 0x100205ea0 (192 bytes) // // 1 xrefs: // > LevelTools::base64EncodeString @ 0x100501e37 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // std::string *__fastcall cocos2d::ZipUtils::base64URLEncode(std::string *this, std::string *a2, double a3) { unsigned int v3; // eax std::string::pointer data; // rsi std::string::size_type size; // rax int v6; // eax std::string::value_type *__s; // [rsp+8h] [rbp-18h] BYREF v3 = (unsigned int)a2->__r_.__value_.__l.0; if ( (v3 & 1) != 0 ) { size = a2->__r_.__value_.__l.__size_; if ( !size ) { sub_100006B70(this, a2->__r_.__value_.__l.__data_, 0, a3); return this; } __s = nullptr; data = a2->__r_.__value_.__l.__data_; } else { if ( !*(_BYTE *)&a2->__r_.__value_.__s.0 ) { *this = *a2; return this; } __s = nullptr; data = a2->__r_.__value_.__s.__data_; LODWORD(size) = v3 >> 1; } v6 = sub_100329370(data, (unsigned int)size, &__s, 1); if ( v6 <= 0 ) { if ( __s ) operator delete[](__s); *(_WORD *)&this->__r_.__value_.__l.0 = 0; } else { *(_OWORD *)&this->__r_.__value_.__l.0 = 0; this->__r_.__value_.__r.__words[2] = 0; std::string::append(this, __s, (unsigned int)v6); if ( __s ) operator delete[](__s); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source