//
// sub_140241F40 from 0x140241f40 to 0x140241fbc (124 bytes)
//
// 9 xrefs:
// > GameLevelManager::onAdminGetUserHistoryCompleted @ 0x1402423e6
// > GameLevelManager::onAdminGetReportedContentCompleted @ 0x14024326c
// > GameLevelManager::onAdminClearReportedContentCompleted @ 0x1402447a0
// > GameLevelManager::onAdminGetAbuseInfoCompleted @ 0x140245998
// > GameLevelManager::onAdminGetAccountReviewCompleted @ 0x14024719b
// > GameLevelManager::onAdminCloseCaseCompleted @ 0x140247e4c
// > ??> @ 0x1408a9350
// > ??> @ 0x1408a9360
// > ??> @ 0x14091c220
//
// 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:28:36 +0000
//
int __fastcall sub_140241F40(const char *a1, __int64 a2, __int64 a3)
{
const char *v3; // rdi
const char *v4; // rsi
__int64 v5; // rax
char *v6; // rbx
__int64 v7; // rax
__int64 v8; // rax
v3 = a1;
v4 = a1;
if ( *((_QWORD *)a1 + 3) > 0xFu )
v4 = *(const char **)a1;
v5 = *((_QWORD *)a1 + 2);
if ( !v5 )
return 0;
LOBYTE(a3) = 95;
v6 = (char *)&v4[v5];
v7 = sub_140677120(v4, &v4[v5], a3);
if ( (char *)v7 == v6 )
return 0;
v8 = v7 - (_QWORD)v4;
if ( v8 == -1 )
return 0;
if ( *((_QWORD *)v3 + 3) > 0xFu )
v3 = *(const char **)v3;
return atoi(&v3[v8 + 1]);
}