// // GameLevelManager::removeDelimiterChars from 0x100556560 to 0x10055672d (461 bytes) // // 13 xrefs: // > GameLevelManager::uploadLevel @ 0x1005554fa // > GameLevelManager::uploadLevel @ 0x10055555e // > GameLevelManager::uploadLevel @ 0x1005555c2 // > GameLevelManager::uploadLevelList @ 0x100559e34 // > GameLevelManager::uploadLevelList @ 0x100559e98 // > GameLevelManager::uploadLevelList @ 0x100559efc // > sub_10055B650 @ 0x10055b81c // > sub_10055B650 @ 0x10055b871 // > GameLevelManager::updateUserScore @ 0x10056369f // > GameLevelManager::uploadComment @ 0x10056c61b // > GameLevelManager::uploadComment @ 0x10056c671 // > GameLevelManager::updateDescription @ 0x10057d537 // > GJMultiplayerManager::uploadComment @ 0x10073ab51 // // 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:05 +0000 // size_t __fastcall GameLevelManager::removeDelimiterChars(__int64 a1, std::string *a2, int a3) { __int64 v3; // rax std::string::value_type *data; // r15 __int64 v5; // r12 char *v6; // rdx std::string::pointer v7; // rcx size_t result; // rax std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v9; // r13 size_t size; // rdx std::string::pointer v11; // rdi char *v12; // r14 char *v13; // rax char *v14; // rcx __int64 v15; // r12 char *v16; // rdx std::string::pointer v17; // rcx std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v18; // r13 size_t v19; // rdx std::string::pointer v20; // rdi char *v21; // r14 char *v22; // rax char *v23; // rcx char v24[48]; // [rsp+0h] [rbp-30h] BYREF *(_QWORD *)v24 = v3; data = a2->__r_.__value_.__s.__data_; if ( a3 ) { strcpy(&v24[4], "~|#"); v5 = 0; do { v9 = a2->__r_.__value_.__s.0; if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 ) { size = a2->__r_.__value_.__l.__size_; v11 = a2->__r_.__value_.__l.__data_; } else { size = *(unsigned __int8 *)&v9 >> 1; v11 = a2->__r_.__value_.__s.__data_; } v12 = &v11[size]; v13 = (char *)memchr(v11, v24[v5 + 4], size); if ( !v13 ) v13 = v12; if ( v13 != v12 ) { v14 = v13 + 1; if ( v13 + 1 != v12 ) { do { if ( *v14 != v24[v5 + 4] ) *v13++ = *v14; ++v14; } while ( v14 != v12 ); v9 = a2->__r_.__value_.__s.0; } } if ( (*(_BYTE *)&v9 & 1) != 0 ) { v7 = a2->__r_.__value_.__l.__data_; v6 = &v7[a2->__r_.__value_.__l.__size_]; } else { v6 = &data[*(unsigned __int8 *)&v9 >> 1]; v7 = a2->__r_.__value_.__s.__data_; } std::string::erase(a2, v13 - v7, v6 - v13); v5 = (unsigned int)(v5 + 1); result = strlen(&v24[4]); } while ( result > (unsigned int)v5 ); } else { strcpy(v24, ":|#"); v15 = 0; do { v18 = a2->__r_.__value_.__s.0; if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 ) { v19 = a2->__r_.__value_.__l.__size_; v20 = a2->__r_.__value_.__l.__data_; } else { v19 = *(unsigned __int8 *)&v18 >> 1; v20 = a2->__r_.__value_.__s.__data_; } v21 = &v20[v19]; v22 = (char *)memchr(v20, v24[v15], v19); if ( !v22 ) v22 = v21; if ( v22 != v21 ) { v23 = v22 + 1; if ( v22 + 1 != v21 ) { do { if ( *v23 != v24[v15] ) *v22++ = *v23; ++v23; } while ( v23 != v21 ); v18 = a2->__r_.__value_.__s.0; } } if ( (*(_BYTE *)&v18 & 1) != 0 ) { v17 = a2->__r_.__value_.__l.__data_; v16 = &v17[a2->__r_.__value_.__l.__size_]; } else { v16 = &data[*(unsigned __int8 *)&v18 >> 1]; v17 = a2->__r_.__value_.__s.__data_; } std::string::erase(a2, v22 - v17, v16 - v22); v15 = (unsigned int)(v15 + 1); result = strlen(v24); } while ( result > (unsigned int)v15 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source