{"type": "func", "start": 5369214656, "end": 5369214830, "name": "AccountRegisterLayer::validEmail", "pseudocode": "// \n// AccountRegisterLayer::validEmail from 0x14007b6c0 to 0x14007b76e (174 bytes)\n// \n// 3 xrefs:\n// > AccountRegisterLayer::onSubmit @ 0x14007a80b\n// > AccountRegisterLayer::textInputClosed @ 0x14007aedc\n// > <???> @ 0x1406c6798\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n_BOOL8 __fastcall AccountRegisterLayer::validEmail(__int64 a1, _QWORD *a2)\n{\n  _BYTE *v3; // rcx\n  int v4; // r10d\n  int v5; // r8d\n  __int64 v6; // rdx\n  unsigned int v7; // eax\n  bool v8; // bl\n\n  v3 = a2;\n  if ( a2[3] > 0xFu )\n    v3 = (_BYTE *)*a2;\n  if ( !v3 || (unsigned __int8)(*v3 - 97) > 0x19u && (unsigned __int8)(*v3 - 65) > 0x19u )\n    goto LABEL_18;\n  v4 = -1;\n  v5 = -1;\n  v6 = -1;\n  do\n    ++v6;\n  while ( v3[v6] );\n  v7 = 0;\n  if ( !(_DWORD)v6 )\n    goto LABEL_18;\n  do\n  {\n    if ( *v3 == 64 )\n    {\n      v4 = v7;\n    }\n    else if ( *v3 == 46 )\n    {\n      v5 = v7;\n    }\n    ++v7;\n    ++v3;\n  }\n  while ( v7 < (unsigned int)v6 );\n  if ( v4 == -1 || v5 == -1 || v4 > v5 )\n  {\nLABEL_18:\n    sub_14003A830((__int64)a2);\n    return 0;\n  }\n  else\n  {\n    v8 = v5 < (int)v6 - 1;\n    sub_14003A830((__int64)a2);\n    return v8;\n  }\n}", "assembly": "; \n; AccountRegisterLayer::validEmail from 0x14007b6c0 to 0x14007b76e (174 bytes)\n; \n; 3 xrefs:\n; > AccountRegisterLayer::onSubmit @ 0x14007a80b\n; > AccountRegisterLayer::textInputClosed @ 0x14007aedc\n; > <???> @ 0x1406c6798\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x14007b6c0\nsub     rsp, 20h                                                       ; +0x2, 0x14007b6c2\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x6, 0x14007b6c6\nmov     r11, rdx                                                       ; +0xb, 0x14007b6cb\nmov     rcx, rdx                                                       ; +0xe, 0x14007b6ce\njbe     short loc_14007B6D6                                            ; +0x11, 0x14007b6d1\nmov     rcx, [rdx]                                                     ; +0x13, 0x14007b6d3\ntest    rcx, rcx                                                       ; +0x16, 0x14007b6d6\njz      loc_14007B75B                                                  ; +0x19, 0x14007b6d9\nmovzx   edx, byte ptr [rcx]                                            ; +0x1f, 0x14007b6df\nlea     eax, [rdx-61h]                                                 ; +0x22, 0x14007b6e2\ncmp     al, 19h                                                        ; +0x25, 0x14007b6e5\njbe     short loc_14007B6F1                                            ; +0x27, 0x14007b6e7\nsub     dl, 41h ; 'A'                                                  ; +0x29, 0x14007b6e9\ncmp     dl, 19h                                                        ; +0x2c, 0x14007b6ec\nja      short loc_14007B75B                                            ; +0x2f, 0x14007b6ef\nmov     r10, 0FFFFFFFFFFFFFFFFh                                        ; +0x31, 0x14007b6f1\nmov     r8d, r10d                                                      ; +0x38, 0x14007b6f8\nmov     rdx, r10                                                       ; +0x3b, 0x14007b6fb\nxchg    ax, ax                                                         ; +0x3e, 0x14007b6fe\ninc     rdx                                                            ; +0x40, 0x14007b700\ncmp     byte ptr [rcx+rdx], 0                                          ; +0x43, 0x14007b703\njnz     short loc_14007B700                                            ; +0x47, 0x14007b707\nxor     eax, eax                                                       ; +0x49, 0x14007b709\ntest    edx, edx                                                       ; +0x4b, 0x14007b70b\njz      short loc_14007B75B                                            ; +0x4d, 0x14007b70d\nnop                                                                    ; +0x4f, 0x14007b70f\nmovzx   r9d, byte ptr [rcx]                                            ; +0x50, 0x14007b710\ncmp     r9b, 40h ; '@'                                                 ; +0x54, 0x14007b714\njnz     short loc_14007B71F                                            ; +0x58, 0x14007b718\nmov     r10d, eax                                                      ; +0x5a, 0x14007b71a\njmp     short loc_14007B727                                            ; +0x5d, 0x14007b71d\ncmp     r9b, 2Eh ; '.'                                                 ; +0x5f, 0x14007b71f\ncmovz   r8d, eax                                                       ; +0x63, 0x14007b723\ninc     eax                                                            ; +0x67, 0x14007b727\ninc     rcx                                                            ; +0x69, 0x14007b729\ncmp     eax, edx                                                       ; +0x6c, 0x14007b72c\njb      short loc_14007B710                                            ; +0x6e, 0x14007b72e\ncmp     r10d, 0FFFFFFFFh                                               ; +0x70, 0x14007b730\njz      short loc_14007B75B                                            ; +0x74, 0x14007b734\ncmp     r8d, 0FFFFFFFFh                                                ; +0x76, 0x14007b736\njz      short loc_14007B75B                                            ; +0x7a, 0x14007b73a\ncmp     r10d, r8d                                                      ; +0x7c, 0x14007b73c\njg      short loc_14007B75B                                            ; +0x7f, 0x14007b73f\nlea     eax, [rdx-1]                                                   ; +0x81, 0x14007b741\nmov     rcx, r11                                                       ; +0x84, 0x14007b744\ncmp     r8d, eax                                                       ; +0x87, 0x14007b747\nsetl    bl                                                             ; +0x8a, 0x14007b74a\ncall    sub_14003A830                                                  ; +0x8d, 0x14007b74d\nmovzx   eax, bl                                                        ; +0x92, 0x14007b752\nadd     rsp, 20h                                                       ; +0x95, 0x14007b755\npop     rbx                                                            ; +0x99, 0x14007b759\nretn                                                                   ; +0x9a, 0x14007b75a\nxor     bl, bl                                                         ; +0x9b, 0x14007b75b\nmov     rcx, r11                                                       ; +0x9d, 0x14007b75d\ncall    sub_14003A830                                                  ; +0xa0, 0x14007b760\nmovzx   eax, bl                                                        ; +0xa5, 0x14007b765\nadd     rsp, 20h                                                       ; +0xa8, 0x14007b768\npop     rbx                                                            ; +0xac, 0x14007b76c\nretn                                                                   ; +0xad, 0x14007b76d", "xrefs": ["AccountRegisterLayer::onSubmit @ 0x14007a80b", "AccountRegisterLayer::textInputClosed @ 0x14007aedc", "<???> @ 0x1406c6798"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}