// // MusicDownloadManager::encodeCustomSFXMappingEntries from 0x100653710 to 0x100653838 (296 bytes) // // 2 xrefs: // > LevelSettingsObject::getSaveString @ 0x1000b9d54 // > EditorSFXManager::serializeAll @ 0x1008eafc6 // // 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::encodeCustomSFXMappingEntries(std::string *this, _QWORD *a2) { _QWORD *v2; // r13 _QWORD *v3; // r14 unsigned int v4; // eax unsigned int v5; // edx const std::string::value_type *v6; // rsi std::string::size_type v7; // rdx _QWORD *v8; // rcx _QWORD *v9; // rax bool v10; // zf char __str[32]; // [rsp+0h] [rbp-50h] BYREF *(_OWORD *)&this->__r_.__value_.__l.0 = 0; this->__r_.__value_.__r.__words[2] = 0; v2 = (_QWORD *)*a2; v3 = a2 + 1; if ( (_QWORD *)*a2 != a2 + 1 ) { while ( 1 ) { v4 = (unsigned int)this->__r_.__value_.__l.0; if ( (v4 & 1) != 0 ) break; if ( v4 >> 1 ) goto LABEL_8; LABEL_9: snprintf(__str, 0x20u, "%d:%d:", *((_DWORD *)v2 + 8), *((_DWORD *)v2 + 9)); std::string::append(this, __str); v5 = *((unsigned __int8 *)v2 + 40); if ( (v5 & 1) != 0 ) { v6 = (const std::string::value_type *)v2[7]; v7 = v2[6]; } else { v6 = (char *)v2 + 41; v7 = v5 >> 1; } std::string::append(this, v6, v7); v8 = (_QWORD *)v2[1]; if ( v8 ) { do { v9 = v8; v8 = (_QWORD *)*v8; } while ( v8 ); } else { do { v9 = (_QWORD *)v2[2]; v10 = *v9 == (_QWORD)v2; v2 = v9; } while ( !v10 ); } v2 = v9; if ( v9 == v3 ) return this; } if ( !this->__r_.__value_.__l.__size_ ) goto LABEL_9; LABEL_8: std::string::push_back(this, 124); goto LABEL_9; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source