{"type": "func", "start": 5372080656, "end": 5372080912, "name": "MessagesProfilePage::onUpdate", "pseudocode": "// \n// MessagesProfilePage::onUpdate from 0x140337210 to 0x140337310 (256 bytes)\n// \n// 2 xrefs:\n// > MessagesProfilePage::init @ 0x140337035\n// > <???> @ 0x1406d5258\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 MessagesProfilePage::onUpdate(MessagesProfilePage *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // rcx\n  GameLevelManager *v4; // rcx\n  GameLevelManager *v5; // rcx\n  void *v6; // [rsp+40h] [rbp+18h]\n  void *v7; // [rsp+40h] [rbp+18h]\n  void *v8; // [rsp+40h] [rbp+18h]\n\n  v3 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v6 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v3 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  if ( (unsigned int)(GameLevelManager::getTimeLeft(v3, \"upd_messages\", 5.0) - 1) > 4 )\n  {\n    v4 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v7 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v4 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    GameLevelManager::makeTimeStamp(v4, \"upd_messages\");\n    v5 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v8 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v5 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    GameLevelManager::invalidateMessages(v5, a1->m_sentMessages, 1);\n  }\n}", "assembly": "; \n; MessagesProfilePage::onUpdate from 0x140337210 to 0x140337310 (256 bytes)\n; \n; 2 xrefs:\n; > MessagesProfilePage::init @ 0x140337035\n; > <???> @ 0x1406d5258\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, 0x140337210\nsub     rsp, 20h                                                       ; +0x2, 0x140337212\nmov     rbx, rcx                                                       ; +0x6, 0x140337216\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x9, 0x140337219\ntest    rcx, rcx                                                       ; +0x10, 0x140337220\njnz     short loc_140337254                                            ; +0x13, 0x140337223\nmov     ecx, 3D0h; Size                                                ; +0x15, 0x140337225\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14033722a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x14033722f\nmov     rcx, rax                                                       ; +0x24, 0x140337234\ncall    sub_140141280                                                  ; +0x27, 0x140337237\nnop                                                                    ; +0x2c, 0x14033723c\nmov     cs:qword_1406C2EC0, rax                                        ; +0x2d, 0x14033723d\nmov     rdx, [rax]                                                     ; +0x34, 0x140337244\nmov     rcx, rax                                                       ; +0x37, 0x140337247\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x14033724a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x3d, 0x14033724d\nmovss   xmm2, cs:flt_140623010                                         ; +0x44, 0x140337254\nlea     rdx, aUpdMessages; \"upd_messages\"                              ; +0x4c, 0x14033725c\ncall    GameLevelManager__getTimeLeft                                  ; +0x53, 0x140337263\ndec     eax                                                            ; +0x58, 0x140337268\ncmp     eax, 4                                                         ; +0x5a, 0x14033726a\njbe     loc_14033730A                                                  ; +0x5d, 0x14033726d\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x63, 0x140337273\ntest    rcx, rcx                                                       ; +0x6a, 0x14033727a\njnz     short loc_1403372AF                                            ; +0x6d, 0x14033727d\nmov     ecx, 3D0h; Size                                                ; +0x6f, 0x14033727f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x74, 0x140337284\nmov     [rsp+28h+arg_10], rax                                          ; +0x79, 0x140337289\nmov     rcx, rax                                                       ; +0x7e, 0x14033728e\ncall    sub_140141280                                                  ; +0x81, 0x140337291\nnop                                                                    ; +0x86, 0x140337296\nmov     cs:qword_1406C2EC0, rax                                        ; +0x87, 0x140337297\nmov     r8, [rax]                                                      ; +0x8e, 0x14033729e\nmov     rcx, rax                                                       ; +0x91, 0x1403372a1\ncall    qword ptr [r8+48h]                                             ; +0x94, 0x1403372a4\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x98, 0x1403372a8\nlea     rdx, aUpdMessages; \"upd_messages\"                              ; +0x9f, 0x1403372af\ncall    GameLevelManager__makeTimeStamp                                ; +0xa6, 0x1403372b6\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xab, 0x1403372bb\ntest    rcx, rcx                                                       ; +0xb2, 0x1403372c2\njnz     short loc_1403372F6                                            ; +0xb5, 0x1403372c5\nmov     ecx, 3D0h; Size                                                ; +0xb7, 0x1403372c7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xbc, 0x1403372cc\nmov     [rsp+28h+arg_10], rax                                          ; +0xc1, 0x1403372d1\nmov     rcx, rax                                                       ; +0xc6, 0x1403372d6\ncall    sub_140141280                                                  ; +0xc9, 0x1403372d9\nnop                                                                    ; +0xce, 0x1403372de\nmov     cs:qword_1406C2EC0, rax                                        ; +0xcf, 0x1403372df\nmov     rdx, [rax]                                                     ; +0xd6, 0x1403372e6\nmov     rcx, rax                                                       ; +0xd9, 0x1403372e9\ncall    qword ptr [rdx+48h]                                            ; +0xdc, 0x1403372ec\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xdf, 0x1403372ef\nmov     r8b, 1                                                         ; +0xe6, 0x1403372f6\nmovzx   edx, byte ptr [rbx+298h]                                       ; +0xe9, 0x1403372f9\nadd     rsp, 20h                                                       ; +0xf0, 0x140337300\npop     rbx                                                            ; +0xf4, 0x140337304\njmp     GameLevelManager__invalidateMessages                           ; +0xf5, 0x140337305\nadd     rsp, 20h                                                       ; +0xfa, 0x14033730a\npop     rbx                                                            ; +0xfe, 0x14033730e\nretn                                                                   ; +0xff, 0x14033730f", "xrefs": ["MessagesProfilePage::init @ 0x140337035", "<???> @ 0x1406d5258"], "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"}