{"type": "func", "start": 5370900096, "end": 5370900383, "name": "FriendsProfilePage::onUpdate", "pseudocode": "// \n// FriendsProfilePage::onUpdate from 0x140216e80 to 0x140216f9f (287 bytes)\n// \n// 2 xrefs:\n// > FriendsProfilePage::init @ 0x1402141e1\n// > <???> @ 0x14091b794\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:21 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall FriendsProfilePage::onUpdate(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 result; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rbx\n  unsigned int v6; // edi\n  __int64 v7; // rcx\n  void *v8; // [rsp+40h] [rbp+18h]\n  void *v9; // [rsp+40h] [rbp+18h]\n  void *v10; // [rsp+40h] [rbp+18h]\n\n  v2 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v8 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v8);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v2 = *(_QWORD *)&qword_14090BFB0;\n  }\n  result = (unsigned int)GameLevelManager::getTimeLeft(v2, \"upd_friends\") - 1;\n  if ( (unsigned int)result > 4 )\n  {\n    v4 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v9 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v9);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v4 = *(_QWORD *)&qword_14090BFB0;\n    }\n    GameLevelManager::makeTimeStamp(v4, \"upd_friends\");\n    v5 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v10 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v10);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v5 = *(_QWORD *)&qword_14090BFB0;\n    }\n    v6 = *(_DWORD *)(a1 + 816);\n    result = GameLevelManager::resetStoredUserList(v5, v6);\n    v7 = *(_QWORD *)(v5 + 1496);\n    if ( v7 )\n      return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, v6);\n  }\n  return result;\n}", "assembly": "; \n; FriendsProfilePage::onUpdate from 0x140216e80 to 0x140216f9f (287 bytes)\n; \n; 2 xrefs:\n; > FriendsProfilePage::init @ 0x1402141e1\n; > <???> @ 0x14091b794\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140216e80\npush    rdi                                                            ; +0x5, 0x140216e85\nsub     rsp, 20h                                                       ; +0x6, 0x140216e86\nmov     rdi, rcx                                                       ; +0xa, 0x140216e8a\nmov     rcx, cs:qword_14090BFB0                                        ; +0xd, 0x140216e8d\ntest    rcx, rcx                                                       ; +0x14, 0x140216e94\njnz     short loc_140216ECB                                            ; +0x17, 0x140216e97\nmov     ecx, 690h; Size                                                ; +0x19, 0x140216e99\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x140216e9e\nmov     [rsp+28h+arg_10], rax                                          ; +0x23, 0x140216ea3\nmov     rcx, rax                                                       ; +0x28, 0x140216ea8\ncall    GameLevelManager__GameLevelManager                             ; +0x2b, 0x140216eab\nnop                                                                    ; +0x30, 0x140216eb0\nmov     cs:qword_14090BFB0, rax                                        ; +0x31, 0x140216eb1\nmov     rcx, [rax]                                                     ; +0x38, 0x140216eb8\nmov     rdx, [rcx+48h]                                                 ; +0x3b, 0x140216ebb\nmov     rcx, rax                                                       ; +0x3f, 0x140216ebf\ncall    rdx                                                            ; +0x42, 0x140216ec2\nmov     rcx, cs:qword_14090BFB0                                        ; +0x44, 0x140216ec4\nmovss   xmm2, cs:flt_140835470                                         ; +0x4b, 0x140216ecb\nlea     rdx, aUpdFriends; \"upd_friends\"                                ; +0x53, 0x140216ed3\ncall    GameLevelManager__getTimeLeft                                  ; +0x5a, 0x140216eda\ndec     eax                                                            ; +0x5f, 0x140216edf\ncmp     eax, 4                                                         ; +0x61, 0x140216ee1\njbe     loc_140216F94                                                  ; +0x64, 0x140216ee4\nmov     rcx, cs:qword_14090BFB0                                        ; +0x6a, 0x140216eea\ntest    rcx, rcx                                                       ; +0x71, 0x140216ef1\njnz     short loc_140216F26                                            ; +0x74, 0x140216ef4\nmov     ecx, 690h; Size                                                ; +0x76, 0x140216ef6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7b, 0x140216efb\nmov     [rsp+28h+arg_10], rax                                          ; +0x80, 0x140216f00\nmov     rcx, rax                                                       ; +0x85, 0x140216f05\ncall    GameLevelManager__GameLevelManager                             ; +0x88, 0x140216f08\nnop                                                                    ; +0x8d, 0x140216f0d\nmov     cs:qword_14090BFB0, rax                                        ; +0x8e, 0x140216f0e\nmov     r8, [rax]                                                      ; +0x95, 0x140216f15\nmov     rcx, rax                                                       ; +0x98, 0x140216f18\ncall    qword ptr [r8+48h]                                             ; +0x9b, 0x140216f1b\nmov     rcx, cs:qword_14090BFB0                                        ; +0x9f, 0x140216f1f\nlea     rdx, aUpdFriends; \"upd_friends\"                                ; +0xa6, 0x140216f26\ncall    GameLevelManager__makeTimeStamp                                ; +0xad, 0x140216f2d\nmov     rbx, cs:qword_14090BFB0                                        ; +0xb2, 0x140216f32\ntest    rbx, rbx                                                       ; +0xb9, 0x140216f39\njnz     short loc_140216F70                                            ; +0xbc, 0x140216f3c\nmov     ecx, 690h; Size                                                ; +0xbe, 0x140216f3e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc3, 0x140216f43\nmov     [rsp+28h+arg_10], rax                                          ; +0xc8, 0x140216f48\nmov     rcx, rax                                                       ; +0xcd, 0x140216f4d\ncall    GameLevelManager__GameLevelManager                             ; +0xd0, 0x140216f50\nnop                                                                    ; +0xd5, 0x140216f55\nmov     cs:qword_14090BFB0, rax                                        ; +0xd6, 0x140216f56\nmov     rcx, [rax]                                                     ; +0xdd, 0x140216f5d\nmov     rdx, [rcx+48h]                                                 ; +0xe0, 0x140216f60\nmov     rcx, rax                                                       ; +0xe4, 0x140216f64\ncall    rdx                                                            ; +0xe7, 0x140216f67\nmov     rbx, cs:qword_14090BFB0                                        ; +0xe9, 0x140216f69\nmov     edi, [rdi+330h]                                                ; +0xf0, 0x140216f70\nmov     edx, edi                                                       ; +0xf6, 0x140216f76\nmov     rcx, rbx                                                       ; +0xf8, 0x140216f78\ncall    GameLevelManager__resetStoredUserList                          ; +0xfb, 0x140216f7b\nmov     rcx, [rbx+5D8h]                                                ; +0x100, 0x140216f80\ntest    rcx, rcx                                                       ; +0x107, 0x140216f87\njz      short loc_140216F94                                            ; +0x10a, 0x140216f8a\nmov     rax, [rcx]                                                     ; +0x10c, 0x140216f8c\nmov     edx, edi                                                       ; +0x10f, 0x140216f8f\ncall    qword ptr [rax+18h]                                            ; +0x111, 0x140216f91\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x114, 0x140216f94\nadd     rsp, 20h                                                       ; +0x119, 0x140216f99\npop     rdi                                                            ; +0x11d, 0x140216f9d\nretn                                                                   ; +0x11e, 0x140216f9e", "xrefs": ["FriendsProfilePage::init @ 0x1402141e1", "<???> @ 0x14091b794"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}