Function at 0x401749
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 - 0xc]
push 0x10
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], esi
push eax
push 0x10000003
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetRawInputData]
cmp eax, esi
jne 0x401b08
movzx eax, word [ebp - 0x20]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x401b08
test ah, 0xc
je 0x40192d
shr eax, 0xb
and eax, 1
test byte [0x404580], 2
mov dword [ebp - 4], eax
jne 0x401b08
call dword [sym.imp.USER32.dll_GetMessagePos]
mov dword [ebp + 0xc], eax
movsx ebx, word [ebp + 0xe]
movsx eax, ax
push ebx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, eax
test esi, esi
je 0x401b08
cmp esi, dword [0x40458c]
je 0x4017e4
push 2
push esi
mov dword [0x40458c], esi
call dword [sym.imp.USER32.dll_GetAncestor]
mov dword [0x404588], eax
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push dword [0x404588]
call edi
and eax, 0xff7bffff
cmp eax, 0x96000000
je 0x401b08
push 0xfffffffffffffff0
push esi
call edi
and eax, 0x31000f
cmp eax, 7
jne 0x401851
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x401b08
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp ebx, dword [ebp - 0x30]
jl 0x401b08
cmp ebx, dword [ebp - 0x28]
jge 0x401813
movsx eax, word [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jl 0x401813
movsx eax, word [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jge 0x401813
lea eax, [ebp - 0x34]
push eax
push 0x60
push 2
push dword [ebp + 0xc]
push 0
push 0x84
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
movzx eax, ax
shr eax, 1
cmp dword [ebp - 0x34], 6
je 0x4018f2
test eax, eax
jne 0x4018f6
cmp dword [ebp - 0x34], 7
je 0x4018b1
lea eax, [ebp - 0x34]
push 0xf
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, 9
jne 0x4018c3
cmp dword [ebp - 0x34], 0x6f726353
jne 0x4018c3
push 0xfffffffffffffff0
push esi
call edi
test al, 1
je 0x4018f6
cmp dword [ebp - 4], 0
je 0x4018d0
and dword [ebp - 4], 0
xor word [ebp - 0x1e], 0xfff0
jmp 0x4018d0
test byte [0x404580], 4
je 0x401b08
movzx eax, word [ebp - 0x1e]
push dword [ebp + 0xc]
shl eax, 0x10
push eax
mov eax, dword [ebp - 4]
lea eax, [eax*4 + 0x20a]
push eax
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x401b08
test eax, eax
je 0x401914
cmp dword [ebp - 4], 0
movzx eax, word [ebp - 0x1e]
jne 0x401905
xor eax, 0xfff0
push dword [ebp + 0xc]
shl eax, 0x10
push eax
push 0x20e
push esi
call ebx
movzx eax, word [ebp - 0x1e]
shr eax, 0xf
xor eax, dword [ebp - 4]
push esi
push eax
push 0x114
push esi
call ebx
jmp 0x401b08
test al, 4
je 0x40195c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x404594], 0
push 0x10
mov dword [0x404590], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x404580]
movzx eax, ax
shr eax, 0xc
and ecx, 8
jmp 0x401995
test al, 8
je 0x401b08
mov eax, dword [0x404594]
test eax, eax
je 0x40197e
cmp eax, 1
jbe 0x401b08
push 0
push eax
jmp 0x401a7d
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x404580]
movzx eax, ax
shr eax, 0xa
and ecx, 0x20
xor eax, ecx
je 0x401b08
call dword [sym.imp.USER32.dll_GetMessagePos]
mov dword [ebp - 4], eax
movsx edi, word [ebp - 2]
movsx esi, ax
push edi
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
lea ecx, [ebp - 8]
mov dword [ebp + 0xc], eax
push ecx
push 0x60
push 2
push dword [ebp - 4]
push 0
push 0x84
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x401b08
test byte [ebp - 0xc], 4
je 0x4019ff
cmp dword [ebp - 8], 3
je 0x401a09
cmp dword [ebp - 8], 1
jne 0x401b08
push 2
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetAncestor]
mov dword [ebp + 0xc], eax
jmp 0x401a09
cmp dword [ebp - 8], 1
jne 0x401ae2
lea eax, [ebp - 0x34]
push 0x10
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetClassNameA]
test byte [ebp - 0xc], 4
mov ebx, eax
je 0x401a8a
cmp ebx, 0xd
jne 0x401b08
cmp dword [ebp - 0x34], 0x69626143
jne 0x401b08
cmp dword [ebp - 8], 3
push 1
pop ebx
mov dword [0x404594], ebx
je 0x401a79
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
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
lea ecx, [eax + 9]
cmp esi, ecx
ja 0x401b08
sub edi, dword [ebp - 0x30]
cmp edi, eax
ja 0x401b08
push ebx
push dword [ebp + 0xc]
push 0x800e
push dword [ebp + 8]
jmp 0x4018e7
cmp ebx, 6
jne 0x401acb
cmp dword [ebp - 0x34], 0x37323323
jne 0x401b08
cmp word [ebp - 0x30], 0x3836
jne 0x401b08
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x404590]
cmp eax, 0x1e0
ja 0x401b08
push 0xfffffffffffffff0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x80000
jne 0x401aea
jmp 0x401b08
cmp ebx, 9
jne 0x401b08
cmp dword [ebp - 0x34], 0x626d6f43
jne 0x401b08
cmp dword [ebp - 0x30], 0x6f424c6f
jmp 0x401ae8
push 5
pop ebx
cmp dword [ebp - 8], ebx
jne 0x401b08
push ebx
push dword [ebp + 0xc]
push 0x8014
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x4042d8], esi
mov dword [0x4042dc], edi
pop edi
pop esi
pop ebx
leave
ret