//
// GJAccountManager::onRegisterAccountCompleted from 0x10009e580 to 0x10009e639 (185 bytes)
//
// 0 xrefs:
//
// 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:20:12 +0000
//
unsigned __int8 __fastcall GJAccountManager::onRegisterAccountCompleted(__int64 a1, unsigned __int8 *a2)
{
const void *v2; // rbx
__int64 v3; // r12
unsigned __int8 result; // al
__int64 v5; // r14
unsigned int v6; // eax
__int16 __s2[27]; // [rsp+9h] [rbp-37h] BYREF
GJAccountManager::removeDLFromActive(a1, "reg_account");
__s2[0] = 49;
v2 = a2 + 1;
v3 = *a2 >> 1;
if ( (*a2 & 1) != 0 )
{
v2 = *((const void **)a2 + 2);
v3 = *((_QWORD *)a2 + 1);
}
result = memcmp(v2, __s2, v3 != 0) != 0;
v5 = *(_QWORD *)(a1 + 392);
if ( result | (v3 != 1) )
{
if ( v5 )
{
v6 = atoi((const char *)v2);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 8LL))(v5, v6);
}
}
else if ( v5 )
{
return (**(__int64 (__fastcall ***)(__int64))v5)(v5);
}
return result;
}