{"type": "func", "start": 5371579632, "end": 5371579975, "name": "InfoLayer::onRefreshComments", "pseudocode": "// \n// InfoLayer::onRefreshComments from 0x1402bccf0 to 0x1402bce47 (343 bytes)\n// \n// 2 xrefs:\n// > InfoLayer::init @ 0x1402bc80b\n// > <???> @ 0x1406d27f8\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=3\nvoid InfoLayer::onRefreshComments(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // rcx\n  GameLevelManager *v4; // rcx\n  GJUserScore *m_score; // rbx\n  int m_userID; // ebx\n  GJLevelList *m_levelList; // rbx\n  GJGameLevel *m_level; // rax\n  GameLevelManager *v9; // rcx\n  void *v10; // [rsp+40h] [rbp+18h]\n  void *v11; // [rsp+40h] [rbp+18h]\n  void *v12; // [rsp+40h] [rbp+18h]\n\n  v3 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v10 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v3 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  if ( (unsigned int)(GameLevelManager::getTimeLeft(v3, \"upd_comments\", 5.0) - 1) > 4 )\n  {\n    v4 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v11 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v11);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v4 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    GameLevelManager::makeTimeStamp(v4, \"upd_comments\");\n    m_score = a1->m_score;\n    if ( m_score )\n    {\n      m_userID = m_score->m_userID;\n    }\n    else\n    {\n      m_levelList = a1->m_levelList;\n      if ( m_levelList )\n      {\n        m_userID = -m_levelList->m_listID;\n      }\n      else\n      {\n        m_level = a1->m_level;\n        if ( m_level )\n          m_userID = m_level->m_levelID.random - m_level->m_levelID.seed;\n        else\n          m_userID = 0;\n      }\n    }\n    v9 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v12 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v12);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v9 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    GameLevelManager::resetCommentTimersForLevelID(v9, m_userID, a1->m_mode);\n    InfoLayer::loadPage(a1, 0, 1);\n  }\n}", "assembly": "; \n; InfoLayer::onRefreshComments from 0x1402bccf0 to 0x1402bce47 (343 bytes)\n; \n; 2 xrefs:\n; > InfoLayer::init @ 0x1402bc80b\n; > <???> @ 0x1406d27f8\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_0], rbx                                               ; +0x0, 0x1402bccf0\npush    rdi                                                            ; +0x5, 0x1402bccf5\nsub     rsp, 20h                                                       ; +0x6, 0x1402bccf6\nmov     rdi, rcx                                                       ; +0xa, 0x1402bccfa\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xd, 0x1402bccfd\ntest    rcx, rcx                                                       ; +0x14, 0x1402bcd04\njnz     short loc_1402BCD38                                            ; +0x17, 0x1402bcd07\nmov     ecx, 3D0h; Size                                                ; +0x19, 0x1402bcd09\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1402bcd0e\nmov     [rsp+28h+arg_10], rax                                          ; +0x23, 0x1402bcd13\nmov     rcx, rax                                                       ; +0x28, 0x1402bcd18\ncall    sub_140141280                                                  ; +0x2b, 0x1402bcd1b\nnop                                                                    ; +0x30, 0x1402bcd20\nmov     cs:qword_1406C2EC0, rax                                        ; +0x31, 0x1402bcd21\nmov     rdx, [rax]                                                     ; +0x38, 0x1402bcd28\nmov     rcx, rax                                                       ; +0x3b, 0x1402bcd2b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x1402bcd2e\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x41, 0x1402bcd31\nmovss   xmm2, cs:flt_140623010                                         ; +0x48, 0x1402bcd38\nlea     rdx, aUpdComments; \"upd_comments\"                              ; +0x50, 0x1402bcd40\ncall    GameLevelManager__getTimeLeft                                  ; +0x57, 0x1402bcd47\ndec     eax                                                            ; +0x5c, 0x1402bcd4c\ncmp     eax, 4                                                         ; +0x5e, 0x1402bcd4e\njbe     loc_1402BCE3C                                                  ; +0x61, 0x1402bcd51\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x67, 0x1402bcd57\ntest    rcx, rcx                                                       ; +0x6e, 0x1402bcd5e\njnz     short loc_1402BCD93                                            ; +0x71, 0x1402bcd61\nmov     ecx, 3D0h; Size                                                ; +0x73, 0x1402bcd63\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x78, 0x1402bcd68\nmov     [rsp+28h+arg_10], rax                                          ; +0x7d, 0x1402bcd6d\nmov     rcx, rax                                                       ; +0x82, 0x1402bcd72\ncall    sub_140141280                                                  ; +0x85, 0x1402bcd75\nnop                                                                    ; +0x8a, 0x1402bcd7a\nmov     cs:qword_1406C2EC0, rax                                        ; +0x8b, 0x1402bcd7b\nmov     r8, [rax]                                                      ; +0x92, 0x1402bcd82\nmov     rcx, rax                                                       ; +0x95, 0x1402bcd85\ncall    qword ptr [r8+48h]                                             ; +0x98, 0x1402bcd88\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x9c, 0x1402bcd8c\nlea     rdx, aUpdComments; \"upd_comments\"                              ; +0xa3, 0x1402bcd93\ncall    GameLevelManager__makeTimeStamp                                ; +0xaa, 0x1402bcd9a\nmov     rbx, [rdi+298h]                                                ; +0xaf, 0x1402bcd9f\ntest    rbx, rbx                                                       ; +0xb6, 0x1402bcda6\njz      short loc_1402BCDB3                                            ; +0xb9, 0x1402bcda9\nmov     ebx, [rbx+184h]                                                ; +0xbb, 0x1402bcdab\njmp     short loc_1402BCDE5                                            ; +0xc1, 0x1402bcdb1\nmov     rbx, [rdi+2A0h]                                                ; +0xc3, 0x1402bcdb3\ntest    rbx, rbx                                                       ; +0xca, 0x1402bcdba\njz      short loc_1402BCDC9                                            ; +0xcd, 0x1402bcdbd\nmov     ebx, [rbx+158h]                                                ; +0xcf, 0x1402bcdbf\nneg     ebx                                                            ; +0xd5, 0x1402bcdc5\njmp     short loc_1402BCDE5                                            ; +0xd7, 0x1402bcdc7\nmov     rax, [rdi+290h]                                                ; +0xd9, 0x1402bcdc9\ntest    rax, rax                                                       ; +0xe0, 0x1402bcdd0\njz      short loc_1402BCDE3                                            ; +0xe3, 0x1402bcdd3\nmov     ebx, [rax+148h]                                                ; +0xe5, 0x1402bcdd5\nsub     ebx, [rax+14Ch]                                                ; +0xeb, 0x1402bcddb\njmp     short loc_1402BCDE5                                            ; +0xf1, 0x1402bcde1\nxor     ebx, ebx                                                       ; +0xf3, 0x1402bcde3\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xf5, 0x1402bcde5\ntest    rcx, rcx                                                       ; +0xfc, 0x1402bcdec\njnz     short loc_1402BCE21                                            ; +0xff, 0x1402bcdef\nmov     ecx, 3D0h; Size                                                ; +0x101, 0x1402bcdf1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x106, 0x1402bcdf6\nmov     [rsp+28h+arg_10], rax                                          ; +0x10b, 0x1402bcdfb\nmov     rcx, rax                                                       ; +0x110, 0x1402bce00\ncall    sub_140141280                                                  ; +0x113, 0x1402bce03\nnop                                                                    ; +0x118, 0x1402bce08\nmov     cs:qword_1406C2EC0, rax                                        ; +0x119, 0x1402bce09\nmov     r8, [rax]                                                      ; +0x120, 0x1402bce10\nmov     rcx, rax                                                       ; +0x123, 0x1402bce13\ncall    qword ptr [r8+48h]                                             ; +0x126, 0x1402bce16\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x12a, 0x1402bce1a\nmov     r8d, [rdi+334h]                                                ; +0x131, 0x1402bce21\nmov     edx, ebx                                                       ; +0x138, 0x1402bce28\ncall    GameLevelManager__resetCommentTimersForLevelID                 ; +0x13a, 0x1402bce2a\nmov     r8b, 1                                                         ; +0x13f, 0x1402bce2f\nxor     edx, edx                                                       ; +0x142, 0x1402bce32\nmov     rcx, rdi                                                       ; +0x144, 0x1402bce34\ncall    InfoLayer__loadPage                                            ; +0x147, 0x1402bce37\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x14c, 0x1402bce3c\nadd     rsp, 20h                                                       ; +0x151, 0x1402bce41\npop     rdi                                                            ; +0x155, 0x1402bce45\nretn                                                                   ; +0x156, 0x1402bce46", "xrefs": ["InfoLayer::init @ 0x1402bc80b", "<???> @ 0x1406d27f8"], "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"}