{"type": "func", "start": 5370018096, "end": 5370018494, "name": "FRequestProfilePage::setupPageInfo", "pseudocode": "// \n// FRequestProfilePage::setupPageInfo from 0x14013f930 to 0x14013fabe (398 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140558188\n// > <???> @ 0x1406ca278\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\n// Hidden C++ exception states: #wind=2\nvoid __fastcall FRequestProfilePage::setupPageInfo(__int64 a1, _QWORD *a2, _BYTE *a3)\n{\n  _BYTE *v5; // rdx\n  size_t v6; // r8\n  cocos2d::CCArray *v7; // rsi\n  void *v8; // rcx\n  cocos2d::CCString *v9; // rax\n  cocos2d::CCString *v10; // rax\n  cocos2d::CCString *v11; // rax\n  __int64 v12; // rdx\n  __int64 v13; // rdx\n  void *Block[2]; // [rsp+28h] [rbp-40h] BYREF\n  __m128i si128; // [rsp+38h] [rbp-30h]\n\n  if ( FRequestProfilePage::isCorrect((_QWORD *)(a1 - 656), a3) )\n  {\n    v5 = a2;\n    if ( a2[3] > 0xFu )\n      v5 = (_BYTE *)*a2;\n    *(_OWORD *)Block = 0;\n    si128 = 0;\n    v6 = -1;\n    do\n      ++v6;\n    while ( v5[v6] );\n    sub_14003A930(Block, v5, v6);\n    v7 = sub_14013D520((__int64 *)Block);\n    if ( si128.m128i_i64[1] > 0xFuLL )\n    {\n      v8 = Block[0];\n      if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v8 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v8);\n    }\n    si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30);\n    LOBYTE(Block[0]) = 0;\n    if ( cocos2d::CCArray::count(v7) >= 3 )\n    {\n      v9 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, 0);\n      *(_DWORD *)(a1 + 120) = cocos2d::CCString::intValue(v9);\n      v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, 1u);\n      *(_DWORD *)(a1 + 124) = cocos2d::CCString::intValue(v10);\n      v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, 2u);\n      *(_DWORD *)(a1 + 128) = cocos2d::CCString::intValue(v11);\n      if ( *(_DWORD *)(a1 + 124) )\n        LOBYTE(v12) = 1;\n      else\n        v12 = 0;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 104) + 320LL))(*(_QWORD *)(a1 + 104), v12);\n      if ( *(_DWORD *)(a1 + 128) + *(_DWORD *)(a1 + 124) < *(_DWORD *)(a1 + 120) )\n        LOBYTE(v13) = 1;\n      else\n        v13 = 0;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 96) + 320LL))(*(_QWORD *)(a1 + 96), v13);\n    }\n  }\n  sub_14003A830((__int64)a2);\n}", "assembly": "; \n; FRequestProfilePage::setupPageInfo from 0x14013f930 to 0x14013fabe (398 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140558188\n; > <???> @ 0x1406ca278\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, 0x14013f930\npush    rsi                                                            ; +0x2, 0x14013f932\npush    rdi                                                            ; +0x3, 0x14013f933\nsub     rsp, 50h                                                       ; +0x4, 0x14013f934\nmov     rax, cs:__security_cookie                                      ; +0x8, 0x14013f938\nxor     rax, rsp                                                       ; +0xf, 0x14013f93f\nmov     [rsp+68h+var_20], rax                                          ; +0x12, 0x14013f942\nmov     rbx, rdx                                                       ; +0x17, 0x14013f947\nmov     rdi, rcx                                                       ; +0x1a, 0x14013f94a\nmov     [rsp+68h+var_48], rdx                                          ; +0x1d, 0x14013f94d\nadd     rcx, 0FFFFFFFFFFFFFD70h                                        ; +0x22, 0x14013f952\nmov     rdx, r8                                                        ; +0x29, 0x14013f959\ncall    FRequestProfilePage__isCorrect; Merged with: FRequestProfilePage::isCorrect, MessagesProfilePage::isCorrect ; +0x2c, 0x14013f95c\ntest    al, al                                                         ; +0x31, 0x14013f961\njz      loc_14013FAA1                                                  ; +0x33, 0x14013f963\nmov     rdx, rbx                                                       ; +0x39, 0x14013f969\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x3c, 0x14013f96c\njbe     short loc_14013F976                                            ; +0x41, 0x14013f971\nmov     rdx, [rbx]                                                     ; +0x43, 0x14013f973\nxorps   xmm0, xmm0                                                     ; +0x46, 0x14013f976\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x49, 0x14013f979\nxorps   xmm1, xmm1                                                     ; +0x4e, 0x14013f97e\nmovdqu  [rsp+68h+var_30], xmm1                                         ; +0x51, 0x14013f981\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x57, 0x14013f987\nxchg    ax, ax                                                         ; +0x5e, 0x14013f98e\ninc     r8                                                             ; +0x60, 0x14013f990\ncmp     byte ptr [rdx+r8], 0                                           ; +0x63, 0x14013f993\njnz     short loc_14013F990                                            ; +0x68, 0x14013f998\nlea     rcx, [rsp+68h+Block]                                           ; +0x6a, 0x14013f99a\ncall    sub_14003A930                                                  ; +0x6f, 0x14013f99f\nnop                                                                    ; +0x74, 0x14013f9a4\nlea     rcx, [rsp+68h+Block]                                           ; +0x75, 0x14013f9a5\ncall    sub_14013D520                                                  ; +0x7a, 0x14013f9aa\nmov     rsi, rax                                                       ; +0x7f, 0x14013f9af\nmov     rdx, qword ptr [rsp+68h+var_30+8]                              ; +0x82, 0x14013f9b2\ncmp     rdx, 0Fh                                                       ; +0x87, 0x14013f9b7\njbe     short loc_14013F9F2                                            ; +0x8b, 0x14013f9bb\ninc     rdx                                                            ; +0x8d, 0x14013f9bd\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x90, 0x14013f9c0\nmov     rax, rcx                                                       ; +0x95, 0x14013f9c5\ncmp     rdx, 1000h                                                     ; +0x98, 0x14013f9c8\njb      short loc_14013F9ED                                            ; +0x9f, 0x14013f9cf\nadd     rdx, 27h ; '''                                                 ; +0xa1, 0x14013f9d1\nmov     rcx, [rcx-8]                                                   ; +0xa5, 0x14013f9d5\nsub     rax, rcx                                                       ; +0xa9, 0x14013f9d9\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xac, 0x14013f9dc\ncmp     rax, 1Fh                                                       ; +0xb0, 0x14013f9e0\njbe     short loc_14013F9ED                                            ; +0xb4, 0x14013f9e4\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb6, 0x14013f9e6\ndb 0CCh                                                                ; +0xbc, 0x14013f9ec\ncall    j_j_free                                                       ; +0xbd, 0x14013f9ed\nmovdqa  xmm0, cs:xmmword_140623F30                                     ; +0xc2, 0x14013f9f2\nmovdqu  [rsp+68h+var_30], xmm0                                         ; +0xca, 0x14013f9fa\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0xd0, 0x14013fa00\nmov     rcx, rsi                                                       ; +0xd5, 0x14013fa05\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd8, 0x14013fa08\ncmp     eax, 3                                                         ; +0xde, 0x14013fa0e\njb      loc_14013FAA1                                                  ; +0xe1, 0x14013fa11\nxor     edx, edx                                                       ; +0xe7, 0x14013fa17\nmov     rcx, rsi                                                       ; +0xe9, 0x14013fa19\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xec, 0x14013fa1c\nmov     rcx, rax                                                       ; +0xf2, 0x14013fa22\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xf5, 0x14013fa25\nmov     [rdi+78h], eax                                                 ; +0xfb, 0x14013fa2b\nmov     edx, 1                                                         ; +0xfe, 0x14013fa2e\nmov     rcx, rsi                                                       ; +0x103, 0x14013fa33\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x106, 0x14013fa36\nmov     rcx, rax                                                       ; +0x10c, 0x14013fa3c\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x10f, 0x14013fa3f\nmov     [rdi+7Ch], eax                                                 ; +0x115, 0x14013fa45\nmov     edx, 2                                                         ; +0x118, 0x14013fa48\nmov     rcx, rsi                                                       ; +0x11d, 0x14013fa4d\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x120, 0x14013fa50\nmov     rcx, rax                                                       ; +0x126, 0x14013fa56\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x129, 0x14013fa59\nmov     [rdi+80h], eax                                                 ; +0x12f, 0x14013fa5f\nmov     rcx, [rdi+68h]                                                 ; +0x135, 0x14013fa65\nmov     rax, [rcx]                                                     ; +0x139, 0x14013fa69\ncmp     dword ptr [rdi+7Ch], 0                                         ; +0x13c, 0x14013fa6c\njnz     short loc_14013FA76                                            ; +0x140, 0x14013fa70\nxor     edx, edx                                                       ; +0x142, 0x14013fa72\njmp     short loc_14013FA78                                            ; +0x144, 0x14013fa74\nmov     dl, 1                                                          ; +0x146, 0x14013fa76\ncall    qword ptr [rax+140h]                                           ; +0x148, 0x14013fa78\nmov     rcx, [rdi+60h]                                                 ; +0x14e, 0x14013fa7e\nmov     r8, [rcx]                                                      ; +0x152, 0x14013fa82\nmov     eax, [rdi+7Ch]                                                 ; +0x155, 0x14013fa85\nadd     eax, [rdi+80h]                                                 ; +0x158, 0x14013fa88\ncmp     eax, [rdi+78h]                                                 ; +0x15e, 0x14013fa8e\njl      short loc_14013FA97                                            ; +0x161, 0x14013fa91\nxor     edx, edx                                                       ; +0x163, 0x14013fa93\njmp     short loc_14013FA99                                            ; +0x165, 0x14013fa95\nmov     dl, 1                                                          ; +0x167, 0x14013fa97\ncall    qword ptr [r8+140h]                                            ; +0x169, 0x14013fa99\nnop                                                                    ; +0x170, 0x14013faa0\nmov     rcx, rbx                                                       ; +0x171, 0x14013faa1\ncall    sub_14003A830                                                  ; +0x174, 0x14013faa4\nmov     rcx, [rsp+68h+var_20]                                          ; +0x179, 0x14013faa9\nxor     rcx, rsp; StackCookie                                          ; +0x17e, 0x14013faae\ncall    __security_check_cookie                                        ; +0x181, 0x14013fab1\nadd     rsp, 50h                                                       ; +0x186, 0x14013fab6\npop     rdi                                                            ; +0x18a, 0x14013faba\npop     rsi                                                            ; +0x18b, 0x14013fabb\npop     rbx                                                            ; +0x18c, 0x14013fabc\nretn                                                                   ; +0x18d, 0x14013fabd", "xrefs": ["<???> @ 0x140558188", "<???> @ 0x1406ca278"], "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"}