// // sub_10092FFD0 from 0x10092ffd0 to 0x10093071c (1868 bytes) // // 8 xrefs: // > ThreadViewPopup::init @ 0x10092e7a7 // > sub_100931280 @ 0x100931319 // > sub_100934410 @ 0x1009344c8 // > sub_100934410 @ 0x100934614 // > ThreadViewPopup::threadMessagesFinished @ 0x100934a56 // > ThreadViewPopup::threadMessagesFinished @ 0x100934c9c // > ThreadViewPopup::threadMessagesFinished @ 0x100934e0c // > ThreadOptionsPopup::threadUpdateFinished @ 0x10094af36 // // 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:24 +0000 // void __fastcall sub_10092FFD0(__int64 a1) { int v1; // r13d __int64 v3; // rdi __int64 v4; // rdi __int64 v5; // rdi __int64 v6; // rdi char v7; // r14 __int64 v8; // rdi __int64 v9; // rdi __int64 v10; // rdi _QWORD *v11; // r15 __int64 v12; // rax unsigned int v13; // ecx unsigned int v14; // r14d __int64 v15; // rdi __int64 v16; // r14 __int64 v17; // rax const char *v18; // r12 size_t v19; // rax size_t v20; // r15 char *v21; // r13 size_t v22; // r14 const char *v23; // r15 char v24; // r12 size_t v25; // rdx void *v26; // rdi int v27; // r12d bool v28; // zf const char *v29; // rsi __int64 v30; // rsi const char *CString; // rax void *v32; // rax __int64 v33; // r14 int v34; // eax __int64 v35; // rsi __int64 v36; // rsi char *v37; // rax const std::string::value_type *v38; // r15 const std::string::value_type *v39; // rsi __int64 v40; // rax char v41; // cl int v42; // edx int v43; // eax float v44; // xmm0_4 __int64 v45; // r15 float v46; // xmm0_4 double v47; // xmm0_8 __int128 v48; // [rsp+0h] [rbp-80h] BYREF void *v49; // [rsp+10h] [rbp-70h] __int128 v50; // [rsp+18h] [rbp-68h] BYREF void *__p; // [rsp+28h] [rbp-58h] size_t __dst; // [rsp+30h] [rbp-50h] BYREF size_t v53; // [rsp+38h] [rbp-48h] void *__s1; // [rsp+40h] [rbp-40h] __int64 v55; // [rsp+48h] [rbp-38h] int v56; // [rsp+50h] [rbp-30h] float v57; // [rsp+54h] [rbp-2Ch] if ( !*(_BYTE *)(a1 + 1104) ) { LOBYTE(v1) = 1; if ( !*(_BYTE *)(a1 + 791) ) { v12 = *(_QWORD *)(a1 + 752); if ( *(_BYTE *)(v12 + 264) ) { if ( !*(_BYTE *)(v12 + 272) ) { v13 = *(_DWORD *)(v12 + 268); if ( v13 > 7 ) v1 = 0; else LOBYTE(v1) = 0xB4u >> v13; } } else if ( *(_DWORD *)(v12 + 268) != 8 ) { v1 = *(unsigned __int8 *)(v12 + 272); } } v3 = *(_QWORD *)(a1 + 1216); if ( v3 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 344LL))(v3, (v1 & 1) == 0); v4 = *(_QWORD *)(a1 + 1224); if ( v4 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v4 + 344LL))(v4, (v1 & 1) == 0); v5 = *(_QWORD *)(a1 + 1008); if ( v5 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v5 + 344LL))(v5, (v1 & 1) == 0); v6 = *(_QWORD *)(a1 + 912); v7 = v1 ^ 1; if ( v6 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, v7 & 1); v8 = *(_QWORD *)(a1 + 1016); if ( ((unsigned __int8)v1 & (v8 != 0)) == 1 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, 0); if ( (v1 & 1) != 0 ) { v9 = *(_QWORD *)(a1 + 920); if ( v9 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 1368LL))(v9, 0); v10 = *(_QWORD *)(a1 + 928); if ( !v10 ) { LABEL_25: v15 = *(_QWORD *)(a1 + 912); if ( !v15 ) goto LABEL_52; v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 1072LL))(v15); v17 = *(_QWORD *)(a1 + 752); if ( *(_BYTE *)(v17 + 264) == 1 ) { LOBYTE(v17) = *(_DWORD *)(v17 + 268) == 1; v57 = *(float *)&v17; } else { v57 = 0.0; } v18 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v16 + 624) + 944LL))(*(_QWORD *)(v16 + 624)); v19 = strlen(v18); if ( v19 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v20 = v19; v56 = v1; if ( v19 >= 0x17 ) { v55 = v16; v22 = 26; if ( (v19 | 7) != 0x17 ) v22 = (v19 | 7) + 1; v21 = (char *)operator new(v22); __s1 = v21; __dst = v22 + 1; v16 = v55; v53 = v20; } else { LOBYTE(__dst) = 2 * v19; v21 = (char *)&__dst + 1; if ( !v19 ) { LABEL_37: v21[v20] = 0; v23 = "Send"; v24 = LOBYTE(v57); if ( LOBYTE(v57) ) v23 = "Req"; v25 = 4LL - LOBYTE(v57); if ( (__dst & 1) != 0 ) { v26 = __s1; LOBYTE(v1) = v56; if ( v25 == v53 ) { v55 = v16; v27 = memcmp(__s1, v23, v25); v16 = v55; operator delete(v26); v28 = v27 == 0; v24 = LOBYTE(v57); if ( v28 ) goto LABEL_52; } else { operator delete(__s1); } } else { LOBYTE(v1) = v56; if ( (_DWORD)v25 == (unsigned __int8)__dst >> 1 && !memcmp((char *)&__dst + 1, v23, v25) ) goto LABEL_52; } ButtonSprite::setString(v16, v23); v29 = "GJ_button_01.png"; if ( v24 ) v29 = "GJ_button_05.png"; ButtonSprite::updateBGImage(v16, (__int64)v29); LABEL_52: if ( *(_QWORD *)(a1 + 800) ) { v30 = *(_QWORD *)(a1 + 752); if ( *(_BYTE *)(a1 + 791) == 1 ) goto LABEL_54; } else { v32 = cocos2d::CCLabelBMFont::create_3((__int64)"", (__int64)"goldFont.fnt"); *(_QWORD *)(a1 + 800) = v32; (*(void (__fastcall **)(void *, float))(*(_QWORD *)v32 + 160LL))(v32, 0.5); v33 = *(_QWORD *)(a1 + 800); sub_100278250((float *)&__dst, *(float *)(a1 + 848), *(float *)(a1 + 1060) + 14.0); (*(void (__fastcall **)(__int64, size_t *))(*(_QWORD *)v33 + 184LL))(v33, &__dst); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 800), 6); v30 = *(_QWORD *)(a1 + 752); if ( *(_BYTE *)(a1 + 791) == 1 ) { LABEL_54: CString = "Moderator view."; if ( *(_BYTE *)(v30 + 272) ) CString = "Locked. Moderator view."; goto LABEL_78; } } if ( !*(_BYTE *)(v30 + 264) && *(_DWORD *)(v30 + 268) == 8 ) { CString = "You were removed from this group chat."; goto LABEL_78; } if ( *(_BYTE *)(v30 + 272) ) { CString = "This conversation has been locked."; goto LABEL_78; } v34 = *(_DWORD *)(v30 + 268); if ( v34 == 5 ) { if ( (*(_BYTE *)(v30 + 64) & 1) != 0 ) v36 = *(_QWORD *)(v30 + 80); else v36 = v30 + 65; v37 = sub_10088E820("%s has messages turned off.", v36); } else { if ( v34 != 4 ) { v28 = v34 == 7; CString = "Message request pending."; if ( v28 ) CString = "You can't message this user."; LABEL_78: (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 800) + 928LL))( *(_QWORD *)(a1 + 800), CString); cocos2d::CCLabelBMFont::limitLabelWidth( *(_QWORD *)(a1 + 800), *(float *)(a1 + 840) + -40.0, (__m128)0x3F000000u, (__m128)0x3E99999Au); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 800) + 344LL))( *(_QWORD *)(a1 + 800), v1 & 1); if ( *(_QWORD *)(a1 + 808) ) { if ( *(_BYTE *)(a1 + 791) ) { LABEL_80: v38 = "You are reading this conversation as a moderator.\n" "Participants cannot see this and nothing is marked read."; v39 = "Moderator View"; LABEL_111: std::string::assign((std::string *)(*(_QWORD *)(a1 + 808) + 504LL), v39); std::string::assign((std::string *)(*(_QWORD *)(a1 + 808) + 528LL), v38); v57 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 800) + 328LL))(*(_QWORD *)(a1 + 800)); v44 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 800) + 168LL))(*(_QWORD *)(a1 + 800)); v57 = v44 * v57; v45 = *(_QWORD *)(a1 + 808); v46 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 800) + 224LL))(*(_QWORD *)(a1 + 800)); v57 = (float)(v46 + (float)(v57 * 0.5)) + 12.0; v47 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 800) + 240LL))(*(_QWORD *)(a1 + 800)); sub_100278250((float *)&__dst, v57, *(float *)&v47); (*(void (__fastcall **)(__int64, size_t *))(*(_QWORD *)v45 + 184LL))(v45, &__dst); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 344LL))( *(_QWORD *)(a1 + 808), v1 & 1); return; } } else { LOWORD(v48) = 0; LOWORD(v50) = 0; *(_QWORD *)(a1 + 808) = InfoAlertButton::create(&v48, &v50, 0.5); if ( (v50 & 1) != 0 ) operator delete(__p); if ( (v48 & 1) != 0 ) operator delete(v49); CCMenuItemSpriteExtra::setSizeMult(*(_QWORD *)(a1 + 808), 1.5); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 808)); if ( *(_BYTE *)(a1 + 791) ) goto LABEL_80; } v40 = *(_QWORD *)(a1 + 752); v41 = *(_BYTE *)(v40 + 264); if ( v41 || *(_DWORD *)(v40 + 268) != 8 ) { if ( *(_BYTE *)(v40 + 272) ) { v39 = "Conversation Locked"; if ( v41 ) goto LABEL_103; } else { v42 = *(_DWORD *)(v40 + 268); if ( v42 == 4 ) { v39 = "Friends Only"; if ( v41 ) goto LABEL_103; } else if ( v42 == 5 ) { v39 = "Messages Off"; if ( v41 ) goto LABEL_103; } else { v39 = "Request Pending"; if ( v42 == 7 ) v39 = "Blocked"; if ( v41 ) goto LABEL_103; } } } else { v39 = "Removed"; } if ( *(_DWORD *)(v40 + 268) == 8 ) { v38 = "The owner removed you from this group chat.\n" "You can still read messages sent before you were removed.\n" "You cannot see new messages or send messages.\n" "You can remove the group chat from the options menu when you are done."; goto LABEL_111; } LABEL_103: if ( *(_BYTE *)(v40 + 272) ) { v38 = "A moderator locked this conversation.\nIt can still be read, but no new messages can be sent."; } else { v43 = *(_DWORD *)(v40 + 268); if ( v43 == 4 ) { v38 = "This user only accepts messages from friends.\nSend a friend request to message them."; } else if ( v43 == 5 ) { v38 = "This user has turned messages off.\nYou can read the conversation but not reply."; } else { v38 = "Your message was sent as a request.\nYou can write again once they reply."; if ( v43 == 7 ) v38 = "Messages between you and this user are blocked."; } } goto LABEL_111; } if ( (*(_BYTE *)(v30 + 64) & 1) != 0 ) v35 = *(_QWORD *)(v30 + 80); else v35 = v30 + 65; v37 = sub_10088E820("%s only accepts messages from friends.", v35); } CString = (const char *)cocos2d::CCString::getCString((__int64)v37); goto LABEL_78; } } memmove(v21, v18, v20); goto LABEL_37; } v11 = (_QWORD *)(a1 + 928); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 1160LL))(v10, 0); } else { if ( !*(_QWORD *)(a1 + 928) ) goto LABEL_25; v11 = (_QWORD *)(a1 + 928); } v14 = v7 & 1; (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v11 + 344LL))(*v11, v14); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v11 + 1000LL))(*v11, v14); goto LABEL_25; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source