{"type": "func", "start": 5373052208, "end": 5373052371, "name": "LevelInfoLayer::onLevelOptions", "pseudocode": "// \n// LevelInfoLayer::onLevelOptions from 0x140424530 to 0x1404245d3 (163 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041e2c0\n// > <???> @ 0x140926948\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:10 +0000\n// \n\nvoid __fastcall LevelInfoLayer::onLevelOptions(__int64 a1)\n{\n  char v1; // al\n  __int64 v3; // rdx\n  bool v4; // bl\n  cocos2d::CCObject *v5; // rax\n  _BYTE v6[16]; // [rsp+28h] [rbp-30h] BYREF\n  __int64 v7; // [rsp+38h] [rbp-20h]\n\n  v1 = 0;\n  v4 = true;\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    v3 = *(_QWORD *)(a1 + 504);\n    if ( *(_DWORD *)(v3 + 1220) != 4 )\n    {\n      sub_14003F4F0((__int64)v6, v3 + 408);\n      v1 = 3;\n      if ( v7 )\n        v4 = false;\n    }\n  }\n  if ( (v1 & 1) != 0 )\n    sub_14003D310((__int64)v6);\n  if ( !v4 )\n  {\n    v5 = GameLevelOptionsLayer::create(*(cocos2d::CCObject **)(a1 + 504));\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v5 + 1064LL))(v5);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onLevelOptions from 0x140424530 to 0x1404245d3 (163 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041e2c0\n; > <???> @ 0x140926948\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:10 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140424530\npush    rdi                                                            ; +0x5, 0x140424535\nsub     rsp, 50h                                                       ; +0x6, 0x140424536\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14042453a\nxor     rax, rsp                                                       ; +0x11, 0x140424541\nmov     [rsp+58h+var_10], rax                                          ; +0x14, 0x140424544\nxor     eax, eax                                                       ; +0x19, 0x140424549\nmov     rdi, rcx                                                       ; +0x1b, 0x14042454b\nmov     [rsp+58h+var_38], eax                                          ; +0x1e, 0x14042454e\ncmp     [rcx+1E8h], al                                                 ; +0x22, 0x140424552\njnz     short loc_14042458C                                            ; +0x28, 0x140424558\nmov     rdx, [rcx+1F8h]                                                ; +0x2a, 0x14042455a\ncmp     dword ptr [rdx+4C4h], 4                                        ; +0x31, 0x140424561\njz      short loc_14042458C                                            ; +0x38, 0x140424568\nadd     rdx, 198h                                                      ; +0x3a, 0x14042456a\nlea     rcx, [rsp+58h+var_30]                                          ; +0x41, 0x140424571\ncall    sub_14003F4F0                                                  ; +0x46, 0x140424576\ncmp     [rsp+58h+var_20], 0                                            ; +0x4b, 0x14042457b\nmov     eax, 3                                                         ; +0x51, 0x140424581\njz      short loc_14042458C                                            ; +0x56, 0x140424586\nxor     bl, bl                                                         ; +0x58, 0x140424588\njmp     short loc_14042458E                                            ; +0x5a, 0x14042458a\nmov     bl, 1                                                          ; +0x5c, 0x14042458c\ntest    al, 1                                                          ; +0x5e, 0x14042458e\njz      short loc_14042459C                                            ; +0x60, 0x140424590\nlea     rcx, [rsp+58h+var_30]                                          ; +0x62, 0x140424592\ncall    sub_14003D310                                                  ; +0x67, 0x140424597\ntest    bl, bl                                                         ; +0x6c, 0x14042459c\njnz     short loc_1404245BB                                            ; +0x6e, 0x14042459e\nmov     rcx, [rdi+1F8h]                                                ; +0x70, 0x1404245a0\ncall    GameLevelOptionsLayer__create                                  ; +0x77, 0x1404245a7\nmov     rcx, [rax]                                                     ; +0x7c, 0x1404245ac\nmov     rdx, [rcx+428h]                                                ; +0x7f, 0x1404245af\nmov     rcx, rax                                                       ; +0x86, 0x1404245b6\ncall    rdx                                                            ; +0x89, 0x1404245b9\nmov     rcx, [rsp+58h+var_10]                                          ; +0x8b, 0x1404245bb\nxor     rcx, rsp; StackCookie                                          ; +0x90, 0x1404245c0\ncall    __security_check_cookie                                        ; +0x93, 0x1404245c3\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x98, 0x1404245c8\nadd     rsp, 50h                                                       ; +0x9d, 0x1404245cd\npop     rdi                                                            ; +0xa1, 0x1404245d1\nretn                                                                   ; +0xa2, 0x1404245d2", "xrefs": ["LevelInfoLayer::init @ 0x14041e2c0", "<???> @ 0x140926948"], "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"}