{"type": "func", "start": 5792892, "end": 5793174, "name": "AccountLoginLayer::updateLabel", "pseudocode": "// \n// AccountLoginLayer::updateLabel from 0x58647c to 0x586596 (282 bytes)\n// \n// 3 xrefs:\n// > AccountLoginLayer::loginAccountFailed @ 0x586756\n// > AccountLoginLayer::textInputClosed @ 0x58689e\n// > AccountLoginLayer::onSubmit @ 0x5869fc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:58 +0000\n// \n\nint __fastcall AccountLoginLayer::updateLabel(int a1, int a2)\n{\n  int (*v3)(void); // r3\n\n  switch ( a2 )\n  {\n    case -14:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 540) + 464))(\n        *(_DWORD *)(a1 + 540),\n        \"Password contains invalid characters\");\n      v3 = *(int (**)(void))(**(_DWORD **)(a1 + 540) + 536);\n      break;\n    case -13:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(\n        *(_DWORD *)(a1 + 536),\n        \"Already linked to different Steam account\");\n      v3 = *(int (**)(void))(**(_DWORD **)(a1 + 536) + 536);\n      break;\n    case -12:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(\n        *(_DWORD *)(a1 + 536),\n        \"Account has been disabled\");\n      (*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(a1 + 536) + 536))(*(_DWORD *)(a1 + 536), &unk_BED8F0);\n      (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 540) + 464))(\n        *(_DWORD *)(a1 + 540),\n        \"Contact RobTop Support for more info\");\n      v3 = *(int (**)(void))(**(_DWORD **)(a1 + 540) + 536);\n      break;\n    case -10:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(\n        *(_DWORD *)(a1 + 536),\n        \"Already linked to different account\");\n      v3 = *(int (**)(void))(**(_DWORD **)(a1 + 536) + 536);\n      break;\n    case -9:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(\n        *(_DWORD *)(a1 + 536),\n        \"Too short. Minimum 3 characters\");\n      v3 = *(int (**)(void))(**(_DWORD **)(a1 + 536) + 536);\n      break;\n    case -8:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 540) + 464))(\n        *(_DWORD *)(a1 + 540),\n        \"Too short. Minimum 6 characters\");\n      v3 = *(int (**)(void))(**(_DWORD **)(a1 + 540) + 536);\n      break;\n    default:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(\n        *(_DWORD *)(a1 + 536),\n        \"Login failed\");\n      v3 = *(int (**)(void))(**(_DWORD **)(a1 + 536) + 536);\n      break;\n  }\n  return v3();\n}", "assembly": "; \n; AccountLoginLayer::updateLabel from 0x58647c to 0x586596 (282 bytes)\n; \n; 3 xrefs:\n; > AccountLoginLayer::loginAccountFailed @ 0x586756\n; > AccountLoginLayer::textInputClosed @ 0x58689e\n; > AccountLoginLayer::onSubmit @ 0x5869fc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:58 +0000\n; \nADDS            R1, #0xE                                               ; +0x0, 0x58647c\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x58647e\nMOV             R4, R0                                                 ; +0x4, 0x586480\nCMP             R1, #6; switch 7 cases                                 ; +0x6, 0x586482\nBHI             def_586486; jumptable 00586486 default case, case 3    ; +0x8, 0x586484\nTBB.W           [PC,R1]; switch jump                                   ; +0xa, 0x586486\nDCB 4; jump table for switch statement                                 ; +0xe, 0x58648a\nDCB 0x44                                                               ; +0xf, 0x58648b\nDCB 0x54                                                               ; +0x10, 0x58648c\nDCB 0x74                                                               ; +0x11, 0x58648d\nDCB 0x34                                                               ; +0x12, 0x58648e\nDCB 0x24                                                               ; +0x13, 0x58648f\nDCB 0x14                                                               ; +0x14, 0x586490\nALIGN 2                                                                ; +0x15, 0x586491\nLDR.W           R0, [R0,#0x21C]; jumptable 00586486 case 0             ; +0x16, 0x586492\nLDR             R1, =(aPasswordContai - 0x58649E); \"Password contains invalid characters\" ; +0x1a, 0x586496\nLDR             R3, [R0]                                               ; +0x1c, 0x586498\nADD             R1, PC; \"Password contains invalid characters\"         ; +0x1e, 0x58649a\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x20, 0x58649c\nBLX             R3                                                     ; +0x24, 0x5864a0\nLDR.W           R0, [R4,#0x21C]                                        ; +0x26, 0x5864a2\nLDR             R1, =(unk_BED8F0 - 0x5864AE)                           ; +0x2a, 0x5864a6\nLDR             R3, [R0]                                               ; +0x2c, 0x5864a8\nADD             R1, PC; unk_BED8F0                                     ; +0x2e, 0x5864aa\nLDR.W           R3, [R3,#0x218]                                        ; +0x30, 0x5864ac\nB               loc_586590                                             ; +0x34, 0x5864b0\nLDR.W           R0, [R0,#0x21C]; jumptable 00586486 case 6             ; +0x36, 0x5864b2\nLDR             R1, =(aTooShortMinimu_0 - 0x5864BE); \"Too short. Minimum 6 characters\" ; +0x3a, 0x5864b6\nLDR             R3, [R0]                                               ; +0x3c, 0x5864b8\nADD             R1, PC; \"Too short. Minimum 6 characters\"              ; +0x3e, 0x5864ba\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x40, 0x5864bc\nBLX             R3                                                     ; +0x44, 0x5864c0\nLDR.W           R0, [R4,#0x21C]                                        ; +0x46, 0x5864c2\nLDR             R1, =(unk_BED8F0 - 0x5864CE)                           ; +0x4a, 0x5864c6\nLDR             R3, [R0]                                               ; +0x4c, 0x5864c8\nADD             R1, PC; unk_BED8F0                                     ; +0x4e, 0x5864ca\nLDR.W           R3, [R3,#0x218]                                        ; +0x50, 0x5864cc\nB               loc_586590                                             ; +0x54, 0x5864d0\nLDR.W           R0, [R0,#0x218]; jumptable 00586486 case 5             ; +0x56, 0x5864d2\nLDR             R1, =(aTooShortMinimu - 0x5864DE); \"Too short. Minimum 3 characters\" ; +0x5a, 0x5864d6\nLDR             R3, [R0]                                               ; +0x5c, 0x5864d8\nADD             R1, PC; \"Too short. Minimum 3 characters\"              ; +0x5e, 0x5864da\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x60, 0x5864dc\nBLX             R3                                                     ; +0x64, 0x5864e0\nLDR.W           R0, [R4,#0x218]                                        ; +0x66, 0x5864e2\nLDR             R1, =(unk_BED8F0 - 0x5864EE)                           ; +0x6a, 0x5864e6\nLDR             R3, [R0]                                               ; +0x6c, 0x5864e8\nADD             R1, PC; unk_BED8F0                                     ; +0x6e, 0x5864ea\nLDR.W           R3, [R3,#0x218]                                        ; +0x70, 0x5864ec\nB               loc_586590                                             ; +0x74, 0x5864f0\nLDR.W           R0, [R0,#0x218]; jumptable 00586486 case 4             ; +0x76, 0x5864f2\nLDR             R1, =(aAlreadyLinkedT - 0x5864FE); \"Already linked to different account\" ; +0x7a, 0x5864f6\nLDR             R3, [R0]                                               ; +0x7c, 0x5864f8\nADD             R1, PC; \"Already linked to different account\"          ; +0x7e, 0x5864fa\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x80, 0x5864fc\nBLX             R3                                                     ; +0x84, 0x586500\nLDR.W           R0, [R4,#0x218]                                        ; +0x86, 0x586502\nLDR             R1, =(unk_BED8F0 - 0x58650E)                           ; +0x8a, 0x586506\nLDR             R3, [R0]                                               ; +0x8c, 0x586508\nADD             R1, PC; unk_BED8F0                                     ; +0x8e, 0x58650a\nLDR.W           R3, [R3,#0x218]                                        ; +0x90, 0x58650c\nB               loc_586590                                             ; +0x94, 0x586510\nLDR.W           R0, [R0,#0x218]; jumptable 00586486 case 1             ; +0x96, 0x586512\nLDR             R1, =(aAlreadyLinkedT_0 - 0x58651E); \"Already linked to different Steam accou\"... ; +0x9a, 0x586516\nLDR             R3, [R0]                                               ; +0x9c, 0x586518\nADD             R1, PC; \"Already linked to different Steam accou\"...   ; +0x9e, 0x58651a\nLDR.W           R3, [R3,#0x1D0]                                        ; +0xa0, 0x58651c\nBLX             R3                                                     ; +0xa4, 0x586520\nLDR.W           R0, [R4,#0x218]                                        ; +0xa6, 0x586522\nLDR             R1, =(unk_BED8F0 - 0x58652E)                           ; +0xaa, 0x586526\nLDR             R3, [R0]                                               ; +0xac, 0x586528\nADD             R1, PC; unk_BED8F0                                     ; +0xae, 0x58652a\nLDR.W           R3, [R3,#0x218]                                        ; +0xb0, 0x58652c\nB               loc_586590                                             ; +0xb4, 0x586530\nLDR.W           R0, [R0,#0x218]; jumptable 00586486 case 2             ; +0xb6, 0x586532\nLDR             R1, =(aAccountHasBeen - 0x586540); \"Account has been disabled\" ; +0xba, 0x586536\nLDR             R5, =(unk_BED8F0 - 0x586542)                           ; +0xbc, 0x586538\nLDR             R3, [R0]                                               ; +0xbe, 0x58653a\nADD             R1, PC; \"Account has been disabled\"                    ; +0xc0, 0x58653c\nADD             R5, PC; unk_BED8F0                                     ; +0xc2, 0x58653e\nLDR.W           R3, [R3,#0x1D0]                                        ; +0xc4, 0x586540\nBLX             R3                                                     ; +0xc8, 0x586544\nLDR.W           R0, [R4,#0x218]                                        ; +0xca, 0x586546\nMOV             R1, R5                                                 ; +0xce, 0x58654a\nLDR             R3, [R0]                                               ; +0xd0, 0x58654c\nLDR.W           R3, [R3,#0x218]                                        ; +0xd2, 0x58654e\nBLX             R3                                                     ; +0xd6, 0x586552\nLDR.W           R0, [R4,#0x21C]                                        ; +0xd8, 0x586554\nLDR             R1, =(aContactRobtopS - 0x586560); \"Contact RobTop Support for more info\" ; +0xdc, 0x586558\nLDR             R3, [R0]                                               ; +0xde, 0x58655a\nADD             R1, PC; \"Contact RobTop Support for more info\"         ; +0xe0, 0x58655c\nLDR.W           R3, [R3,#0x1D0]                                        ; +0xe2, 0x58655e\nBLX             R3                                                     ; +0xe6, 0x586562\nLDR.W           R0, [R4,#0x21C]                                        ; +0xe8, 0x586564\nMOV             R1, R5                                                 ; +0xec, 0x586568\nLDR             R3, [R0]                                               ; +0xee, 0x58656a\nLDR.W           R3, [R3,#0x218]                                        ; +0xf0, 0x58656c\nB               loc_586590                                             ; +0xf4, 0x586570\nLDR.W           R0, [R0,#0x218]; jumptable 00586486 default case, case 3 ; +0xf6, 0x586572\nLDR             R1, =(aLoginFailed - 0x58657E); \"Login failed\"         ; +0xfa, 0x586576\nLDR             R3, [R0]                                               ; +0xfc, 0x586578\nADD             R1, PC; \"Login failed\"                                 ; +0xfe, 0x58657a\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x100, 0x58657c\nBLX             R3                                                     ; +0x104, 0x586580\nLDR.W           R0, [R4,#0x218]                                        ; +0x106, 0x586582\nLDR             R1, =(unk_BED8F0 - 0x58658E)                           ; +0x10a, 0x586586\nLDR             R3, [R0]                                               ; +0x10c, 0x586588\nADD             R1, PC; unk_BED8F0                                     ; +0x10e, 0x58658a\nLDR.W           R3, [R3,#0x218]                                        ; +0x110, 0x58658c\nPOP.W           {R4-R6,LR}                                             ; +0x114, 0x586590\nBX              R3                                                     ; +0x118, 0x586594", "xrefs": ["AccountLoginLayer::loginAccountFailed @ 0x586756", "AccountLoginLayer::textInputClosed @ 0x58689e", "AccountLoginLayer::onSubmit @ 0x5869fc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}