{"type": "func", "start": 5373378080, "end": 5373378456, "name": "MenuLayer::updateUserProfileButton", "pseudocode": "// \n// MenuLayer::updateUserProfileButton from 0x140473e20 to 0x140473f98 (376 bytes)\n// \n// 4 xrefs:\n// > GJAccountManager::linkToAccount @ 0x1403097f1\n// > GJAccountManager::unlinkFromAccount @ 0x140309a9f\n// > MenuLayer::init @ 0x1404737d2\n// > <???> @ 0x140928214\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:32:40 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall MenuLayer::updateUserProfileButton(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rcx\n  unsigned __int8 v4; // bl\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  _QWORD *v9; // rdx\n  void *v10; // [rsp+20h] [rbp-38h]\n  _QWORD v11[4]; // [rsp+28h] [rbp-30h] BYREF\n\n  v2 = GJAccountManager::sharedState();\n  if ( *(_DWORD *)(v2 + 360) - *(_DWORD *)(v2 + 364) <= 0 )\n    goto LABEL_6;\n  v3 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v10 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v3 = qword_14090BFD0;\n  }\n  if ( GameManager::getGameVariable(v3, \"0219\") )\nLABEL_6:\n    v4 = 0;\n  else\n    v4 = 1;\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 464) + 336LL))(*(_QWORD *)(a1 + 464), v4);\n  v5 = *(_QWORD *)(a1 + 472);\n  if ( v5 )\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, v4);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 336LL))(*(_QWORD *)(a1 + 456), v4);\n  v6 = *(_QWORD *)(a1 + 448);\n  if ( v6 )\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, v4);\n  v7 = *(_QWORD *)(a1 + 480);\n  if ( v7 )\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 336LL))(v7, v4 ^ 1u);\n  if ( v4 )\n  {\n    v8 = GJAccountManager::sharedState();\n    sub_14003F4F0((__int64)v11, v8 + 328);\n    v9 = v11;\n    if ( v11[3] > 0xFu )\n      v9 = (_QWORD *)v11[0];\n    (**(void (__fastcall ***)(__int64, _QWORD *))(*(_QWORD *)(a1 + 456) + 360LL))(*(_QWORD *)(a1 + 456) + 360LL, v9);\n    sub_14003D310((__int64)v11);\n    cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 456), 70.0, 0.69999999, 0.0);\n  }\n}", "assembly": "; \n; MenuLayer::updateUserProfileButton from 0x140473e20 to 0x140473f98 (376 bytes)\n; \n; 4 xrefs:\n; > GJAccountManager::linkToAccount @ 0x1403097f1\n; > GJAccountManager::unlinkFromAccount @ 0x140309a9f\n; > MenuLayer::init @ 0x1404737d2\n; > <???> @ 0x140928214\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:32:40 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140473e20\npush    rdi                                                            ; +0x5, 0x140473e25\nsub     rsp, 50h                                                       ; +0x6, 0x140473e26\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x140473e2a\nxor     rax, rsp                                                       ; +0x11, 0x140473e31\nmov     [rsp+58h+var_10], rax                                          ; +0x14, 0x140473e34\nmov     rdi, rcx                                                       ; +0x19, 0x140473e39\ncall    GJAccountManager__sharedState                                  ; +0x1c, 0x140473e3c\nmov     edx, [rax+168h]                                                ; +0x21, 0x140473e41\nsub     edx, [rax+16Ch]                                                ; +0x27, 0x140473e47\ntest    edx, edx                                                       ; +0x2d, 0x140473e4d\njle     short loc_140473EA3                                            ; +0x2f, 0x140473e4f\nmov     rcx, cs:qword_14090BFD0                                        ; +0x31, 0x140473e51\ntest    rcx, rcx                                                       ; +0x38, 0x140473e58\njnz     short loc_140473E8F                                            ; +0x3b, 0x140473e5b\nmov     ecx, 6E8h; Size                                                ; +0x3d, 0x140473e5d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x42, 0x140473e62\nmov     [rsp+58h+var_38], rax                                          ; +0x47, 0x140473e67\nmov     rcx, rax                                                       ; +0x4c, 0x140473e6c\ncall    GameManager__GameManager                                       ; +0x4f, 0x140473e6f\nnop                                                                    ; +0x54, 0x140473e74\nmov     cs:qword_14090BFD0, rax                                        ; +0x55, 0x140473e75\nmov     rcx, [rax]                                                     ; +0x5c, 0x140473e7c\nmov     rdx, [rcx+48h]                                                 ; +0x5f, 0x140473e7f\nmov     rcx, rax                                                       ; +0x63, 0x140473e83\ncall    rdx                                                            ; +0x66, 0x140473e86\nmov     rcx, cs:qword_14090BFD0                                        ; +0x68, 0x140473e88\nlea     rdx, a0219; \"0219\"                                             ; +0x6f, 0x140473e8f\ncall    GameManager__getGameVariable                                   ; +0x76, 0x140473e96\ntest    al, al                                                         ; +0x7b, 0x140473e9b\njnz     short loc_140473EA3                                            ; +0x7d, 0x140473e9d\nmov     bl, 1                                                          ; +0x7f, 0x140473e9f\njmp     short loc_140473EA5                                            ; +0x81, 0x140473ea1\nxor     bl, bl                                                         ; +0x83, 0x140473ea3\nmov     rcx, [rdi+1D0h]                                                ; +0x85, 0x140473ea5\nmov     rax, [rcx]                                                     ; +0x8c, 0x140473eac\nmovzx   edx, bl                                                        ; +0x8f, 0x140473eaf\ncall    qword ptr [rax+150h]                                           ; +0x92, 0x140473eb2\nmov     rcx, [rdi+1D8h]                                                ; +0x98, 0x140473eb8\ntest    rcx, rcx                                                       ; +0x9f, 0x140473ebf\njz      short loc_140473ED0                                            ; +0xa2, 0x140473ec2\nmov     rax, [rcx]                                                     ; +0xa4, 0x140473ec4\nmovzx   edx, bl                                                        ; +0xa7, 0x140473ec7\ncall    qword ptr [rax+150h]                                           ; +0xaa, 0x140473eca\nmov     rcx, [rdi+1C8h]                                                ; +0xb0, 0x140473ed0\nmov     rax, [rcx]                                                     ; +0xb7, 0x140473ed7\nmovzx   edx, bl                                                        ; +0xba, 0x140473eda\ncall    qword ptr [rax+150h]                                           ; +0xbd, 0x140473edd\nmov     rcx, [rdi+1C0h]                                                ; +0xc3, 0x140473ee3\ntest    rcx, rcx                                                       ; +0xca, 0x140473eea\njz      short loc_140473EFB                                            ; +0xcd, 0x140473eed\nmov     rax, [rcx]                                                     ; +0xcf, 0x140473eef\nmovzx   edx, bl                                                        ; +0xd2, 0x140473ef2\ncall    qword ptr [rax+150h]                                           ; +0xd5, 0x140473ef5\nmov     rcx, [rdi+1E0h]                                                ; +0xdb, 0x140473efb\ntest    rcx, rcx                                                       ; +0xe2, 0x140473f02\njz      short loc_140473F16                                            ; +0xe5, 0x140473f05\nmovzx   edx, bl                                                        ; +0xe7, 0x140473f07\nxor     dl, 1                                                          ; +0xea, 0x140473f0a\nmov     rax, [rcx]                                                     ; +0xed, 0x140473f0d\ncall    qword ptr [rax+150h]                                           ; +0xf0, 0x140473f10\ntest    bl, bl                                                         ; +0xf6, 0x140473f16\njz      short loc_140473F80                                            ; +0xf8, 0x140473f18\ncall    GJAccountManager__sharedState                                  ; +0xfa, 0x140473f1a\nlea     rdx, [rax+148h]                                                ; +0xff, 0x140473f1f\nlea     rcx, [rsp+58h+var_30]                                          ; +0x106, 0x140473f26\ncall    sub_14003F4F0                                                  ; +0x10b, 0x140473f2b\nnop                                                                    ; +0x110, 0x140473f30\nlea     rdx, [rsp+58h+var_30]                                          ; +0x111, 0x140473f31\ncmp     [rsp+58h+var_18], 0Fh                                          ; +0x116, 0x140473f36\ncmova   rdx, [rsp+58h+var_30]                                          ; +0x11c, 0x140473f3c\nmov     rcx, [rdi+1C8h]                                                ; +0x122, 0x140473f42\nadd     rcx, 168h                                                      ; +0x129, 0x140473f49\nmov     rax, [rcx]                                                     ; +0x130, 0x140473f50\ncall    qword ptr [rax]                                                ; +0x133, 0x140473f53\nnop                                                                    ; +0x135, 0x140473f55\nlea     rcx, [rsp+58h+var_30]                                          ; +0x136, 0x140473f56\ncall    sub_14003D310                                                  ; +0x13b, 0x140473f5b\nxorps   xmm3, xmm3                                                     ; +0x140, 0x140473f60\nmovss   xmm2, cs:dword_140834FAC                                       ; +0x143, 0x140473f63\nmovss   xmm1, cs:dword_14083571C                                       ; +0x14b, 0x140473f6b\nmov     rcx, [rdi+1C8h]                                                ; +0x153, 0x140473f73\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x15a, 0x140473f7a\nmov     rcx, [rsp+58h+var_10]                                          ; +0x160, 0x140473f80\nxor     rcx, rsp; StackCookie                                          ; +0x165, 0x140473f85\ncall    __security_check_cookie                                        ; +0x168, 0x140473f88\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x16d, 0x140473f8d\nadd     rsp, 50h                                                       ; +0x172, 0x140473f92\npop     rdi                                                            ; +0x176, 0x140473f96\nretn                                                                   ; +0x177, 0x140473f97", "xrefs": ["GJAccountManager::linkToAccount @ 0x1403097f1", "GJAccountManager::unlinkFromAccount @ 0x140309a9f", "MenuLayer::init @ 0x1404737d2", "<???> @ 0x140928214"], "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"}