{"type": "func", "start": 5373738080, "end": 5373738283, "name": "OptionsLayer::onParental", "pseudocode": "// \n// OptionsLayer::onParental from 0x1404cbc60 to 0x1404cbd2b (203 bytes)\n// \n// 2 xrefs:\n// > OptionsLayer::customSetup @ 0x1404cb114\n// > <???> @ 0x140929618\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:58 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 OptionsLayer::onParental()\n{\n  __int64 v0; // rcx\n  __int64 v1; // rcx\n  __int64 v2; // rax\n  __int64 v4; // rax\n  void *v5; // [rsp+40h] [rbp+18h]\n  void *v6; // [rsp+40h] [rbp+18h]\n\n  v0 = 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    v0 = qword_14090BFD0;\n  }\n  if ( !GameManager::getGameVariable(v0, \"0228\") )\n    goto LABEL_8;\n  v1 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v6 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v1 = qword_14090BFD0;\n  }\n  if ( GameManager::parentalOptionsActive(v1) )\n  {\n    v2 = ParentalGateLayer::create();\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1064LL))(v2);\n  }\n  else\n  {\nLABEL_8:\n    v4 = ParentalOptionsLayer::create();\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL))(v4);\n  }\n}", "assembly": "; \n; OptionsLayer::onParental from 0x1404cbc60 to 0x1404cbd2b (203 bytes)\n; \n; 2 xrefs:\n; > OptionsLayer::customSetup @ 0x1404cb114\n; > <???> @ 0x140929618\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:58 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x1404cbc60\nmov     rcx, cs:qword_14090BFD0                                        ; +0x4, 0x1404cbc64\ntest    rcx, rcx                                                       ; +0xb, 0x1404cbc6b\njnz     short loc_1404CBCA2                                            ; +0xe, 0x1404cbc6e\nmov     ecx, 6E8h; Size                                                ; +0x10, 0x1404cbc70\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x1404cbc75\nmov     [rsp+28h+arg_10], rax                                          ; +0x1a, 0x1404cbc7a\nmov     rcx, rax                                                       ; +0x1f, 0x1404cbc7f\ncall    GameManager__GameManager                                       ; +0x22, 0x1404cbc82\nnop                                                                    ; +0x27, 0x1404cbc87\nmov     cs:qword_14090BFD0, rax                                        ; +0x28, 0x1404cbc88\nmov     rcx, [rax]                                                     ; +0x2f, 0x1404cbc8f\nmov     rdx, [rcx+48h]                                                 ; +0x32, 0x1404cbc92\nmov     rcx, rax                                                       ; +0x36, 0x1404cbc96\ncall    rdx                                                            ; +0x39, 0x1404cbc99\nmov     rcx, cs:qword_14090BFD0                                        ; +0x3b, 0x1404cbc9b\nlea     rdx, a0228; \"0228\"                                             ; +0x42, 0x1404cbca2\ncall    GameManager__getGameVariable                                   ; +0x49, 0x1404cbca9\ntest    al, al                                                         ; +0x4e, 0x1404cbcae\njz      short loc_1404CBD12                                            ; +0x50, 0x1404cbcb0\nmov     rcx, cs:qword_14090BFD0                                        ; +0x52, 0x1404cbcb2\ntest    rcx, rcx                                                       ; +0x59, 0x1404cbcb9\njnz     short loc_1404CBCF0                                            ; +0x5c, 0x1404cbcbc\nmov     ecx, 6E8h; Size                                                ; +0x5e, 0x1404cbcbe\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x63, 0x1404cbcc3\nmov     [rsp+28h+arg_10], rax                                          ; +0x68, 0x1404cbcc8\nmov     rcx, rax                                                       ; +0x6d, 0x1404cbccd\ncall    GameManager__GameManager                                       ; +0x70, 0x1404cbcd0\nnop                                                                    ; +0x75, 0x1404cbcd5\nmov     cs:qword_14090BFD0, rax                                        ; +0x76, 0x1404cbcd6\nmov     rcx, [rax]                                                     ; +0x7d, 0x1404cbcdd\nmov     rdx, [rcx+48h]                                                 ; +0x80, 0x1404cbce0\nmov     rcx, rax                                                       ; +0x84, 0x1404cbce4\ncall    rdx                                                            ; +0x87, 0x1404cbce7\nmov     rcx, cs:qword_14090BFD0                                        ; +0x89, 0x1404cbce9\ncall    GameManager__parentalOptionsActive                             ; +0x90, 0x1404cbcf0\ntest    al, al                                                         ; +0x95, 0x1404cbcf5\njz      short loc_1404CBD12                                            ; +0x97, 0x1404cbcf7\ncall    ParentalGateLayer__create                                      ; +0x99, 0x1404cbcf9\nmov     rcx, [rax]                                                     ; +0x9e, 0x1404cbcfe\nmov     rdx, [rcx+428h]                                                ; +0xa1, 0x1404cbd01\nmov     rcx, rax                                                       ; +0xa8, 0x1404cbd08\nadd     rsp, 28h                                                       ; +0xab, 0x1404cbd0b\njmp     rdx                                                            ; +0xaf, 0x1404cbd0f\ncall    ParentalOptionsLayer__create                                   ; +0xb2, 0x1404cbd12\nmov     rcx, [rax]                                                     ; +0xb7, 0x1404cbd17\nmov     rdx, [rcx+428h]                                                ; +0xba, 0x1404cbd1a\nmov     rcx, rax                                                       ; +0xc1, 0x1404cbd21\nadd     rsp, 28h                                                       ; +0xc4, 0x1404cbd24\njmp     rdx                                                            ; +0xc8, 0x1404cbd28", "xrefs": ["OptionsLayer::customSetup @ 0x1404cb114", "<???> @ 0x140929618"], "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"}