// // GJLevelList::showListInfo from 0x100563030 to 0x1005633ee (958 bytes) // // 3 xrefs: // > LevelListCell::onListInfo @ 0x1002595a1 // > LevelListLayer::onListInfo @ 0x10035e0cc // > InfoLayer::onLevelInfo @ 0x1007b1890 // // 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 // void __fastcall GJLevelList::showListInfo(GJLevelList *a1) { __int128 v1; // xmm0 std::uint8_t sizex2; // al std::size_t size; // rdx unsigned int v4; // eax const std::string::value_type *data; // rsi std::string::size_type v6; // rdx const std::string::value_type *v7; // rsi std::string::size_type v8; // rdx const std::string::value_type *v9; // rsi std::string::size_type v10; // rdx int m_updateDate; // eax const std::string::value_type *v12; // rsi std::string::size_type v13; // rdx const char *v14; // rbx size_t v15; // rax size_t v16; // r14 char *v17; // r15 size_t v18; // r12 char *v19; // rbx std::string __str; // [rsp+0h] [rbp-A0h] BYREF _QWORD __dst[2]; // [rsp+18h] [rbp-88h] BYREF void *v22; // [rsp+28h] [rbp-78h] std::string v23; // [rsp+30h] [rbp-70h] BYREF std::string v24; // [rsp+48h] [rbp-58h] BYREF std::string __s[2]; // [rsp+60h] [rbp-40h] BYREF *(_WORD *)&v24.__r_.__value_.__l.0 = 0; v23.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v23.__r_.__value_.__r.__words[0] = 33; v23.__r_.__value_.__l.__size_ = 25; *(_QWORD *)&v1 = *(_QWORD *)"(No description provided)"; strcpy(v23.__r_.__value_.__l.__data_, "(No description provided)"); sizex2 = a1->m_listDesc.m_data.m_short.sizex2; if ( (sizex2 & 1) == 0 ) { if ( sizex2 ) { __s[0].__r_.__value_.__r.__words[2] = (std::string::size_type)a1->m_listDesc.m_data.m_long.longStorage; v1 = *(_OWORD *)&a1->m_listDesc.m_data.m_short.sizex2; *(_OWORD *)&__s[0].__r_.__value_.__l.0 = v1; goto LABEL_6; } LABEL_11: *(_WORD *)&__str.__r_.__value_.__l.0 = 0; v4 = 0; goto LABEL_12; } size = a1->m_listDesc.m_data.m_long.size; if ( !size ) goto LABEL_11; sub_100006B70(__s, a1->m_listDesc.m_data.m_long.longStorage, size, 1.171199969443993e171); LABEL_6: LevelTools::base64DecodeString(&__str, __s, *(double *)&v1); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); v4 = (unsigned int)__str.__r_.__value_.__l.0; if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_12: if ( !(v4 >> 1) ) goto LABEL_14; goto LABEL_13; } if ( __str.__r_.__value_.__l.__size_ ) LABEL_13: std::string::operator=(&v23, &__str); LABEL_14: if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) != 0 ) { data = v23.__r_.__value_.__l.__data_; v6 = v23.__r_.__value_.__l.__size_; } else { v6 = *(_BYTE *)&v23.__r_.__value_.__l.0 >> 1; data = v23.__r_.__value_.__s.__data_; } std::string::append(&v24, data, v6); if ( a1->m_listType != Editor ) { if ( a1->m_listID > 0 || a1->m_uploadDate > 0 ) { std::string::append(&v24, "\n\n"); if ( a1->m_listID > 0 ) { std::string::append(&v24, "List ID: "); GameToolbox::intToString((size_t *)__s, a1->m_listID, *(double *)&v1); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { v7 = __s[0].__r_.__value_.__l.__data_; v8 = __s[0].__r_.__value_.__l.__size_; } else { v8 = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1; v7 = __s[0].__r_.__value_.__s.__data_; } std::string::append(&v24, v7, v8); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); std::string::append(&v24, "\n"); } } if ( a1->m_uploadDate > 0 ) { std::string::append(&v24, "Uploaded: "); GameToolbox::timestampToHumanReadable((char *)__s, a1->m_uploadDate); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { v9 = __s[0].__r_.__value_.__l.__data_; v10 = __s[0].__r_.__value_.__l.__size_; } else { v10 = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1; v9 = __s[0].__r_.__value_.__s.__data_; } std::string::append(&v24, v9, v10); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); std::string::append(&v24, ""); m_updateDate = a1->m_updateDate; if ( m_updateDate > 0 && a1->m_uploadDate != m_updateDate ) { std::string::append(&v24, "\nUpdated: "); GameToolbox::timestampToHumanReadable((char *)__s, a1->m_updateDate); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) { v12 = __s[0].__r_.__value_.__l.__data_; v13 = __s[0].__r_.__value_.__l.__size_; } else { v13 = *(_BYTE *)&__s[0].__r_.__value_.__l.0 >> 1; v12 = __s[0].__r_.__value_.__s.__data_; } std::string::append(&v24, v12, v13); if ( (*(_BYTE *)&__s[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s[0].__r_.__value_.__l.__data_); std::string::append(&v24, ""); } } } if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 ) v14 = v24.__r_.__value_.__l.__data_; else v14 = v24.__r_.__value_.__s.__data_; v15 = strlen(v14); if ( v15 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)&v1); v16 = v15; if ( v15 >= 0x17 ) { v18 = 26; if ( (v15 | 7) != 0x17 ) v18 = (v15 | 7) + 1; v17 = (char *)operator new(v18); v22 = v17; __dst[0] = v18 | 1; __dst[1] = v16; goto LABEL_51; } LOBYTE(__dst[0]) = 2 * v15; v17 = (char *)__dst + 1; if ( v15 ) LABEL_51: memmove(v17, v14, v16); v17[v16] = 0; v19 = FLAlertLayer::create_1(0, (int)"List Info", (__int64)__dst, (int)"OK", 0, COERCE_DOUBLE(1136525312)); if ( (__dst[0] & 1) != 0 ) operator delete(v22); (*(void (__fastcall **)(char *))(*(_QWORD *)v19 + 1288LL))(v19); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(__str.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_56: if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_57; } } else if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_56; } operator delete(v23.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 ) LABEL_57: operator delete(v24.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source