// // AccountRegisterLayer::validEmail from 0x100497b50 to 0x100497cde (398 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 // __int64 __fastcall AccountRegisterLayer::validEmail(__int64 a1, __int64 a2) { const char *v2; // rsi const char *v3; // rbx unsigned int v4; // eax __int64 v5; // rcx int v6; // edx __int64 v7; // rsi int v8; // edi const char *v9; // r8 unsigned int v10; // ecx int v11; // r9d int v13; // r10d int v14; // r11d int v15; // r10d int v16; // r11d int v17; // r10d int v18; // r11d int v19; // r10d if ( (*(_BYTE *)a2 & 1) == 0 ) { v2 = (const char *)(a2 + 1); goto LABEL_4; } v2 = *(const char **)(a2 + 16); if ( v2 ) { LABEL_4: if ( (unsigned __int8)((*v2 & 0xDF) - 65) > 0x19u ) return 0; v3 = v2; v4 = strlen(v2); if ( !v4 ) return 0; v5 = v4 & 3; if ( (unsigned __int64)v4 - 1 < 3 ) { v6 = -1; v7 = 0; v8 = -1; v9 = v3; LABEL_8: if ( (v4 & 3) != 0 ) { do { v11 = (unsigned __int8)v9[v7]; if ( v11 == 46 ) { v6 = v7; } else if ( v11 == 64 ) { v8 = v7; } ++v7; --v5; } while ( v5 ); } v10 = 0; if ( v8 != -1 && v6 != -1 && v8 <= v6 ) LOBYTE(v10) = v6 < (int)(v4 - 1); return v10; } v6 = -1; v7 = 0; v8 = -1; v9 = v3; while ( 1 ) { v13 = (unsigned __int8)v3[v7]; if ( v13 == 46 ) { v6 = v7; v14 = (unsigned __int8)v3[v7 + 1]; v15 = v7 + 1; if ( v14 == 46 ) goto LABEL_36; } else { if ( v13 == 64 ) v8 = v7; v14 = (unsigned __int8)v3[v7 + 1]; v15 = v7 + 1; if ( v14 == 46 ) { LABEL_36: v6 = v15; v16 = (unsigned __int8)v3[v7 + 2]; v17 = v7 + 2; if ( v16 == 46 ) goto LABEL_37; goto LABEL_31; } } if ( v14 == 64 ) v8 = v15; v16 = (unsigned __int8)v3[v7 + 2]; v17 = v7 + 2; if ( v16 == 46 ) { LABEL_37: v6 = v17; v18 = (unsigned __int8)v3[v7 + 3]; v19 = v7 + 3; if ( v18 != 46 ) goto LABEL_38; goto LABEL_22; } LABEL_31: if ( v16 == 64 ) v8 = v17; v18 = (unsigned __int8)v3[v7 + 3]; v19 = v7 + 3; if ( v18 != 46 ) { LABEL_38: if ( v18 == 64 ) v8 = v19; goto LABEL_23; } LABEL_22: v6 = v19; LABEL_23: v7 += 4; if ( v4 - v5 == v7 ) goto LABEL_8; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source