{"type": "func", "start": 5373383296, "end": 5373383449, "name": "MenuLayer::willClose", "pseudocode": "// \n// MenuLayer::willClose from 0x140475280 to 0x140475319 (153 bytes)\n// \n// 5 xrefs:\n// > MenuLayer::dMenuLayer @ 0x140471ed9\n// > MenuLayer::onPlay @ 0x140474b93\n// > MenuLayer::onCreator @ 0x140474f0f\n// > MenuLayer::onGarage @ 0x140474f9f\n// > <???> @ 0x140928328\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::willClose(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rdx\n  __int64 result; // rax\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  v2 = GooglePlayManager::sharedState();\n  v3 = a1 + 416;\n  if ( !a1 )\n    v3 = 0;\n  if ( *(_QWORD *)(v2 + 320) == v3 )\n    *(_QWORD *)(GooglePlayManager::sharedState() + 320) = 0;\n  result = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v5 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    result = qword_14090BFD0;\n  }\n  *(_BYTE *)(qword_14090BFD0 + 600) = 0;\n  return result;\n}", "assembly": "; \n; MenuLayer::willClose from 0x140475280 to 0x140475319 (153 bytes)\n; \n; 5 xrefs:\n; > MenuLayer::dMenuLayer @ 0x140471ed9\n; > MenuLayer::onPlay @ 0x140474b93\n; > MenuLayer::onCreator @ 0x140474f0f\n; > MenuLayer::onGarage @ 0x140474f9f\n; > <???> @ 0x140928328\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, 0x140475280\npush    rdi                                                            ; +0x5, 0x140475285\nsub     rsp, 20h                                                       ; +0x6, 0x140475286\nmov     rbx, rcx                                                       ; +0xa, 0x14047528a\ncall    GooglePlayManager__sharedState                                 ; +0xd, 0x14047528d\nlea     rdx, [rbx+1A0h]                                                ; +0x12, 0x140475292\nxor     edi, edi                                                       ; +0x19, 0x140475299\ntest    rbx, rbx                                                       ; +0x1b, 0x14047529b\ncmovz   rdx, rdi                                                       ; +0x1e, 0x14047529e\ncmp     [rax+140h], rdx                                                ; +0x22, 0x1404752a2\njnz     short loc_1404752B7                                            ; +0x29, 0x1404752a9\ncall    GooglePlayManager__sharedState                                 ; +0x2b, 0x1404752ab\nmov     [rax+140h], rdi                                                ; +0x30, 0x1404752b0\nmov     rax, cs:qword_14090BFD0                                        ; +0x37, 0x1404752b7\ntest    rax, rax                                                       ; +0x3e, 0x1404752be\njnz     short loc_140475307                                            ; +0x41, 0x1404752c1\nmov     ecx, 6E8h; Size                                                ; +0x43, 0x1404752c3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x48, 0x1404752c8\nmov     [rsp+28h+arg_0], rax                                           ; +0x4d, 0x1404752cd\nmov     rcx, rax                                                       ; +0x52, 0x1404752d2\ncall    GameManager__GameManager                                       ; +0x55, 0x1404752d5\nnop                                                                    ; +0x5a, 0x1404752da\nmov     cs:qword_14090BFD0, rax                                        ; +0x5b, 0x1404752db\nmov     rcx, [rax]                                                     ; +0x62, 0x1404752e2\nmov     rdx, [rcx+48h]                                                 ; +0x65, 0x1404752e5\nmov     rcx, rax                                                       ; +0x69, 0x1404752e9\ncall    rdx                                                            ; +0x6c, 0x1404752ec\nmov     rax, cs:qword_14090BFD0                                        ; +0x6e, 0x1404752ee\nmov     byte ptr [rax+258h], 0                                         ; +0x75, 0x1404752f5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7c, 0x1404752fc\nadd     rsp, 20h                                                       ; +0x81, 0x140475301\npop     rdi                                                            ; +0x85, 0x140475305\nretn                                                                   ; +0x86, 0x140475306\nmov     [rax+258h], dil                                                ; +0x87, 0x140475307\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8e, 0x14047530e\nadd     rsp, 20h                                                       ; +0x93, 0x140475313\npop     rdi                                                            ; +0x97, 0x140475317\nretn                                                                   ; +0x98, 0x140475318", "xrefs": ["MenuLayer::dMenuLayer @ 0x140471ed9", "MenuLayer::onPlay @ 0x140474b93", "MenuLayer::onCreator @ 0x140474f0f", "MenuLayer::onGarage @ 0x140474f9f", "<???> @ 0x140928328"], "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"}