Function at 0x460e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
cmp dword [0x4c0a4c], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], 1
jne 0x460e38
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x4bf9a0]
mov edx, dword [0x4c0a40]
lea eax, [esp + 0x24]
push eax
push ecx
push 0x100e
xor ebp, ebp
push edx
mov dword [esp + 0x34], ebp
call edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x4c0a40]
push 1
lea ecx, [esp + 0x20]
push ecx
push edx
push ebp
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x3c], eax
mov eax, dword [0x4c0a40]
push 0x1012
push eax
mov dword [esp + 0x48], ecx
call edi
mov esi, dword [esp + 0x40]
mov ecx, dword [0x4bf9a0]
xor ebx, ebx
cmp dword [0x4c0a44], 1
mov dword [esp + 0x14], ecx
setne bl
add ebx, 1
cmp esi, 0xffffffff
jne 0x460f30
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
cmp eax, ebp
jge 0x460ee9
sub ebp, eax
mov eax, ebp
cdq
and edx, 3
add eax, edx
sar eax, 2
mov esi, ecx
sub esi, eax
sub esi, 1
jns 0x460f5f
xor esi, esi
jmp 0x460f5f
mov edx, dword [esp + 0x30]
cmp eax, edx
jle 0x46105e
sub eax, edx
mov ebp, eax
cdq
and edx, 3
push 0
add eax, edx
sar eax, 2
push 0
lea esi, [eax + ecx + 1]
mov ecx, dword [0x4c0a40]
push 0x1004
push ecx
call edi
sub eax, ebx
cmp esi, eax
jle 0x460f59
mov edx, dword [0x4c0a40]
push 0
push 0
push 0x1004
push edx
jmp 0x460f53
mov eax, dword [0x4c0a40]
push ebp
push ebp
push 0x1004
push eax
call edi
sub eax, ebx
cmp esi, eax
jle 0x460f59
mov ecx, dword [0x4c0a40]
push ebp
push ebp
push 0x1004
push ecx
call edi
mov esi, eax
sub esi, ebx
mov ecx, dword [0x4bf9a0]
cmp esi, ecx
je 0x461047
cmp dword [0x4c0a44], 0x23
jne 0x460f87
mov edx, dword [0x4c0a40]
push esi
push ecx
push edx
call fcn.0040bea0
mov ecx, dword [0x4bf9a0]
add esp, 0xc
cmp dword [0x4c0a44], 0x24
jne 0x460fa6
mov eax, dword [0x4c0a40]
push esi
push ecx
push eax
call fcn.004016a0
mov ecx, dword [0x4bf9a0]
add esp, 0xc
cmp dword [0x4c0a44], 1
jne 0x460fc0
push esi
push ecx
mov ecx, dword [0x4c0a40]
push ecx
call fcn.0046c8b0
add esp, 0xc
lea edx, [esp + 0x48]
push edx
mov eax, 3
push esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov eax, dword [0x4c0a40]
push 0x102b
push eax
mov dword [0x4bf9a0], esi
call edi
mov eax, dword [0x4bf9a0]
cmp eax, dword [esp + 0x14]
jle 0x461005
mov ecx, dword [0x4c0a40]
push 1
add eax, 1
push eax
push 0x1013
push ecx
jmp 0x461014
mov edx, dword [0x4c0a40]
push 0
push eax
push 0x1013
push edx
call edi
mov eax, dword [0x4c0a40]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 0x28
sub eax, ebp
lea eax, [eax + eax*4]
test eax, eax
jge 0x461032
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x4bf9a0]
mov dword [esp + 0x18], 2
cmp dword [esp + 0x14], ecx
je 0x46105e
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x460e3e
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret