//
// ProfilePage::onModInfo from 0x140556750 to 0x140556820 (208 bytes)
//
// 4 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x1405548ac
// > ??> @ 0x1408da2b4
// > ??> @ 0x1408da2c4
// > ??> @ 0x14092be5c
//
// 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 11:34:11 +0000
//
__int64 __fastcall ProfilePage::onModInfo(__int64 a1)
{
__int64 result; // rax
int v2; // eax
const char *v3; // rdx
const char *v4; // rbx
size_t v5; // r8
__int64 v6; // rax
__int128 v7; // [rsp+30h] [rbp-28h] BYREF
__int64 v8; // [rsp+40h] [rbp-18h]
__int64 v9; // [rsp+48h] [rbp-10h]
result = *(_QWORD *)(a1 + 728);
if ( result )
{
v2 = *(_DWORD *)(result + 752);
v3 = "Advisors can suggest levels for a rating, with a difficulty and a tier: Rate, Feature, "
"Epic, Legendary or Mythic. Advisor votes also carry extra weight when deciding demo"
"n difficulty.\n"
"--------------------\n"
"Advisors cannot rate levels or moderate content.\n"
"All ratings are decided by RobTop.";
v4 = "Rating Advisor";
if ( v2 == 2 )
{
v4 = "Moderator";
v3 = "Moderators can suggest levels for a rating, respond to in-game reports, delete comments, "
"ban players from posting, delete or relist levels, unlock levels for updating, and add Newgro"
"unds artists.\n"
"--------------------\n"
"Moderators cannot rate levels.\n"
"All ratings are decided by RobTop.";
}
else if ( v2 == 3 )
{
v4 = "Leaderboard Moderator";
v3 = "Leaderboard Moderators review player stats and remove invalid scores from the leaderboards.\n"
"--------------------\n"
"Leaderboard Moderators can only manage the leaderboards.\n"
"They cannot rate levels or moderate content.";
}
v8 = 0;
v7 = 0;
v9 = 0;
v5 = -1;
do
++v5;
while ( v3[v5] );
sub_14003D230(&v7, v3, v5);
v6 = FLAlertLayer::create_1(0, (int)v4, (__int64)&v7, (int)"OK", 0, 1136525312);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1064LL))(v6);
}
return result;
}