//
// GJAccountManager::onRegisterAccountCompleted from 0x1000cffe0 to 0x1000d0099 (185 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
unsigned __int8 __fastcall GJAccountManager::onRegisterAccountCompleted(GJAccountManager *a1, unsigned __int8 *a2)
{
const void *v2; // rbx
__int64 v3; // r12
unsigned __int8 result; // al
GJAccountRegisterDelegate *m_accountRegisterDelegate; // 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;
m_accountRegisterDelegate = a1->m_accountRegisterDelegate;
if ( result | (v3 != 1) )
{
if ( m_accountRegisterDelegate )
{
v6 = atoi((const char *)v2);
return ((__int64 (__fastcall *)(GJAccountRegisterDelegate *, _QWORD))m_accountRegisterDelegate->registerAccountFailed)(
m_accountRegisterDelegate,
v6);
}
}
else if ( m_accountRegisterDelegate )
{
return ((__int64 (__fastcall *)(GJAccountRegisterDelegate *))m_accountRegisterDelegate->registerAccountFinished)(m_accountRegisterDelegate);
}
return result;
}