{"type": "func", "start": 4301619920, "end": 4301620103, "name": "FriendsProfilePage::onClose", "pseudocode": "// \n// FriendsProfilePage::onClose from 0x1006582d0 to 0x100658387 (183 bytes)\n// \n// 3 xrefs:\n// > FriendsProfilePage::keyBackClicked @ 0x100658a85\n// > sub_100658A90 @ 0x100658a9c\n// > FriendsProfilePage::init @ 0x100657ee7\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 FriendsProfilePage::onClose(FriendsProfilePage *a1, cocos2d::CCObject *m_listLayer)\n{\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  cocos2d::CCDirector *v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n  _BYTE *v6; // rax\n  GJAccountManager *v7; // rax\n\n  if ( a1->m_listLayer )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *, cocos2d::CCObject *))v2->getTouchDispatcher)(\n                                         v2,\n                                         m_listLayer);\n    m_listLayer = a1->m_listLayer;\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, m_listLayer);\n  }\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *, cocos2d::CCObject *))v4->getTouchDispatcher)(\n                                       v4,\n                                       m_listLayer);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1);\n  if ( a1->m_type )\n  {\n    v6 = FriendsProfilePage::create((UserListType)0);\n  }\n  else\n  {\n    v7 = GJAccountManager::sharedState();\n    v6 = ProfilePage::create(v7->m_accountID - v7->m_unkInt1, 1);\n    v6[588] = 1;\n  }\n  (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v6 + 1288LL))(v6);\n  ((void (__fastcall *)(FriendsProfilePage *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(FriendsProfilePage *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; FriendsProfilePage::onClose from 0x1006582d0 to 0x100658387 (183 bytes)\n; \n; 3 xrefs:\n; > FriendsProfilePage::keyBackClicked @ 0x100658a85\n; > sub_100658A90 @ 0x100658a9c\n; > FriendsProfilePage::init @ 0x100657ee7\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, 0x1006582d0\nmov     rbp, rsp                                                       ; +0x1, 0x1006582d1\npush    rbx                                                            ; +0x4, 0x1006582d4\npush    rax                                                            ; +0x5, 0x1006582d5\nmov     rbx, rdi                                                       ; +0x6, 0x1006582d6\ncmp     qword ptr [rdi+2B0h], 0                                        ; +0x9, 0x1006582d9\njz      short loc_100658303                                            ; +0x11, 0x1006582e1\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x13, 0x1006582e3\nmov     rcx, [rax]                                                     ; +0x18, 0x1006582e8\nmov     rdi, rax                                                       ; +0x1b, 0x1006582eb\ncall    qword ptr [rcx+0A0h]                                           ; +0x1e, 0x1006582ee\nmov     rsi, [rbx+2B0h]                                                ; +0x24, 0x1006582f4\nmov     rdi, rax                                                       ; +0x2b, 0x1006582fb\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x2e, 0x1006582fe\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x33, 0x100658303\nmov     rcx, [rax]                                                     ; +0x38, 0x100658308\nmov     rdi, rax                                                       ; +0x3b, 0x10065830b\ncall    qword ptr [rcx+0A0h]                                           ; +0x3e, 0x10065830e\nmov     rdi, rax                                                       ; +0x44, 0x100658314\nmov     rsi, rbx                                                       ; +0x47, 0x100658317\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x4a, 0x10065831a\ncmp     dword ptr [rbx+298h], 0                                        ; +0x4f, 0x10065831f\njz      short loc_100658331                                            ; +0x56, 0x100658326\nxor     edi, edi                                                       ; +0x58, 0x100658328\ncall    FriendsProfilePage__create                                     ; +0x5a, 0x10065832a\njmp     short loc_100658353                                            ; +0x5f, 0x10065832f\ncall    GJAccountManager__sharedState                                  ; +0x61, 0x100658331\nmov     edi, [rax+160h]                                                ; +0x66, 0x100658336\nsub     edi, [rax+164h]                                                ; +0x6c, 0x10065833c\nmov     esi, 1                                                         ; +0x72, 0x100658342\ncall    ProfilePage__create                                            ; +0x77, 0x100658347\nmov     byte ptr [rax+24Ch], 1                                         ; +0x7c, 0x10065834c\nmov     rcx, [rax]                                                     ; +0x83, 0x100658353\nmov     rdi, rax                                                       ; +0x86, 0x100658356\ncall    qword ptr [rcx+508h]                                           ; +0x89, 0x100658359\nmov     rax, [rbx]                                                     ; +0x8f, 0x10065835f\nmov     rdi, rbx                                                       ; +0x92, 0x100658362\nxor     esi, esi                                                       ; +0x95, 0x100658365\ncall    qword ptr [rax+420h]                                           ; +0x97, 0x100658367\nmov     rax, [rbx]                                                     ; +0x9d, 0x10065836d\nmov     rax, [rax+200h]                                                ; +0xa0, 0x100658370\nmov     rdi, rbx                                                       ; +0xa7, 0x100658377\nmov     esi, 1                                                         ; +0xaa, 0x10065837a\nadd     rsp, 8                                                         ; +0xaf, 0x10065837f\npop     rbx                                                            ; +0xb3, 0x100658383\npop     rbp                                                            ; +0xb4, 0x100658384\njmp     rax                                                            ; +0xb5, 0x100658385", "xrefs": ["FriendsProfilePage::keyBackClicked @ 0x100658a85", "sub_100658A90 @ 0x100658a9c", "FriendsProfilePage::init @ 0x100657ee7"], "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"}