{"type": "func", "start": 5370022512, "end": 5370022793, "name": "FriendsProfilePage::onUpdate", "pseudocode": "// \n// FriendsProfilePage::onUpdate from 0x140140a70 to 0x140140b89 (281 bytes)\n// \n// 2 xrefs:\n// > FriendsProfilePage::init @ 0x1401402f5\n// > <???> @ 0x1406ca2d8\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 FriendsProfilePage::onUpdate(FriendsProfilePage *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // rcx\n  GameLevelManager *v4; // rcx\n  GameLevelManager *v5; // rbx\n  UserListType m_type; // edi\n  UserListDelegate *m_userListDelegate; // rcx\n  void *v8; // [rsp+40h] [rbp+18h]\n  void *v9; // [rsp+40h] [rbp+18h]\n  void *v10; // [rsp+40h] [rbp+18h]\n\n  v3 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v8 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v3 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  if ( (unsigned int)(GameLevelManager::getTimeLeft(v3, \"upd_friends\", 5.0) - 1) > 4 )\n  {\n    v4 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v9 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280(v9);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v4 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    GameLevelManager::makeTimeStamp(v4, \"upd_friends\");\n    v5 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v10 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280(v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v5 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    m_type = a1->m_type;\n    GameLevelManager::resetStoredUserList(v5, m_type);\n    m_userListDelegate = v5->m_userListDelegate;\n    if ( m_userListDelegate )\n      m_userListDelegate->forceReloadList(m_userListDelegate, m_type);\n  }\n}", "assembly": "; \n; FriendsProfilePage::onUpdate from 0x140140a70 to 0x140140b89 (281 bytes)\n; \n; 2 xrefs:\n; > FriendsProfilePage::init @ 0x1401402f5\n; > <???> @ 0x1406ca2d8\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, 0x140140a70\npush    rdi                                                            ; +0x5, 0x140140a75\nsub     rsp, 20h                                                       ; +0x6, 0x140140a76\nmov     rdi, rcx                                                       ; +0xa, 0x140140a7a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xd, 0x140140a7d\ntest    rcx, rcx                                                       ; +0x14, 0x140140a84\njnz     short loc_140140AB8                                            ; +0x17, 0x140140a87\nmov     ecx, 3D0h; Size                                                ; +0x19, 0x140140a89\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x140140a8e\nmov     [rsp+28h+arg_10], rax                                          ; +0x23, 0x140140a93\nmov     rcx, rax                                                       ; +0x28, 0x140140a98\ncall    sub_140141280                                                  ; +0x2b, 0x140140a9b\nnop                                                                    ; +0x30, 0x140140aa0\nmov     cs:qword_1406C2EC0, rax                                        ; +0x31, 0x140140aa1\nmov     rdx, [rax]                                                     ; +0x38, 0x140140aa8\nmov     rcx, rax                                                       ; +0x3b, 0x140140aab\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x140140aae\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x41, 0x140140ab1\nmovss   xmm2, cs:flt_140623010                                         ; +0x48, 0x140140ab8\nlea     rdx, aUpdFriends; \"upd_friends\"                                ; +0x50, 0x140140ac0\ncall    GameLevelManager__getTimeLeft                                  ; +0x57, 0x140140ac7\ndec     eax                                                            ; +0x5c, 0x140140acc\ncmp     eax, 4                                                         ; +0x5e, 0x140140ace\njbe     loc_140140B7E                                                  ; +0x61, 0x140140ad1\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x67, 0x140140ad7\ntest    rcx, rcx                                                       ; +0x6e, 0x140140ade\njnz     short loc_140140B13                                            ; +0x71, 0x140140ae1\nmov     ecx, 3D0h; Size                                                ; +0x73, 0x140140ae3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x78, 0x140140ae8\nmov     [rsp+28h+arg_10], rax                                          ; +0x7d, 0x140140aed\nmov     rcx, rax                                                       ; +0x82, 0x140140af2\ncall    sub_140141280                                                  ; +0x85, 0x140140af5\nnop                                                                    ; +0x8a, 0x140140afa\nmov     cs:qword_1406C2EC0, rax                                        ; +0x8b, 0x140140afb\nmov     r8, [rax]                                                      ; +0x92, 0x140140b02\nmov     rcx, rax                                                       ; +0x95, 0x140140b05\ncall    qword ptr [r8+48h]                                             ; +0x98, 0x140140b08\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x9c, 0x140140b0c\nlea     rdx, aUpdFriends; \"upd_friends\"                                ; +0xa3, 0x140140b13\ncall    GameLevelManager__makeTimeStamp                                ; +0xaa, 0x140140b1a\nmov     rbx, cs:qword_1406C2EC0                                        ; +0xaf, 0x140140b1f\ntest    rbx, rbx                                                       ; +0xb6, 0x140140b26\njnz     short loc_140140B5A                                            ; +0xb9, 0x140140b29\nmov     ecx, 3D0h; Size                                                ; +0xbb, 0x140140b2b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc0, 0x140140b30\nmov     [rsp+28h+arg_10], rax                                          ; +0xc5, 0x140140b35\nmov     rcx, rax                                                       ; +0xca, 0x140140b3a\ncall    sub_140141280                                                  ; +0xcd, 0x140140b3d\nnop                                                                    ; +0xd2, 0x140140b42\nmov     cs:qword_1406C2EC0, rax                                        ; +0xd3, 0x140140b43\nmov     rdx, [rax]                                                     ; +0xda, 0x140140b4a\nmov     rcx, rax                                                       ; +0xdd, 0x140140b4d\ncall    qword ptr [rdx+48h]                                            ; +0xe0, 0x140140b50\nmov     rbx, cs:qword_1406C2EC0                                        ; +0xe3, 0x140140b53\nmov     edi, [rdi+298h]                                                ; +0xea, 0x140140b5a\nmov     edx, edi                                                       ; +0xf0, 0x140140b60\nmov     rcx, rbx                                                       ; +0xf2, 0x140140b62\ncall    GameLevelManager__resetStoredUserList                          ; +0xf5, 0x140140b65\nmov     rcx, [rbx+330h]                                                ; +0xfa, 0x140140b6a\ntest    rcx, rcx                                                       ; +0x101, 0x140140b71\njz      short loc_140140B7E                                            ; +0x104, 0x140140b74\nmov     rax, [rcx]                                                     ; +0x106, 0x140140b76\nmov     edx, edi                                                       ; +0x109, 0x140140b79\ncall    qword ptr [rax+18h]                                            ; +0x10b, 0x140140b7b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x10e, 0x140140b7e\nadd     rsp, 20h                                                       ; +0x113, 0x140140b83\npop     rdi                                                            ; +0x117, 0x140140b87\nretn                                                                   ; +0x118, 0x140140b88", "xrefs": ["FriendsProfilePage::init @ 0x1401402f5", "<???> @ 0x1406ca2d8"], "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"}