{"type": "func", "start": 5373076480, "end": 5373076863, "name": "LevelLeaderboard::onUpdate", "pseudocode": "// \n// LevelLeaderboard::onUpdate from 0x14042a400 to 0x14042a57f (383 bytes)\n// \n// 2 xrefs:\n// > LevelLeaderboard::init @ 0x140428dd0\n// > <???> @ 0x140926a98\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:32:12 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall LevelLeaderboard::onUpdate(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rcx\n  __int64 v4; // rcx\n  __int64 v5; // rdx\n  __int64 v6; // rcx\n  void *v7; // [rsp+40h] [rbp+18h]\n  void *v8; // [rsp+40h] [rbp+18h]\n  void *v9; // [rsp+40h] [rbp+18h]\n\n  v2 = GJAccountManager::sharedState();\n  if ( *(_DWORD *)(v2 + 360) - *(_DWORD *)(v2 + 364) > 0 )\n  {\n    v3 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v7 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v7);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v3 = *(_QWORD *)&qword_14090BFB0;\n    }\n    if ( (unsigned int)GameLevelManager::getTimeLeft(v3, \"upd_ll\", 5.0) - 1 > 4 )\n    {\n      v4 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v8 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v8);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v4 = *(_QWORD *)&qword_14090BFB0;\n      }\n      GameLevelManager::makeTimeStamp(v4, \"upd_ll\");\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 720) + 336LL))(*(_QWORD *)(a1 + 720), 0);\n      LOBYTE(v5) = 1;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 712) + 336LL))(*(_QWORD *)(a1 + 712), v5);\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 728) + 336LL))(*(_QWORD *)(a1 + 728), 0);\n      LevelLeaderboard::setupLeaderboard(a1, 0);\n      v6 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v9 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v9);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v6 = *(_QWORD *)&qword_14090BFB0;\n      }\n      *(_QWORD *)(v6 + 1424) = a1 + 664;\n      GameLevelManager::getLevelLeaderboard(v6, *(_QWORD *)(a1 + 680), *(_DWORD *)(a1 + 688), *(_DWORD *)(a1 + 692));\n    }\n  }\n}", "assembly": "; \n; LevelLeaderboard::onUpdate from 0x14042a400 to 0x14042a57f (383 bytes)\n; \n; 2 xrefs:\n; > LevelLeaderboard::init @ 0x140428dd0\n; > <???> @ 0x140926a98\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:32:12 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14042a400\npush    rdi                                                            ; +0x5, 0x14042a405\nsub     rsp, 20h                                                       ; +0x6, 0x14042a406\nmov     rbx, rcx                                                       ; +0xa, 0x14042a40a\ncall    GJAccountManager__sharedState                                  ; +0xd, 0x14042a40d\nmov     edx, [rax+168h]                                                ; +0x12, 0x14042a412\nsub     edx, [rax+16Ch]                                                ; +0x18, 0x14042a418\ntest    edx, edx                                                       ; +0x1e, 0x14042a41e\njle     loc_14042A574                                                  ; +0x20, 0x14042a420\nmov     rcx, cs:qword_14090BFB0                                        ; +0x26, 0x14042a426\ntest    rcx, rcx                                                       ; +0x2d, 0x14042a42d\njnz     short loc_14042A464                                            ; +0x30, 0x14042a430\nmov     ecx, 690h; Size                                                ; +0x32, 0x14042a432\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x37, 0x14042a437\nmov     [rsp+28h+arg_10], rax                                          ; +0x3c, 0x14042a43c\nmov     rcx, rax                                                       ; +0x41, 0x14042a441\ncall    GameLevelManager__GameLevelManager                             ; +0x44, 0x14042a444\nnop                                                                    ; +0x49, 0x14042a449\nmov     cs:qword_14090BFB0, rax                                        ; +0x4a, 0x14042a44a\nmov     rcx, [rax]                                                     ; +0x51, 0x14042a451\nmov     rdx, [rcx+48h]                                                 ; +0x54, 0x14042a454\nmov     rcx, rax                                                       ; +0x58, 0x14042a458\ncall    rdx                                                            ; +0x5b, 0x14042a45b\nmov     rcx, cs:qword_14090BFB0                                        ; +0x5d, 0x14042a45d\nmovss   xmm2, cs:flt_140835470                                         ; +0x64, 0x14042a464\nlea     rdx, aUpdLl; \"upd_ll\"                                          ; +0x6c, 0x14042a46c\ncall    GameLevelManager__getTimeLeft                                  ; +0x73, 0x14042a473\ndec     eax                                                            ; +0x78, 0x14042a478\ncmp     eax, 4                                                         ; +0x7a, 0x14042a47a\njbe     loc_14042A574                                                  ; +0x7d, 0x14042a47d\nmov     rcx, cs:qword_14090BFB0                                        ; +0x83, 0x14042a483\ntest    rcx, rcx                                                       ; +0x8a, 0x14042a48a\njnz     short loc_14042A4C2                                            ; +0x8d, 0x14042a48d\nmov     ecx, 690h; Size                                                ; +0x8f, 0x14042a48f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x94, 0x14042a494\nmov     [rsp+28h+arg_10], rax                                          ; +0x99, 0x14042a499\nmov     rcx, rax                                                       ; +0x9e, 0x14042a49e\ncall    GameLevelManager__GameLevelManager                             ; +0xa1, 0x14042a4a1\nnop                                                                    ; +0xa6, 0x14042a4a6\nmov     cs:qword_14090BFB0, rax                                        ; +0xa7, 0x14042a4a7\nmov     rcx, [rax]                                                     ; +0xae, 0x14042a4ae\nmov     r8, [rcx+48h]                                                  ; +0xb1, 0x14042a4b1\nmov     rcx, rax                                                       ; +0xb5, 0x14042a4b5\ncall    r8                                                             ; +0xb8, 0x14042a4b8\nmov     rcx, cs:qword_14090BFB0                                        ; +0xbb, 0x14042a4bb\nlea     rdx, aUpdLl; \"upd_ll\"                                          ; +0xc2, 0x14042a4c2\ncall    GameLevelManager__makeTimeStamp                                ; +0xc9, 0x14042a4c9\nmov     rcx, [rbx+2D0h]                                                ; +0xce, 0x14042a4ce\nmov     rax, [rcx]                                                     ; +0xd5, 0x14042a4d5\nxor     edx, edx                                                       ; +0xd8, 0x14042a4d8\ncall    qword ptr [rax+150h]                                           ; +0xda, 0x14042a4da\nmov     rcx, [rbx+2C8h]                                                ; +0xe0, 0x14042a4e0\nmov     rax, [rcx]                                                     ; +0xe7, 0x14042a4e7\nmov     dl, 1                                                          ; +0xea, 0x14042a4ea\ncall    qword ptr [rax+150h]                                           ; +0xec, 0x14042a4ec\nmov     rcx, [rbx+2D8h]                                                ; +0xf2, 0x14042a4f2\nmov     rax, [rcx]                                                     ; +0xf9, 0x14042a4f9\nxor     edx, edx                                                       ; +0xfc, 0x14042a4fc\ncall    qword ptr [rax+150h]                                           ; +0xfe, 0x14042a4fe\nxor     edx, edx                                                       ; +0x104, 0x14042a504\nmov     rcx, rbx                                                       ; +0x106, 0x14042a506\ncall    LevelLeaderboard__setupLeaderboard                             ; +0x109, 0x14042a509\nlea     rdi, [rbx+298h]                                                ; +0x10e, 0x14042a50e\nmov     rcx, cs:qword_14090BFB0                                        ; +0x115, 0x14042a515\ntest    rcx, rcx                                                       ; +0x11c, 0x14042a51c\njnz     short loc_14042A553                                            ; +0x11f, 0x14042a51f\nmov     ecx, 690h; Size                                                ; +0x121, 0x14042a521\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x126, 0x14042a526\nmov     [rsp+28h+arg_10], rax                                          ; +0x12b, 0x14042a52b\nmov     rcx, rax                                                       ; +0x130, 0x14042a530\ncall    GameLevelManager__GameLevelManager                             ; +0x133, 0x14042a533\nnop                                                                    ; +0x138, 0x14042a538\nmov     cs:qword_14090BFB0, rax                                        ; +0x139, 0x14042a539\nmov     rcx, [rax]                                                     ; +0x140, 0x14042a540\nmov     rdx, [rcx+48h]                                                 ; +0x143, 0x14042a543\nmov     rcx, rax                                                       ; +0x147, 0x14042a547\ncall    rdx                                                            ; +0x14a, 0x14042a54a\nmov     rcx, cs:qword_14090BFB0                                        ; +0x14c, 0x14042a54c\nmov     [rcx+590h], rdi                                                ; +0x153, 0x14042a553\nmov     r9d, [rbx+2B4h]                                                ; +0x15a, 0x14042a55a\nmov     r8d, [rbx+2B0h]                                                ; +0x161, 0x14042a561\nmov     rdx, [rbx+2A8h]                                                ; +0x168, 0x14042a568\ncall    GameLevelManager__getLevelLeaderboard                          ; +0x16f, 0x14042a56f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x174, 0x14042a574\nadd     rsp, 20h                                                       ; +0x179, 0x14042a579\npop     rdi                                                            ; +0x17d, 0x14042a57d\nretn                                                                   ; +0x17e, 0x14042a57e", "xrefs": ["LevelLeaderboard::init @ 0x140428dd0", "<???> @ 0x140926a98"], "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"}