{"type": "func", "start": 4302899552, "end": 4302899798, "name": "FRequestProfilePage::onSentRequests", "pseudocode": "// \n// FRequestProfilePage::onSentRequests from 0x100790960 to 0x100790a56 (246 bytes)\n// \n// 1 xrefs:\n// > FRequestProfilePage::init @ 0x10079020e\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 FRequestProfilePage::onSentRequests(FRequestProfilePage *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  GameLevelManager *v6; // rax\n  cocos2d::CCArray *StoredOnlineLevels; // rax\n  cocos2d::ccArray *data; // rax\n  __int64 num; // rcx\n  unsigned __int64 arr; // rax\n  unsigned __int64 v11; // rcx\n  FRequestProfilePage *v12; // 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  v6 = GameLevelManager::sharedState();\n  if ( (a1->m_key.m_data.m_short.sizex2 & 1) != 0 )\n  {\n    StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v6, a1->m_key.m_data.m_long.longStorage);\n    if ( !StoredOnlineLevels )\n      goto LABEL_11;\n  }\n  else\n  {\n    StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v6, a1->m_key.m_data.m_short.shortStorage.__elems_);\n    if ( !StoredOnlineLevels )\n      goto LABEL_11;\n  }\n  data = StoredOnlineLevels->data;\n  num = data->num;\n  if ( data->num )\n  {\n    arr = (unsigned __int64)data->arr;\n    v11 = arr + 8 * num - 8;\n    do\n    {\n      if ( !*(_QWORD *)arr )\n        break;\n      *(_BYTE *)(*(_QWORD *)arr + 689LL) = 0;\n      arr += 8LL;\n    }\n    while ( arr <= v11 );\n  }\nLABEL_11:\n  v12 = FRequestProfilePage::create(1);\n  ((void (__fastcall *)(FRequestProfilePage *))v12->show)(v12);\n  ((void (__fastcall *)(FRequestProfilePage *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(FRequestProfilePage *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; FRequestProfilePage::onSentRequests from 0x100790960 to 0x100790a56 (246 bytes)\n; \n; 1 xrefs:\n; > FRequestProfilePage::init @ 0x10079020e\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, 0x100790960\nmov     rbp, rsp                                                       ; +0x1, 0x100790961\npush    rbx                                                            ; +0x4, 0x100790964\npush    rax                                                            ; +0x5, 0x100790965\nmov     rbx, rdi                                                       ; +0x6, 0x100790966\ncmp     qword ptr [rdi+2C8h], 0                                        ; +0x9, 0x100790969\njz      short loc_100790993                                            ; +0x11, 0x100790971\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x13, 0x100790973\nmov     rcx, [rax]                                                     ; +0x18, 0x100790978\nmov     rdi, rax                                                       ; +0x1b, 0x10079097b\ncall    qword ptr [rcx+0A0h]                                           ; +0x1e, 0x10079097e\nmov     rsi, [rbx+2C8h]                                                ; +0x24, 0x100790984\nmov     rdi, rax                                                       ; +0x2b, 0x10079098b\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x2e, 0x10079098e\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x33, 0x100790993\nmov     rcx, [rax]                                                     ; +0x38, 0x100790998\nmov     rdi, rax                                                       ; +0x3b, 0x10079099b\ncall    qword ptr [rcx+0A0h]                                           ; +0x3e, 0x10079099e\nmov     rdi, rax                                                       ; +0x44, 0x1007909a4\nmov     rsi, rbx                                                       ; +0x47, 0x1007909a7\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x4a, 0x1007909aa\ncall    GameLevelManager__sharedState                                  ; +0x4f, 0x1007909af\ntest    byte ptr [rbx+2A0h], 1                                         ; +0x54, 0x1007909b4\njnz     short loc_1007909D3                                            ; +0x5b, 0x1007909bb\nlea     rsi, [rbx+2A1h]                                                ; +0x5d, 0x1007909bd\nmov     rdi, rax                                                       ; +0x64, 0x1007909c4\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x67, 0x1007909c7\ntest    rax, rax                                                       ; +0x6c, 0x1007909cc\njnz     short loc_1007909E7                                            ; +0x6f, 0x1007909cf\njmp     short loc_100790A18                                            ; +0x71, 0x1007909d1\nmov     rsi, [rbx+2B0h]                                                ; +0x73, 0x1007909d3\nmov     rdi, rax                                                       ; +0x7a, 0x1007909da\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x7d, 0x1007909dd\ntest    rax, rax                                                       ; +0x82, 0x1007909e2\njz      short loc_100790A18                                            ; +0x85, 0x1007909e5\nmov     rax, [rax+38h]                                                 ; +0x87, 0x1007909e7\nmov     ecx, [rax]                                                     ; +0x8b, 0x1007909eb\ntest    rcx, rcx                                                       ; +0x8d, 0x1007909ed\njz      short loc_100790A18                                            ; +0x90, 0x1007909f0\nmov     rax, [rax+10h]                                                 ; +0x92, 0x1007909f2\nlea     rcx, [rax+rcx*8]                                               ; +0x96, 0x1007909f6\nadd     rcx, 0FFFFFFFFFFFFFFF8h                                        ; +0x9a, 0x1007909fa\nxchg    ax, ax                                                         ; +0x9e, 0x1007909fe\nmov     rdx, [rax]                                                     ; +0xa0, 0x100790a00\ntest    rdx, rdx                                                       ; +0xa3, 0x100790a03\njz      short loc_100790A18                                            ; +0xa6, 0x100790a06\nmov     byte ptr [rdx+2B1h], 0                                         ; +0xa8, 0x100790a08\nadd     rax, 8                                                         ; +0xaf, 0x100790a0f\ncmp     rax, rcx                                                       ; +0xb3, 0x100790a13\njbe     short loc_100790A00                                            ; +0xb6, 0x100790a16\nmov     edi, 1                                                         ; +0xb8, 0x100790a18\ncall    FRequestProfilePage__create                                    ; +0xbd, 0x100790a1d\nmov     rcx, [rax]                                                     ; +0xc2, 0x100790a22\nmov     rdi, rax                                                       ; +0xc5, 0x100790a25\ncall    qword ptr [rcx+508h]                                           ; +0xc8, 0x100790a28\nmov     rax, [rbx]                                                     ; +0xce, 0x100790a2e\nmov     rdi, rbx                                                       ; +0xd1, 0x100790a31\nxor     esi, esi                                                       ; +0xd4, 0x100790a34\ncall    qword ptr [rax+420h]                                           ; +0xd6, 0x100790a36\nmov     rax, [rbx]                                                     ; +0xdc, 0x100790a3c\nmov     rax, [rax+200h]                                                ; +0xdf, 0x100790a3f\nmov     rdi, rbx                                                       ; +0xe6, 0x100790a46\nmov     esi, 1                                                         ; +0xe9, 0x100790a49\nadd     rsp, 8                                                         ; +0xee, 0x100790a4e\npop     rbx                                                            ; +0xf2, 0x100790a52\npop     rbp                                                            ; +0xf3, 0x100790a53\njmp     rax                                                            ; +0xf4, 0x100790a54", "xrefs": ["FRequestProfilePage::init @ 0x10079020e"], "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"}