{"type": "func", "start": 4301272256, "end": 4301272519, "name": "GameSettingsLayer::onClose", "pseudocode": "// \n// GameSettingsLayer::onClose from 0x1006034c0 to 0x1006035c7 (263 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b7f498\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 12:34:31 +0000\n// \n\n__int64 __fastcall GameSettingsLayer::onClose(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rax\n  int IntGameVariable; // r15d\n  __int64 v4; // rax\n  int v5; // r12d\n  __int64 v6; // rax\n  char GameVariable; // al\n  __int64 v8; // rdx\n  bool v9; // cl\n  __int64 v10; // rax\n  __int64 v11; // rax\n  __int64 v12; // rax\n\n  v2 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v2, \"0049\");\n  v4 = GameManager::sharedState();\n  v5 = GameManager::getIntGameVariable(v4, \"0050\");\n  v6 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v6, \"0191\");\n  v9 = 1;\n  if ( *(_BYTE *)(a1 + 1176) == GameVariable )\n  {\n    v10 = GameManager::sharedState();\n    v9 = *(_BYTE *)(a1 + 1177) != (unsigned __int8)GameManager::getGameVariable(v10, \"0247\");\n  }\n  if ( *(_DWORD *)(a1 + 1148) != IntGameVariable || v9 || *(_DWORD *)(a1 + 1152) != v5 )\n  {\n    v11 = GameManager::sharedState();\n    GameManager::setIntGameVariable(v11, \"0049\");\n    v12 = GameManager::sharedState();\n    GameManager::setIntGameVariable(v12, \"0050\");\n    if ( *(_QWORD *)(GameManager::sharedState() + 552) )\n      *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 14248LL) + 1591LL) = 1;\n  }\n  return SetupTriggerPopup::onClose(a1, a2, v8);\n}", "assembly": "; \n; GameSettingsLayer::onClose from 0x1006034c0 to 0x1006035c7 (263 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b7f498\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 12:34:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006034c0\nmov     rbp, rsp                                                       ; +0x1, 0x1006034c1\npush    r15                                                            ; +0x4, 0x1006034c4\npush    r14                                                            ; +0x6, 0x1006034c6\npush    r12                                                            ; +0x8, 0x1006034c8\npush    rbx                                                            ; +0xa, 0x1006034ca\nmov     rbx, rsi                                                       ; +0xb, 0x1006034cb\nmov     r14, rdi                                                       ; +0xe, 0x1006034ce\ncall    GameManager__sharedState                                       ; +0x11, 0x1006034d1\nlea     rsi, a0049; \"0049\"                                             ; +0x16, 0x1006034d6\nmov     rdi, rax                                                       ; +0x1d, 0x1006034dd\ncall    GameManager__getIntGameVariable                                ; +0x20, 0x1006034e0\nmov     r15d, eax                                                      ; +0x25, 0x1006034e5\ncall    GameManager__sharedState                                       ; +0x28, 0x1006034e8\nlea     rsi, a0050; \"0050\"                                             ; +0x2d, 0x1006034ed\nmov     rdi, rax                                                       ; +0x34, 0x1006034f4\ncall    GameManager__getIntGameVariable                                ; +0x37, 0x1006034f7\nmov     r12d, eax                                                      ; +0x3c, 0x1006034fc\ncall    GameManager__sharedState                                       ; +0x3f, 0x1006034ff\nlea     rsi, a0191; \"0191\"                                             ; +0x44, 0x100603504\nmov     rdi, rax                                                       ; +0x4b, 0x10060350b\ncall    GameManager__getGameVariable                                   ; +0x4e, 0x10060350e\nmov     cl, 1                                                          ; +0x53, 0x100603513\ncmp     [r14+498h], al                                                 ; +0x55, 0x100603515\njnz     short loc_10060353C                                            ; +0x5c, 0x10060351c\ncall    GameManager__sharedState                                       ; +0x5e, 0x10060351e\nlea     rsi, a0247; \"0247\"                                             ; +0x63, 0x100603523\nmov     rdi, rax                                                       ; +0x6a, 0x10060352a\ncall    GameManager__getGameVariable                                   ; +0x6d, 0x10060352d\ncmp     [r14+499h], al                                                 ; +0x72, 0x100603532\nsetnz   cl                                                             ; +0x79, 0x100603539\ncmp     [r14+47Ch], r15d                                               ; +0x7c, 0x10060353c\njnz     short loc_100603555                                            ; +0x83, 0x100603543\ncmp     [r14+480h], r12d                                               ; +0x85, 0x100603545\nsetnz   al                                                             ; +0x8c, 0x10060354c\nor      al, cl                                                         ; +0x8f, 0x10060354f\ntest    al, 1                                                          ; +0x91, 0x100603551\njz      short loc_1006035B4                                            ; +0x93, 0x100603553\ncall    GameManager__sharedState                                       ; +0x95, 0x100603555\nmov     edx, [r14+47Ch]                                                ; +0x9a, 0x10060355a\nlea     rsi, a0049; \"0049\"                                             ; +0xa1, 0x100603561\nmov     rdi, rax                                                       ; +0xa8, 0x100603568\ncall    GameManager__setIntGameVariable                                ; +0xab, 0x10060356b\ncall    GameManager__sharedState                                       ; +0xb0, 0x100603570\nmov     edx, [r14+480h]                                                ; +0xb5, 0x100603575\nlea     rsi, a0050; \"0050\"                                             ; +0xbc, 0x10060357c\nmov     rdi, rax                                                       ; +0xc3, 0x100603583\ncall    GameManager__setIntGameVariable                                ; +0xc6, 0x100603586\ncall    GameManager__sharedState                                       ; +0xcb, 0x10060358b\ncmp     qword ptr [rax+228h], 0                                        ; +0xd0, 0x100603590\njz      short loc_1006035B4                                            ; +0xd8, 0x100603598\ncall    GameManager__sharedState                                       ; +0xda, 0x10060359a\nmov     rax, [rax+228h]                                                ; +0xdf, 0x10060359f\nmov     rax, [rax+37A8h]                                               ; +0xe6, 0x1006035a6\nmov     byte ptr [rax+637h], 1                                         ; +0xed, 0x1006035ad\nmov     rdi, r14                                                       ; +0xf4, 0x1006035b4\nmov     rsi, rbx                                                       ; +0xf7, 0x1006035b7\npop     rbx                                                            ; +0xfa, 0x1006035ba\npop     r12                                                            ; +0xfb, 0x1006035bb\npop     r14                                                            ; +0xfd, 0x1006035bd\npop     r15                                                            ; +0xff, 0x1006035bf\npop     rbp                                                            ; +0x101, 0x1006035c1\njmp     SetupTriggerPopup__onClose                                     ; +0x102, 0x1006035c2", "xrefs": ["<???> @ 0x100b7f498"], "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"}