Function at 0x14002b560
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x90
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, dword [rdx]
mov rsi, rdx
sub eax, dword [rcx + 0x18]
mov rbx, rcx
mov dword [rdx + 8], eax
mov eax, dword [rdx + 4]
sub eax, dword [rcx + 0x1c]
mov dword [rdx + 0xc], eax
cmp dword [rcx + 0x114], 0xffffffff
jne 0x14002909e
cmp dword [rcx + 0x110], 0xffffffff
jne 0x14002909e
test byte [0x1400d0174], 2
je 0x14002909e
mov rdx, qword [0x1400d0178]
lea r8, [rsp + 0x20]
xor eax, eax
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rsp + 0x20], rax
add rcx, 0xf8
mov qword [rsp + 0x28], rax
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmmword [rsp + 0x40], xmm1
mov dword [rsp + 0x50], eax
movups xmmword [rsp + 0x54], xmm0
mov qword [rsp + 0x64], rax
mov dword [rsp + 0x6c], eax
call fcn.140026000
test al, al
je 0x14002909e
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, 0xfffffff9
lea rcx, [rsp + 0x70]
mov r8d, edx
call qword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x5c]
mov eax, dword [0x1400d0174]
test edx, edx
je 0x140029062
test al, 8
jne 0x14002906c
test ecx, ecx
je 0x14002907b
test al, 0x10
je 0x14002907b
test al, 8
cmovne ecx, edx
mov dword [rbx + 0x110], ecx
mov eax, dword [0x1400d0174]
mov edx, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
test edx, edx
je 0x14002908b
test al, 0x20
jne 0x140029095
test ecx, ecx
je 0x14002909e
test al, 0x40
je 0x14002909e
test al, 0x20
cmovne ecx, edx
mov dword [rbx + 0x114], ecx
movsxd rdx, dword [rbx + 0x114]
mov qword [rsp + 0xb0], rdi
cmp edx, 0xffffffff
jle 0x14002911a
mov r8, qword [rbx + 0xc0]
mov rcx, rdx
mov rax, qword [rbx + 0xc8]
sub rax, r8
sar rax, 4
cmp rax, rdx
jbe 0x1400291c0
mov edi, dword [rsi + 0xc]
add rcx, rcx
mov rax, qword [r8 + rcx*8]
shr rax, 0x20
sub edi, eax
je 0x14002911a
lea rcx, [rbx + 0x28]
mov r8d, edi
call fcn.1400268d0
test al, al
je 0x140029113
mov edx, dword [rbx + 0x114]
lea rcx, [rbx + 0xf8]
mov r8d, edi
mov byte [rbx + 0x118], 0
call fcn.140026b40
jmp 0x14002911a
mov byte [rbx + 0x118], 1
movsxd rdx, dword [rbx + 0x110]
cmp edx, 0xffffffff
jle 0x140029185
mov r8, qword [rbx + 0xa8]
mov rcx, rdx
mov rax, qword [rbx + 0xb0]
sub rax, r8
sar rax, 4
cmp rax, rdx
jbe 0x1400291c0
mov edi, dword [rsi + 8]
shl rcx, 4
sub edi, dword [rcx + r8]
je 0x140029185
lea rcx, [rbx + 0x28]
mov r8d, edi
call fcn.140026d50
test al, al
je 0x14002917e
mov edx, dword [rbx + 0x110]
lea rcx, [rbx + 0xf8]
mov r8d, edi
call fcn.140026fb0
mov byte [rbx + 0x118], 0
jmp 0x140029185
mov byte [rbx + 0x118], 1
mov rcx, qword [rbx + 8]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rdi, qword [rsp + 0xb0]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14006fd90
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rsi
ret
call fcn.140006b50
int3
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
lea rsi, [rcx + 0x280]
mov rdi, rcx
mov qword [rsi], rax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebp, ax
mov eax, 0x8000
and bp, ax
seta al
cmp qword [rdi + 0x48], 0
je 0x14002b5c8
mov rax, qword [0x1400d68b8]
lea rcx, [rdi + 0x40]
mov rdx, rsi
and dword [rax + 0x50], 0xfffffdff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x140028f80
cmp qword [rdi + 0x168], 0
mov qword [rsp + 0x30], rbx
je 0x14002b62b
mov rax, qword [0x1400d68b8]
lea rcx, [rdi + 0x160]
mov rdx, rsi
and dword [rax + 0x50], 0xfffffdff
call fcn.1400291d0
test al, al
jne 0x14002b616
xor edx, edx
mov rcx, rsi
call fcn.14002cc30
mov rcx, rsi
call fcn.14002cc10
lea rcx, [0x1400d0170]
call fcn.140029850
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp al, byte [rdi + 0x2a0]
je 0x14002b664
mov byte [rdi + 0x2a0], al
mov rbx, qword [rdi + 8]
cmp rbx, qword [rdi + 0x10]
je 0x14002b664
mov rcx, rbx
test bp, bp
je 0x14002b652
call fcn.14002cb20
jmp 0x14002b657
call fcn.14002ca20
add rbx, 0x100
cmp rbx, qword [rdi + 0x10]
jne 0x14002b643
mov rbx, qword [rdi + 8]
cmp rbx, qword [rdi + 0x10]
je 0x14002b5f8
nop
mov rdx, rsi
mov rcx, rbx
call fcn.14002ca80
test al, al
jne 0x14002b691
add rbx, 0x100
cmp rbx, qword [rdi + 0x10]
jne 0x14002b670
jmp 0x14002b5f8
mov rax, qword [0x1400d68b8]
and dword [rax + 0x50], 0xfffffdff
jmp 0x14002b616