Function at 0x140118558
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rdi, rdx
mov rbx, rcx
call qword [rax + 0x228]
test al, al
jne 0x1401185a4
mov eax, dword [rdi]
sub eax, 9
cmp eax, 0xc
ja 0x1401185a4
mov rcx, qword [rbx + 0x748]
mov rdx, rdi
test rcx, rcx
jne 0x140118803
mov rcx, rbx
call fcn.140111cd0
jmp 0x140118813
cmp dword [rdi], 0x13
jne 0x1401185d3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x140118813
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, rbx
call fcn.14011aae8
jmp 0x140118813
cmp dword [rdi], 3
mov ebp, reloc.WS2_32.dll_listen
jne 0x1401185f3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x1401185f3
cmp word [rdi + 0x1c], bp
je 0x1401185bd
cmp dword [rdi], ebp
jne 0x14011869d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x140118813
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x140118640
mov rcx, qword [rbx + 0x58]
lea r8, str.buttondown
mov byte [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
mov rdx, rbx
call fcn.1400e6608
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x8000
test di, ax
jne 0x140118679
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x140118679
lea rcx, [rbx + 0x730]
mov dl, 1
mov rax, qword [rcx]
call qword [rax + Ordinal_41]
jmp 0x140118813
mov rcx, qword [rbx + 0x748]
test rcx, rcx
je 0x140118813
mov rax, qword [rcx]
xor r8d, r8d
mov edx, dword [rbx + 0x738]
call qword [rax + 0x20]
jmp 0x140118813
mov rcx, qword [rbx + 0x748]
test rcx, rcx
je 0x1401186d6
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rax + 0x470], 0
je 0x1401186d6
cmp dword [rdi], 0xf
jne 0x1401186d6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x140118813
jmp 0x140118640
cmp dword [rdi], 0xe
jne 0x140118715
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x140118813
lea r8, str.itemclick
mov byte [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rbx + 0x58]
mov rdx, rbx
call fcn.1400e6608
jmp 0x140118813
cmp dword [rdi], 0xb
jne 0x14011875a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x140118813
or dword [rbx + 0x740], 8
mov rcx, rbx
call fcn.14011aae8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x140118813
lea r8, str.mouseenter
jmp 0x1401186f6
cmp dword [rdi], 0xa
jne 0x14011879e
mov eax, dword [rbx + 0x740]
test al, 8
je 0x140118813
and eax, 0xfffffff7
mov rcx, rbx
mov dword [rbx + 0x740], eax
call fcn.14011aae8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + Ordinal_145]
test al, al
je 0x140118813
lea r8, str.mouseleave
jmp 0x1401186f6
cmp dword [rdi], 0x1b
jne 0x1401187c1
mov rax, qword [rdi + 0x28]
lea r8, str.timer
mov r9, qword [rdi + 0x20]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
jmp 0x140118704
cmp dword [rdi], 0x14
jne 0x1401187f4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1d0]
test al, al
je 0x1401187f4
mov rax, qword [rdi + 0x28]
lea r8, str.menu
mov r9, qword [rdi + 0x20]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
jmp 0x140118704
mov rcx, qword [rbx + 0x748]
mov rdx, rdi
test rcx, rcx
je 0x14011880b
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x140118813
mov rcx, rbx
call fcn.1400f2664
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret