// // AccountRegisterLayer::textInputClosed from 0x588778 to 0x588a18 (672 bytes) // // 1 xrefs: // > `non-virtual thunk to'AccountRegisterLayer::textInputClosed @ 0x588a34 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:00 +0000 // int __fastcall AccountRegisterLayer::textInputClosed(AccountRegisterLayer *this, CCTextInputNode *a2) { int v4; // r0 int v5; // r6 _BOOL4 v6; // r6 int v7; // r2 AccountRegisterLayer *v8; // r0 int v9; // r1 int v10; // r3 _BOOL4 v11; // r10 int v12; // r2 _BYTE *v13; // r3 int *v14; // r3 _BOOL4 v15; // r10 _BYTE *v16; // r3 int *v17; // r3 int v18; // r6 _BOOL4 v19; // r6 unsigned __int8 v21; // [sp+4h] [bp-64h] BYREF _BYTE v22[3]; // [sp+5h] [bp-63h] BYREF int v23; // [sp+8h] [bp-60h] _BYTE *v24; // [sp+Ch] [bp-5Ch] int v25[3]; // [sp+10h] [bp-58h] BYREF int v26[3]; // [sp+1Ch] [bp-4Ch] BYREF int v27[3]; // [sp+28h] [bp-40h] BYREF int v28[3]; // [sp+34h] [bp-34h] BYREF int v29[3]; // [sp+40h] [bp-28h] BYREF int v30[3]; // [sp+4Ch] [bp-1Ch] BYREF int v31[2]; // [sp+58h] [bp-10h] BYREF int *v32; // [sp+60h] [bp-8h] CCTextInputNode::getString((CCTextInputNode *)&v21, (int)a2); v4 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2); AccountRegisterLayer::resetLabel((_DWORD **)this, v4); switch ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) ) { case 1: std::string::basic_string(v25, (int)&v21); if ( AccountRegisterLayer::validUser((int)this, (unsigned __int8 *)v25) ) { v6 = 0; } else { if ( (v21 & 1) != 0 ) v5 = v23; else v5 = (int)v21 >> 1; v6 = v5 != 0; } std::string::~string((int)v25); if ( v6 ) { v8 = this; v9 = -9; goto LABEL_53; } break; case 2: AccountRegisterLayer::resetLabel((_DWORD **)this, 3); if ( (v21 & 1) != 0 ) v10 = v23; else v10 = (int)v21 >> 1; if ( v10 ) { std::string::basic_string(v26, (int)&v21); AccountRegisterLayer::updatePasswordInfo((int)this, (unsigned __int8 *)v26); std::string::~string((int)v26); } else { (*(void (__fastcall **)(_DWORD, void *, int))(**((_DWORD **)this + 139) + 464))( *((_DWORD *)this + 139), &unk_B6B226, v21 << 31); } CCTextInputNode::getString((CCTextInputNode *)v31, *((_DWORD *)this + 134)); memset(v27, 0, sizeof(v27)); std::string::__init(v27, "Confirm Password:", 0x11u); if ( sub_5858BE((unsigned __int8 *)v31, (unsigned __int8 *)v27) ) { v11 = 1; } else { memset(v28, 0, sizeof(v28)); std::string::__init(v28, "Password:", 9u); v11 = sub_5858BE(&v21, (unsigned __int8 *)v28); std::string::~string((int)v28); } std::string::~string((int)v27); if ( !sub_5858BE(&v21, (unsigned __int8 *)v31) ) { v13 = (v21 & 1) != 0 ? v24 : v22; if ( *v13 ) { v14 = (v31[0] & 1) != 0 ? v32 : (int *)((char *)v31 + 1); if ( *(_BYTE *)v14 && !v11 ) AccountRegisterLayer::updateLabel((_DWORD **)this, -7, v12); } } goto LABEL_34; case 3: CCTextInputNode::getString((CCTextInputNode *)v31, *((_DWORD *)this + 133)); memset(v29, 0, sizeof(v29)); std::string::__init(v29, "Password:", 9u); if ( sub_5858BE(&v21, (unsigned __int8 *)v29) ) { v15 = 1; } else { memset(v30, 0, sizeof(v30)); std::string::__init(v30, "Confirm Password:", 0x11u); v15 = sub_5858BE((unsigned __int8 *)v31, (unsigned __int8 *)v30); std::string::~string((int)v30); } std::string::~string((int)v29); if ( !sub_5858BE(&v21, (unsigned __int8 *)v31) ) { v16 = (v21 & 1) != 0 ? v24 : v22; if ( *v16 ) { v17 = (v31[0] & 1) != 0 ? v32 : (int *)((char *)v31 + 1); if ( *(_BYTE *)v17 && !v15 ) AccountRegisterLayer::updateLabel((_DWORD **)this, -7, LOBYTE(v31[0]) << 31); } } LABEL_34: std::string::~string((int)v31); break; case 4: std::string::basic_string(v31, (int)&v21); if ( AccountRegisterLayer::validEmail((int)this, (int)v31) ) { v19 = 0; } else { if ( (v21 & 1) != 0 ) v18 = v23; else v18 = (int)v21 >> 1; v19 = v18 != 0; } std::string::~string((int)v31); if ( v19 ) { v8 = this; v9 = -6; LABEL_53: AccountRegisterLayer::updateLabel((_DWORD **)v8, v9, v7); } break; default: break; } *((_BYTE *)this + 576) = 0; return std::string::~string((int)&v21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source