; ; GJBaseGameLayer::buttonIsRelevant from 0x140231e80 to 0x140231ff0 (368 bytes) ; ; 3 xrefs: ; > GJBaseGameLayer::update @ 0x140237da8 ; > @ 0x1406cdefc ; > @ 0x1406cdf08 ; ; 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_0], rbx ; +0x0, 0x140231e80 mov [rsp+arg_10], rbp ; +0x5, 0x140231e85 push rsi ; +0xa, 0x140231e8a push rdi ; +0xb, 0x140231e8b push r14 ; +0xc, 0x140231e8c sub rsp, 20h ; +0xe, 0x140231e8e mov rsi, rdx ; +0x12, 0x140231e92 mov rbx, rcx ; +0x15, 0x140231e95 cmp dword ptr [rdx], 1 ; +0x18, 0x140231e98 jnz loc_140231FDB ; +0x1b, 0x140231e9b movzx edi, byte ptr [rdx+5] ; +0x21, 0x140231ea1 test dil, dil ; +0x25, 0x140231ea5 setz bpl ; +0x28, 0x140231ea8 mov rax, [rcx+0DB0h] ; +0x2c, 0x140231eac movzx r14d, byte ptr [rax+154h] ; +0x33, 0x140231eb3 cmp byte ptr [rcx+309Eh], 0 ; +0x3b, 0x140231ebb jnz short loc_140231F1F ; +0x42, 0x140231ec2 cmp byte ptr [rcx+3190h], 0 ; +0x44, 0x140231ec4 jnz short loc_140231F1F ; +0x4b, 0x140231ecb mov rcx, cs:qword_1406C2ED8 ; +0x4d, 0x140231ecd test rcx, rcx ; +0x54, 0x140231ed4 jnz short loc_140231F08 ; +0x57, 0x140231ed7 mov ecx, 668h; Size ; +0x59, 0x140231ed9 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x5e, 0x140231ede mov [rsp+38h+arg_8], rax ; +0x63, 0x140231ee3 mov rcx, rax ; +0x68, 0x140231ee8 call sub_14017AB00 ; +0x6b, 0x140231eeb nop ; +0x70, 0x140231ef0 mov cs:qword_1406C2ED8, rax ; +0x71, 0x140231ef1 mov rdx, [rax] ; +0x78, 0x140231ef8 mov rcx, rax ; +0x7b, 0x140231efb call qword ptr [rdx+48h] ; +0x7e, 0x140231efe mov rcx, cs:qword_1406C2ED8 ; +0x81, 0x140231f01 lea rdx, a0010; "0010" ; +0x88, 0x140231f08 call GameManager__getGameVariable ; +0x8f, 0x140231f0f test al, al ; +0x94, 0x140231f14 jz short loc_140231F1F ; +0x96, 0x140231f16 test dil, dil ; +0x98, 0x140231f18 setnz bpl ; +0x9b, 0x140231f1b mov rax, [rbx+950h] ; +0x9f, 0x140231f1f mov rcx, [rax+1F0h] ; +0xa6, 0x140231f26 mov rdx, [rax+1F8h] ; +0xad, 0x140231f2d cmp rcx, rdx ; +0xb4, 0x140231f34 jz short loc_140231F54 ; +0xb7, 0x140231f37 nop dword ptr [rax+00000000h] ; +0xb9, 0x140231f39 cmp byte ptr [rcx+1Ch], 0 ; +0xc0, 0x140231f40 jz short loc_140231F4B ; +0xc4, 0x140231f44 cmp byte ptr [rcx], 0 ; +0xc6, 0x140231f46 jz short loc_140231F7D ; +0xc9, 0x140231f49 add rcx, 38h ; '8' ; +0xcb, 0x140231f4b cmp rcx, rdx ; +0xcf, 0x140231f4f jnz short loc_140231F40 ; +0xd2, 0x140231f52 xor al, al ; +0xd4, 0x140231f54 cmp byte ptr [rsi+4], 0 ; +0xd6, 0x140231f56 jnz short loc_140231F6A ; +0xda, 0x140231f5a movzx eax, al ; +0xdc, 0x140231f5c xor ecx, ecx ; +0xdf, 0x140231f5f cmp [rbx+307Ch], cl ; +0xe1, 0x140231f61 cmovz eax, ecx ; +0xe7, 0x140231f67 test bpl, bpl ; +0xea, 0x140231f6a jnz short loc_140231F81 ; +0xed, 0x140231f6d test al, al ; +0xef, 0x140231f6f jnz short loc_140231FDB ; +0xf1, 0x140231f71 xor dil, dil ; +0xf3, 0x140231f73 test r14b, r14b ; +0xf6, 0x140231f76 jnz short loc_140231F86 ; +0xf9, 0x140231f79 jmp short loc_140231F84 ; +0xfb, 0x140231f7b mov al, 1 ; +0xfd, 0x140231f7d jmp short loc_140231F56 ; +0xff, 0x140231f7f xor dil, dil ; +0x101, 0x140231f81 mov al, 1 ; +0x104, 0x140231f84 cmp byte ptr [rbx+307Ch], 0 ; +0x106, 0x140231f86 jnz short loc_140231FA5 ; +0x10d, 0x140231f8d cmp byte ptr [rbx+422h], 0 ; +0x10f, 0x140231f8f jz short loc_140231FA5 ; +0x116, 0x140231f96 test bpl, bpl ; +0x118, 0x140231f98 jz short loc_140231FA2 ; +0x11b, 0x140231f9b test r14b, r14b ; +0x11d, 0x140231f9d jnz short loc_140231FA5 ; +0x120, 0x140231fa0 mov dil, 1 ; +0x122, 0x140231fa2 test al, al ; +0x125, 0x140231fa5 jz short loc_140231FC0 ; +0x127, 0x140231fa7 mov rdx, rsi ; +0x129, 0x140231fa9 mov rcx, [rbx+0DA0h] ; +0x12c, 0x140231fac call sub_140231E00 ; +0x133, 0x140231fb3 test al, al ; +0x138, 0x140231fb8 jz short loc_140231FC0 ; +0x13a, 0x140231fba mov al, 1 ; +0x13c, 0x140231fbc jmp short loc_140231FDD ; +0x13e, 0x140231fbe test dil, dil ; +0x140, 0x140231fc0 jz short loc_140231FDB ; +0x143, 0x140231fc3 mov rdx, rsi ; +0x145, 0x140231fc5 mov rcx, [rbx+0DA8h] ; +0x148, 0x140231fc8 call sub_140231E00 ; +0x14f, 0x140231fcf test al, al ; +0x154, 0x140231fd4 setnz al ; +0x156, 0x140231fd6 jmp short loc_140231FDD ; +0x159, 0x140231fd9 xor al, al ; +0x15b, 0x140231fdb mov rbx, [rsp+38h+arg_0] ; +0x15d, 0x140231fdd mov rbp, [rsp+38h+arg_10] ; +0x162, 0x140231fe2 add rsp, 20h ; +0x167, 0x140231fe7 pop r14 ; +0x16b, 0x140231feb pop rdi ; +0x16d, 0x140231fed pop rsi ; +0x16e, 0x140231fee retn ; +0x16f, 0x140231fef