{"type": "func", "start": 5370878496, "end": 5370878780, "name": "FRequestProfilePage::onSelectMode", "pseudocode": "// \n// FRequestProfilePage::onSelectMode from 0x140211a20 to 0x140211b3c (284 bytes)\n// \n// 3 xrefs:\n// > FRequestProfilePage::updateModeButtons @ 0x140211bd0\n// > FRequestProfilePage::updateModeButtons @ 0x140211d81\n// > <???> @ 0x14091b530\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:19 +0000\n// \n\n__int64 __fastcall FRequestProfilePage::onSelectMode(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  int v4; // esi\n  bool v5; // r14\n  char v6; // bp\n  cocos2d::CCObject *v7; // rcx\n  const char *v8; // rdx\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = result;\n  v5 = (_DWORD)result == 1;\n  v6 = (_DWORD)result == 2;\n  if ( ((_DWORD)result == 1) != *(_BYTE *)(a1 + 704) || v6 != *(_BYTE *)(a1 + 705) )\n  {\n    if ( *(_BYTE *)(a1 + 896) )\n    {\n      v7 = *(cocos2d::CCObject **)(a1 + 888);\n      *(_BYTE *)(a1 + 896) = 0;\n      if ( v7 )\n      {\n        cocos2d::CCObject::release(v7);\n        *(_QWORD *)(a1 + 888) = 0;\n      }\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 792) + 336LL))(*(_QWORD *)(a1 + 792), 0);\n    }\n    *(_BYTE *)(a1 + 704) = v5;\n    *(_BYTE *)(a1 + 705) = v6;\n    if ( v4 == 1 )\n    {\n      v8 = \"Sent Requests\";\n    }\n    else\n    {\n      v8 = \"Friend Requests\";\n      if ( v4 == 2 )\n        v8 = \"Ignored Requests\";\n    }\n    (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 784) + 360LL))(*(_QWORD *)(a1 + 784) + 360LL, v8);\n    cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 784), 185.0, 0.80000001, 0.0);\n    FRequestProfilePage::updateModeButtons(a1);\n    return FRequestProfilePage::loadPage(a1, 0);\n  }\n  return result;\n}", "assembly": "; \n; FRequestProfilePage::onSelectMode from 0x140211a20 to 0x140211b3c (284 bytes)\n; \n; 3 xrefs:\n; > FRequestProfilePage::updateModeButtons @ 0x140211bd0\n; > FRequestProfilePage::updateModeButtons @ 0x140211d81\n; > <???> @ 0x14091b530\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:19 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140211a20\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140211a25\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x140211a2a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x140211a2f\npush    r14                                                            ; +0x14, 0x140211a34\nsub     rsp, 20h                                                       ; +0x16, 0x140211a36\nmov     rax, [rdx]                                                     ; +0x1a, 0x140211a3a\nmov     rbx, rcx                                                       ; +0x1d, 0x140211a3d\nmov     rcx, rdx                                                       ; +0x20, 0x140211a40\ncall    qword ptr [rax+38h]                                            ; +0x23, 0x140211a43\ncmp     eax, 1                                                         ; +0x26, 0x140211a46\nmov     esi, eax                                                       ; +0x29, 0x140211a49\nsetz    r14b                                                           ; +0x2b, 0x140211a4b\ncmp     eax, 2                                                         ; +0x2f, 0x140211a4f\nsetz    bpl                                                            ; +0x32, 0x140211a52\ncmp     r14b, [rbx+2C0h]                                               ; +0x36, 0x140211a56\njnz     short loc_140211A6C                                            ; +0x3d, 0x140211a5d\ncmp     bpl, [rbx+2C1h]                                                ; +0x3f, 0x140211a5f\njz      loc_140211B21                                                  ; +0x46, 0x140211a66\ncmp     byte ptr [rbx+380h], 0                                         ; +0x4c, 0x140211a6c\njz      short loc_140211AAB                                            ; +0x53, 0x140211a73\nmov     rcx, [rbx+378h]                                                ; +0x55, 0x140211a75\nmov     byte ptr [rbx+380h], 0                                         ; +0x5c, 0x140211a7c\ntest    rcx, rcx                                                       ; +0x63, 0x140211a83\njz      short loc_140211A99                                            ; +0x66, 0x140211a86\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x68, 0x140211a88\nmov     qword ptr [rbx+378h], 0                                        ; +0x6e, 0x140211a8e\nmov     rcx, [rbx+318h]                                                ; +0x79, 0x140211a99\nxor     edx, edx                                                       ; +0x80, 0x140211aa0\nmov     rax, [rcx]                                                     ; +0x82, 0x140211aa2\ncall    qword ptr [rax+150h]                                           ; +0x85, 0x140211aa5\nmov     [rbx+2C0h], r14b                                               ; +0x8b, 0x140211aab\nmov     [rbx+2C1h], bpl                                                ; +0x92, 0x140211ab2\ncmp     esi, 1                                                         ; +0x99, 0x140211ab9\njnz     short loc_140211AC7                                            ; +0x9c, 0x140211abc\nlea     rdx, aSentRequests; \"Sent Requests\"                            ; +0x9e, 0x140211abe\njmp     short loc_140211ADC                                            ; +0xa5, 0x140211ac5\ncmp     esi, 2                                                         ; +0xa7, 0x140211ac7\nlea     rax, aIgnoredRequest; \"Ignored Requests\"                       ; +0xaa, 0x140211aca\nlea     rdx, aFriendRequests; \"Friend Requests\"                        ; +0xb1, 0x140211ad1\ncmovz   rdx, rax                                                       ; +0xb8, 0x140211ad8\nmov     rcx, [rbx+310h]                                                ; +0xbc, 0x140211adc\nadd     rcx, 168h                                                      ; +0xc3, 0x140211ae3\nmov     rax, [rcx]                                                     ; +0xca, 0x140211aea\ncall    qword ptr [rax]                                                ; +0xcd, 0x140211aed\nmovss   xmm2, cs:dword_140834FE8                                       ; +0xcf, 0x140211aef\nxorps   xmm3, xmm3                                                     ; +0xd7, 0x140211af7\nmovss   xmm1, cs:dword_1408358CC                                       ; +0xda, 0x140211afa\nmov     rcx, [rbx+310h]                                                ; +0xe2, 0x140211b02\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xe9, 0x140211b09\nmov     rcx, rbx                                                       ; +0xef, 0x140211b0f\ncall    FRequestProfilePage__updateModeButtons                         ; +0xf2, 0x140211b12\nxor     edx, edx                                                       ; +0xf7, 0x140211b17\nmov     rcx, rbx                                                       ; +0xf9, 0x140211b19\ncall    FRequestProfilePage__loadPage                                  ; +0xfc, 0x140211b1c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x101, 0x140211b21\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x106, 0x140211b26\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x10b, 0x140211b2b\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x110, 0x140211b30\nadd     rsp, 20h                                                       ; +0x115, 0x140211b35\npop     r14                                                            ; +0x119, 0x140211b39\nretn                                                                   ; +0x11b, 0x140211b3b", "xrefs": ["FRequestProfilePage::updateModeButtons @ 0x140211bd0", "FRequestProfilePage::updateModeButtons @ 0x140211d81", "<???> @ 0x14091b530"], "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"}