; ; EditorOptionsLayer::onClose from 0x140291a90 to 0x140291ca3 (531 bytes) ; ; 2 xrefs: ; > @ 0x140575870 ; > @ 0x1406d19d0 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x140291a90 mov [rsp+arg_10], rsi ; +0x5, 0x140291a95 push rdi ; +0xa, 0x140291a9a sub rsp, 20h ; +0xb, 0x140291a9b mov rsi, rdx ; +0xf, 0x140291a9f mov rbx, rcx ; +0x12, 0x140291aa2 mov rcx, cs:qword_1406C2ED8 ; +0x15, 0x140291aa5 test rcx, rcx ; +0x1c, 0x140291aac jnz short loc_140291AE0 ; +0x1f, 0x140291aaf mov ecx, 668h; Size ; +0x21, 0x140291ab1 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x26, 0x140291ab6 mov [rsp+28h+arg_0], rax ; +0x2b, 0x140291abb mov rcx, rax ; +0x30, 0x140291ac0 call sub_14017AB00 ; +0x33, 0x140291ac3 nop ; +0x38, 0x140291ac8 mov cs:qword_1406C2ED8, rax ; +0x39, 0x140291ac9 mov rdx, [rax] ; +0x40, 0x140291ad0 mov rcx, rax ; +0x43, 0x140291ad3 call qword ptr [rdx+48h] ; +0x46, 0x140291ad6 mov rcx, cs:qword_1406C2ED8 ; +0x49, 0x140291ad9 lea rdx, a0049; "0049" ; +0x50, 0x140291ae0 call GameManager__getIntGameVariable ; +0x57, 0x140291ae7 mov edi, eax ; +0x5c, 0x140291aec mov rcx, cs:qword_1406C2ED8 ; +0x5e, 0x140291aee test rcx, rcx ; +0x65, 0x140291af5 jnz short loc_140291B29 ; +0x68, 0x140291af8 mov ecx, 668h; Size ; +0x6a, 0x140291afa call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x6f, 0x140291aff mov [rsp+28h+arg_0], rax ; +0x74, 0x140291b04 mov rcx, rax ; +0x79, 0x140291b09 call sub_14017AB00 ; +0x7c, 0x140291b0c nop ; +0x81, 0x140291b11 mov cs:qword_1406C2ED8, rax ; +0x82, 0x140291b12 mov rdx, [rax] ; +0x89, 0x140291b19 mov rcx, rax ; +0x8c, 0x140291b1c call qword ptr [rdx+48h] ; +0x8f, 0x140291b1f mov rcx, cs:qword_1406C2ED8 ; +0x92, 0x140291b22 lea rdx, a0050; "0050" ; +0x99, 0x140291b29 call GameManager__getIntGameVariable ; +0xa0, 0x140291b30 cmp [rbx+3F0h], edi ; +0xa5, 0x140291b35 jnz short loc_140291B51 ; +0xab, 0x140291b3b cmp [rbx+3F4h], eax ; +0xad, 0x140291b3d jnz short loc_140291B51 ; +0xb3, 0x140291b43 mov rcx, cs:qword_1406C2ED8 ; +0xb5, 0x140291b45 jmp loc_140291C44 ; +0xbc, 0x140291b4c mov rcx, cs:qword_1406C2ED8 ; +0xc1, 0x140291b51 test rcx, rcx ; +0xc8, 0x140291b58 jnz short loc_140291B8D ; +0xcb, 0x140291b5b mov ecx, 668h; Size ; +0xcd, 0x140291b5d call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xd2, 0x140291b62 mov [rsp+28h+arg_0], rax ; +0xd7, 0x140291b67 mov rcx, rax ; +0xdc, 0x140291b6c call sub_14017AB00 ; +0xdf, 0x140291b6f nop ; +0xe4, 0x140291b74 mov cs:qword_1406C2ED8, rax ; +0xe5, 0x140291b75 mov r8, [rax] ; +0xec, 0x140291b7c mov rcx, rax ; +0xef, 0x140291b7f call qword ptr [r8+48h] ; +0xf2, 0x140291b82 mov rcx, cs:qword_1406C2ED8 ; +0xf6, 0x140291b86 mov r8d, [rbx+3F0h] ; +0xfd, 0x140291b8d lea rdx, a0049; "0049" ; +0x104, 0x140291b94 call GameManager__setIntGameVariable ; +0x10b, 0x140291b9b mov rcx, cs:qword_1406C2ED8 ; +0x110, 0x140291ba0 test rcx, rcx ; +0x117, 0x140291ba7 jnz short loc_140291BDC ; +0x11a, 0x140291baa mov ecx, 668h; Size ; +0x11c, 0x140291bac call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x121, 0x140291bb1 mov [rsp+28h+arg_0], rax ; +0x126, 0x140291bb6 mov rcx, rax ; +0x12b, 0x140291bbb call sub_14017AB00 ; +0x12e, 0x140291bbe nop ; +0x133, 0x140291bc3 mov cs:qword_1406C2ED8, rax ; +0x134, 0x140291bc4 mov r8, [rax] ; +0x13b, 0x140291bcb mov rcx, rax ; +0x13e, 0x140291bce call qword ptr [r8+48h] ; +0x141, 0x140291bd1 mov rcx, cs:qword_1406C2ED8 ; +0x145, 0x140291bd5 mov r8d, [rbx+3F4h] ; +0x14c, 0x140291bdc lea rdx, a0050; "0050" ; +0x153, 0x140291be3 call GameManager__setIntGameVariable ; +0x15a, 0x140291bea mov rcx, cs:qword_1406C2ED8 ; +0x15f, 0x140291bef test rcx, rcx ; +0x166, 0x140291bf6 jnz short loc_140291C2A ; +0x169, 0x140291bf9 mov ecx, 668h; Size ; +0x16b, 0x140291bfb call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x170, 0x140291c00 mov [rsp+28h+arg_0], rax ; +0x175, 0x140291c05 mov rcx, rax ; +0x17a, 0x140291c0a call sub_14017AB00 ; +0x17d, 0x140291c0d nop ; +0x182, 0x140291c12 mov cs:qword_1406C2ED8, rax ; +0x183, 0x140291c13 mov rdx, [rax] ; +0x18a, 0x140291c1a mov rcx, rax ; +0x18d, 0x140291c1d call qword ptr [rdx+48h] ; +0x190, 0x140291c20 mov rcx, cs:qword_1406C2ED8 ; +0x193, 0x140291c23 mov rax, [rcx+210h] ; +0x19a, 0x140291c2a test rax, rax ; +0x1a1, 0x140291c31 jz short loc_140291C44 ; +0x1a4, 0x140291c34 mov rax, [rax+38A0h] ; +0x1a6, 0x140291c36 mov byte ptr [rax+5A1h], 1 ; +0x1ad, 0x140291c3d test rcx, rcx ; +0x1b4, 0x140291c44 jnz short loc_140291C78 ; +0x1b7, 0x140291c47 mov ecx, 668h; Size ; +0x1b9, 0x140291c49 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1be, 0x140291c4e mov [rsp+28h+arg_0], rax ; +0x1c3, 0x140291c53 mov rcx, rax ; +0x1c8, 0x140291c58 call sub_14017AB00 ; +0x1cb, 0x140291c5b nop ; +0x1d0, 0x140291c60 mov cs:qword_1406C2ED8, rax ; +0x1d1, 0x140291c61 mov rdx, [rax] ; +0x1d8, 0x140291c68 mov rcx, rax ; +0x1db, 0x140291c6b call qword ptr [rdx+48h] ; +0x1de, 0x140291c6e mov rcx, cs:qword_1406C2ED8 ; +0x1e1, 0x140291c71 mov rcx, [rcx+210h] ; +0x1e8, 0x140291c78 test rcx, rcx ; +0x1ef, 0x140291c7f jz short loc_140291C89 ; +0x1f2, 0x140291c82 call LevelEditorLayer__updatePreviewParticles ; +0x1f4, 0x140291c84 mov rdx, rsi ; +0x1f9, 0x140291c89 mov rcx, rbx ; +0x1fc, 0x140291c8c mov rbx, [rsp+28h+arg_8] ; +0x1ff, 0x140291c8f mov rsi, [rsp+28h+arg_10] ; +0x204, 0x140291c94 add rsp, 20h ; +0x209, 0x140291c99 pop rdi ; +0x20d, 0x140291c9d jmp SetupTriggerPopup__onClose ; +0x20e, 0x140291c9e