{"type": "func", "start": 5372324720, "end": 5372325059, "name": "OptionsLayer::onOptions", "pseudocode": "// \n// OptionsLayer::onOptions from 0x140372b70 to 0x140372cc3 (339 bytes)\n// \n// 2 xrefs:\n// > OptionsLayer::customSetup @ 0x140371ea6\n// > <???> @ 0x1406d5aec\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid OptionsLayer::onOptions(OptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  char *v2; // rbx\n  void (*v3)(FLAlertLayer *); // rdx\n\n  v2 = (char *)operator new(0x2E0u);\n  FLAlertLayer::FLAlertLayer((FLAlertLayer *)v2);\n  *(_QWORD *)v2 = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 40) = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 41) = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 42) = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 43) = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 44) = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 51) = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 54) = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 79) = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 80) = &MoreOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 81) = &MoreOptionsLayer::`vftable';\n  *((_DWORD *)v2 + 164) = -1;\n  *(_QWORD *)(v2 + 660) = 0;\n  *((_QWORD *)v2 + 89) = 0;\n  *((_QWORD *)v2 + 90) = 0;\n  *((_QWORD *)v2 + 91) = 0;\n  if ( MoreOptionsLayer::init((MoreOptionsLayer *)v2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n    v2 = nullptr;\n  }\n  v3 = *(void (**)(FLAlertLayer *))(*(_QWORD *)v2 + 1040LL);\n  if ( v3 == FLAlertLayer::show )\n    FLAlertLayer::show((FLAlertLayer *)v2);\n  else\n    v3((FLAlertLayer *)v2);\n}", "assembly": "; \n; OptionsLayer::onOptions from 0x140372b70 to 0x140372cc3 (339 bytes)\n; \n; 2 xrefs:\n; > OptionsLayer::customSetup @ 0x140371ea6\n; > <???> @ 0x1406d5aec\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140372b70\npush    rdi                                                            ; +0x5, 0x140372b75\nsub     rsp, 20h                                                       ; +0x6, 0x140372b76\nmov     ecx, 2E0h; Size                                                ; +0xa, 0x140372b7a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x140372b7f\nmov     rbx, rax                                                       ; +0x14, 0x140372b84\nmov     [rsp+28h+arg_10], rax                                          ; +0x17, 0x140372b87\nmov     rcx, rax                                                       ; +0x1c, 0x140372b8c\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x1f, 0x140372b8f\nlea     rax, ??_7MoreOptionsLayer@@6B@; const MoreOptionsLayer::`vftable' ; +0x24, 0x140372b94\nmov     [rbx], rax                                                     ; +0x2b, 0x140372b9b\nlea     rax, ??_7MoreOptionsLayer@@6B@_0; const MoreOptionsLayer::`vftable' ; +0x2e, 0x140372b9e\nmov     [rbx+140h], rax                                                ; +0x35, 0x140372ba5\nlea     rax, ??_7MoreOptionsLayer@@6B@_1; const MoreOptionsLayer::`vftable' ; +0x3c, 0x140372bac\nmov     [rbx+148h], rax                                                ; +0x43, 0x140372bb3\nlea     rax, ??_7MoreOptionsLayer@@6B@_2; const MoreOptionsLayer::`vftable' ; +0x4a, 0x140372bba\nmov     [rbx+150h], rax                                                ; +0x51, 0x140372bc1\nlea     rax, ??_7MoreOptionsLayer@@6B@_3; const MoreOptionsLayer::`vftable' ; +0x58, 0x140372bc8\nmov     [rbx+158h], rax                                                ; +0x5f, 0x140372bcf\nlea     rax, ??_7MoreOptionsLayer@@6B@_4; const MoreOptionsLayer::`vftable' ; +0x66, 0x140372bd6\nmov     [rbx+160h], rax                                                ; +0x6d, 0x140372bdd\nlea     rax, ??_7MoreOptionsLayer@@6B@_5; const MoreOptionsLayer::`vftable' ; +0x74, 0x140372be4\nmov     [rbx+198h], rax                                                ; +0x7b, 0x140372beb\nlea     rax, ??_7MoreOptionsLayer@@6B@_6; const MoreOptionsLayer::`vftable' ; +0x82, 0x140372bf2\nmov     [rbx+1B0h], rax                                                ; +0x89, 0x140372bf9\nlea     rax, ??_7MoreOptionsLayer@@6B@_7; const MoreOptionsLayer::`vftable' ; +0x90, 0x140372c00\nmov     [rbx+278h], rax                                                ; +0x97, 0x140372c07\nlea     rax, ??_7MoreOptionsLayer@@6B@_8; const MoreOptionsLayer::`vftable' ; +0x9e, 0x140372c0e\nmov     [rbx+280h], rax                                                ; +0xa5, 0x140372c15\nlea     rax, ??_7MoreOptionsLayer@@6B@_9; const MoreOptionsLayer::`vftable' ; +0xac, 0x140372c1c\nmov     [rbx+288h], rax                                                ; +0xb3, 0x140372c23\nmov     dword ptr [rbx+290h], 0FFFFFFFFh                               ; +0xba, 0x140372c2a\nxor     edi, edi                                                       ; +0xc4, 0x140372c34\nmov     [rbx+294h], rdi                                                ; +0xc6, 0x140372c36\nmov     [rbx+2C8h], rdi                                                ; +0xcd, 0x140372c3d\nmov     [rbx+2D0h], rdi                                                ; +0xd4, 0x140372c44\nmov     [rbx+2D8h], rdi                                                ; +0xdb, 0x140372c4b\nmov     rax, cs:off_1405C4F48                                          ; +0xe2, 0x140372c52\nlea     rcx, MoreOptionsLayer__init                                    ; +0xe9, 0x140372c59\ncmp     rax, rcx                                                       ; +0xf0, 0x140372c60\nmov     rcx, rbx                                                       ; +0xf3, 0x140372c63\njnz     short loc_140372C6F                                            ; +0xf6, 0x140372c66\ncall    MoreOptionsLayer__init                                         ; +0xf8, 0x140372c68\njmp     short loc_140372C71                                            ; +0xfd, 0x140372c6d\ncall    rax ; MoreOptionsLayer__init                                   ; +0xff, 0x140372c6f\nmov     rcx, rbx                                                       ; +0x101, 0x140372c71\ntest    al, al                                                         ; +0x104, 0x140372c74\njz      short loc_140372C80                                            ; +0x106, 0x140372c76\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x108, 0x140372c78\njmp     short loc_140372C8E                                            ; +0x10e, 0x140372c7e\nmov     rax, [rbx]                                                     ; +0x110, 0x140372c80\nmov     edx, 1                                                         ; +0x113, 0x140372c83\ncall    qword ptr [rax+8]                                              ; +0x118, 0x140372c88\nmov     rbx, rdi                                                       ; +0x11b, 0x140372c8b\nmov     rax, [rbx]                                                     ; +0x11e, 0x140372c8e\nmov     rdx, [rax+410h]                                                ; +0x121, 0x140372c91\nlea     rax, FLAlertLayer__show                                        ; +0x128, 0x140372c98\nmov     rcx, rbx                                                       ; +0x12f, 0x140372c9f\ncmp     rdx, rax                                                       ; +0x132, 0x140372ca2\njnz     short loc_140372CB6                                            ; +0x135, 0x140372ca5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x137, 0x140372ca7\nadd     rsp, 20h                                                       ; +0x13c, 0x140372cac\npop     rdi                                                            ; +0x140, 0x140372cb0\njmp     FLAlertLayer__show                                             ; +0x141, 0x140372cb1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x146, 0x140372cb6\nadd     rsp, 20h                                                       ; +0x14b, 0x140372cbb\npop     rdi                                                            ; +0x14f, 0x140372cbf\njmp     rdx                                                            ; +0x150, 0x140372cc0", "xrefs": ["OptionsLayer::customSetup @ 0x140371ea6", "<???> @ 0x1406d5aec"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}