// // MusicDownloadManager::getCustomSFXRawPath from 0x100652d90 to 0x100652f43 (435 bytes) // // 2 xrefs: // > MusicDownloadManager::getCustomSFXLocationText @ 0x1006530ee // > sub_1006532E0 @ 0x100653449 // // 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:34:50 +0000 // std::string *__fastcall MusicDownloadManager::getCustomSFXRawPath(std::string *this, __int64 a2, __int64 a3) { __int64 v6; // rsi __int64 v7; // rdi __int64 v8; // r15 unsigned int v9; // r12d const std::string::value_type *data; // rdx std::string::size_type size; // rcx __int64 v12; // rsi __int64 v13; // rdi std::string v15; // [rsp+0h] [rbp-80h] BYREF std::string v16; // [rsp+20h] [rbp-60h] BYREF std::string v17[2]; // [rsp+40h] [rbp-40h] BYREF if ( a3 ) { if ( (*(_BYTE *)(a3 + 80) & 1) != 0 ) sub_10001AD30(&v15, *(const void **)(a3 + 96), *(_QWORD *)(a3 + 88)); else v15 = *(std::string *)(a3 + 80); LevelTools::base64EncodeString(this, &v15); if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v15.__r_.__value_.__l.__data_); v6 = *(int *)(a3 + 60); v7 = *(_QWORD *)(a2 + 824); if ( v6 > 0 && v7 != 0 ) { v8 = cocos2d::CCDictionary::objectForKey_1(v7, v6); if ( v8 ) { v9 = 0; while ( 1 ) { if ( *(_DWORD *)(v8 + 76) == 1 || v9 > 9 ) return this; std::string::insert(this, 0, "/"); if ( (*(_BYTE *)(v8 + 80) & 1) != 0 ) sub_10001AD30(&v16, *(const void **)(v8 + 96), *(_QWORD *)(v8 + 88)); else v16 = *(std::string *)(v8 + 80); LevelTools::base64EncodeString(v17, &v16); if ( (*(_BYTE *)&v17[0].__r_.__value_.__s.0 & 1) != 0 ) { data = v17[0].__r_.__value_.__l.__data_; size = v17[0].__r_.__value_.__l.__size_; } else { size = *(_BYTE *)&v17[0].__r_.__value_.__l.0 >> 1; data = v17[0].__r_.__value_.__s.__data_; } std::string::insert(this, 0, data, size); if ( (*(_BYTE *)&v17[0].__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v17[0].__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_24: operator delete(v16.__r_.__value_.__l.__data_); v12 = *(int *)(v8 + 60); if ( v12 <= 0 ) return this; goto LABEL_25; } } else if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) { goto LABEL_24; } v12 = *(int *)(v8 + 60); if ( v12 <= 0 ) return this; LABEL_25: v13 = *(_QWORD *)(a2 + 824); if ( v13 ) { v8 = cocos2d::CCDictionary::objectForKey_1(v13, v12); ++v9; if ( v8 ) continue; } return this; } } } } else { *(_WORD *)&this->__r_.__value_.__l.0 = 0; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source