// // sub_10033E090 from 0x10033e090 to 0x10033e2b6 (550 bytes) // // 1 xrefs: // > MusicDownloadManager::generateCustomContentURL @ 0x100659a2e // // 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:28:42 +0000 // std::string *__fastcall sub_10033E090(std::string *this, __int64 a2, int a3) { __int64 v3; // r12 int v4; // r14d std::string::value_type v5; // si __int64 v6; // rcx std::string::pointer data; // rax unsigned __int8 v8; // r13 unsigned int v9; // r15d unsigned int v10; // r14d std::string::pointer v11; // rax std::string::pointer v12; // rax std::string::pointer v13; // rax __int64 v14; // r12 std::string::pointer v15; // rax int v16; // r15d int v17; // r15d _BYTE v21[4]; // [rsp+11h] [rbp-2Fh] unsigned __int8 v22; // [rsp+15h] [rbp-2Bh] BYREF unsigned __int8 v23; // [rsp+16h] [rbp-2Ah] unsigned __int8 v24; // [rsp+17h] [rbp-29h] *(_OWORD *)&this->__r_.__value_.__l.0 = 0; this->__r_.__value_.__r.__words[2] = 0; if ( a3 ) { v3 = 0; v4 = 0; do { v6 = (unsigned int)v4++; *(&v22 + v6) = *(_BYTE *)(a2 + v3); if ( v4 == 3 ) { data = stru_100BE2D28.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&stru_100BE2D28.__r_.__value_.__s.0 & 1) != 0 ) data = stru_100BE2D28.__r_.__value_.__l.__data_; v8 = v22; v9 = v23; v10 = v24; std::string::push_back(this, data[v22 >> 2]); v11 = stru_100BE2D28.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&stru_100BE2D28.__r_.__value_.__s.0 & 1) != 0 ) v11 = stru_100BE2D28.__r_.__value_.__l.__data_; std::string::push_back(this, v11[(v9 >> 4) | (16 * v8) & 0x30]); v12 = stru_100BE2D28.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&stru_100BE2D28.__r_.__value_.__s.0 & 1) != 0 ) v12 = stru_100BE2D28.__r_.__value_.__l.__data_; std::string::push_back(this, v12[4 * (v9 & 0xF) + (v10 >> 6)]); v13 = stru_100BE2D28.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&stru_100BE2D28.__r_.__value_.__s.0 & 1) != 0 ) v13 = stru_100BE2D28.__r_.__value_.__l.__data_; v5 = v13[v10 & 0x3F]; v4 = 0; std::string::push_back(this, v5); } ++v3; } while ( a3 != (_DWORD)v3 ); if ( v4 ) { if ( v4 <= 2 ) __bzero(&v22 + (unsigned int)v4, (unsigned int)(2 - v4) + 1LL); v21[0] = v22 >> 2; v21[1] = ((v23 >> 4) | (16 * v22)) & 0x3F; v21[2] = ((v24 >> 6) | (4 * v23)) & 0x3F; v21[3] = v24 & 0x3F; if ( v4 >= 0 ) { v14 = 0; do { v15 = stru_100BE2D28.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&stru_100BE2D28.__r_.__value_.__s.0 & 1) != 0 ) v15 = stru_100BE2D28.__r_.__value_.__l.__data_; std::string::push_back(this, v15[(unsigned __int8)v21[v14++]]); } while ( v4 + 1 != v14 ); } v16 = 3; if ( v4 >= 4 ) v16 = v4; v17 = v16 - v4 + 1; while ( --v17 ) std::string::push_back(this, 61); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source