Function at 0x1403a5760
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [rcx + 8]
xor esi, esi
mov qword [rbp - 0x30], rax
mov edi, r8d
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov qword [rbp - 0x28], rax
mov r14d, 0xfff1
mov eax, dword [rcx + 0x50]
mov dword [rbp - 0x18], eax
movzx eax, word [rcx + 0x54]
mov word [rbp - 0x14], ax
lea eax, [r8 - 0x10]
mov dword [rbp - 0x20], 0xfffffff1
mov dword [rbp - 0x10], 1
cmp eax, 2
jbe 0x1403a58bf
cmp edx, 0x100
jne 0x1403a5890
cmp r8d, 8
jne 0x1403a5824
cmp word [rbp - 0x18], si
je 0x1403a5824
test dword [rcx + 4], edx
jne 0x1403a5824
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1403a5824
lea ecx, [rdi + 9]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1403a5824
lea ecx, [rdi + 0xa]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1403a5824
cmp word [rbp - 0x16], si
je 0x1403a5818
mov word [rbp - 0x16], si
jmp 0x1403a5930
mov dword [rbp - 0x16], esi
mov word [rbp - 0x18], si
jmp 0x1403a5930
mov eax, dword [rbx + 4]
and eax, 0x410
cmp eax, 0x10
jne 0x1403a585b
cmp word [rbp - 0x18], si
je 0x1403a585b
cmp word [rbp - 0x16], si
jne 0x1403a585b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x58]
cmp eax, dword [rbx + 0x5c]
ja 0x1403a585b
or dword [rbx + 4], 0x200
mov word [rbp - 0x16], di
jmp 0x1403a5930
movzx ecx, word [rbp - 0x14]
call fcn.1403a5700
mov word [rbp - 0x14], ax
mov eax, dword [rbx + 4]
btr eax, 9
mov word [rbp - 0x16], si
bts eax, 8
mov word [rbp - 0x18], di
btr eax, 0xa
mov dword [rbx + 4], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x58], eax
jmp 0x1403a5930
cmp edx, 0x101
jne 0x1403a5930
movzx eax, word [rbp - 0x18]
mov ecx, dword [rcx + 4]
cmp edi, eax
jne 0x1403a58ae
btr ecx, 8
mov dword [rbx + 4], ecx
movzx eax, word [rbp - 0x16]
cmp edi, eax
jne 0x1403a5930
btr ecx, 9
mov dword [rbx + 4], ecx
jmp 0x1403a5930
cmp si, word [rbp - 0x18]
je 0x1403a58d6
cmp edx, 0x100
jne 0x1403a5930
test dword [rcx + 4], 0x300
jne 0x1403a5930
movzx edi, word [rbp - 0x14]
mov ecx, 0x10
and di, r14w
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1403a58f2
or di, 2
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1403a5906
or di, 4
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1403a591a
or di, 8
mov eax, dword [rbx + 4]
btr eax, 8
mov word [rbp - 0x14], di
and eax, 0xfffff9ff
mov dword [rbp - 0x18], esi
mov dword [rbx + 4], eax
test byte [rbx + 4], 0x20
je 0x1403a5a4c
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1403a594d
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov r8d, dword [rbx + 0x10]
lea r9, [rbp - 0x30]
mov edx, 0x4e
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rbp - 0x10]
and eax, 1
test al, al
jne 0x1403a59a9
movzx eax, word [rbx + 0x50]
test ax, ax
je 0x1403a5984
movzx ecx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1403a598b
and dword [rbx + 4], 0xfffffeff
movzx eax, word [rbx + 0x52]
test ax, ax
je 0x1403a59a2
movzx ecx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1403a59a9
and dword [rbx + 4], 0xfffffdff
test byte [rbp - 0x10], 2
je 0x1403a5a4c
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_HideCaret]
mov edi, 3
test byte [rbx + 4], 0x80
mov eax, dword [rbp - 0x18]
mov dword [rbx + 0x50], eax
movzx eax, word [rbp - 0x14]
mov word [rbx + 0x54], ax
jne 0x1403a59f7
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x20]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
test byte [rbx + 4], 4
jne 0x1403a59f7
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, reloc.OLEAUT32.dll_DllRegisterServer
call qword [sym.imp.KERNEL32.dll_Sleep]
test byte [rbx + 4], 0x80
mov word [rbx + 0x50], si
mov word [rbx + 0x54], si
jne 0x1403a5a31
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x20]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
test byte [rbx + 4], 4
jne 0x1403a5a31
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rdi, 1
jne 0x1403a59c2
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_ShowCaret]
test byte [rbp - 0x10], 1
je 0x1403a5a8d
movzx eax, word [rbp - 0x18]
cmp word [rbx + 0x50], ax
jne 0x1403a5a70
movzx eax, word [rbp - 0x14]
cmp word [rbx + 0x54], ax
jne 0x1403a5a70
movzx eax, word [rbp - 0x16]
cmp word [rbx + 0x52], ax
je 0x1403a5a75
mov esi, 1
mov eax, dword [rbp - 0x18]
mov dword [rbx + 0x50], eax
movzx eax, word [rbp - 0x14]
mov word [rbx + 0x54], ax
test esi, esi
je 0x1403a5b30
jmp 0x1403a5ad8
movzx edi, word [rbx + 0x54]
mov ecx, 0x10
and di, r14w
mov dword [rbx + 0x50], esi
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1403a5aac
or di, 2
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1403a5ac0
or di, 4
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1403a5ad4
or di, 8
mov word [rbx + 0x54], di
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1403a5aeb
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
movzx r8d, word [rbx + 0x10]
mov edx, 0x111
mov r9, qword [rbx + 8]
or r8, 0x30000
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test byte [rbx + 4], 0x80
jne 0x1403a5b30
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x20]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
test byte [rbx + 4], 4
jne 0x1403a5b30
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret