{"type": "func", "start": 5372667664, "end": 5372668027, "name": "ProfilePage::setupPageInfo", "pseudocode": "// \n// ProfilePage::setupPageInfo from 0x1403c6710 to 0x1403c687b (363 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405cb240\n// > <???> @ 0x1406d78f8\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 ProfilePage::setupPageInfo(_DWORD *a1, _QWORD *a2, const char *a3)\n{\n  _BYTE *v5; // rdx\n  size_t v6; // r8\n  cocos2d::CCArray *v7; // rdi\n  void *v8; // rcx\n  cocos2d::CCString *v9; // rax\n  cocos2d::CCString *v10; // rax\n  cocos2d::CCString *v11; // rax\n  void *Block[2]; // [rsp+28h] [rbp-40h] BYREF\n  __m128i si128; // [rsp+38h] [rbp-30h]\n\n  if ( ProfilePage::isCorrect((ProfilePage *)(a1 - 160), 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      a1[42] = cocos2d::CCString::intValue(v9);\n      v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, 1u);\n      a1[43] = cocos2d::CCString::intValue(v10);\n      v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, 2u);\n      a1[44] = cocos2d::CCString::intValue(v11);\n      ProfilePage::updatePageArrows((ProfilePage *)(a1 - 160));\n    }\n  }\n  sub_14003A830((__int64)a2);\n}", "assembly": "; \n; ProfilePage::setupPageInfo from 0x1403c6710 to 0x1403c687b (363 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405cb240\n; > <???> @ 0x1406d78f8\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\nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1403c6710\npush    rbp                                                            ; +0x5, 0x1403c6715\npush    rsi                                                            ; +0x6, 0x1403c6716\npush    rdi                                                            ; +0x7, 0x1403c6717\nsub     rsp, 50h                                                       ; +0x8, 0x1403c6718\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x1403c671c\nxor     rax, rsp                                                       ; +0x13, 0x1403c6723\nmov     [rsp+68h+var_20], rax                                          ; +0x16, 0x1403c6726\nmov     rbx, rdx                                                       ; +0x1b, 0x1403c672b\nmov     rsi, rcx                                                       ; +0x1e, 0x1403c672e\nmov     [rsp+68h+var_48], rdx                                          ; +0x21, 0x1403c6731\nmov     rdx, r8                                                        ; +0x26, 0x1403c6736\nadd     rcx, 0FFFFFFFFFFFFFD80h                                        ; +0x29, 0x1403c6739\ncall    ProfilePage__isCorrect                                         ; +0x30, 0x1403c6740\ntest    al, al                                                         ; +0x35, 0x1403c6745\njz      loc_1403C6856                                                  ; +0x37, 0x1403c6747\nmov     rdx, rbx                                                       ; +0x3d, 0x1403c674d\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x40, 0x1403c6750\njbe     short loc_1403C675A                                            ; +0x45, 0x1403c6755\nmov     rdx, [rbx]                                                     ; +0x47, 0x1403c6757\nxorps   xmm0, xmm0                                                     ; +0x4a, 0x1403c675a\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x4d, 0x1403c675d\nxorps   xmm1, xmm1                                                     ; +0x52, 0x1403c6762\nmovdqu  [rsp+68h+var_30], xmm1                                         ; +0x55, 0x1403c6765\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x5b, 0x1403c676b\ninc     r8                                                             ; +0x62, 0x1403c6772\ncmp     byte ptr [rdx+r8], 0                                           ; +0x65, 0x1403c6775\njnz     short loc_1403C6772                                            ; +0x6a, 0x1403c677a\nlea     rcx, [rsp+68h+Block]                                           ; +0x6c, 0x1403c677c\ncall    sub_14003A930                                                  ; +0x71, 0x1403c6781\nnop                                                                    ; +0x76, 0x1403c6786\nlea     rcx, [rsp+68h+Block]                                           ; +0x77, 0x1403c6787\ncall    sub_14013D520                                                  ; +0x7c, 0x1403c678c\nmov     rdi, rax                                                       ; +0x81, 0x1403c6791\nmov     rdx, qword ptr [rsp+68h+var_30+8]                              ; +0x84, 0x1403c6794\ncmp     rdx, 0Fh                                                       ; +0x89, 0x1403c6799\njbe     short loc_1403C67D4                                            ; +0x8d, 0x1403c679d\ninc     rdx                                                            ; +0x8f, 0x1403c679f\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x92, 0x1403c67a2\nmov     rax, rcx                                                       ; +0x97, 0x1403c67a7\ncmp     rdx, 1000h                                                     ; +0x9a, 0x1403c67aa\njb      short loc_1403C67CF                                            ; +0xa1, 0x1403c67b1\nadd     rdx, 27h ; '''                                                 ; +0xa3, 0x1403c67b3\nmov     rcx, [rcx-8]                                                   ; +0xa7, 0x1403c67b7\nsub     rax, rcx                                                       ; +0xab, 0x1403c67bb\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xae, 0x1403c67be\ncmp     rax, 1Fh                                                       ; +0xb2, 0x1403c67c2\njbe     short loc_1403C67CF                                            ; +0xb6, 0x1403c67c6\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb8, 0x1403c67c8\ndb 0CCh                                                                ; +0xbe, 0x1403c67ce\ncall    j_j_free                                                       ; +0xbf, 0x1403c67cf\nmovdqa  xmm0, cs:xmmword_140623F30                                     ; +0xc4, 0x1403c67d4\nmovdqu  [rsp+68h+var_30], xmm0                                         ; +0xcc, 0x1403c67dc\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0xd2, 0x1403c67e2\nmov     rcx, rdi                                                       ; +0xd7, 0x1403c67e7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xda, 0x1403c67ea\ncmp     eax, 3                                                         ; +0xe0, 0x1403c67f0\njb      short loc_1403C6856                                            ; +0xe3, 0x1403c67f3\nxor     edx, edx                                                       ; +0xe5, 0x1403c67f5\nmov     rcx, rdi                                                       ; +0xe7, 0x1403c67f7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xea, 0x1403c67fa\nmov     rcx, rax                                                       ; +0xf0, 0x1403c6800\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xf3, 0x1403c6803\nmov     [rsi+0A8h], eax                                                ; +0xf9, 0x1403c6809\nmov     edx, 1                                                         ; +0xff, 0x1403c680f\nmov     rcx, rdi                                                       ; +0x104, 0x1403c6814\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x107, 0x1403c6817\nmov     rcx, rax                                                       ; +0x10d, 0x1403c681d\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x110, 0x1403c6820\nmov     [rsi+0ACh], eax                                                ; +0x116, 0x1403c6826\nmov     edx, 2                                                         ; +0x11c, 0x1403c682c\nmov     rcx, rdi                                                       ; +0x121, 0x1403c6831\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x124, 0x1403c6834\nmov     rcx, rax                                                       ; +0x12a, 0x1403c683a\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x12d, 0x1403c683d\nmov     [rsi+0B0h], eax                                                ; +0x133, 0x1403c6843\nlea     rcx, [rsi-280h]                                                ; +0x139, 0x1403c6849\ncall    ProfilePage__updatePageArrows                                  ; +0x140, 0x1403c6850\nnop                                                                    ; +0x145, 0x1403c6855\nmov     rcx, rbx                                                       ; +0x146, 0x1403c6856\ncall    sub_14003A830                                                  ; +0x149, 0x1403c6859\nmov     rcx, [rsp+68h+var_20]                                          ; +0x14e, 0x1403c685e\nxor     rcx, rsp; StackCookie                                          ; +0x153, 0x1403c6863\ncall    __security_check_cookie                                        ; +0x156, 0x1403c6866\nmov     rbx, [rsp+68h+arg_18]                                          ; +0x15b, 0x1403c686b\nadd     rsp, 50h                                                       ; +0x163, 0x1403c6873\npop     rdi                                                            ; +0x167, 0x1403c6877\npop     rsi                                                            ; +0x168, 0x1403c6878\npop     rbp                                                            ; +0x169, 0x1403c6879\nretn                                                                   ; +0x16a, 0x1403c687a", "xrefs": ["<???> @ 0x1405cb240", "<???> @ 0x1406d78f8"], "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"}