// // sub_100952E80 from 0x100952e80 to 0x10095312f (687 bytes) // // 1 xrefs: // > ThreadDescPopup::buildUI @ 0x100952ace // // 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:38:39 +0000 // void __fastcall sub_100952E80(__int64 a1) { __int64 v2; // rsi int v3; // eax __int64 v4; // rax __int64 v5; // r14 size_t size; // rdx unsigned int v7; // ecx bool v8; // r15 unsigned int v9; // eax size_t v10; // rdx unsigned int v11; // ecx bool v12; // r12 std::string::pointer data; // rdi const void *v14; // rsi const void *v15; // rdi const void *v16; // r14 int v17; // eax __int64 v18; // rax __int64 v19; // rax __int128 v20; // [rsp+0h] [rbp-50h] BYREF void *__p; // [rsp+10h] [rbp-40h] std::string __s1[2]; // [rsp+18h] [rbp-38h] BYREF v2 = *(_QWORD *)(a1 + 1048); if ( v2 ) CCTextInputNode::getString(__s1, v2); else *(_WORD *)&__s1[0].__r_.__value_.__l.0 = 0; v3 = EmoteSprite::maxEmotesComment(); if ( (int)EmoteSprite::effectiveLength((unsigned __int8 *)__s1, v3) >= 301 ) { __p = operator new(0x20u); *(_QWORD *)&v20 = 33; *((_QWORD *)&v20 + 1) = 24; strcpy((char *)__p, "Description is too long."); v4 = sub_100493AB0(0, (__int64)"Description", &v20, (__int64)"OK", 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4); if ( (v20 & 1) != 0 ) operator delete(__p); goto LABEL_37; } v5 = *(_QWORD *)(a1 + 1032); if ( (*(_BYTE *)&__s1[0].__r_.__value_.__s.0 & 1) != 0 ) { size = __s1[0].__r_.__value_.__l.__size_; v7 = *(unsigned __int8 *)(v5 + 216); if ( (v7 & 1) == 0 ) goto LABEL_9; } else { size = *(_BYTE *)&__s1[0].__r_.__value_.__l.0 >> 1; v7 = *(unsigned __int8 *)(v5 + 216); if ( (v7 & 1) == 0 ) { LABEL_9: v8 = 1; if ( size != v7 >> 1 ) goto LABEL_10; goto LABEL_16; } } v8 = 1; if ( size != *(_QWORD *)(v5 + 224) ) { LABEL_10: v9 = *(unsigned __int8 *)(a1 + 1088); if ( (v9 & 1) != 0 ) goto LABEL_11; goto LABEL_22; } LABEL_16: if ( (*(_BYTE *)&__s1[0].__r_.__value_.__s.0 & 1) != 0 ) { data = __s1[0].__r_.__value_.__l.__data_; if ( (v7 & 1) == 0 ) { LABEL_18: v14 = (const void *)(v5 + 217); goto LABEL_21; } } else { data = __s1[0].__r_.__value_.__s.__data_; if ( (v7 & 1) == 0 ) goto LABEL_18; } v14 = *(const void **)(v5 + 232); LABEL_21: v8 = memcmp(data, v14, size) != 0; v9 = *(unsigned __int8 *)(a1 + 1088); if ( (v9 & 1) != 0 ) { LABEL_11: v10 = *(_QWORD *)(a1 + 1096); v11 = *(unsigned __int8 *)(v5 + 240); if ( (v11 & 1) == 0 ) goto LABEL_12; goto LABEL_23; } LABEL_22: v10 = v9 >> 1; v11 = *(unsigned __int8 *)(v5 + 240); if ( (v11 & 1) == 0 ) { LABEL_12: v12 = 1; if ( v10 != v11 >> 1 ) goto LABEL_32; LABEL_24: if ( (v9 & 1) != 0 ) { v15 = *(const void **)(a1 + 1104); if ( (v11 & 1) == 0 ) { LABEL_26: v16 = (const void *)(v5 + 241); LABEL_29: v17 = memcmp(v15, v16, v10); v12 = v17 != 0; if ( !v8 && !v17 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0); goto LABEL_37; } goto LABEL_32; } } else { v15 = (const void *)(a1 + 1089); if ( (v11 & 1) == 0 ) goto LABEL_26; } v16 = *(const void **)(v5 + 256); goto LABEL_29; } LABEL_23: v12 = 1; if ( v10 == *(_QWORD *)(v5 + 248) ) goto LABEL_24; LABEL_32: std::string::operator=((std::string *)(a1 + 1064), __s1); *(_BYTE *)(a1 + 1112) = v8; if ( v12 ) { v18 = GameLevelManager::sharedState(); if ( !GameLevelManager::updateThread( v18, *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL), 16, (std::string *)(a1 + 1088)) ) goto LABEL_37; } else { *(_BYTE *)(a1 + 1113) = 0; v19 = GameLevelManager::sharedState(); if ( !GameLevelManager::updateThread( v19, *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL), 14, (std::string *)(a1 + 1064)) ) goto LABEL_37; } *(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016; *(_BYTE *)(a1 + 1113) = 1; LABEL_37: if ( (*(_BYTE *)&__s1[0].__r_.__value_.__s.0 & 1) != 0 ) operator delete(__s1[0].__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source