; ; GJEffectManager::playerButton from 0x14036c910 to 0x14036cb6c (604 bytes) ; ; 2 xrefs: ; > GJBaseGameLayer::handleButton @ 0x14033c7b6 ; > @ 0x1409219ec ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:30:58 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x14036c910 mov [rsp+arg_10], rbp ; +0x5, 0x14036c915 mov [rsp+arg_18], rsi ; +0xa, 0x14036c91a push rdi ; +0xf, 0x14036c91f push r12 ; +0x10, 0x14036c920 push r13 ; +0x12, 0x14036c922 push r14 ; +0x14, 0x14036c924 push r15 ; +0x16, 0x14036c926 sub rsp, 60h ; +0x18, 0x14036c928 movzx ebp, r8b ; +0x1c, 0x14036c92c movzx r15d, dl ; +0x20, 0x14036c930 mov rdi, rcx ; +0x24, 0x14036c934 xor r10d, r10d ; +0x27, 0x14036c937 mov r12d, r10d ; +0x2a, 0x14036c93a mov rsi, [rcx+1F0h] ; +0x2d, 0x14036c93d mov r9, [rcx+1F8h] ; +0x34, 0x14036c944 sub r9, rsi ; +0x3b, 0x14036c94b mov rax, 4924924924924925h ; +0x3e, 0x14036c94e imul r9 ; +0x48, 0x14036c958 sar rdx, 4 ; +0x4b, 0x14036c95b mov rax, rdx ; +0x4f, 0x14036c95f shr rax, 3Fh ; +0x52, 0x14036c962 add rdx, rax ; +0x56, 0x14036c966 jz loc_14036CB4E ; +0x59, 0x14036c969 mov r14d, r10d ; +0x5f, 0x14036c96f mov r13d, 270Fh ; +0x62, 0x14036c972 nop dword ptr [rax+rax+00000000h] ; +0x68, 0x14036c978 cmp byte ptr [r14+rsi], 0 ; +0x70, 0x14036c980 jnz loc_14036CB0F ; +0x75, 0x14036c985 cmp byte ptr [r14+rsi+1Ch], 0 ; +0x7b, 0x14036c98b jz short loc_14036C99C ; +0x81, 0x14036c991 test bpl, bpl ; +0x83, 0x14036c993 jnz loc_14036CB0F ; +0x86, 0x14036c996 mov eax, [r14+rsi+10h] ; +0x8c, 0x14036c99c test eax, eax ; +0x91, 0x14036c9a1 jz short loc_14036C9C6 ; +0x93, 0x14036c9a3 cmp eax, 1 ; +0x95, 0x14036c9a5 jnz short loc_14036C9B4 ; +0x98, 0x14036c9a8 test bpl, bpl ; +0x9a, 0x14036c9aa jnz short loc_14036C9C6 ; +0x9d, 0x14036c9ad jmp loc_14036CB0F ; +0x9f, 0x14036c9af cmp eax, 2 ; +0xa4, 0x14036c9b4 jnz loc_14036CB0F ; +0xa7, 0x14036c9b7 test bpl, bpl ; +0xad, 0x14036c9bd jnz loc_14036CB0F ; +0xb0, 0x14036c9c0 test r15b, r15b ; +0xb6, 0x14036c9c6 jnz short loc_14036C9D6 ; +0xb9, 0x14036c9c9 cmp [r14+rsi+8], r15b ; +0xbb, 0x14036c9cb jz loc_14036CB0F ; +0xc0, 0x14036c9d0 mov r8d, [r14+rsi+4] ; +0xc6, 0x14036c9d6 mov eax, r8d ; +0xcb, 0x14036c9db test r8d, r8d ; +0xce, 0x14036c9de cmovs eax, r10d ; +0xd1, 0x14036c9e1 cmp eax, r13d ; +0xd5, 0x14036c9e5 cmovg eax, r13d ; +0xd8, 0x14036c9e8 mov r9, [rdi+500h] ; +0xdc, 0x14036c9ec movsxd rdx, eax ; +0xe3, 0x14036c9f3 movzx eax, dl ; +0xe6, 0x14036c9f6 and al, 1Fh ; +0xe9, 0x14036c9f9 movzx ecx, al ; +0xeb, 0x14036c9fb shr rdx, 5 ; +0xee, 0x14036c9fe mov eax, [r9+rdx*4] ; +0xf2, 0x14036ca02 bt eax, ecx ; +0xf6, 0x14036ca06 setnb bl ; +0xf9, 0x14036ca09 cmp byte ptr [r14+rsi+8], 0 ; +0xfc, 0x14036ca0c jz short loc_14036CA31 ; +0x102, 0x14036ca12 mov ecx, [r14+rsi+0Ch] ; +0x104, 0x14036ca14 test ecx, ecx ; +0x109, 0x14036ca19 jz short loc_14036CA31 ; +0x10b, 0x14036ca1b movzx eax, r15b ; +0x10d, 0x14036ca1d xor al, 1 ; +0x111, 0x14036ca21 mov ebx, r15d ; +0x113, 0x14036ca23 movzx eax, al ; +0x116, 0x14036ca26 cmp ecx, 1 ; +0x119, 0x14036ca29 cmovnz ebx, eax ; +0x11c, 0x14036ca2c jmp short loc_14036CA40 ; +0x11f, 0x14036ca2f mov eax, [r14+rsi+0Ch] ; +0x121, 0x14036ca31 test eax, eax ; +0x126, 0x14036ca36 jz short loc_14036CA40 ; +0x128, 0x14036ca38 cmp eax, 1 ; +0x12a, 0x14036ca3a setz bl ; +0x12d, 0x14036ca3d cmp qword ptr [rdi+140h], 0 ; +0x130, 0x14036ca40 jz short loc_14036CA99 ; +0x138, 0x14036ca48 lea rdx, [rsi+20h] ; +0x13a, 0x14036ca4a add rdx, r14 ; +0x13e, 0x14036ca4e lea rcx, [rsp+88h+var_48] ; +0x141, 0x14036ca51 call sub_14018CFB0 ; +0x146, 0x14036ca56 nop ; +0x14b, 0x14036ca5b mov rcx, [rdi+140h] ; +0x14c, 0x14036ca5c mov rax, [rcx] ; +0x153, 0x14036ca63 mov r10, [rax] ; +0x156, 0x14036ca66 mov eax, [r14+rsi+18h] ; +0x159, 0x14036ca69 mov [rsp+88h+var_60], eax ; +0x15e, 0x14036ca6e mov eax, [r14+rsi+14h] ; +0x162, 0x14036ca72 mov [rsp+88h+var_68], eax ; +0x167, 0x14036ca77 lea r9, [rsp+88h+var_48] ; +0x16b, 0x14036ca7b movzx r8d, bl ; +0x170, 0x14036ca80 mov edx, [r14+rsi+4] ; +0x174, 0x14036ca84 call r10 ; +0x179, 0x14036ca89 nop ; +0x17c, 0x14036ca8c lea rcx, [rsp+88h+var_48] ; +0x17d, 0x14036ca8d call sub_140069730 ; +0x182, 0x14036ca92 jmp short loc_14036CB0C ; +0x187, 0x14036ca97 mov eax, r8d ; +0x189, 0x14036ca99 test r8d, r8d ; +0x18c, 0x14036ca9c cmovs eax, r10d ; +0x18f, 0x14036ca9f cmp eax, r13d ; +0x193, 0x14036caa3 jle short loc_14036CAAD ; +0x196, 0x14036caa6 mov r8d, r13d ; +0x198, 0x14036caa8 jmp short loc_14036CAB4 ; +0x19b, 0x14036caab test r8d, r8d ; +0x19d, 0x14036caad cmovs r8d, r10d ; +0x1a0, 0x14036cab0 mov [rsp+88h+arg_0], r8d ; +0x1a4, 0x14036cab4 movsxd rcx, r8d ; +0x1ac, 0x14036cabc mov rax, rcx ; +0x1af, 0x14036cabf shr rax, 5 ; +0x1b2, 0x14036cac2 lea rdx, [r9+rax*4] ; +0x1b6, 0x14036cac6 and ecx, 1Fh ; +0x1ba, 0x14036caca mov eax, [rdx] ; +0x1bd, 0x14036cacd test bl, bl ; +0x1bf, 0x14036cacf jz short loc_14036CAEE ; +0x1c1, 0x14036cad1 bts eax, ecx ; +0x1c3, 0x14036cad3 mov [rdx], eax ; +0x1c6, 0x14036cad6 lea rcx, [rdi+520h] ; +0x1c8, 0x14036cad8 lea rdx, [rsp+88h+arg_0] ; +0x1cf, 0x14036cadf call sub_140066A60 ; +0x1d7, 0x14036cae7 jmp short loc_14036CB0C ; +0x1dc, 0x14036caec btr eax, ecx ; +0x1de, 0x14036caee mov [rdx], eax ; +0x1e1, 0x14036caf1 lea rcx, [rdi+520h] ; +0x1e3, 0x14036caf3 lea r8, [rsp+88h+arg_0] ; +0x1ea, 0x14036cafa lea rdx, [rsp+88h+var_58] ; +0x1f2, 0x14036cb02 call sub_140068190 ; +0x1f7, 0x14036cb07 xor r10d, r10d ; +0x1fc, 0x14036cb0c inc r12d ; +0x1ff, 0x14036cb0f add r14, 38h ; '8' ; +0x202, 0x14036cb12 mov rsi, [rdi+1F0h] ; +0x206, 0x14036cb16 mov rcx, [rdi+1F8h] ; +0x20d, 0x14036cb1d sub rcx, rsi ; +0x214, 0x14036cb24 mov rax, 4924924924924925h ; +0x217, 0x14036cb27 imul rcx ; +0x221, 0x14036cb31 sar rdx, 4 ; +0x224, 0x14036cb34 mov rax, rdx ; +0x228, 0x14036cb38 shr rax, 3Fh ; +0x22b, 0x14036cb3b add rdx, rax ; +0x22f, 0x14036cb3f movsxd rax, r12d ; +0x232, 0x14036cb42 cmp rax, rdx ; +0x235, 0x14036cb45 jb loc_14036C980 ; +0x238, 0x14036cb48 lea r11, [rsp+88h+var_28] ; +0x23e, 0x14036cb4e mov rbx, [r11+38h] ; +0x243, 0x14036cb53 mov rbp, [r11+40h] ; +0x247, 0x14036cb57 mov rsi, [r11+48h] ; +0x24b, 0x14036cb5b mov rsp, r11 ; +0x24f, 0x14036cb5f pop r15 ; +0x252, 0x14036cb62 pop r14 ; +0x254, 0x14036cb64 pop r13 ; +0x256, 0x14036cb66 pop r12 ; +0x258, 0x14036cb68 pop rdi ; +0x25a, 0x14036cb6a retn ; +0x25b, 0x14036cb6b