{"type": "func", "start": 5369290784, "end": 5369291398, "name": "AccountRegisterLayer::updateLabel", "pseudocode": "// \n// AccountRegisterLayer::updateLabel from 0x14008e020 to 0x14008e286 (614 bytes)\n// \n// 2 xrefs:\n// > AccountRegisterLayer::registerAccountFailed @ 0x14008dff0\n// > <???> @ 0x140912998\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:25:59 +0000\n// \n\n__int64 __fastcall AccountRegisterLayer::updateLabel(_QWORD *a1, int a2)\n{\n  const char *v3; // rdx\n  __int64 v4; // rcx\n  __int64 (__fastcall ***v5)(_QWORD, __int16 *); // rcx\n  __int16 v7; // [rsp+38h] [rbp+10h] BYREF\n  char v8; // [rsp+3Ah] [rbp+12h]\n\n  switch ( a2 )\n  {\n    case -99:\n      (**(void (__fastcall ***)(__int64, const char *))(a1[95] + 360LL))(a1[95] + 360LL, \"Emails do not match\");\n      v4 = a1[95];\n      return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v4 + 368))(v4 + 368, &word_140702D00);\n    case -15:\n      (**(void (__fastcall ***)(__int64, const char *))(a1[92] + 360LL))(a1[92] + 360LL, \"Too common\");\n      v4 = a1[92];\n      return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v4 + 368))(v4 + 368, &word_140702D00);\n    case -14:\n      (**(void (__fastcall ***)(__int64, const char *))(a1[92] + 360LL))(a1[92] + 360LL, \"Invalid characters\");\n      v4 = a1[92];\n      return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v4 + 368))(v4 + 368, &word_140702D00);\n    case -9:\n      v3 = \"Too short. Minimum 3 characters\";\n      goto LABEL_14;\n    case -8:\n      (**(void (__fastcall ***)(__int64, const char *))(a1[92] + 360LL))(a1[92] + 360LL, \"Minimum 8 characters\");\n      v5 = (__int64 (__fastcall ***)(_QWORD, __int16 *))(a1[92] + 368LL);\n      v7 = -21896;\n      v8 = -16;\n      return (**v5)(v5, &v7);\n    case -7:\n      (**(void (__fastcall ***)(__int64, const char *))(a1[93] + 360LL))(a1[93] + 360LL, \"Passwords do not match\");\n      v4 = a1[93];\n      return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v4 + 368))(v4 + 368, &word_140702D00);\n    case -6:\n      (**(void (__fastcall ***)(__int64, const char *))(a1[94] + 360LL))(a1[94] + 360LL, \"Cannot use this email\");\n      v4 = a1[94];\n      return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v4 + 368))(v4 + 368, &word_140702D00);\n    case -5:\n      (**(void (__fastcall ***)(__int64, const char *))(a1[92] + 360LL))(a1[92] + 360LL, \"Password is invalid\");\n      v4 = a1[92];\n      return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v4 + 368))(v4 + 368, &word_140702D00);\n    case -4:\n      v3 = \"Username is invalid\";\n      goto LABEL_14;\n    case -3:\n      (**(void (__fastcall ***)(__int64, const char *))(a1[94] + 360LL))(a1[94] + 360LL, \"Email is already in use\");\n      v4 = a1[94];\n      return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v4 + 368))(v4 + 368, &word_140702D00);\n    case -2:\n      v3 = \"Username is already in use\";\n      goto LABEL_14;\n    default:\n      v3 = \"Something went wrong.\";\nLABEL_14:\n      (**(void (__fastcall ***)(__int64, const char *))(a1[90] + 360LL))(a1[90] + 360LL, v3);\n      v4 = a1[90];\n      return (**(__int64 (__fastcall ***)(__int64, __int16 *))(v4 + 368))(v4 + 368, &word_140702D00);\n  }\n}", "assembly": "; \n; AccountRegisterLayer::updateLabel from 0x14008e020 to 0x14008e286 (614 bytes)\n; \n; 2 xrefs:\n; > AccountRegisterLayer::registerAccountFailed @ 0x14008dff0\n; > <???> @ 0x140912998\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:25:59 +0000\n; \npush    rbx                                                            ; +0x0, 0x14008e020\nsub     rsp, 20h                                                       ; +0x2, 0x14008e022\nadd     edx, 63h ; 'c'; switch 98 cases                                ; +0x6, 0x14008e026\nmov     rbx, rcx                                                       ; +0x9, 0x14008e029\ncmp     edx, 61h                                                       ; +0xc, 0x14008e02c\nja      def_14008E051; jumptable 000000014008E051 default case, cases -98--16,-13--10 ; +0xf, 0x14008e02f\nmovsxd  rax, edx                                                       ; +0x15, 0x14008e035\nlea     rcx, cs:140000000h                                             ; +0x18, 0x14008e038\nmovzx   eax, ds:(byte_14008E224 - 140000000h)[rcx+rax]                 ; +0x1f, 0x14008e03f\nmov     edx, ds:(jpt_14008E051 - 140000000h)[rcx+rax*4]                ; +0x27, 0x14008e047\nadd     rdx, rcx                                                       ; +0x2e, 0x14008e04e\njmp     rdx; switch jump                                               ; +0x31, 0x14008e051\nlea     rdx, aUsernameIsAlre; jumptable 000000014008E051 case -2       ; +0x33, 0x14008e053\njmp     loc_14008E1C0                                                  ; +0x3a, 0x14008e05a\nmov     rcx, [rbx+2F0h]; jumptable 000000014008E051 case -3            ; +0x3f, 0x14008e05f\nlea     rdx, aEmailIsAlready; \"Email is already in use\"                ; +0x46, 0x14008e066\nadd     rcx, 168h                                                      ; +0x4d, 0x14008e06d\nmov     rax, [rcx]                                                     ; +0x54, 0x14008e074\ncall    qword ptr [rax]                                                ; +0x57, 0x14008e077\nmov     rcx, [rbx+2F0h]                                                ; +0x59, 0x14008e079\njmp     loc_14008E1DA                                                  ; +0x60, 0x14008e080\nmov     rcx, [rbx+2F0h]; jumptable 000000014008E051 case -6            ; +0x65, 0x14008e085\nlea     rdx, aCannotUseThisE; \"Cannot use this email\"                  ; +0x6c, 0x14008e08c\nadd     rcx, 168h                                                      ; +0x73, 0x14008e093\nmov     rax, [rcx]                                                     ; +0x7a, 0x14008e09a\ncall    qword ptr [rax]                                                ; +0x7d, 0x14008e09d\nmov     rcx, [rbx+2F0h]                                                ; +0x7f, 0x14008e09f\njmp     loc_14008E1DA                                                  ; +0x86, 0x14008e0a6\nlea     rdx, aUsernameIsInva; jumptable 000000014008E051 case -4       ; +0x8b, 0x14008e0ab\njmp     loc_14008E1C0                                                  ; +0x92, 0x14008e0b2\nmov     rcx, [rbx+2E0h]; jumptable 000000014008E051 case -5            ; +0x97, 0x14008e0b7\nlea     rdx, aPasswordIsInva; \"Password is invalid\"                    ; +0x9e, 0x14008e0be\nadd     rcx, 168h                                                      ; +0xa5, 0x14008e0c5\nmov     rax, [rcx]                                                     ; +0xac, 0x14008e0cc\ncall    qword ptr [rax]                                                ; +0xaf, 0x14008e0cf\nmov     rcx, [rbx+2E0h]                                                ; +0xb1, 0x14008e0d1\njmp     loc_14008E1DA                                                  ; +0xb8, 0x14008e0d8\nmov     rcx, [rbx+2E8h]; jumptable 000000014008E051 case -7            ; +0xbd, 0x14008e0dd\nlea     rdx, aPasswordsDoNot; \"Passwords do not match\"                 ; +0xc4, 0x14008e0e4\nadd     rcx, 168h                                                      ; +0xcb, 0x14008e0eb\nmov     rax, [rcx]                                                     ; +0xd2, 0x14008e0f2\ncall    qword ptr [rax]                                                ; +0xd5, 0x14008e0f5\nmov     rcx, [rbx+2E8h]                                                ; +0xd7, 0x14008e0f7\njmp     loc_14008E1DA                                                  ; +0xde, 0x14008e0fe\nmov     rcx, [rbx+2E0h]; jumptable 000000014008E051 case -8            ; +0xe3, 0x14008e103\nlea     rdx, aMinimum8Charac; \"Minimum 8 characters\"                   ; +0xea, 0x14008e10a\nadd     rcx, 168h                                                      ; +0xf1, 0x14008e111\nmov     rax, [rcx]                                                     ; +0xf8, 0x14008e118\ncall    qword ptr [rax]                                                ; +0xfb, 0x14008e11b\nmov     rcx, [rbx+2E0h]                                                ; +0xfd, 0x14008e11d\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x104, 0x14008e124\nadd     rcx, 170h                                                      ; +0x109, 0x14008e129\nmov     [rsp+28h+arg_8], 0AA78h                                        ; +0x110, 0x14008e130\nmov     [rsp+28h+arg_A], 0F0h                                          ; +0x117, 0x14008e137\nmov     rax, [rcx]                                                     ; +0x11c, 0x14008e13c\ncall    qword ptr [rax]                                                ; +0x11f, 0x14008e13f\nadd     rsp, 20h                                                       ; +0x121, 0x14008e141\npop     rbx                                                            ; +0x125, 0x14008e145\nretn                                                                   ; +0x126, 0x14008e146\nmov     rcx, [rbx+2E0h]; jumptable 000000014008E051 case -14           ; +0x127, 0x14008e147\nlea     rdx, aInvalidCharact; \"Invalid characters\"                     ; +0x12e, 0x14008e14e\nadd     rcx, 168h                                                      ; +0x135, 0x14008e155\nmov     rax, [rcx]                                                     ; +0x13c, 0x14008e15c\ncall    qword ptr [rax]                                                ; +0x13f, 0x14008e15f\nmov     rcx, [rbx+2E0h]                                                ; +0x141, 0x14008e161\njmp     short loc_14008E1DA                                            ; +0x148, 0x14008e168\nmov     rcx, [rbx+2E0h]; jumptable 000000014008E051 case -15           ; +0x14a, 0x14008e16a\nlea     rdx, aTooCommon; \"Too common\"                                  ; +0x151, 0x14008e171\nadd     rcx, 168h                                                      ; +0x158, 0x14008e178\nmov     rax, [rcx]                                                     ; +0x15f, 0x14008e17f\ncall    qword ptr [rax]                                                ; +0x162, 0x14008e182\nmov     rcx, [rbx+2E0h]                                                ; +0x164, 0x14008e184\njmp     short loc_14008E1DA                                            ; +0x16b, 0x14008e18b\nlea     rdx, aTooShortMinimu; jumptable 000000014008E051 case -9       ; +0x16d, 0x14008e18d\njmp     short loc_14008E1C0                                            ; +0x174, 0x14008e194\nmov     rcx, [rbx+2F8h]; jumptable 000000014008E051 case -99           ; +0x176, 0x14008e196\nlea     rdx, aEmailsDoNotMat; \"Emails do not match\"                    ; +0x17d, 0x14008e19d\nadd     rcx, 168h                                                      ; +0x184, 0x14008e1a4\nmov     rax, [rcx]                                                     ; +0x18b, 0x14008e1ab\ncall    qword ptr [rax]                                                ; +0x18e, 0x14008e1ae\nmov     rcx, [rbx+2F8h]                                                ; +0x190, 0x14008e1b0\njmp     short loc_14008E1DA                                            ; +0x197, 0x14008e1b7\nlea     rdx, aSomethingWentW; jumptable 000000014008E051 default case, cases -98--16,-13--10 ; +0x199, 0x14008e1b9\nmov     rcx, [rbx+2D0h]                                                ; +0x1a0, 0x14008e1c0\nadd     rcx, 168h                                                      ; +0x1a7, 0x14008e1c7\nmov     rax, [rcx]                                                     ; +0x1ae, 0x14008e1ce\ncall    qword ptr [rax]                                                ; +0x1b1, 0x14008e1d1\nmov     rcx, [rbx+2D0h]                                                ; +0x1b3, 0x14008e1d3\nadd     rcx, 170h                                                      ; +0x1ba, 0x14008e1da\nlea     rdx, word_140702D00                                            ; +0x1c1, 0x14008e1e1\nmov     rax, [rcx]                                                     ; +0x1c8, 0x14008e1e8\ncall    qword ptr [rax]                                                ; +0x1cb, 0x14008e1eb\nadd     rsp, 20h                                                       ; +0x1cd, 0x14008e1ed\npop     rbx                                                            ; +0x1d1, 0x14008e1f1\nretn                                                                   ; +0x1d2, 0x14008e1f2\nalign 4                                                                ; +0x1d3, 0x14008e1f3\ndd offset loc_14008E196 - 140000000h; jump table for switch statement  ; +0x1d4, 0x14008e1f4\ndb      0,   0Bh,   0Bh,   0Bh; indirect table for switch statement    ; +0x204, 0x14008e224", "xrefs": ["AccountRegisterLayer::registerAccountFailed @ 0x14008dff0", "<???> @ 0x140912998"], "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"}