{"type": "func", "start": 4295833984, "end": 4295834148, "name": "GJAccountManager::unlinkFromAccount", "pseudocode": "// \n// GJAccountManager::unlinkFromAccount from 0x1000d3980 to 0x1000d3a24 (164 bytes)\n// \n// 3 xrefs:\n// > AccountHelpLayer::doUnlink @ 0x1000cef11\n// > AccountHelpLayer::FLAlert_Clicked @ 0x1000cefa2\n// > sub_1000CEFF0 @ 0x1000cf029\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 GJAccountManager::unlinkFromAccount(GJAccountManager *a1)\n{\n  GameManager *v1; // rax\n  LocalLevelManager *v2; // rax\n  GJAccountDelegate *m_accountDelegate; // rdi\n  GameManager *v4; // rax\n\n  std::string::assign((std::string *)&a1->m_GJP2, \"\");\n  std::string::assign((std::string *)&a1->m_password, \"\");\n  std::string::assign((std::string *)&a1->m_username, \"\");\n  a1->m_accountID = 0;\n  GameManager::sharedState()->m_shouldLoadUnlockValueKeeper = 1;\n  v1 = GameManager::sharedState();\n  ((void (__fastcall *)(GameManager *))v1->firstLoad)(v1);\n  GameManager::sharedState()->m_shouldLoadUnlockValueKeeper = 0;\n  v2 = LocalLevelManager::sharedState();\n  ((void (__fastcall *)(LocalLevelManager *))v2->firstLoad)(v2);\n  m_accountDelegate = a1->m_accountDelegate;\n  if ( m_accountDelegate )\n    ((void (__fastcall *)(GJAccountDelegate *))m_accountDelegate->accountStatusChanged)(m_accountDelegate);\n  v4 = GameManager::sharedState();\n  GameManager::accountStatusChanged(v4);\n}", "assembly": "; \n; GJAccountManager::unlinkFromAccount from 0x1000d3980 to 0x1000d3a24 (164 bytes)\n; \n; 3 xrefs:\n; > AccountHelpLayer::doUnlink @ 0x1000cef11\n; > AccountHelpLayer::FLAlert_Clicked @ 0x1000cefa2\n; > sub_1000CEFF0 @ 0x1000cf029\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, 0x1000d3980\nmov     rbp, rsp                                                       ; +0x1, 0x1000d3981\npush    r14                                                            ; +0x4, 0x1000d3984\npush    rbx                                                            ; +0x6, 0x1000d3986\nmov     rbx, rdi                                                       ; +0x7, 0x1000d3987\nadd     rdi, 170h; this                                                ; +0xa, 0x1000d398a\nlea     r14, __src; \"\"                                                 ; +0x11, 0x1000d3991\nmov     rsi, r14; __s                                                  ; +0x18, 0x1000d3998\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x1b, 0x1000d399b\nlea     rdi, [rbx+1C0h]; this                                          ; +0x20, 0x1000d39a0\nmov     rsi, r14; __s                                                  ; +0x27, 0x1000d39a7\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x2a, 0x1000d39aa\nlea     rdi, [rbx+148h]; this                                          ; +0x2f, 0x1000d39af\nmov     rsi, r14; __s                                                  ; +0x36, 0x1000d39b6\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x39, 0x1000d39b9\nmov     dword ptr [rbx+160h], 0                                        ; +0x3e, 0x1000d39be\ncall    GameManager__sharedState                                       ; +0x48, 0x1000d39c8\nmov     byte ptr [rax+3CEh], 1                                         ; +0x4d, 0x1000d39cd\ncall    GameManager__sharedState                                       ; +0x54, 0x1000d39d4\nmov     rcx, [rax]                                                     ; +0x59, 0x1000d39d9\nmov     rdi, rax                                                       ; +0x5c, 0x1000d39dc\ncall    qword ptr [rcx+388h]                                           ; +0x5f, 0x1000d39df\ncall    GameManager__sharedState                                       ; +0x65, 0x1000d39e5\nmov     byte ptr [rax+3CEh], 0                                         ; +0x6a, 0x1000d39ea\ncall    LocalLevelManager__sharedState                                 ; +0x71, 0x1000d39f1\nmov     rcx, [rax]                                                     ; +0x76, 0x1000d39f6\nmov     rdi, rax                                                       ; +0x79, 0x1000d39f9\ncall    qword ptr [rcx+388h]                                           ; +0x7c, 0x1000d39fc\nmov     rdi, [rbx+198h]                                                ; +0x82, 0x1000d3a02\ntest    rdi, rdi                                                       ; +0x89, 0x1000d3a09\njz      short loc_1000D3A13                                            ; +0x8c, 0x1000d3a0c\nmov     rax, [rdi]                                                     ; +0x8e, 0x1000d3a0e\ncall    qword ptr [rax]                                                ; +0x91, 0x1000d3a11\ncall    GameManager__sharedState                                       ; +0x93, 0x1000d3a13\nmov     rdi, rax                                                       ; +0x98, 0x1000d3a18\npop     rbx                                                            ; +0x9b, 0x1000d3a1b\npop     r14                                                            ; +0x9c, 0x1000d3a1c\npop     rbp                                                            ; +0x9e, 0x1000d3a1e\njmp     GameManager__accountStatusChanged                              ; +0x9f, 0x1000d3a1f", "xrefs": ["AccountHelpLayer::doUnlink @ 0x1000cef11", "AccountHelpLayer::FLAlert_Clicked @ 0x1000cefa2", "sub_1000CEFF0 @ 0x1000cf029"], "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"}