{"type": "func", "start": 5373274656, "end": 5373274963, "name": "LevelSettingsLayer::onClose", "pseudocode": "// \n// LevelSettingsLayer::onClose from 0x14045aa20 to 0x14045ab53 (307 bytes)\n// \n// 4 xrefs:\n// > LevelSettingsLayer::onLiveEdit @ 0x14045ab72\n// > LevelSettingsLayer::keyBackClicked @ 0x14045b3d9\n// > LevelSettingsLayer::init @ 0x1404592cb\n// > <???> @ 0x140927c50\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:31 +0000\n// \n\n__int64 __fastcall LevelSettingsLayer::onClose(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 v3; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  void (__fastcall ***v8)(_QWORD); // rcx\n  __int64 v9; // rdx\n\n  v1 = *(_QWORD *)(a1 + 864);\n  if ( v1 )\n  {\n    *(_QWORD *)(v1 + 600) = 0;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 864) + 1032LL))(*(_QWORD *)(a1 + 864), 0);\n  }\n  v3 = *(_QWORD *)(a1 + 872);\n  if ( v3 )\n  {\n    *(_QWORD *)(v3 + 600) = 0;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 872) + 1032LL))(*(_QWORD *)(a1 + 872), 0);\n  }\n  v4 = *(_QWORD *)(a1 + 816);\n  if ( !*(_BYTE *)(v4 + 368) )\n  {\n    v5 = *(_QWORD *)(a1 + 704);\n    if ( v5 && *(_BYTE *)(v5 + 349) )\n    {\n      v6 = *(_QWORD *)(v4 + 384);\n      if ( *(_BYTE *)(v5 + 348) )\n      {\n        *(_DWORD *)(v6 + 680) = *(_DWORD *)(v5 + 344);\n      }\n      else\n      {\n        *(_DWORD *)(v6 + 680) = 0;\n        *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 816) + 384LL) + 676LL) = *(_DWORD *)(*(_QWORD *)(a1 + 704) + 344LL);\n      }\n      *(_BYTE *)(*(_QWORD *)(a1 + 816) + 424LL) = 1;\n    }\n    v7 = *(_QWORD *)(a1 + 816);\n    if ( *(_DWORD *)(v7 + 332) != *(_DWORD *)(a1 + 712) || *(_BYTE *)(v7 + 424) )\n      *(_BYTE *)(v7 + 424) = 0;\n    v8 = *(void (__fastcall ****)(_QWORD))(a1 + 848);\n    if ( v8 )\n      (**v8)(v8);\n  }\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  LOBYTE(v9) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v9);\n}", "assembly": "; \n; LevelSettingsLayer::onClose from 0x14045aa20 to 0x14045ab53 (307 bytes)\n; \n; 4 xrefs:\n; > LevelSettingsLayer::onLiveEdit @ 0x14045ab72\n; > LevelSettingsLayer::keyBackClicked @ 0x14045b3d9\n; > LevelSettingsLayer::init @ 0x1404592cb\n; > <???> @ 0x140927c50\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:31 +0000\n; \npush    rbx                                                            ; +0x0, 0x14045aa20\nsub     rsp, 20h                                                       ; +0x2, 0x14045aa22\nmov     rax, [rcx+360h]                                                ; +0x6, 0x14045aa26\nmov     rbx, rcx                                                       ; +0xd, 0x14045aa2d\ntest    rax, rax                                                       ; +0x10, 0x14045aa30\njz      short loc_14045AA52                                            ; +0x13, 0x14045aa33\nmov     qword ptr [rax+258h], 0                                        ; +0x15, 0x14045aa35\nxor     edx, edx                                                       ; +0x20, 0x14045aa40\nmov     rcx, [rcx+360h]                                                ; +0x22, 0x14045aa42\nmov     rax, [rcx]                                                     ; +0x29, 0x14045aa49\ncall    qword ptr [rax+408h]                                           ; +0x2c, 0x14045aa4c\nmov     rax, [rbx+368h]                                                ; +0x32, 0x14045aa52\ntest    rax, rax                                                       ; +0x39, 0x14045aa59\njz      short loc_14045AA7B                                            ; +0x3c, 0x14045aa5c\nmov     qword ptr [rax+258h], 0                                        ; +0x3e, 0x14045aa5e\nxor     edx, edx                                                       ; +0x49, 0x14045aa69\nmov     rcx, [rbx+368h]                                                ; +0x4b, 0x14045aa6b\nmov     rax, [rcx]                                                     ; +0x52, 0x14045aa72\ncall    qword ptr [rax+408h]                                           ; +0x55, 0x14045aa75\nmov     rcx, [rbx+330h]                                                ; +0x5b, 0x14045aa7b\ncmp     byte ptr [rcx+170h], 0                                         ; +0x62, 0x14045aa82\njnz     loc_14045AB31                                                  ; +0x69, 0x14045aa89\nmov     rax, [rbx+2C0h]                                                ; +0x6f, 0x14045aa8f\ntest    rax, rax                                                       ; +0x76, 0x14045aa96\njz      short loc_14045AAFB                                            ; +0x79, 0x14045aa99\ncmp     byte ptr [rax+15Dh], 0                                         ; +0x7b, 0x14045aa9b\njz      short loc_14045AAFB                                            ; +0x82, 0x14045aaa2\ncmp     byte ptr [rax+15Ch], 0                                         ; +0x84, 0x14045aaa4\nmov     rcx, [rcx+180h]                                                ; +0x8b, 0x14045aaab\njz      short loc_14045AAC2                                            ; +0x92, 0x14045aab2\nmov     eax, [rax+158h]                                                ; +0x94, 0x14045aab4\nmov     [rcx+2A8h], eax                                                ; +0x9a, 0x14045aaba\njmp     short loc_14045AAED                                            ; +0xa0, 0x14045aac0\nmov     dword ptr [rcx+2A8h], 0                                        ; +0xa2, 0x14045aac2\nmov     rax, [rbx+330h]                                                ; +0xac, 0x14045aacc\nmov     rdx, [rbx+2C0h]                                                ; +0xb3, 0x14045aad3\nmov     rcx, [rax+180h]                                                ; +0xba, 0x14045aada\nmov     eax, [rdx+158h]                                                ; +0xc1, 0x14045aae1\nmov     [rcx+2A4h], eax                                                ; +0xc7, 0x14045aae7\nmov     rax, [rbx+330h]                                                ; +0xcd, 0x14045aaed\nmov     byte ptr [rax+1A8h], 1                                         ; +0xd4, 0x14045aaf4\nmov     rcx, [rbx+330h]                                                ; +0xdb, 0x14045aafb\nmov     eax, [rbx+2C8h]                                                ; +0xe2, 0x14045ab02\ncmp     [rcx+14Ch], eax                                                ; +0xe8, 0x14045ab08\njnz     short loc_14045AB19                                            ; +0xee, 0x14045ab0e\ncmp     byte ptr [rcx+1A8h], 0                                         ; +0xf0, 0x14045ab10\njz      short loc_14045AB20                                            ; +0xf7, 0x14045ab17\nmov     byte ptr [rcx+1A8h], 0                                         ; +0xf9, 0x14045ab19\nmov     rcx, [rbx+350h]                                                ; +0x100, 0x14045ab20\ntest    rcx, rcx                                                       ; +0x107, 0x14045ab27\njz      short loc_14045AB31                                            ; +0x10a, 0x14045ab2a\nmov     rax, [rcx]                                                     ; +0x10c, 0x14045ab2c\ncall    qword ptr [rax]                                                ; +0x10f, 0x14045ab2f\nmov     rax, [rbx]                                                     ; +0x111, 0x14045ab31\nxor     edx, edx                                                       ; +0x114, 0x14045ab34\nmov     rcx, rbx                                                       ; +0x116, 0x14045ab36\ncall    qword ptr [rax+3E0h]                                           ; +0x119, 0x14045ab39\nmov     rax, [rbx]                                                     ; +0x11f, 0x14045ab3f\nmov     dl, 1                                                          ; +0x122, 0x14045ab42\nmov     rcx, rbx                                                       ; +0x124, 0x14045ab44\nadd     rsp, 20h                                                       ; +0x127, 0x14045ab47\npop     rbx                                                            ; +0x12b, 0x14045ab4b\njmp     qword ptr [rax+208h]                                           ; +0x12c, 0x14045ab4c", "xrefs": ["LevelSettingsLayer::onLiveEdit @ 0x14045ab72", "LevelSettingsLayer::keyBackClicked @ 0x14045b3d9", "LevelSettingsLayer::init @ 0x1404592cb", "<???> @ 0x140927c50"], "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"}