//
// AccountLayer::onRegister from 0x140093560 to 0x1400936da (378 bytes)
//
// 2 xrefs:
// > AccountLayer::customSetup @ 0x140093033
// > ??> @ 0x140912b90
//
// 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:26:01 +0000
//
// Hidden C++ exception states: #wind=1
__int64 AccountLayer::onRegister()
{
_QWORD *v0; // rbx
__int64 (__fastcall *v1)(__int64); // rdx
v0 = operator new(0x310u);
FLAlertLayer::FLAlertLayer((__int64)v0);
*v0 = &AccountRegisterLayer::`vftable';
v0[40] = &AccountRegisterLayer::`vftable';
v0[41] = &AccountRegisterLayer::`vftable';
v0[42] = &AccountRegisterLayer::`vftable';
v0[43] = &AccountRegisterLayer::`vftable';
v0[44] = &AccountRegisterLayer::`vftable';
v0[51] = &AccountRegisterLayer::`vftable';
v0[54] = &AccountRegisterLayer::`vftable';
v0[68] = &AccountRegisterLayer::`vftable';
v0[83] = &AccountRegisterLayer::`vftable';
v0[84] = &AccountRegisterLayer::`vftable';
v0[85] = 0;
v0[86] = 0;
v0[87] = 0;
v0[88] = 0;
v0[90] = 0;
v0[91] = 0;
v0[92] = 0;
v0[93] = 0;
v0[94] = 0;
v0[96] = 0;
*((_BYTE *)v0 + 776) = 0;
if ( AccountRegisterLayer::init((__int64)v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v0 + 8LL))(v0, 1);
v0 = nullptr;
}
v1 = *(__int64 (__fastcall **)(__int64))(*v0 + 1064LL);
if ( v1 == FLAlertLayer::show )
return FLAlertLayer::show((__int64)v0);
else
return v1((__int64)v0);
}