{"type": "func", "start": 5373067712, "end": 5373068026, "name": "LevelLeaderboard::dLevelLeaderboard", "pseudocode": "// \n// LevelLeaderboard::dLevelLeaderboard from 0x1404281c0 to 0x1404282fa (314 bytes)\n// \n// 3 xrefs:\n// > sub_14042AB28 @ 0x14042ab2f\n// > <???> @ 0x14078d468\n// > <???> @ 0x140926a14\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:11 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar *__fastcall LevelLeaderboard::dLevelLeaderboard(char *Block, char a2)\n{\n  char *v4; // rdi\n  __int64 v5; // rax\n  void *v6; // rax\n  cocos2d::CCObject *v7; // rcx\n\n  *(_QWORD *)Block = &LevelLeaderboard::`vftable';\n  *((_QWORD *)Block + 40) = &LevelLeaderboard::`vftable';\n  *((_QWORD *)Block + 41) = &LevelLeaderboard::`vftable';\n  *((_QWORD *)Block + 42) = &LevelLeaderboard::`vftable';\n  *((_QWORD *)Block + 43) = &LevelLeaderboard::`vftable';\n  *((_QWORD *)Block + 44) = &LevelLeaderboard::`vftable';\n  *((_QWORD *)Block + 51) = &LevelLeaderboard::`vftable';\n  *((_QWORD *)Block + 54) = &LevelLeaderboard::`vftable';\n  *((_QWORD *)Block + 68) = &LevelLeaderboard::`vftable';\n  v4 = Block + 664;\n  *((_QWORD *)Block + 83) = &LevelLeaderboard::`vftable';\n  *((_QWORD *)Block + 84) = &LevelLeaderboard::`vftable';\n  v5 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v6 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v6);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v5 = *(_QWORD *)&qword_14090BFB0;\n  }\n  if ( *(char **)(v5 + 1424) == v4 )\n    *(_QWORD *)(v5 + 1424) = 0;\n  v7 = *((cocos2d::CCObject **)Block + 85);\n  if ( v7 )\n    cocos2d::CCObject::release(v7);\n  FLAlertLayer::dFLAlertLayer((__int64)Block);\n  if ( (a2 & 1) != 0 )\n    j_j_free(Block);\n  return Block;\n}", "assembly": "; \n; LevelLeaderboard::dLevelLeaderboard from 0x1404281c0 to 0x1404282fa (314 bytes)\n; \n; 3 xrefs:\n; > sub_14042AB28 @ 0x14042ab2f\n; > <???> @ 0x14078d468\n; > <???> @ 0x140926a14\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:11 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404281c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1404281c5\npush    rdi                                                            ; +0xa, 0x1404281ca\nsub     rsp, 20h                                                       ; +0xb, 0x1404281cb\nmov     esi, edx                                                       ; +0xf, 0x1404281cf\nmov     rbx, rcx                                                       ; +0x11, 0x1404281d1\nlea     rax, ??_7LevelLeaderboard@@6B@; const LevelLeaderboard::`vftable' ; +0x14, 0x1404281d4\nmov     [rcx], rax                                                     ; +0x1b, 0x1404281db\nlea     rax, ??_7LevelLeaderboard@@6B@_0; const LevelLeaderboard::`vftable' ; +0x1e, 0x1404281de\nmov     [rcx+140h], rax                                                ; +0x25, 0x1404281e5\nlea     rax, ??_7LevelLeaderboard@@6B@_1; const LevelLeaderboard::`vftable' ; +0x2c, 0x1404281ec\nmov     [rcx+148h], rax                                                ; +0x33, 0x1404281f3\nlea     rax, ??_7LevelLeaderboard@@6B@_2; const LevelLeaderboard::`vftable' ; +0x3a, 0x1404281fa\nmov     [rcx+150h], rax                                                ; +0x41, 0x140428201\nlea     rax, ??_7LevelLeaderboard@@6B@_3; const LevelLeaderboard::`vftable' ; +0x48, 0x140428208\nmov     [rcx+158h], rax                                                ; +0x4f, 0x14042820f\nlea     rax, ??_7LevelLeaderboard@@6B@_4; const LevelLeaderboard::`vftable' ; +0x56, 0x140428216\nmov     [rcx+160h], rax                                                ; +0x5d, 0x14042821d\nlea     rax, ??_7LevelLeaderboard@@6B@_5; const LevelLeaderboard::`vftable' ; +0x64, 0x140428224\nmov     [rcx+198h], rax                                                ; +0x6b, 0x14042822b\nlea     rax, ??_7LevelLeaderboard@@6B@_6; const LevelLeaderboard::`vftable' ; +0x72, 0x140428232\nmov     [rcx+1B0h], rax                                                ; +0x79, 0x140428239\nlea     rax, ??_7LevelLeaderboard@@6B@_7; const LevelLeaderboard::`vftable' ; +0x80, 0x140428240\nmov     [rcx+220h], rax                                                ; +0x87, 0x140428247\nlea     rdi, [rcx+298h]                                                ; +0x8e, 0x14042824e\nlea     rax, ??_7LevelLeaderboard@@6B@_8; const LevelLeaderboard::`vftable' ; +0x95, 0x140428255\nmov     [rdi], rax                                                     ; +0x9c, 0x14042825c\nlea     rax, ??_7LevelLeaderboard@@6B@_9; const LevelLeaderboard::`vftable' ; +0x9f, 0x14042825f\nmov     [rcx+2A0h], rax                                                ; +0xa6, 0x140428266\nmov     rax, cs:qword_14090BFB0                                        ; +0xad, 0x14042826d\ntest    rax, rax                                                       ; +0xb4, 0x140428274\njnz     short loc_1404282A5                                            ; +0xb7, 0x140428277\nmov     ecx, 690h; Size                                                ; +0xb9, 0x140428279\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xbe, 0x14042827e\nmov     rcx, rax                                                       ; +0xc3, 0x140428283\ncall    GameLevelManager__GameLevelManager                             ; +0xc6, 0x140428286\nmov     cs:qword_14090BFB0, rax                                        ; +0xcb, 0x14042828b\nmov     rcx, [rax]                                                     ; +0xd2, 0x140428292\nmov     rdx, [rcx+48h]                                                 ; +0xd5, 0x140428295\nmov     rcx, rax                                                       ; +0xd9, 0x140428299\ncall    rdx                                                            ; +0xdc, 0x14042829c\nmov     rax, cs:qword_14090BFB0                                        ; +0xde, 0x14042829e\ncmp     [rax+590h], rdi                                                ; +0xe5, 0x1404282a5\njnz     short loc_1404282B9                                            ; +0xec, 0x1404282ac\nmov     qword ptr [rax+590h], 0                                        ; +0xee, 0x1404282ae\nmov     rcx, [rbx+2A8h]                                                ; +0xf9, 0x1404282b9\ntest    rcx, rcx                                                       ; +0x100, 0x1404282c0\njz      short loc_1404282CB                                            ; +0x103, 0x1404282c3\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x105, 0x1404282c5\nmov     rcx, rbx                                                       ; +0x10b, 0x1404282cb\ncall    FLAlertLayer__dFLAlertLayer; Merged with: FLAlertLayer::~FLAlertLayer, DailyRecallUnlockPopup::~DailyRecallUnlockPopup, DemonInfoPopup::~DemonInfoPopup, EditorSoundsSettingsPopup::~EditorSoundsSettingsPopup, GJPathRewardPopup::~GJPathRewardPopup, GJPromoPopup::~GJPromoPopup, LevelStatsInfoPopup::~LevelStatsInfoPopup, NCSInfoLayer::~NCSInfoLayer, NewgroundsInfoLayer::~NewgroundsInfoLayer, SelectSFXSortLayer::~SelectSFXSortLayer, StarInfoPopup::~StarInfoPopup ; +0x10e, 0x1404282ce\nnop                                                                    ; +0x113, 0x1404282d3\ntest    sil, 1                                                         ; +0x114, 0x1404282d4\njz      short loc_1404282E7                                            ; +0x118, 0x1404282d8\nmov     edx, 2F0h                                                      ; +0x11a, 0x1404282da\nmov     rcx, rbx; Block                                                ; +0x11f, 0x1404282df\ncall    j_j_free                                                       ; +0x122, 0x1404282e2\nmov     rax, rbx                                                       ; +0x127, 0x1404282e7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x12a, 0x1404282ea\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x12f, 0x1404282ef\nadd     rsp, 20h                                                       ; +0x134, 0x1404282f4\npop     rdi                                                            ; +0x138, 0x1404282f8\nretn                                                                   ; +0x139, 0x1404282f9", "xrefs": ["sub_14042AB28 @ 0x14042ab2f", "<???> @ 0x14078d468", "<???> @ 0x140926a14"], "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"}