{"type": "func", "start": 5373098864, "end": 5373099203, "name": "LevelListLayer::onSelectIcon", "pseudocode": "// \n// LevelListLayer::onSelectIcon from 0x14042fb70 to 0x14042fcc3 (339 bytes)\n// \n// 2 xrefs:\n// > LevelListLayer::init @ 0x14042c9e0\n// > <???> @ 0x140926c18\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:15 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall LevelListLayer::onSelectIcon(__int64 a1)\n{\n  unsigned int v2; // ebx\n  _QWORD *v3; // rdi\n  __int64 (__fastcall *v4)(__int64); // rdx\n\n  if ( !*(_BYTE *)(a1 + 968) )\n  {\n    v2 = *(_DWORD *)(*(_QWORD *)(a1 + 920) + 360LL);\n    v3 = operator new(0x2B0u);\n    FLAlertLayer::FLAlertLayer((__int64)v3);\n    *v3 = &SelectListIconLayer::`vftable';\n    v3[40] = &SelectListIconLayer::`vftable';\n    v3[41] = &SelectListIconLayer::`vftable';\n    v3[42] = &SelectListIconLayer::`vftable';\n    v3[43] = &SelectListIconLayer::`vftable';\n    v3[44] = &SelectListIconLayer::`vftable';\n    v3[51] = &SelectListIconLayer::`vftable';\n    v3[54] = &SelectListIconLayer::`vftable';\n    v3[68] = &SelectListIconLayer::`vftable';\n    v3[83] = 0;\n    *((_DWORD *)v3 + 168) = 0;\n    v3[85] = 0;\n    if ( (unsigned __int8)SelectListIconLayer::init(v3, v2) )\n    {\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n    }\n    else\n    {\n      (*(void (__fastcall **)(_QWORD *, __int64))(*v3 + 8LL))(v3, 1);\n      v3 = nullptr;\n    }\n    v3[85] = a1 + 848;\n    v4 = *(__int64 (__fastcall **)(__int64))(*v3 + 1064LL);\n    if ( v4 == FLAlertLayer::show )\n      FLAlertLayer::show((__int64)v3);\n    else\n      v4((__int64)v3);\n  }\n}", "assembly": "; \n; LevelListLayer::onSelectIcon from 0x14042fb70 to 0x14042fcc3 (339 bytes)\n; \n; 2 xrefs:\n; > LevelListLayer::init @ 0x14042c9e0\n; > <???> @ 0x140926c18\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:15 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14042fb70\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14042fb75\npush    rdi                                                            ; +0xa, 0x14042fb7a\nsub     rsp, 20h                                                       ; +0xb, 0x14042fb7b\nmov     rsi, rcx                                                       ; +0xf, 0x14042fb7f\ncmp     byte ptr [rcx+3C8h], 0                                         ; +0x12, 0x14042fb82\njnz     loc_14042FCB3                                                  ; +0x19, 0x14042fb89\nmov     rax, [rcx+398h]                                                ; +0x1f, 0x14042fb8f\nmov     ebx, [rax+168h]                                                ; +0x26, 0x14042fb96\nmov     ecx, 2B0h; Size                                                ; +0x2c, 0x14042fb9c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x14042fba1\nmov     rdi, rax                                                       ; +0x36, 0x14042fba6\nmov     [rsp+28h+arg_0], rax                                           ; +0x39, 0x14042fba9\nmov     rcx, rax                                                       ; +0x3e, 0x14042fbae\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x41, 0x14042fbb1\nlea     rax, ??_7SelectListIconLayer@@6B@; const SelectListIconLayer::`vftable' ; +0x46, 0x14042fbb6\nmov     [rdi], rax                                                     ; +0x4d, 0x14042fbbd\nlea     rax, ??_7SelectListIconLayer@@6B@_0; const SelectListIconLayer::`vftable' ; +0x50, 0x14042fbc0\nmov     [rdi+140h], rax                                                ; +0x57, 0x14042fbc7\nlea     rax, ??_7SelectListIconLayer@@6B@_1; const SelectListIconLayer::`vftable' ; +0x5e, 0x14042fbce\nmov     [rdi+148h], rax                                                ; +0x65, 0x14042fbd5\nlea     rax, ??_7SelectListIconLayer@@6B@_2; const SelectListIconLayer::`vftable' ; +0x6c, 0x14042fbdc\nmov     [rdi+150h], rax                                                ; +0x73, 0x14042fbe3\nlea     rax, ??_7SelectListIconLayer@@6B@_3; const SelectListIconLayer::`vftable' ; +0x7a, 0x14042fbea\nmov     [rdi+158h], rax                                                ; +0x81, 0x14042fbf1\nlea     rax, ??_7SelectListIconLayer@@6B@_4; const SelectListIconLayer::`vftable' ; +0x88, 0x14042fbf8\nmov     [rdi+160h], rax                                                ; +0x8f, 0x14042fbff\nlea     rax, ??_7SelectListIconLayer@@6B@_5; const SelectListIconLayer::`vftable' ; +0x96, 0x14042fc06\nmov     [rdi+198h], rax                                                ; +0x9d, 0x14042fc0d\nlea     rax, ??_7SelectListIconLayer@@6B@_6; const SelectListIconLayer::`vftable' ; +0xa4, 0x14042fc14\nmov     [rdi+1B0h], rax                                                ; +0xab, 0x14042fc1b\nlea     rax, ??_7SelectListIconLayer@@6B@_7; const SelectListIconLayer::`vftable' ; +0xb2, 0x14042fc22\nmov     [rdi+220h], rax                                                ; +0xb9, 0x14042fc29\nmov     qword ptr [rdi+298h], 0                                        ; +0xc0, 0x14042fc30\nmov     dword ptr [rdi+2A0h], 0                                        ; +0xcb, 0x14042fc3b\nmov     qword ptr [rdi+2A8h], 0                                        ; +0xd5, 0x14042fc45\nmov     edx, ebx                                                       ; +0xe0, 0x14042fc50\nmov     rcx, rdi                                                       ; +0xe2, 0x14042fc52\ncall    SelectListIconLayer__init                                      ; +0xe5, 0x14042fc55\nmov     rcx, rdi                                                       ; +0xea, 0x14042fc5a\ntest    al, al                                                         ; +0xed, 0x14042fc5d\njz      short loc_14042FC69                                            ; +0xef, 0x14042fc5f\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf1, 0x14042fc61\njmp     short loc_14042FC76                                            ; +0xf7, 0x14042fc67\nmov     rax, [rdi]                                                     ; +0xf9, 0x14042fc69\nmov     edx, 1                                                         ; +0xfc, 0x14042fc6c\ncall    qword ptr [rax+8]                                              ; +0x101, 0x14042fc71\nxor     edi, edi                                                       ; +0x104, 0x14042fc74\nlea     rax, [rsi+350h]                                                ; +0x106, 0x14042fc76\nmov     [rdi+2A8h], rax                                                ; +0x10d, 0x14042fc7d\nmov     rax, [rdi]                                                     ; +0x114, 0x14042fc84\nmov     rdx, [rax+428h]                                                ; +0x117, 0x14042fc87\nlea     rax, FLAlertLayer__show                                        ; +0x11e, 0x14042fc8e\nmov     rcx, rdi                                                       ; +0x125, 0x14042fc95\ncmp     rdx, rax                                                       ; +0x128, 0x14042fc98\njnz     short loc_14042FCB1                                            ; +0x12b, 0x14042fc9b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x12d, 0x14042fc9d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x132, 0x14042fca2\nadd     rsp, 20h                                                       ; +0x137, 0x14042fca7\npop     rdi                                                            ; +0x13b, 0x14042fcab\njmp     FLAlertLayer__show                                             ; +0x13c, 0x14042fcac\ncall    rdx                                                            ; +0x141, 0x14042fcb1\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x143, 0x14042fcb3\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x148, 0x14042fcb8\nadd     rsp, 20h                                                       ; +0x14d, 0x14042fcbd\npop     rdi                                                            ; +0x151, 0x14042fcc1\nretn                                                                   ; +0x152, 0x14042fcc2", "xrefs": ["LevelListLayer::init @ 0x14042c9e0", "<???> @ 0x140926c18"], "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"}