{"type": "func", "start": 5373393344, "end": 5373393779, "name": "MessagesProfilePage::setupPageInfo", "pseudocode": "// \n// MessagesProfilePage::setupPageInfo from 0x1404779c0 to 0x140477b73 (435 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407b4f20\n// > <???> @ 0x1409284a8\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:32:41 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall MessagesProfilePage::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; // r8\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+38h] [rbp-40h] BYREF\n  __m128i si128; // [rsp+48h] [rbp-30h]\n\n  if ( MessagesProfilePage::isCorrect((_QWORD *)(a1 - 688), 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_14003D230(Block, v5, v6);\n    v7 = sub_14020EFC0((__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          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v8);\n    }\n    si128 = _mm_load_si128((const __m128i *)&Size);\n    LOBYTE(Block[0]) = 0;\n    if ( cocos2d::CCArray::count(v7) >= 3 )\n    {\n      v9 = cocos2d::CCArray::objectAtIndex(v7, 0);\n      *(_DWORD *)(a1 + 136) = cocos2d::CCString::intValue(v9);\n      v10 = cocos2d::CCArray::objectAtIndex(v7, 1u);\n      *(_DWORD *)(a1 + 140) = cocos2d::CCString::intValue(v10);\n      v11 = cocos2d::CCArray::objectAtIndex(v7, 2u);\n      *(_DWORD *)(a1 + 144) = cocos2d::CCString::intValue(v11);\n      if ( *(_DWORD *)(a1 + 140) )\n        LOBYTE(v12) = 1;\n      else\n        v12 = 0;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 104) + 336LL))(*(_QWORD *)(a1 + 104), v12);\n      if ( *(_DWORD *)(a1 + 144) + *(_DWORD *)(a1 + 140) < *(_DWORD *)(a1 + 136) )\n        LOBYTE(v13) = 1;\n      else\n        v13 = 0;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 96) + 336LL))(*(_QWORD *)(a1 + 96), v13);\n    }\n  }\n  sub_14003D310((__int64)a2);\n}", "assembly": "; \n; MessagesProfilePage::setupPageInfo from 0x1404779c0 to 0x140477b73 (435 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407b4f20\n; > <???> @ 0x1409284a8\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:32:41 +0000\n; \npush    rbx                                                            ; +0x0, 0x1404779c0\npush    rsi                                                            ; +0x2, 0x1404779c2\npush    rdi                                                            ; +0x3, 0x1404779c3\nsub     rsp, 60h                                                       ; +0x4, 0x1404779c4\nmov     rax, cs:__security_cookie                                      ; +0x8, 0x1404779c8\nxor     rax, rsp                                                       ; +0xf, 0x1404779cf\nmov     [rsp+78h+var_20], rax                                          ; +0x12, 0x1404779d2\nmov     rbx, rdx                                                       ; +0x17, 0x1404779d7\nmov     rdi, rcx                                                       ; +0x1a, 0x1404779da\nmov     [rsp+78h+var_48], rdx                                          ; +0x1d, 0x1404779dd\nadd     rcx, 0FFFFFFFFFFFFFD50h                                        ; +0x22, 0x1404779e2\nmov     rdx, r8                                                        ; +0x29, 0x1404779e9\ncall    MessagesProfilePage__isCorrect                                 ; +0x2c, 0x1404779ec\ntest    al, al                                                         ; +0x31, 0x1404779f1\njz      loc_140477B56                                                  ; +0x33, 0x1404779f3\nmov     rdx, rbx                                                       ; +0x39, 0x1404779f9\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x3c, 0x1404779fc\njbe     short loc_140477A06                                            ; +0x41, 0x140477a01\nmov     rdx, [rbx]                                                     ; +0x43, 0x140477a03\nxorps   xmm0, xmm0                                                     ; +0x46, 0x140477a06\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x49, 0x140477a09\nxorps   xmm1, xmm1                                                     ; +0x4e, 0x140477a0e\nmovdqu  [rsp+78h+var_30], xmm1                                         ; +0x51, 0x140477a11\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x57, 0x140477a17\nxchg    ax, ax                                                         ; +0x5e, 0x140477a1e\ninc     r8                                                             ; +0x60, 0x140477a20\ncmp     byte ptr [rdx+r8], 0                                           ; +0x63, 0x140477a23\njnz     short loc_140477A20                                            ; +0x68, 0x140477a28\nlea     rcx, [rsp+78h+Block]                                           ; +0x6a, 0x140477a2a\ncall    sub_14003D230                                                  ; +0x6f, 0x140477a2f\nnop                                                                    ; +0x74, 0x140477a34\nlea     rcx, [rsp+78h+Block]                                           ; +0x75, 0x140477a35\ncall    sub_14020EFC0                                                  ; +0x7a, 0x140477a3a\nmov     rsi, rax                                                       ; +0x7f, 0x140477a3f\nmov     rdx, qword ptr [rsp+78h+var_30+8]                              ; +0x82, 0x140477a42\ncmp     rdx, 0Fh                                                       ; +0x87, 0x140477a47\njbe     short loc_140477A98                                            ; +0x8b, 0x140477a4b\ninc     rdx                                                            ; +0x8d, 0x140477a4d\nmov     r8, [rsp+78h+Block]                                            ; +0x90, 0x140477a50\nmov     rcx, r8                                                        ; +0x95, 0x140477a55\ncmp     rdx, 1000h                                                     ; +0x98, 0x140477a58\njb      short loc_140477A90                                            ; +0x9f, 0x140477a5f\nadd     rdx, 27h ; '''                                                 ; +0xa1, 0x140477a61\nmov     r8, [r8-8]                                                     ; +0xa5, 0x140477a65\nsub     rcx, r8                                                        ; +0xa9, 0x140477a69\nsub     rcx, 8                                                         ; +0xac, 0x140477a6c\ncmp     rcx, 1Fh                                                       ; +0xb0, 0x140477a70\njbe     short loc_140477A90                                            ; +0xb4, 0x140477a74\nmov     [rsp+78h+Reserved], 0; Reserved                                ; +0xb6, 0x140477a76\nxor     r9d, r9d; LineNo                                               ; +0xbf, 0x140477a7f\nxor     r8d, r8d; FileName                                             ; +0xc2, 0x140477a82\nxor     edx, edx; FunctionName                                         ; +0xc5, 0x140477a85\nxor     ecx, ecx; Expression                                           ; +0xc7, 0x140477a87\ncall    cs:_invoke_watson                                              ; +0xc9, 0x140477a89\nalign 10h                                                              ; +0xcf, 0x140477a8f\nmov     rcx, r8; Block                                                 ; +0xd0, 0x140477a90\ncall    j_j_free                                                       ; +0xd3, 0x140477a93\nmovdqa  xmm0, cs:Size                                                  ; +0xd8, 0x140477a98\nmovdqu  [rsp+78h+var_30], xmm0                                         ; +0xe0, 0x140477aa0\nmov     byte ptr [rsp+78h+Block], 0                                    ; +0xe6, 0x140477aa6\nmov     rcx, rsi                                                       ; +0xeb, 0x140477aab\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xee, 0x140477aae\ncmp     eax, 3                                                         ; +0xf4, 0x140477ab4\njb      loc_140477B56                                                  ; +0xf7, 0x140477ab7\nxor     edx, edx                                                       ; +0xfd, 0x140477abd\nmov     rcx, rsi                                                       ; +0xff, 0x140477abf\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x102, 0x140477ac2\nmov     rcx, rax                                                       ; +0x108, 0x140477ac8\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x10b, 0x140477acb\nmov     [rdi+88h], eax                                                 ; +0x111, 0x140477ad1\nmov     edx, 1                                                         ; +0x117, 0x140477ad7\nmov     rcx, rsi                                                       ; +0x11c, 0x140477adc\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x11f, 0x140477adf\nmov     rcx, rax                                                       ; +0x125, 0x140477ae5\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x128, 0x140477ae8\nmov     [rdi+8Ch], eax                                                 ; +0x12e, 0x140477aee\nmov     edx, 2                                                         ; +0x134, 0x140477af4\nmov     rcx, rsi                                                       ; +0x139, 0x140477af9\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x13c, 0x140477afc\nmov     rcx, rax                                                       ; +0x142, 0x140477b02\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x145, 0x140477b05\nmov     [rdi+90h], eax                                                 ; +0x14b, 0x140477b0b\nmov     rcx, [rdi+68h]                                                 ; +0x151, 0x140477b11\nmov     rax, [rcx]                                                     ; +0x155, 0x140477b15\ncmp     dword ptr [rdi+8Ch], 0                                         ; +0x158, 0x140477b18\njnz     short loc_140477B25                                            ; +0x15f, 0x140477b1f\nxor     edx, edx                                                       ; +0x161, 0x140477b21\njmp     short loc_140477B27                                            ; +0x163, 0x140477b23\nmov     dl, 1                                                          ; +0x165, 0x140477b25\ncall    qword ptr [rax+150h]                                           ; +0x167, 0x140477b27\nmov     rcx, [rdi+60h]                                                 ; +0x16d, 0x140477b2d\nmov     r8, [rcx]                                                      ; +0x171, 0x140477b31\nmov     eax, [rdi+8Ch]                                                 ; +0x174, 0x140477b34\nadd     eax, [rdi+90h]                                                 ; +0x17a, 0x140477b3a\ncmp     eax, [rdi+88h]                                                 ; +0x180, 0x140477b40\njl      short loc_140477B4C                                            ; +0x186, 0x140477b46\nxor     edx, edx                                                       ; +0x188, 0x140477b48\njmp     short loc_140477B4E                                            ; +0x18a, 0x140477b4a\nmov     dl, 1                                                          ; +0x18c, 0x140477b4c\ncall    qword ptr [r8+150h]                                            ; +0x18e, 0x140477b4e\nnop                                                                    ; +0x195, 0x140477b55\nmov     rcx, rbx                                                       ; +0x196, 0x140477b56\ncall    sub_14003D310                                                  ; +0x199, 0x140477b59\nmov     rcx, [rsp+78h+var_20]                                          ; +0x19e, 0x140477b5e\nxor     rcx, rsp; StackCookie                                          ; +0x1a3, 0x140477b63\ncall    __security_check_cookie                                        ; +0x1a6, 0x140477b66\nadd     rsp, 60h                                                       ; +0x1ab, 0x140477b6b\npop     rdi                                                            ; +0x1af, 0x140477b6f\npop     rsi                                                            ; +0x1b0, 0x140477b70\npop     rbx                                                            ; +0x1b1, 0x140477b71\nretn                                                                   ; +0x1b2, 0x140477b72", "xrefs": ["<???> @ 0x1407b4f20", "<???> @ 0x1409284a8"], "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"}