{"type": "func", "start": 5369301168, "end": 5369301342, "name": "AccountRegisterLayer::validEmail", "pseudocode": "// \n// AccountRegisterLayer::validEmail from 0x1400908b0 to 0x14009095e (174 bytes)\n// \n// 3 xrefs:\n// > AccountRegisterLayer::onSubmit @ 0x14008ea2e\n// > AccountRegisterLayer::textInputClosed @ 0x14008f228\n// > <???> @ 0x140912a1c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:26:00 +0000\n// \n\n_BOOL8 __fastcall AccountRegisterLayer::validEmail(__int64 a1, char *a2)\n{\n  char *v3; // rcx\n  char v4; // al\n  int v5; // r10d\n  int v6; // r8d\n  __int64 v7; // rdx\n  unsigned int v8; // eax\n  bool v9; // bl\n\n  v3 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v3 = *(char **)a2;\n  if ( !v3 )\n    goto LABEL_19;\n  v4 = *v3;\n  if ( (*v3 < 97 || v4 > 122) && (unsigned __int8)(v4 - 65) > 0x19u )\n    goto LABEL_19;\n  v5 = -1;\n  v6 = -1;\n  v7 = -1;\n  do\n    ++v7;\n  while ( v3[v7] );\n  v8 = 0;\n  if ( !(_DWORD)v7 )\n    goto LABEL_19;\n  do\n  {\n    if ( *v3 == 64 )\n    {\n      v5 = v8;\n    }\n    else if ( *v3 == 46 )\n    {\n      v6 = v8;\n    }\n    ++v8;\n    ++v3;\n  }\n  while ( v8 < (unsigned int)v7 );\n  if ( v5 == -1 || v6 == -1 || v5 > v6 )\n  {\nLABEL_19:\n    sub_14003D310((__int64)a2);\n    return 0;\n  }\n  else\n  {\n    v9 = v6 < (int)v7 - 1;\n    sub_14003D310((__int64)a2);\n    return v9;\n  }\n}", "assembly": "; \n; AccountRegisterLayer::validEmail from 0x1400908b0 to 0x14009095e (174 bytes)\n; \n; 3 xrefs:\n; > AccountRegisterLayer::onSubmit @ 0x14008ea2e\n; > AccountRegisterLayer::textInputClosed @ 0x14008f228\n; > <???> @ 0x140912a1c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:26:00 +0000\n; \npush    rbx                                                            ; +0x0, 0x1400908b0\nsub     rsp, 20h                                                       ; +0x2, 0x1400908b2\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x6, 0x1400908b6\nmov     r11, rdx                                                       ; +0xb, 0x1400908bb\nmov     rcx, rdx                                                       ; +0xe, 0x1400908be\njbe     short loc_1400908C6                                            ; +0x11, 0x1400908c1\nmov     rcx, [rdx]                                                     ; +0x13, 0x1400908c3\ntest    rcx, rcx                                                       ; +0x16, 0x1400908c6\njz      loc_14009094B                                                  ; +0x19, 0x1400908c9\nmovzx   eax, byte ptr [rcx]                                            ; +0x1f, 0x1400908cf\ncmp     al, 61h ; 'a'                                                  ; +0x22, 0x1400908d2\njl      short loc_1400908DA                                            ; +0x24, 0x1400908d4\ncmp     al, 7Ah ; 'z'                                                  ; +0x26, 0x1400908d6\njle     short loc_1400908E0                                            ; +0x28, 0x1400908d8\nsub     al, 41h ; 'A'                                                  ; +0x2a, 0x1400908da\ncmp     al, 19h                                                        ; +0x2c, 0x1400908dc\nja      short loc_14009094B                                            ; +0x2e, 0x1400908de\nmov     r10, 0FFFFFFFFFFFFFFFFh                                        ; +0x30, 0x1400908e0\nmov     r8d, r10d                                                      ; +0x37, 0x1400908e7\nmov     rdx, r10                                                       ; +0x3a, 0x1400908ea\nnop     dword ptr [rax]                                                ; +0x3d, 0x1400908ed\ninc     rdx                                                            ; +0x40, 0x1400908f0\ncmp     byte ptr [rcx+rdx], 0                                          ; +0x43, 0x1400908f3\njnz     short loc_1400908F0                                            ; +0x47, 0x1400908f7\nxor     eax, eax                                                       ; +0x49, 0x1400908f9\ntest    edx, edx                                                       ; +0x4b, 0x1400908fb\njz      short loc_14009094B                                            ; +0x4d, 0x1400908fd\nnop                                                                    ; +0x4f, 0x1400908ff\nmovzx   r9d, byte ptr [rcx]                                            ; +0x50, 0x140090900\ncmp     r9b, 40h ; '@'                                                 ; +0x54, 0x140090904\njnz     short loc_14009090F                                            ; +0x58, 0x140090908\nmov     r10d, eax                                                      ; +0x5a, 0x14009090a\njmp     short loc_140090917                                            ; +0x5d, 0x14009090d\ncmp     r9b, 2Eh ; '.'                                                 ; +0x5f, 0x14009090f\ncmovz   r8d, eax                                                       ; +0x63, 0x140090913\ninc     eax                                                            ; +0x67, 0x140090917\ninc     rcx                                                            ; +0x69, 0x140090919\ncmp     eax, edx                                                       ; +0x6c, 0x14009091c\njb      short loc_140090900                                            ; +0x6e, 0x14009091e\ncmp     r10d, 0FFFFFFFFh                                               ; +0x70, 0x140090920\njz      short loc_14009094B                                            ; +0x74, 0x140090924\ncmp     r8d, 0FFFFFFFFh                                                ; +0x76, 0x140090926\njz      short loc_14009094B                                            ; +0x7a, 0x14009092a\ncmp     r10d, r8d                                                      ; +0x7c, 0x14009092c\njg      short loc_14009094B                                            ; +0x7f, 0x14009092f\nlea     eax, [rdx-1]                                                   ; +0x81, 0x140090931\nmov     rcx, r11                                                       ; +0x84, 0x140090934\ncmp     r8d, eax                                                       ; +0x87, 0x140090937\nsetl    bl                                                             ; +0x8a, 0x14009093a\ncall    sub_14003D310                                                  ; +0x8d, 0x14009093d\nmovzx   eax, bl                                                        ; +0x92, 0x140090942\nadd     rsp, 20h                                                       ; +0x95, 0x140090945\npop     rbx                                                            ; +0x99, 0x140090949\nretn                                                                   ; +0x9a, 0x14009094a\nxor     bl, bl                                                         ; +0x9b, 0x14009094b\nmov     rcx, r11                                                       ; +0x9d, 0x14009094d\ncall    sub_14003D310                                                  ; +0xa0, 0x140090950\nmovzx   eax, bl                                                        ; +0xa5, 0x140090955\nadd     rsp, 20h                                                       ; +0xa8, 0x140090958\npop     rbx                                                            ; +0xac, 0x14009095c\nretn                                                                   ; +0xad, 0x14009095d", "xrefs": ["AccountRegisterLayer::onSubmit @ 0x14008ea2e", "AccountRegisterLayer::textInputClosed @ 0x14008f228", "<???> @ 0x140912a1c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}