{"type": "func", "start": 5373378960, "end": 5373379259, "name": "MenuLayer::showTOS", "pseudocode": "// \n// MenuLayer::showTOS from 0x140474190 to 0x1404742bb (299 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x14047391d\n// > <???> @ 0x14092822c\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:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall MenuLayer::showTOS(_BYTE *a1)\n{\n  cocos2d::CCObject *v2; // rbx\n  __int64 (__fastcall *v3)(__int64); // rdx\n\n  a1[432] = 0;\n  v2 = (cocos2d::CCObject *)operator new(0x298u);\n  FLAlertLayer::FLAlertLayer((__int64)v2);\n  *(_QWORD *)v2 = &TOSPopup::`vftable';\n  *((_QWORD *)v2 + 40) = &TOSPopup::`vftable';\n  *((_QWORD *)v2 + 41) = &TOSPopup::`vftable';\n  *((_QWORD *)v2 + 42) = &TOSPopup::`vftable';\n  *((_QWORD *)v2 + 43) = &TOSPopup::`vftable';\n  *((_QWORD *)v2 + 44) = &TOSPopup::`vftable';\n  *((_QWORD *)v2 + 51) = &TOSPopup::`vftable';\n  *((_QWORD *)v2 + 54) = &TOSPopup::`vftable';\n  *((_QWORD *)v2 + 68) = &TOSPopup::`vftable';\n  if ( TOSPopup::init((__int64)v2) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n    v2 = nullptr;\n  }\n  *((_QWORD *)v2 + 71) = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 504LL))(a1);\n  v3 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1064LL);\n  if ( v3 == FLAlertLayer::show )\n    return FLAlertLayer::show((__int64)v2);\n  else\n    return v3((__int64)v2);\n}", "assembly": "; \n; MenuLayer::showTOS from 0x140474190 to 0x1404742bb (299 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x14047391d\n; > <???> @ 0x14092822c\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:40 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140474190\npush    rdi                                                            ; +0x5, 0x140474195\nsub     rsp, 20h                                                       ; +0x6, 0x140474196\nmov     rdi, rcx                                                       ; +0xa, 0x14047419a\nmov     byte ptr [rcx+1B0h], 0                                         ; +0xd, 0x14047419d\nmov     ecx, 298h; Size                                                ; +0x14, 0x1404741a4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19, 0x1404741a9\nmov     rbx, rax                                                       ; +0x1e, 0x1404741ae\nmov     [rsp+28h+arg_0], rax                                           ; +0x21, 0x1404741b1\nmov     rcx, rax                                                       ; +0x26, 0x1404741b6\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x29, 0x1404741b9\nlea     rax, ??_7TOSPopup@@6B@; const TOSPopup::`vftable'              ; +0x2e, 0x1404741be\nmov     [rbx], rax                                                     ; +0x35, 0x1404741c5\nlea     rax, ??_7TOSPopup@@6B@_0; const TOSPopup::`vftable'            ; +0x38, 0x1404741c8\nmov     [rbx+140h], rax                                                ; +0x3f, 0x1404741cf\nlea     rax, ??_7TOSPopup@@6B@_1; const TOSPopup::`vftable'            ; +0x46, 0x1404741d6\nmov     [rbx+148h], rax                                                ; +0x4d, 0x1404741dd\nlea     rax, ??_7TOSPopup@@6B@_2; const TOSPopup::`vftable'            ; +0x54, 0x1404741e4\nmov     [rbx+150h], rax                                                ; +0x5b, 0x1404741eb\nlea     rax, ??_7TOSPopup@@6B@_3; const TOSPopup::`vftable'            ; +0x62, 0x1404741f2\nmov     [rbx+158h], rax                                                ; +0x69, 0x1404741f9\nlea     rax, ??_7TOSPopup@@6B@_4; const TOSPopup::`vftable'            ; +0x70, 0x140474200\nmov     [rbx+160h], rax                                                ; +0x77, 0x140474207\nlea     rax, ??_7TOSPopup@@6B@_5; const TOSPopup::`vftable'            ; +0x7e, 0x14047420e\nmov     [rbx+198h], rax                                                ; +0x85, 0x140474215\nlea     rax, ??_7TOSPopup@@6B@_6; const TOSPopup::`vftable'            ; +0x8c, 0x14047421c\nmov     [rbx+1B0h], rax                                                ; +0x93, 0x140474223\nlea     rax, ??_7TOSPopup@@6B@_7; const TOSPopup::`vftable'            ; +0x9a, 0x14047422a\nmov     [rbx+220h], rax                                                ; +0xa1, 0x140474231\nmov     rax, cs:off_14077B9C0                                          ; +0xa8, 0x140474238\nlea     rcx, TOSPopup__init                                            ; +0xaf, 0x14047423f\ncmp     rax, rcx                                                       ; +0xb6, 0x140474246\nmov     rcx, rbx                                                       ; +0xb9, 0x140474249\njnz     short loc_140474255                                            ; +0xbc, 0x14047424c\ncall    TOSPopup__init                                                 ; +0xbe, 0x14047424e\njmp     short loc_140474257                                            ; +0xc3, 0x140474253\ncall    rax ; TOSPopup__init                                           ; +0xc5, 0x140474255\nmov     rcx, rbx                                                       ; +0xc7, 0x140474257\ntest    al, al                                                         ; +0xca, 0x14047425a\njz      short loc_140474266                                            ; +0xcc, 0x14047425c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xce, 0x14047425e\njmp     short loc_140474273                                            ; +0xd4, 0x140474264\nmov     rax, [rbx]                                                     ; +0xd6, 0x140474266\nmov     edx, 1                                                         ; +0xd9, 0x140474269\ncall    qword ptr [rax+8]                                              ; +0xde, 0x14047426e\nxor     ebx, ebx                                                       ; +0xe1, 0x140474271\nmov     rax, [rdi]                                                     ; +0xe3, 0x140474273\nmov     rcx, rdi                                                       ; +0xe6, 0x140474276\ncall    qword ptr [rax+1F8h]                                           ; +0xe9, 0x140474279\nmov     [rbx+238h], rax                                                ; +0xef, 0x14047427f\nmov     rax, [rbx]                                                     ; +0xf6, 0x140474286\nmov     rdx, [rax+428h]                                                ; +0xf9, 0x140474289\nlea     rax, FLAlertLayer__show                                        ; +0x100, 0x140474290\nmov     rcx, rbx                                                       ; +0x107, 0x140474297\ncmp     rdx, rax                                                       ; +0x10a, 0x14047429a\njnz     short loc_1404742AE                                            ; +0x10d, 0x14047429d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x10f, 0x14047429f\nadd     rsp, 20h                                                       ; +0x114, 0x1404742a4\npop     rdi                                                            ; +0x118, 0x1404742a8\njmp     FLAlertLayer__show                                             ; +0x119, 0x1404742a9\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x11e, 0x1404742ae\nadd     rsp, 20h                                                       ; +0x123, 0x1404742b3\npop     rdi                                                            ; +0x127, 0x1404742b7\njmp     rdx                                                            ; +0x128, 0x1404742b8", "xrefs": ["MenuLayer::init @ 0x14047391d", "<???> @ 0x14092822c"], "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"}