{"type": "func", "start": 5373068032, "end": 5373068367, "name": "LevelLeaderboard::create", "pseudocode": "// \n// LevelLeaderboard::create from 0x140428300 to 0x14042844f (335 bytes)\n// \n// 5 xrefs:\n// > EditLevelLayer::onLevelLeaderboard @ 0x140179c68\n// > EndLevelLayer::onLevelLeaderboard @ 0x140205c07\n// > LevelInfoLayer::onLevelLeaderboard @ 0x14041ed82\n// > LevelLeaderboard::reloadLeaderboard @ 0x14042a089\n// > <???> @ 0x140926a20\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\n_QWORD *__fastcall LevelLeaderboard::create(__int64 a1, unsigned int a2, unsigned int a3)\n{\n  _QWORD *v6; // r14\n\n  v6 = operator new(0x2F0u);\n  FLAlertLayer::FLAlertLayer((__int64)v6);\n  *v6 = &LevelLeaderboard::`vftable';\n  v6[40] = &LevelLeaderboard::`vftable';\n  v6[41] = &LevelLeaderboard::`vftable';\n  v6[42] = &LevelLeaderboard::`vftable';\n  v6[43] = &LevelLeaderboard::`vftable';\n  v6[44] = &LevelLeaderboard::`vftable';\n  v6[51] = &LevelLeaderboard::`vftable';\n  v6[54] = &LevelLeaderboard::`vftable';\n  v6[68] = &LevelLeaderboard::`vftable';\n  v6[83] = &LevelLeaderboard::`vftable';\n  v6[84] = &LevelLeaderboard::`vftable';\n  v6[85] = 0;\n  *((_DWORD *)v6 + 172) = 0;\n  v6[87] = 0;\n  v6[88] = 0;\n  v6[89] = 0;\n  v6[90] = 0;\n  v6[92] = 0;\n  v6[93] = 0;\n  if ( (unsigned __int8)LevelLeaderboard::init(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n    return v6;\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v6 + 8LL))(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; LevelLeaderboard::create from 0x140428300 to 0x14042844f (335 bytes)\n; \n; 5 xrefs:\n; > EditLevelLayer::onLevelLeaderboard @ 0x140179c68\n; > EndLevelLayer::onLevelLeaderboard @ 0x140205c07\n; > LevelInfoLayer::onLevelLeaderboard @ 0x14041ed82\n; > LevelLeaderboard::reloadLeaderboard @ 0x14042a089\n; > <???> @ 0x140926a20\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, 0x140428300\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140428305\npush    rsi                                                            ; +0xa, 0x14042830a\npush    rdi                                                            ; +0xb, 0x14042830b\npush    r14                                                            ; +0xc, 0x14042830c\nsub     rsp, 20h                                                       ; +0xe, 0x14042830e\nmov     ebx, r8d                                                       ; +0x12, 0x140428312\nmov     edi, edx                                                       ; +0x15, 0x140428315\nmov     rsi, rcx                                                       ; +0x17, 0x140428317\nmov     ecx, 2F0h; Size                                                ; +0x1a, 0x14042831a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f, 0x14042831f\nmov     r14, rax                                                       ; +0x24, 0x140428324\nmov     [rsp+38h+arg_18], rax                                          ; +0x27, 0x140428327\nmov     rcx, rax                                                       ; +0x2c, 0x14042832c\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x2f, 0x14042832f\nlea     rax, ??_7LevelLeaderboard@@6B@; const LevelLeaderboard::`vftable' ; +0x34, 0x140428334\nmov     [r14], rax                                                     ; +0x3b, 0x14042833b\nlea     rax, ??_7LevelLeaderboard@@6B@_0; const LevelLeaderboard::`vftable' ; +0x3e, 0x14042833e\nmov     [r14+140h], rax                                                ; +0x45, 0x140428345\nlea     rax, ??_7LevelLeaderboard@@6B@_1; const LevelLeaderboard::`vftable' ; +0x4c, 0x14042834c\nmov     [r14+148h], rax                                                ; +0x53, 0x140428353\nlea     rax, ??_7LevelLeaderboard@@6B@_2; const LevelLeaderboard::`vftable' ; +0x5a, 0x14042835a\nmov     [r14+150h], rax                                                ; +0x61, 0x140428361\nlea     rax, ??_7LevelLeaderboard@@6B@_3; const LevelLeaderboard::`vftable' ; +0x68, 0x140428368\nmov     [r14+158h], rax                                                ; +0x6f, 0x14042836f\nlea     rax, ??_7LevelLeaderboard@@6B@_4; const LevelLeaderboard::`vftable' ; +0x76, 0x140428376\nmov     [r14+160h], rax                                                ; +0x7d, 0x14042837d\nlea     rax, ??_7LevelLeaderboard@@6B@_5; const LevelLeaderboard::`vftable' ; +0x84, 0x140428384\nmov     [r14+198h], rax                                                ; +0x8b, 0x14042838b\nlea     rax, ??_7LevelLeaderboard@@6B@_6; const LevelLeaderboard::`vftable' ; +0x92, 0x140428392\nmov     [r14+1B0h], rax                                                ; +0x99, 0x140428399\nlea     rax, ??_7LevelLeaderboard@@6B@_7; const LevelLeaderboard::`vftable' ; +0xa0, 0x1404283a0\nmov     [r14+220h], rax                                                ; +0xa7, 0x1404283a7\nlea     rax, ??_7LevelLeaderboard@@6B@_8; const LevelLeaderboard::`vftable' ; +0xae, 0x1404283ae\nmov     [r14+298h], rax                                                ; +0xb5, 0x1404283b5\nlea     rax, ??_7LevelLeaderboard@@6B@_9; const LevelLeaderboard::`vftable' ; +0xbc, 0x1404283bc\nmov     [r14+2A0h], rax                                                ; +0xc3, 0x1404283c3\nxor     ebp, ebp                                                       ; +0xca, 0x1404283ca\nmov     [r14+2A8h], rbp                                                ; +0xcc, 0x1404283cc\nmov     [r14+2B0h], ebp                                                ; +0xd3, 0x1404283d3\nmov     [r14+2B8h], rbp                                                ; +0xda, 0x1404283da\nmov     [r14+2C0h], rbp                                                ; +0xe1, 0x1404283e1\nmov     [r14+2C8h], rbp                                                ; +0xe8, 0x1404283e8\nmov     [r14+2D0h], rbp                                                ; +0xef, 0x1404283ef\nmov     [r14+2E0h], rbp                                                ; +0xf6, 0x1404283f6\nmov     [r14+2E8h], rbp                                                ; +0xfd, 0x1404283fd\nmov     r9d, ebx                                                       ; +0x104, 0x140428404\nmov     r8d, edi                                                       ; +0x107, 0x140428407\nmov     rdx, rsi                                                       ; +0x10a, 0x14042840a\nmov     rcx, r14                                                       ; +0x10d, 0x14042840d\ncall    LevelLeaderboard__init                                         ; +0x110, 0x140428410\ntest    al, al                                                         ; +0x115, 0x140428415\njz      short loc_140428427                                            ; +0x117, 0x140428417\nmov     rcx, r14                                                       ; +0x119, 0x140428419\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x11c, 0x14042841c\nmov     rax, r14                                                       ; +0x122, 0x140428422\njmp     short loc_14042843C                                            ; +0x125, 0x140428425\nmov     rcx, [r14]                                                     ; +0x127, 0x140428427\nmov     r8, [rcx+8]                                                    ; +0x12a, 0x14042842a\nmov     edx, 1                                                         ; +0x12e, 0x14042842e\nmov     rcx, r14                                                       ; +0x133, 0x140428433\ncall    r8                                                             ; +0x136, 0x140428436\nmov     rax, rbp                                                       ; +0x139, 0x140428439\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x13c, 0x14042843c\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x141, 0x140428441\nadd     rsp, 20h                                                       ; +0x146, 0x140428446\npop     r14                                                            ; +0x14a, 0x14042844a\npop     rdi                                                            ; +0x14c, 0x14042844c\npop     rsi                                                            ; +0x14d, 0x14042844d\nretn                                                                   ; +0x14e, 0x14042844e", "xrefs": ["EditLevelLayer::onLevelLeaderboard @ 0x140179c68", "EndLevelLayer::onLevelLeaderboard @ 0x140205c07", "LevelInfoLayer::onLevelLeaderboard @ 0x14041ed82", "LevelLeaderboard::reloadLeaderboard @ 0x14042a089", "<???> @ 0x140926a20"], "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"}