{"type": "func", "start": 5370015088, "end": 5370015274, "name": "FRequestProfilePage::onClose", "pseudocode": "// \n// FRequestProfilePage::onClose from 0x14013ed70 to 0x14013ee2a (186 bytes)\n// \n// 4 xrefs:\n// > FRequestProfilePage::keyBackClicked @ 0x14013eed9\n// > FRequestProfilePage::init @ 0x14013ddb7\n// > <???> @ 0x1406ca1f4\n// > <???> @ 0x1406ca200\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 FRequestProfilePage::onClose(FRequestProfilePage *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  __int64 v5; // rax\n  cocos2d::CCTouchDispatcher *v6; // rax\n  GJAccountManager *v7; // rax\n  _BYTE *v8; // rax\n  _BOOL8 v9; // rdx\n\n  if ( a1->m_listLayer )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(a1);\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_listLayer);\n  }\n  v5 = cocos2d::CCDirector::sharedDirector(a1);\n  v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);\n  FRequestProfilePage::untoggleAll(a1);\n  if ( a1->m_sent )\n  {\n    v8 = FRequestProfilePage::create(0);\n  }\n  else\n  {\n    v7 = GJAccountManager::sharedState();\n    v8 = ProfilePage::create(v7->m_accountID - v7->m_unkInt1, 1);\n    v8[588] = 1;\n  }\n  (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v8 + 1040LL))(v8);\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v9) = 1;\n  a1->removeFromParentAndCleanup(a1, v9);\n}", "assembly": "; \n; FRequestProfilePage::onClose from 0x14013ed70 to 0x14013ee2a (186 bytes)\n; \n; 4 xrefs:\n; > FRequestProfilePage::keyBackClicked @ 0x14013eed9\n; > FRequestProfilePage::init @ 0x14013ddb7\n; > <???> @ 0x1406ca1f4\n; > <???> @ 0x1406ca200\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    rbx                                                            ; +0x0, 0x14013ed70\nsub     rsp, 20h                                                       ; +0x2, 0x14013ed72\ncmp     qword ptr [rcx+2D0h], 0                                        ; +0x6, 0x14013ed76\nmov     rbx, rcx                                                       ; +0xe, 0x14013ed7e\njz      short loc_14013EDA5                                            ; +0x11, 0x14013ed81\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x13, 0x14013ed83\nmov     rcx, rax                                                       ; +0x19, 0x14013ed89\nmov     rdx, [rax]                                                     ; +0x1c, 0x14013ed8c\ncall    qword ptr [rdx+90h]                                            ; +0x1f, 0x14013ed8f\nmov     rdx, [rbx+2D0h]                                                ; +0x25, 0x14013ed95\nmov     rcx, rax                                                       ; +0x2c, 0x14013ed9c\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x2f, 0x14013ed9f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x35, 0x14013eda5\nmov     rcx, rax                                                       ; +0x3b, 0x14013edab\nmov     rdx, [rax]                                                     ; +0x3e, 0x14013edae\ncall    qword ptr [rdx+90h]                                            ; +0x41, 0x14013edb1\nmov     rcx, rax                                                       ; +0x47, 0x14013edb7\nmov     rdx, rbx                                                       ; +0x4a, 0x14013edba\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x4d, 0x14013edbd\nmov     rcx, rbx                                                       ; +0x53, 0x14013edc3\ncall    FRequestProfilePage__untoggleAll                               ; +0x56, 0x14013edc6\ncmp     byte ptr [rbx+298h], 0                                         ; +0x5b, 0x14013edcb\njnz     short loc_14013EDF5                                            ; +0x62, 0x14013edd2\ncall    GJAccountManager__sharedState                                  ; +0x64, 0x14013edd4\nmov     dl, 1                                                          ; +0x69, 0x14013edd9\nmov     ecx, [rax+168h]                                                ; +0x6b, 0x14013eddb\nsub     ecx, [rax+16Ch]                                                ; +0x71, 0x14013ede1\ncall    ProfilePage__create                                            ; +0x77, 0x14013ede7\nmov     byte ptr [rax+24Ch], 1                                         ; +0x7c, 0x14013edec\njmp     short loc_14013EDFC                                            ; +0x83, 0x14013edf3\nxor     ecx, ecx                                                       ; +0x85, 0x14013edf5\ncall    FRequestProfilePage__create                                    ; +0x87, 0x14013edf7\nmov     rdx, [rax]                                                     ; +0x8c, 0x14013edfc\nmov     rcx, rax                                                       ; +0x8f, 0x14013edff\ncall    qword ptr [rdx+410h]                                           ; +0x92, 0x14013ee02\nmov     rax, [rbx]                                                     ; +0x98, 0x14013ee08\nxor     edx, edx                                                       ; +0x9b, 0x14013ee0b\nmov     rcx, rbx                                                       ; +0x9d, 0x14013ee0d\ncall    qword ptr [rax+3D0h]                                           ; +0xa0, 0x14013ee10\nmov     rax, [rbx]                                                     ; +0xa6, 0x14013ee16\nmov     dl, 1                                                          ; +0xa9, 0x14013ee19\nmov     rcx, rbx                                                       ; +0xab, 0x14013ee1b\nadd     rsp, 20h                                                       ; +0xae, 0x14013ee1e\npop     rbx                                                            ; +0xb2, 0x14013ee22\njmp     qword ptr [rax+1F8h]                                           ; +0xb3, 0x14013ee23", "xrefs": ["FRequestProfilePage::keyBackClicked @ 0x14013eed9", "FRequestProfilePage::init @ 0x14013ddb7", "<???> @ 0x1406ca1f4", "<???> @ 0x1406ca200"], "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"}