Function at 0x1400d8ef0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rdi, rdx
mov rbx, rcx
call qword [rax + 0x228]
test al, al
jne 0x1400d8f3c
mov eax, dword [rdi]
sub eax, 9
cmp eax, 0xc
ja 0x1400d8f3c
mov rcx, qword [rbx + 0x748]
mov rdx, rdi
test rcx, rcx
jne 0x1400d9226
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.1400de1a0
mov eax, dword [rdi]
cmp eax, 0x13
jne 0x1400d8f72
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d923f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.1400cd380
cmp eax, 3
jne 0x1400d8f8e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d8f8e
cmp word [rdi + 0x1c], 0xd
je 0x1400d8f57
cmp dword [rdi], 0xd
jne 0x1400d9048
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d923f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x1400d8fdf
mov rcx, qword [rbx + 0x58]
lea r8, str.buttondown
mov byte [rsp + 0x28], 0
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400c41e0
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x8000
test di, ax
jne 0x1400d901e
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x1400d901e
lea rcx, [rbx + 0x730]
mov dl, 1
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [rax + Ordinal_41]
mov rcx, qword [rbx + 0x748]
test rcx, rcx
je 0x1400d923f
mov rax, qword [rcx]
xor r8d, r8d
mov edx, dword [rbx + 0x738]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [rax + 0x20]
mov rcx, qword [rbx + 0x748]
test rcx, rcx
je 0x1400d9081
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rax + 0x470], 0
je 0x1400d9081
cmp dword [rdi], 0xf
jne 0x1400d9081
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d923f
jmp 0x1400d8fdf
mov eax, dword [rdi]
cmp eax, 0xe
jne 0x1400d90cb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d923f
mov rcx, qword [rbx + 0x58]
lea r8, str.itemclick
mov byte [rsp + 0x28], 0
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400c41e0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp eax, 0xb
jne 0x1400d9136
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1400d923f
or dword [rbx + 0x740], 8
mov rcx, rbx
call fcn.1400cd380
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x1400d923f
mov rcx, qword [rbx + 0x58]
lea r8, str.mouseenter
mov byte [rsp + 0x28], 0
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400c41e0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp eax, 0xa
jne 0x1400d919d
mov eax, dword [rbx + 0x740]
test al, 8
je 0x1400d923f
and eax, 0xfffffff7
mov rcx, rbx
mov dword [rbx + 0x740], eax
call fcn.1400cd380
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x1400d923f
mov rcx, qword [rbx + 0x58]
lea r8, str.mouseleave
mov byte [rsp + 0x28], 0
xor r9d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400c41e0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp eax, 0x1b
jne 0x1400d91d2
mov rax, qword [rdi + 0x28]
lea r8, str.timer
mov r9, qword [rdi + 0x20]
mov rdx, rbx
mov rcx, qword [rbx + 0x58]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.1400c41e0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp eax, 0x14
jne 0x1400d9217
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1d0]
test al, al
je 0x1400d9217
mov rax, qword [rdi + 0x28]
lea r8, str.menu
mov r9, qword [rdi + 0x20]
mov rdx, rbx
mov rcx, qword [rbx + 0x58]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.1400c41e0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 0x748]
mov rdx, rdi
test rcx, rcx
je 0x1400d9237
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [rax + 0x30]
mov rcx, rbx
call fcn.1400db370
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret