{"type": "func", "start": 5372076208, "end": 5372076358, "name": "MenuLayer::willClose", "pseudocode": "// \n// MenuLayer::willClose from 0x1403360b0 to 0x140336146 (150 bytes)\n// \n// 5 xrefs:\n// > sub_140333810 @ 0x1403338ce\n// > MenuLayer::onPlay @ 0x1403359df\n// > MenuLayer::onCreator @ 0x140335d3f\n// > MenuLayer::onGarage @ 0x140335dcf\n// > <???> @ 0x1406d5204\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid MenuLayer::willClose(MenuLayer *a1)\n{\n  GooglePlayManager *v2; // rax\n  GooglePlayDelegate *v3; // rdx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  v2 = GooglePlayManager::sharedState();\n  v3 = &a1->GooglePlayDelegate;\n  if ( !a1 )\n    v3 = nullptr;\n  if ( v2->m_delegate1 == v3 )\n    GooglePlayManager::sharedState()->m_delegate1 = nullptr;\n  if ( !qword_1406C2ED8 )\n  {\n    v4 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  *(_BYTE *)(qword_1406C2ED8 + 560) = 0;\n}", "assembly": "; \n; MenuLayer::willClose from 0x1403360b0 to 0x140336146 (150 bytes)\n; \n; 5 xrefs:\n; > sub_140333810 @ 0x1403338ce\n; > MenuLayer::onPlay @ 0x1403359df\n; > MenuLayer::onCreator @ 0x140335d3f\n; > MenuLayer::onGarage @ 0x140335dcf\n; > <???> @ 0x1406d5204\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403360b0\npush    rdi                                                            ; +0x5, 0x1403360b5\nsub     rsp, 20h                                                       ; +0x6, 0x1403360b6\nmov     rbx, rcx                                                       ; +0xa, 0x1403360ba\ncall    GooglePlayManager__sharedState                                 ; +0xd, 0x1403360bd\nlea     rdx, [rbx+1A0h]                                                ; +0x12, 0x1403360c2\nxor     edi, edi                                                       ; +0x19, 0x1403360c9\ntest    rbx, rbx                                                       ; +0x1b, 0x1403360cb\ncmovz   rdx, rdi                                                       ; +0x1e, 0x1403360ce\ncmp     [rax+140h], rdx                                                ; +0x22, 0x1403360d2\njnz     short loc_1403360E7                                            ; +0x29, 0x1403360d9\ncall    GooglePlayManager__sharedState                                 ; +0x2b, 0x1403360db\nmov     [rax+140h], rdi                                                ; +0x30, 0x1403360e0\nmov     rax, cs:qword_1406C2ED8                                        ; +0x37, 0x1403360e7\ntest    rax, rax                                                       ; +0x3e, 0x1403360ee\njnz     short loc_140336134                                            ; +0x41, 0x1403360f1\nmov     ecx, 668h; Size                                                ; +0x43, 0x1403360f3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x48, 0x1403360f8\nmov     [rsp+28h+arg_0], rax                                           ; +0x4d, 0x1403360fd\nmov     rcx, rax                                                       ; +0x52, 0x140336102\ncall    sub_14017AB00                                                  ; +0x55, 0x140336105\nnop                                                                    ; +0x5a, 0x14033610a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5b, 0x14033610b\nmov     rdx, [rax]                                                     ; +0x62, 0x140336112\nmov     rcx, rax                                                       ; +0x65, 0x140336115\ncall    qword ptr [rdx+48h]                                            ; +0x68, 0x140336118\nmov     rax, cs:qword_1406C2ED8                                        ; +0x6b, 0x14033611b\nmov     byte ptr [rax+230h], 0                                         ; +0x72, 0x140336122\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x79, 0x140336129\nadd     rsp, 20h                                                       ; +0x7e, 0x14033612e\npop     rdi                                                            ; +0x82, 0x140336132\nretn                                                                   ; +0x83, 0x140336133\nmov     [rax+230h], dil                                                ; +0x84, 0x140336134\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8b, 0x14033613b\nadd     rsp, 20h                                                       ; +0x90, 0x140336140\npop     rdi                                                            ; +0x94, 0x140336144\nretn                                                                   ; +0x95, 0x140336145", "xrefs": ["sub_140333810 @ 0x1403338ce", "MenuLayer::onPlay @ 0x1403359df", "MenuLayer::onCreator @ 0x140335d3f", "MenuLayer::onGarage @ 0x140335dcf", "<???> @ 0x1406d5204"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}