{"type": "func", "start": 4295803936, "end": 4295804051, "name": "AccountLayer::onLogin", "pseudocode": "// \n// AccountLayer::onLogin from 0x1000cc420 to 0x1000cc493 (115 bytes)\n// \n// 1 xrefs:\n// > AccountLayer::customSetup @ 0x1000cbf29\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall AccountLayer::onLogin(AccountLayer *a1, cocos2d::CCObject *longStorage)\n{\n  double v2; // xmm0_8\n  GJAccountManager *v3; // rax\n  std::string *p_m_username; // rax\n  __int64 v5; // rbx\n  __int128 v6; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  v3 = GJAccountManager::sharedState();\n  if ( (v3->m_username.m_data.m_short.sizex2 & 1) != 0 )\n  {\n    longStorage = (cocos2d::CCObject *)v3->m_username.m_data.m_long.longStorage;\n    sub_100006B70(&v6, longStorage, v3->m_username.m_data.m_long.size, v2);\n  }\n  else\n  {\n    p_m_username = &v3->m_username;\n    __p = p_m_username->m_data.m_long.longStorage;\n    v6 = *(_OWORD *)&p_m_username->m_data.m_short.sizex2;\n  }\n  v5 = AccountLoginLayer::create(&v6, longStorage);\n  if ( (v6 & 1) != 0 )\n    operator delete(__p);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1288LL))(v5);\n}", "assembly": "; \n; AccountLayer::onLogin from 0x1000cc420 to 0x1000cc493 (115 bytes)\n; \n; 1 xrefs:\n; > AccountLayer::customSetup @ 0x1000cbf29\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1000cc420\nmov     rbp, rsp                                                       ; +0x1, 0x1000cc421\npush    rbx                                                            ; +0x4, 0x1000cc424\nsub     rsp, 18h                                                       ; +0x5, 0x1000cc425\ncall    GJAccountManager__sharedState                                  ; +0x9, 0x1000cc429\ntest    byte ptr [rax+148h], 1                                         ; +0xe, 0x1000cc42e\njnz     short loc_1000CC44E                                            ; +0x15, 0x1000cc435\nadd     rax, 148h                                                      ; +0x17, 0x1000cc437\nmov     rcx, [rax+10h]                                                 ; +0x1d, 0x1000cc43d\nmov     [rbp+__p], rcx                                                 ; +0x21, 0x1000cc441\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x25, 0x1000cc445\nmovaps  [rbp+var_20], xmm0                                             ; +0x28, 0x1000cc448\njmp     short loc_1000CC465                                            ; +0x2c, 0x1000cc44c\nmov     rdx, [rax+150h]                                                ; +0x2e, 0x1000cc44e\nmov     rsi, [rax+158h]                                                ; +0x35, 0x1000cc455\nlea     rdi, [rbp+var_20]                                              ; +0x3c, 0x1000cc45c\ncall    sub_100006B70                                                  ; +0x40, 0x1000cc460\nlea     rdi, [rbp+var_20]                                              ; +0x45, 0x1000cc465\ncall    AccountLoginLayer__create                                      ; +0x49, 0x1000cc469\nmov     rbx, rax                                                       ; +0x4e, 0x1000cc46e\ntest    byte ptr [rbp+var_20], 1                                       ; +0x51, 0x1000cc471\njz      short loc_1000CC480                                            ; +0x55, 0x1000cc475\nmov     rdi, [rbp+__p]; __p                                            ; +0x57, 0x1000cc477\ncall    __ZdlPv; operator delete(void *)                               ; +0x5b, 0x1000cc47b\nmov     rax, [rbx]                                                     ; +0x60, 0x1000cc480\nmov     rdi, rbx                                                       ; +0x63, 0x1000cc483\ncall    qword ptr [rax+508h]                                           ; +0x66, 0x1000cc486\nadd     rsp, 18h                                                       ; +0x6c, 0x1000cc48c\npop     rbx                                                            ; +0x70, 0x1000cc490\npop     rbp                                                            ; +0x71, 0x1000cc491\nretn                                                                   ; +0x72, 0x1000cc492", "xrefs": ["AccountLayer::customSetup @ 0x1000cbf29"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}