{"type": "func", "start": 5372653792, "end": 5372654244, "name": "ProfilePage::onStatInfo", "pseudocode": "// \n// ProfilePage::onStatInfo from 0x1403c30e0 to 0x1403c32a4 (452 bytes)\n// \n// 2 xrefs:\n// > ProfilePage::loadPageFromUserInfo @ 0x1403c0524\n// > <???> @ 0x1406d7754\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 ProfilePage::onStatInfo(ProfilePage *a1, cocos2d::CCObject *a2)\n{\n  char v3; // bl\n  GJUserScore *m_score; // rdx\n  bool v6; // di\n  __int64 v7; // rax\n  GJUserScore *v8; // rdx\n  bool v9; // di\n  GJUserScore *v10; // rdx\n  bool v11; // di\n  _BYTE v12[16]; // [rsp+28h] [rbp-30h] BYREF\n  __int64 v13; // [rsp+38h] [rbp-20h]\n\n  v3 = 0;\n  if ( a2->getTag(a2) == 1 )\n  {\n    m_score = a1->m_score;\n    v6 = false;\n    if ( m_score )\n    {\n      sub_14003BDB0((__int64)v12, (__int64)&m_score->m_starsInfo);\n      v3 = 9;\n      if ( v13 )\n        v6 = true;\n    }\n    if ( (v3 & 1) != 0 )\n      sub_14003A830((__int64)v12);\n    if ( v6 )\n    {\n      sub_14003BDB0((__int64)v12, (__int64)&a1->m_score->m_starsInfo);\n      v7 = StarInfoPopup::createFromString(v12);\nLABEL_28:\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1040LL))(v7);\n    }\n  }\n  else if ( a2->getTag(a2) == 2 )\n  {\n    v8 = a1->m_score;\n    v9 = false;\n    if ( v8 )\n    {\n      sub_14003BDB0((__int64)v12, (__int64)&v8->m_platformerInfo);\n      v3 = 34;\n      if ( v13 )\n        v9 = true;\n    }\n    if ( (v3 & 2) != 0 )\n      sub_14003A830((__int64)v12);\n    if ( v9 )\n    {\n      sub_14003BDB0((__int64)v12, (__int64)&a1->m_score->m_platformerInfo);\n      v7 = StarInfoPopup::createFromStringMoons(v12);\n      goto LABEL_28;\n    }\n  }\n  else if ( a2->getTag(a2) == 3 )\n  {\n    v10 = a1->m_score;\n    v11 = false;\n    if ( v10 )\n    {\n      sub_14003BDB0((__int64)v12, (__int64)&v10->m_demonInfo);\n      v3 = -124;\n      if ( v13 )\n        v11 = true;\n    }\n    if ( (v3 & 4) != 0 )\n      sub_14003A830((__int64)v12);\n    if ( v11 )\n    {\n      sub_14003BDB0((__int64)v12, (__int64)&a1->m_score->m_demonInfo);\n      v7 = DemonInfoPopup::createFromString(v12);\n      goto LABEL_28;\n    }\n  }\n}", "assembly": "; \n; ProfilePage::onStatInfo from 0x1403c30e0 to 0x1403c32a4 (452 bytes)\n; \n; 2 xrefs:\n; > ProfilePage::loadPageFromUserInfo @ 0x1403c0524\n; > <???> @ 0x1406d7754\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_10], rbx                                              ; +0x0, 0x1403c30e0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1403c30e5\npush    rdi                                                            ; +0xa, 0x1403c30ea\nsub     rsp, 50h                                                       ; +0xb, 0x1403c30eb\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1403c30ef\nxor     rax, rsp                                                       ; +0x16, 0x1403c30f6\nmov     [rsp+58h+var_10], rax                                          ; +0x19, 0x1403c30f9\nmov     rax, [rdx]                                                     ; +0x1e, 0x1403c30fe\nmov     rsi, rcx                                                       ; +0x21, 0x1403c3101\nxor     ebx, ebx                                                       ; +0x24, 0x1403c3104\nmov     rcx, rdx                                                       ; +0x26, 0x1403c3106\nmov     rdi, rdx                                                       ; +0x29, 0x1403c3109\nmov     [rsp+58h+var_38], ebx                                          ; +0x2c, 0x1403c310c\ncall    qword ptr [rax+38h]                                            ; +0x30, 0x1403c3110\ncmp     eax, 1                                                         ; +0x33, 0x1403c3113\njnz     short loc_1403C3189                                            ; +0x36, 0x1403c3116\nmov     rdx, [rsi+2B0h]                                                ; +0x38, 0x1403c3118\ntest    rdx, rdx                                                       ; +0x3f, 0x1403c311f\njz      short loc_1403C3147                                            ; +0x42, 0x1403c3122\nadd     rdx, 348h                                                      ; +0x44, 0x1403c3124\nlea     rcx, [rsp+58h+var_30]                                          ; +0x4b, 0x1403c312b\ncall    sub_14003BDB0                                                  ; +0x50, 0x1403c3130\ncmp     [rsp+58h+var_20], 0                                            ; +0x55, 0x1403c3135\nmov     ebx, 9                                                         ; +0x5b, 0x1403c313b\njz      short loc_1403C3147                                            ; +0x60, 0x1403c3140\nmov     dil, 1                                                         ; +0x62, 0x1403c3142\njmp     short loc_1403C314A                                            ; +0x65, 0x1403c3145\nxor     dil, dil                                                       ; +0x67, 0x1403c3147\ntest    bl, 1                                                          ; +0x6a, 0x1403c314a\njz      short loc_1403C3159                                            ; +0x6d, 0x1403c314d\nlea     rcx, [rsp+58h+var_30]                                          ; +0x6f, 0x1403c314f\ncall    sub_14003A830                                                  ; +0x74, 0x1403c3154\ntest    dil, dil                                                       ; +0x79, 0x1403c3159\njz      loc_1403C3287                                                  ; +0x7c, 0x1403c315c\nmov     rdx, [rsi+2B0h]                                                ; +0x82, 0x1403c3162\nlea     rcx, [rsp+58h+var_30]                                          ; +0x89, 0x1403c3169\nadd     rdx, 348h                                                      ; +0x8e, 0x1403c316e\ncall    sub_14003BDB0                                                  ; +0x95, 0x1403c3175\nlea     rcx, [rsp+58h+var_30]                                          ; +0x9a, 0x1403c317a\ncall    StarInfoPopup__createFromString                                ; +0x9f, 0x1403c317f\njmp     loc_1403C327B                                                  ; +0xa4, 0x1403c3184\nmov     rax, [rdi]                                                     ; +0xa9, 0x1403c3189\nmov     rcx, rdi                                                       ; +0xac, 0x1403c318c\ncall    qword ptr [rax+38h]                                            ; +0xaf, 0x1403c318f\ncmp     eax, 2                                                         ; +0xb2, 0x1403c3192\njnz     short loc_1403C3205                                            ; +0xb5, 0x1403c3195\nmov     rdx, [rsi+2B0h]                                                ; +0xb7, 0x1403c3197\ntest    rdx, rdx                                                       ; +0xbe, 0x1403c319e\njz      short loc_1403C31C6                                            ; +0xc1, 0x1403c31a1\nadd     rdx, 368h                                                      ; +0xc3, 0x1403c31a3\nlea     rcx, [rsp+58h+var_30]                                          ; +0xca, 0x1403c31aa\ncall    sub_14003BDB0                                                  ; +0xcf, 0x1403c31af\ncmp     [rsp+58h+var_20], 0                                            ; +0xd4, 0x1403c31b4\nmov     ebx, 22h ; '\"'                                                 ; +0xda, 0x1403c31ba\njz      short loc_1403C31C6                                            ; +0xdf, 0x1403c31bf\nmov     dil, 1                                                         ; +0xe1, 0x1403c31c1\njmp     short loc_1403C31C9                                            ; +0xe4, 0x1403c31c4\nxor     dil, dil                                                       ; +0xe6, 0x1403c31c6\ntest    bl, 2                                                          ; +0xe9, 0x1403c31c9\njz      short loc_1403C31D8                                            ; +0xec, 0x1403c31cc\nlea     rcx, [rsp+58h+var_30]                                          ; +0xee, 0x1403c31ce\ncall    sub_14003A830                                                  ; +0xf3, 0x1403c31d3\ntest    dil, dil                                                       ; +0xf8, 0x1403c31d8\njz      loc_1403C3287                                                  ; +0xfb, 0x1403c31db\nmov     rdx, [rsi+2B0h]                                                ; +0x101, 0x1403c31e1\nlea     rcx, [rsp+58h+var_30]                                          ; +0x108, 0x1403c31e8\nadd     rdx, 368h                                                      ; +0x10d, 0x1403c31ed\ncall    sub_14003BDB0                                                  ; +0x114, 0x1403c31f4\nlea     rcx, [rsp+58h+var_30]                                          ; +0x119, 0x1403c31f9\ncall    StarInfoPopup__createFromStringMoons                           ; +0x11e, 0x1403c31fe\njmp     short loc_1403C327B                                            ; +0x123, 0x1403c3203\nmov     rax, [rdi]                                                     ; +0x125, 0x1403c3205\nmov     rcx, rdi                                                       ; +0x128, 0x1403c3208\ncall    qword ptr [rax+38h]                                            ; +0x12b, 0x1403c320b\ncmp     eax, 3                                                         ; +0x12e, 0x1403c320e\njnz     short loc_1403C3287                                            ; +0x131, 0x1403c3211\nmov     rdx, [rsi+2B0h]                                                ; +0x133, 0x1403c3213\ntest    rdx, rdx                                                       ; +0x13a, 0x1403c321a\njz      short loc_1403C3242                                            ; +0x13d, 0x1403c321d\nadd     rdx, 328h                                                      ; +0x13f, 0x1403c321f\nlea     rcx, [rsp+58h+var_30]                                          ; +0x146, 0x1403c3226\ncall    sub_14003BDB0                                                  ; +0x14b, 0x1403c322b\ncmp     [rsp+58h+var_20], 0                                            ; +0x150, 0x1403c3230\nmov     ebx, 84h                                                       ; +0x156, 0x1403c3236\njz      short loc_1403C3242                                            ; +0x15b, 0x1403c323b\nmov     dil, 1                                                         ; +0x15d, 0x1403c323d\njmp     short loc_1403C3245                                            ; +0x160, 0x1403c3240\nxor     dil, dil                                                       ; +0x162, 0x1403c3242\ntest    bl, 4                                                          ; +0x165, 0x1403c3245\njz      short loc_1403C3254                                            ; +0x168, 0x1403c3248\nlea     rcx, [rsp+58h+var_30]                                          ; +0x16a, 0x1403c324a\ncall    sub_14003A830                                                  ; +0x16f, 0x1403c324f\ntest    dil, dil                                                       ; +0x174, 0x1403c3254\njz      short loc_1403C3287                                            ; +0x177, 0x1403c3257\nmov     rdx, [rsi+2B0h]                                                ; +0x179, 0x1403c3259\nlea     rcx, [rsp+58h+var_30]                                          ; +0x180, 0x1403c3260\nadd     rdx, 328h                                                      ; +0x185, 0x1403c3265\ncall    sub_14003BDB0                                                  ; +0x18c, 0x1403c326c\nlea     rcx, [rsp+58h+var_30]                                          ; +0x191, 0x1403c3271\ncall    DemonInfoPopup__createFromString                               ; +0x196, 0x1403c3276\nmov     rdx, [rax]                                                     ; +0x19b, 0x1403c327b\nmov     rcx, rax                                                       ; +0x19e, 0x1403c327e\ncall    qword ptr [rdx+410h]                                           ; +0x1a1, 0x1403c3281\nmov     rcx, [rsp+58h+var_10]                                          ; +0x1a7, 0x1403c3287\nxor     rcx, rsp; StackCookie                                          ; +0x1ac, 0x1403c328c\ncall    __security_check_cookie                                        ; +0x1af, 0x1403c328f\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x1b4, 0x1403c3294\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x1b9, 0x1403c3299\nadd     rsp, 50h                                                       ; +0x1be, 0x1403c329e\npop     rdi                                                            ; +0x1c2, 0x1403c32a2\nretn                                                                   ; +0x1c3, 0x1403c32a3", "xrefs": ["ProfilePage::loadPageFromUserInfo @ 0x1403c0524", "<???> @ 0x1406d7754"], "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"}