{"type": "func", "start": 5370900576, "end": 5370900742, "name": "FriendsProfilePage::onClose", "pseudocode": "// \n// FriendsProfilePage::onClose from 0x140217060 to 0x140217106 (166 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140757000\n// > <???> @ 0x14091b7c4\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:28:21 +0000\n// \n\n__int64 __fastcall FriendsProfilePage::onClose(struct cocos2d::CCObject *a1)\n{\n  __int64 v2; // rax\n  struct cocos2d::CCObject *v3; // rbx\n  cocos2d::CCTouchDispatcher *v4; // rax\n  __int64 v5; // rcx\n  __int64 v6; // rax\n  cocos2d::CCTouchDispatcher *v7; // rax\n  __int64 v8; // rcx\n  __int64 v9; // rax\n  __int64 v10; // rdx\n  __int64 v11; // rax\n  __int64 v12; // rcx\n  __int64 v13; // rdx\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  v3 = *((struct cocos2d::CCObject **)a1 + 104);\n  v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, v3);\n  v6 = cocos2d::CCDirector::sharedDirector(v5);\n  v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, a1);\n  v9 = GJAccountManager::sharedState(v8);\n  LOBYTE(v10) = 1;\n  v11 = ProfilePage::create((unsigned int)(*(_DWORD *)(v9 + 360) - *(_DWORD *)(v9 + 364)), v10);\n  v12 = *(_QWORD *)v11;\n  *(_BYTE *)(v11 + 596) = 1;\n  (*(void (__fastcall **)(__int64))(v12 + 1064))(v11);\n  (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  LOBYTE(v13) = 1;\n  return (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v13);\n}", "assembly": "; \n; FriendsProfilePage::onClose from 0x140217060 to 0x140217106 (166 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140757000\n; > <???> @ 0x14091b7c4\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:28:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140217060\npush    rdi                                                            ; +0x5, 0x140217065\nsub     rsp, 20h                                                       ; +0x6, 0x140217066\nmov     rdi, rcx                                                       ; +0xa, 0x14021706a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x14021706d\nmov     rbx, [rdi+340h]                                                ; +0x13, 0x140217073\nmov     rcx, rax                                                       ; +0x1a, 0x14021707a\nmov     r8, [rax]                                                      ; +0x1d, 0x14021707d\ncall    qword ptr [r8+90h]                                             ; +0x20, 0x140217080\nmov     rcx, rax                                                       ; +0x27, 0x140217087\nmov     rdx, rbx                                                       ; +0x2a, 0x14021708a\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x2d, 0x14021708d\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x33, 0x140217093\nmov     rcx, rax                                                       ; +0x39, 0x140217099\nmov     rdx, [rax]                                                     ; +0x3c, 0x14021709c\ncall    qword ptr [rdx+90h]                                            ; +0x3f, 0x14021709f\nmov     rcx, rax                                                       ; +0x45, 0x1402170a5\nmov     rdx, rdi                                                       ; +0x48, 0x1402170a8\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x4b, 0x1402170ab\ncall    GJAccountManager__sharedState                                  ; +0x51, 0x1402170b1\nmov     dl, 1                                                          ; +0x56, 0x1402170b6\nmov     ecx, [rax+168h]                                                ; +0x58, 0x1402170b8\nsub     ecx, [rax+16Ch]                                                ; +0x5e, 0x1402170be\ncall    ProfilePage__create                                            ; +0x64, 0x1402170c4\nmov     rcx, [rax]                                                     ; +0x69, 0x1402170c9\nmov     byte ptr [rax+254h], 1                                         ; +0x6c, 0x1402170cc\nmov     rdx, [rcx+428h]                                                ; +0x73, 0x1402170d3\nmov     rcx, rax                                                       ; +0x7a, 0x1402170da\ncall    rdx                                                            ; +0x7d, 0x1402170dd\nmov     rax, [rdi]                                                     ; +0x7f, 0x1402170df\nxor     edx, edx                                                       ; +0x82, 0x1402170e2\nmov     rcx, rdi                                                       ; +0x84, 0x1402170e4\ncall    qword ptr [rax+3E0h]                                           ; +0x87, 0x1402170e7\nmov     rax, [rdi]                                                     ; +0x8d, 0x1402170ed\nmov     dl, 1                                                          ; +0x90, 0x1402170f0\nmov     rcx, rdi                                                       ; +0x92, 0x1402170f2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x95, 0x1402170f5\nadd     rsp, 20h                                                       ; +0x9a, 0x1402170fa\npop     rdi                                                            ; +0x9e, 0x1402170fe\njmp     qword ptr [rax+208h]                                           ; +0x9f, 0x1402170ff", "xrefs": ["<???> @ 0x140757000", "<???> @ 0x14091b7c4"], "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"}