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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 0x28
pop esi
lea eax, [ebp - 8]
push 0x10
mov dword [ebp - 8], esi
pop edi
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push 0x10000003
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetRawInputData]
cmp eax, esi
jne 0x401941
movzx eax, word [ebp - 0x20]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x401941
test al, 4
je 0x40177e
mov dword [0x4037c8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [0x4037c4], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [section..data]
movzx eax, ax
shr eax, 0xd
and ecx, 4
jmp 0x4017c5
test al, 8
je 0x401941
mov eax, dword [0x4037c8]
cmp eax, ebx
je 0x4017b0
cmp eax, 1
jbe 0x401941
push ebx
push eax
push 0x800f
push dword [0x40300c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x401941
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [section..data]
movzx eax, ax
shr eax, 0xb
and ecx, edi
xor eax, ecx
je 0x401941
call dword [sym.imp.USER32.dll_GetMessagePos]
mov dword [ebp - 0xc], eax
movsx edi, word [ebp - 0xa]
movsx esi, ax
push edi
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
lea ecx, [ebp - 4]
mov dword [ebp + 8], eax
push ecx
push 0x60
push 2
push dword [ebp - 0xc]
push ebx
push 0x84
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x401941
test byte [ebp - 8], 4
je 0x40182e
cmp dword [ebp - 4], 3
je 0x401838
cmp dword [ebp - 4], 1
jne 0x401941
push 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetAncestor]
mov dword [ebp + 8], eax
jmp 0x401838
cmp dword [ebp - 4], 1
ja 0x401918
lea eax, [ebp - 0x34]
push 0x10
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
test byte [ebp - 8], 4
mov ebx, eax
je 0x4018c0
cmp ebx, 0xd
jne 0x401941
cmp dword [ebp - 0x34], 0x69626143
jne 0x401941
cmp dword [ebp - 4], 3
mov dword [0x4037c8], 1
je 0x4018a6
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esi, dword [ebp - 0x34]
mov ecx, eax
shr ecx, 1
add eax, ecx
cmp esi, eax
ja 0x401941
sub edi, dword [ebp - 0x30]
cmp edi, eax
ja 0x401941
push dword [ebp - 0xc]
push dword [ebp + 8]
push 0x4032e0
push 0
call fcn.00401946
add esp, 0x10
jmp 0x401941
cmp ebx, 6
jne 0x401901
cmp dword [ebp - 0x34], 0x37323323
jne 0x401941
cmp word [ebp - 0x30], 0x3836
jne 0x401941
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4037c4]
cmp eax, 0x1e0
ja 0x401941
push 0xfffffffffffffff0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x80000
jne 0x401920
jmp 0x401941
cmp ebx, 9
jne 0x401941
cmp dword [ebp - 0x34], 0x626d6f43
jne 0x401941
cmp dword [ebp - 0x30], 0x6f424c6f
jmp 0x40191e
push 5
pop ebx
cmp dword [ebp - 4], ebx
jne 0x401941
push ebx
push dword [ebp + 8]
push 0x8014
push dword [0x40300c]
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x4032c8], esi
mov dword [0x4032cc], edi
pop edi
pop esi
pop ebx
leave
ret