{"type": "func", "start": 5369320496, "end": 5369321184, "name": "AccountHelpLayer::updatePage", "pseudocode": "// \n// AccountHelpLayer::updatePage from 0x140095430 to 0x1400956e0 (688 bytes)\n// \n// 3 xrefs:\n// > AccountHelpLayer::customSetup @ 0x1400950bd\n// > AccountHelpLayer::accountStatusChanged @ 0x140095427\n// > <???> @ 0x140912c50\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:02 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall AccountHelpLayer::updatePage(__int64 a1)\n{\n  char v2; // bl\n  __int64 v3; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  bool v6; // di\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  const char *v9; // rdx\n  __int64 v10; // rdi\n  void (__fastcall **v11)(__int64, const char *); // rbx\n  cocos2d::CCString *v12; // rax\n  const char *CString; // rax\n  __int64 v14; // rax\n  const char *v15; // rdx\n  __int64 v16; // rdi\n  void (__fastcall **v17)(__int64, const char *); // rbx\n  cocos2d::CCString *v18; // rax\n  const char *v19; // rax\n  __int64 v20; // rcx\n  __int64 v21; // rax\n  __int64 v22; // rdx\n  int v24; // [rsp+20h] [rbp-40h] BYREF\n  __int128 v25; // [rsp+30h] [rbp-30h] BYREF\n  __int64 v26; // [rsp+40h] [rbp-20h]\n  unsigned __int64 v27; // [rsp+48h] [rbp-18h]\n\n  v2 = 0;\n  v24 = 0;\n  v3 = GJAccountManager::sharedState(a1);\n  v6 = false;\n  if ( *(_DWORD *)(v3 + 360) != *(_DWORD *)(v3 + 364) )\n  {\n    v5 = GJAccountManager::sharedState(v4);\n    sub_14003F4F0((__int64)&v25, v5 + 376);\n    v2 = 3;\n    if ( v26 )\n      v6 = true;\n  }\n  if ( (v2 & 1) != 0 )\n    sub_14003D310((__int64)&v25);\n  LOWORD(v24) = -1;\n  BYTE2(v24) = -1;\n  TextArea::colorAllCharactersTo(*(_QWORD *)(a1 + 632), (__int64)&v24);\n  v8 = GJAccountManager::sharedState(v7);\n  if ( v6 )\n  {\n    sub_14003F4F0((__int64)&v25, v8 + 328);\n    v9 = (const char *)&v25;\n    if ( v27 > 0xF )\n      v9 = (const char *)v25;\n    v10 = *(_QWORD *)(a1 + 624);\n    v11 = *(void (__fastcall ***)(__int64, const char *))(v10 + 360);\n    v12 = cocos2d::CCString::createWithFormat(\"Linked to account: %s\", v9);\n    CString = cocos2d::CCString::getCString(v12);\n    (*v11)(v10 + 360, CString);\n    sub_14003D310((__int64)&v25);\n    v25 = 0;\n    v26 = 0;\n    v27 = 15;\n    LOBYTE(v25) = 0;\n  }\n  else if ( *(_DWORD *)(v8 + 360) == *(_DWORD *)(v8 + 364) )\n  {\n    (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 624) + 360LL))(\n      *(_QWORD *)(a1 + 624) + 360LL,\n      \"Not logged in\");\n    v25 = 0;\n    v26 = 0;\n    v27 = 0;\n    *(_QWORD *)&v25 = sub_14003D460(0x30u);\n    v26 = 46;\n    v27 = 47;\n    strcpy((char *)v25, \"Create an account to backup\\nand sync your data\");\n  }\n  else\n  {\n    v14 = GJAccountManager::sharedState(v8);\n    sub_14003F4F0((__int64)&v25, v14 + 328);\n    v15 = (const char *)&v25;\n    if ( v27 > 0xF )\n      v15 = (const char *)v25;\n    v16 = *(_QWORD *)(a1 + 624);\n    v17 = *(void (__fastcall ***)(__int64, const char *))(v16 + 360);\n    v18 = cocos2d::CCString::createWithFormat(\"Linked to account: %s\", v15);\n    v19 = cocos2d::CCString::getCString(v18);\n    (*v17)(v16 + 360, v19);\n    sub_14003D310((__int64)&v25);\n    v26 = 14;\n    v27 = 15;\n    strcpy((char *)&v25, \"Login required\");\n    HIBYTE(v25) = 0;\n  }\n  TextArea::setString(*(__int64 **)(a1 + 632), (__int64)&v25);\n  v21 = GJAccountManager::sharedState(v20);\n  v22 = *(unsigned int *)(v21 + 364);\n  LOBYTE(v22) = *(_DWORD *)(v21 + 360) != (_DWORD)v22;\n  return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 648) + 336LL))(*(_QWORD *)(a1 + 648), v22);\n}", "assembly": "; \n; AccountHelpLayer::updatePage from 0x140095430 to 0x1400956e0 (688 bytes)\n; \n; 3 xrefs:\n; > AccountHelpLayer::customSetup @ 0x1400950bd\n; > AccountHelpLayer::accountStatusChanged @ 0x140095427\n; > <???> @ 0x140912c50\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:02 +0000\n; \nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x140095430\nmov     [rsp-8+arg_10], rsi                                            ; +0x5, 0x140095435\nmov     [rsp-8+arg_18], rdi                                            ; +0xa, 0x14009543a\npush    rbp                                                            ; +0xf, 0x14009543f\nmov     rbp, rsp                                                       ; +0x10, 0x140095440\nsub     rsp, 60h                                                       ; +0x13, 0x140095443\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x140095447\nxor     rax, rsp                                                       ; +0x1e, 0x14009544e\nmov     [rbp+var_10], rax                                              ; +0x21, 0x140095451\nmov     rsi, rcx                                                       ; +0x25, 0x140095455\nxor     ebx, ebx                                                       ; +0x28, 0x140095458\nmov     [rbp+var_40], ebx                                              ; +0x2a, 0x14009545a\ncall    GJAccountManager__sharedState                                  ; +0x2d, 0x14009545d\nmov     edx, [rax+16Ch]                                                ; +0x32, 0x140095462\ncmp     [rax+168h], edx                                                ; +0x38, 0x140095468\njz      short loc_140095496                                            ; +0x3e, 0x14009546e\ncall    GJAccountManager__sharedState                                  ; +0x40, 0x140095470\nlea     rdx, [rax+178h]                                                ; +0x45, 0x140095475\nlea     rcx, [rbp+var_30]                                              ; +0x4c, 0x14009547c\ncall    sub_14003F4F0                                                  ; +0x50, 0x140095480\nmov     ebx, 3                                                         ; +0x55, 0x140095485\ncmp     [rbp+var_20], 0                                                ; +0x5a, 0x14009548a\njbe     short loc_140095496                                            ; +0x5f, 0x14009548f\nmov     dil, 1                                                         ; +0x61, 0x140095491\njmp     short loc_140095499                                            ; +0x64, 0x140095494\nxor     dil, dil                                                       ; +0x66, 0x140095496\ntest    bl, 1                                                          ; +0x69, 0x140095499\njz      short loc_1400954A7                                            ; +0x6c, 0x14009549c\nlea     rcx, [rbp+var_30]                                              ; +0x6e, 0x14009549e\ncall    sub_14003D310                                                  ; +0x72, 0x1400954a2\nmovzx   eax, cs:word_140702D08                                         ; +0x77, 0x1400954a7\nmov     word ptr [rbp+var_40], ax                                      ; +0x7e, 0x1400954ae\nmovzx   eax, cs:byte_140702D0A                                         ; +0x82, 0x1400954b2\nmov     byte ptr [rbp+var_40+2], al                                    ; +0x89, 0x1400954b9\nlea     rdx, [rbp+var_40]                                              ; +0x8c, 0x1400954bc\nmov     rcx, [rsi+278h]                                                ; +0x90, 0x1400954c0\ncall    TextArea__colorAllCharactersTo                                 ; +0x97, 0x1400954c7\ncall    GJAccountManager__sharedState                                  ; +0x9c, 0x1400954cc\ntest    dil, dil                                                       ; +0xa1, 0x1400954d1\njz      short loc_14009554F                                            ; +0xa4, 0x1400954d4\nlea     rdx, [rax+148h]                                                ; +0xa6, 0x1400954d6\nlea     rcx, [rbp+var_30]                                              ; +0xad, 0x1400954dd\ncall    sub_14003F4F0                                                  ; +0xb1, 0x1400954e1\nnop                                                                    ; +0xb6, 0x1400954e6\nlea     rdx, [rbp+var_30]                                              ; +0xb7, 0x1400954e7\ncmp     [rbp+var_18], 0Fh                                              ; +0xbb, 0x1400954eb\ncmova   rdx, qword ptr [rbp+var_30]                                    ; +0xc0, 0x1400954f0\nmov     rdi, [rsi+270h]                                                ; +0xc5, 0x1400954f5\nmov     rbx, [rdi+168h]                                                ; +0xcc, 0x1400954fc\nlea     rcx, aLinkedToAccoun; \"Linked to account: %s\"                  ; +0xd3, 0x140095503\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xda, 0x14009550a\nmov     rcx, rax                                                       ; +0xe0, 0x140095510\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xe3, 0x140095513\nmov     rdx, rax                                                       ; +0xe9, 0x140095519\nlea     rcx, [rdi+168h]                                                ; +0xec, 0x14009551c\ncall    qword ptr [rbx]                                                ; +0xf3, 0x140095523\nnop                                                                    ; +0xf5, 0x140095525\nlea     rcx, [rbp+var_30]                                              ; +0xf6, 0x140095526\ncall    sub_14003D310                                                  ; +0xfa, 0x14009552a\nxorps   xmm0, xmm0                                                     ; +0xff, 0x14009552f\nmovups  [rbp+var_30], xmm0                                             ; +0x102, 0x140095532\nmov     [rbp+var_20], 0                                                ; +0x106, 0x140095536\nmov     [rbp+var_18], 0Fh                                              ; +0x10e, 0x14009553e\nmov     byte ptr [rbp+var_30], 0                                       ; +0x116, 0x140095546\njmp     loc_14009568A                                                  ; +0x11a, 0x14009554a\nmov     rcx, rax                                                       ; +0x11f, 0x14009554f\nmov     eax, [rax+168h]                                                ; +0x122, 0x140095552\ncmp     eax, [rcx+16Ch]                                                ; +0x128, 0x140095558\njz      loc_1400955FE                                                  ; +0x12e, 0x14009555e\ncall    GJAccountManager__sharedState                                  ; +0x134, 0x140095564\nlea     rdx, [rax+148h]                                                ; +0x139, 0x140095569\nlea     rcx, [rbp+var_30]                                              ; +0x140, 0x140095570\ncall    sub_14003F4F0                                                  ; +0x144, 0x140095574\nnop                                                                    ; +0x149, 0x140095579\nlea     rdx, [rbp+var_30]                                              ; +0x14a, 0x14009557a\ncmp     [rbp+var_18], 0Fh                                              ; +0x14e, 0x14009557e\ncmova   rdx, qword ptr [rbp+var_30]                                    ; +0x153, 0x140095583\nmov     rdi, [rsi+270h]                                                ; +0x158, 0x140095588\nmov     rbx, [rdi+168h]                                                ; +0x15f, 0x14009558f\nlea     rcx, aLinkedToAccoun; \"Linked to account: %s\"                  ; +0x166, 0x140095596\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x16d, 0x14009559d\nmov     rcx, rax                                                       ; +0x173, 0x1400955a3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x176, 0x1400955a6\nmov     rdx, rax                                                       ; +0x17c, 0x1400955ac\nlea     rcx, [rdi+168h]                                                ; +0x17f, 0x1400955af\ncall    qword ptr [rbx]                                                ; +0x186, 0x1400955b6\nnop                                                                    ; +0x188, 0x1400955b8\nlea     rcx, [rbp+var_30]                                              ; +0x189, 0x1400955b9\ncall    sub_14003D310                                                  ; +0x18d, 0x1400955bd\nmov     word ptr [rbp+var_30+0Eh], 0                                   ; +0x192, 0x1400955c2\nmov     [rbp+var_20], 0Eh                                              ; +0x198, 0x1400955c8\nmov     [rbp+var_18], 0Fh                                              ; +0x1a0, 0x1400955d0\nmovsd   xmm0, cs:qword_140717E18                                       ; +0x1a8, 0x1400955d8\nmovsd   qword ptr [rbp+var_30], xmm0                                   ; +0x1b0, 0x1400955e0\nmov     eax, cs:dword_140717E20                                        ; +0x1b5, 0x1400955e5\nmov     dword ptr [rbp+var_30+8], eax                                  ; +0x1bb, 0x1400955eb\nmovzx   eax, cs:word_140717E24                                         ; +0x1be, 0x1400955ee\nmov     word ptr [rbp+var_30+0Ch], ax                                  ; +0x1c5, 0x1400955f5\njmp     loc_14009568A                                                  ; +0x1c9, 0x1400955f9\nmov     rcx, [rsi+270h]                                                ; +0x1ce, 0x1400955fe\nadd     rcx, 168h                                                      ; +0x1d5, 0x140095605\nmov     rax, [rcx]                                                     ; +0x1dc, 0x14009560c\nlea     rdx, aNotLoggedIn; \"Not logged in\"                             ; +0x1df, 0x14009560f\ncall    qword ptr [rax]                                                ; +0x1e6, 0x140095616\nxorps   xmm0, xmm0                                                     ; +0x1e8, 0x140095618\nmovups  [rbp+var_30], xmm0                                             ; +0x1eb, 0x14009561b\nmov     [rbp+var_20], 0                                                ; +0x1ef, 0x14009561f\nmov     [rbp+var_18], 0                                                ; +0x1f7, 0x140095627\nmov     ecx, 30h ; '0'                                                 ; +0x1ff, 0x14009562f\ncall    sub_14003D460                                                  ; +0x204, 0x140095634\nmov     rdx, rax                                                       ; +0x209, 0x140095639\nmov     qword ptr [rbp+var_30], rax                                    ; +0x20c, 0x14009563c\nmov     [rbp+var_20], 2Eh ; '.'                                        ; +0x210, 0x140095640\nmov     [rbp+var_18], 2Fh ; '/'                                        ; +0x218, 0x140095648\nmovups  xmm0, cs:xmmword_140718148                                     ; +0x220, 0x140095650\nmovups  xmmword ptr [rax], xmm0                                        ; +0x227, 0x140095657\nmovups  xmm1, cs:xmmword_140718158                                     ; +0x22a, 0x14009565a\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x231, 0x140095661\nmovsd   xmm0, cs:qword_140718168                                       ; +0x235, 0x140095665\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0x23d, 0x14009566d\nmov     ecx, cs:dword_140718170                                        ; +0x242, 0x140095672\nmov     [rax+28h], ecx                                                 ; +0x248, 0x140095678\nmovzx   eax, cs:word_140718174                                         ; +0x24b, 0x14009567b\nmov     [rdx+2Ch], ax                                                  ; +0x252, 0x140095682\nmov     byte ptr [rdx+2Eh], 0                                          ; +0x256, 0x140095686\nlea     rdx, [rbp+var_30]                                              ; +0x25a, 0x14009568a\nmov     rcx, [rsi+278h]                                                ; +0x25e, 0x14009568e\ncall    TextArea__setString                                            ; +0x265, 0x140095695\ncall    GJAccountManager__sharedState                                  ; +0x26a, 0x14009569a\nmov     rcx, [rsi+288h]                                                ; +0x26f, 0x14009569f\nmov     edx, [rax+16Ch]                                                ; +0x276, 0x1400956a6\ncmp     [rax+168h], edx                                                ; +0x27c, 0x1400956ac\nsetnz   dl                                                             ; +0x282, 0x1400956b2\nmov     rax, [rcx]                                                     ; +0x285, 0x1400956b5\ncall    qword ptr [rax+150h]                                           ; +0x288, 0x1400956b8\nmov     rcx, [rbp+var_10]                                              ; +0x28e, 0x1400956be\nxor     rcx, rsp; StackCookie                                          ; +0x292, 0x1400956c2\ncall    __security_check_cookie                                        ; +0x295, 0x1400956c5\nlea     r11, [rsp+60h+var_s0]                                          ; +0x29a, 0x1400956ca\nmov     rbx, [r11+18h]                                                 ; +0x29f, 0x1400956cf\nmov     rsi, [r11+20h]                                                 ; +0x2a3, 0x1400956d3\nmov     rdi, [r11+28h]                                                 ; +0x2a7, 0x1400956d7\nmov     rsp, r11                                                       ; +0x2ab, 0x1400956db\npop     rbp                                                            ; +0x2ae, 0x1400956de\nretn                                                                   ; +0x2af, 0x1400956df", "xrefs": ["AccountHelpLayer::customSetup @ 0x1400950bd", "AccountHelpLayer::accountStatusChanged @ 0x140095427", "<???> @ 0x140912c50"], "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"}