Function at 0x411ca0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x1c]
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
sub eax, ecx
je 0x411e13
mov esi, 1
sub eax, esi
jne 0x411f8f
mov eax, dword [ebp + 0xc]
cmp eax, 0x201
jne 0x411d02
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], esi
lea ebx, [esp + 0x10]
mov esi, edi
call fcn.00414b20
cmp dword [esp + 0x10], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x411f8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x202
jne 0x411d2f
test byte [edi + 0x7c], 0x40
mov dword [esp + 0x10], esi
je 0x411df9
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.00414b60
mov ecx, dword [esp + 0x10]
jmp 0x411dfb
cmp eax, 0x215
jne 0x411d59
test byte [edi + 0x7c], 0x40
mov dword [esp + 0x10], esi
je 0x411df9
lea eax, [esp + 0x10]
push eax
mov eax, edi
call fcn.00414bd0
mov ecx, dword [esp + 0x10]
jmp 0x411dfb
cmp eax, 0x200
jne 0x411d98
test byte [edi + 0x7c], 0x40
mov dword [esp + 0x10], ecx
je 0x411d7b
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
mov ecx, edi
call fcn.00414c90
jmp 0x411d7d
xor eax, eax
cmp dword [esp + 0x10], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x411f8f
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x205
jne 0x411db9
mov eax, dword [ebp + 0x14]
mov ecx, edi
call fcn.00414e00
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x104
jne 0x411f8f
push 0x10
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
cmp dword [ebp + 0x10], 0x79
mov byte [esp + 0x14], al
jne 0x411df7
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edi
call fcn.00414e60
mov ecx, dword [esp + 0x10]
jmp 0x411dfb
xor ecx, ecx
xor eax, eax
test ecx, ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
je 0x411f8f
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x411e5e
mov eax, edi
call fcn.00411fa0
test al, al
je 0x411e47
mov eax, dword [edi + 0x24]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x132d
push eax
call esi
push 0
push 0
push 0x418
push eax
call esi
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 2
jne 0x411e7b
mov esi, edi
call fcn.00414a50
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 5
jne 0x411e9c
mov eax, edi
call fcn.0040c450
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
lea eax, [ebx - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 7
jne 0x411ed4
cmp dword [edi + 0x50], 0xffffffff
je 0x411ebf
mov ecx, edi
call fcn.00414a80
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
lea eax, [ebx - 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 0x4e
mov esi, dword [ebp + 0x14]
jne 0x411f65
mov eax, dword [esi + 4]
cmp eax, 0x521
jne 0x411f38
cmp dword [esi + 8], 0xfffffdd9
jne 0x411f2d
mov edx, dword [edi + 0x24]
push 0
push 0
push 0x130b
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov esi, edi
call fcn.00410fa0
mov edi, dword [edi + 0x50]
call fcn.0040b2f0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x521
je 0x411e47
cmp dword [esi + 8], 0xfffffdee
jne 0x411f65
lea edx, [esp + 0x10]
push edx
mov eax, edi
mov dword [esp + 0x14], 1
call fcn.00414ae0
cmp dword [esp + 0x10], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x411e50
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x10]
push edx
push esi
push eax
push edi
mov esi, ebx
mov dword [esp + 0x20], 1
call fcn.00418a70
cmp dword [esp + 0x10], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x411e50
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18