// // AccountRegisterLayer::updatePasswordInfo from 0x588618 to 0x58874e (310 bytes) // // 3 xrefs: // > AccountRegisterLayer::textInputClosed @ 0x588838 // > AccountRegisterLayer::textChanged @ 0x588a94 // > AccountRegisterLayer::onSubmit @ 0x588cf8 // // 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::updatePasswordInfo(int a1, unsigned __int8 *a2) { char v3; // r3 char *v4; // r1 char v5; // r3 char *v6; // r1 __int16 v8; // [sp+4h] [bp-18h] BYREF char v9; // [sp+6h] [bp-16h] int v10[2]; // [sp+8h] [bp-14h] BYREF char *v11; // [sp+10h] [bp-Ch] v10[0] = 0; v10[1] = 0; v11 = nullptr; switch ( sub_587CFC(a2) ) { case 0: std::string::assign(v10, "Minimum 8 characters"); v8 = -21896; v3 = -16; goto LABEL_11; case 1: v4 = "Invalid characters"; goto LABEL_4; case 2: v4 = "Too common"; LABEL_4: std::string::assign(v10, v4); v8 = 255; v3 = 0; goto LABEL_11; case 3: std::string::assign(v10, "Weak"); LOBYTE(v8) = -1; v5 = -116; goto LABEL_8; case 4: std::string::assign(v10, "Good"); LOBYTE(v8) = -1; v5 = -41; LABEL_8: HIBYTE(v8) = v5; v3 = 0; goto LABEL_11; case 5: std::string::assign(v10, "Strong"); v8 = -256; v3 = 65; goto LABEL_11; case 6: std::string::assign(v10, "Epic"); v8 = 23265; v3 = -1; LABEL_11: v9 = v3; break; default: std::string::assign(v10, (char *)&unk_B6B226); v8 = -1; v9 = -1; break; } if ( (v10[0] & 1) != 0 ) v6 = v11; else v6 = (char *)v10 + 1; (*(void (__fastcall **)(_DWORD, char *, int))(**(_DWORD **)(a1 + 556) + 464))( *(_DWORD *)(a1 + 556), v6, LOBYTE(v10[0]) << 31); (*(void (__fastcall **)(_DWORD, __int16 *))(**(_DWORD **)(a1 + 556) + 536))(*(_DWORD *)(a1 + 556), &v8); return std::string::~string((int)v10); }