Function at 0x4a8f10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8fd0
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
mov esi, ecx
cmp dword [esi + 0x448], 0
je 0x4a8f52
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x4a91f6
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [esi + 0x448], 1
jne 0x4a8fc4
mov edx, dword [ebp - 0x24]
mov eax, dword [esi + 0x450]
mov ecx, edx
sub ecx, eax
js 0x4a8f80
mov eax, ecx
jmp 0x4a8f82
sub eax, edx
cmp eax, 5
jle 0x4a921d
cmp dword [esi + 0x44c], 0
mov dword [esi + 0x448], 2
jne 0x4a8fb3
mov ecx, dword [0x52fe10]
push 0x7a
push ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x44c], eax
mov eax, dword [esi + 0x44c]
test eax, eax
je 0x4a8fc4
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push ebx
push edi
push 0
push 1
push eax
push ecx
mov ecx, esi
call edx
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test edi, edi
jl 0x4a91eb
test ebx, ebx
jl 0x4a91eb
cmp edi, ebx
je 0x4a91eb
lea ecx, [ebp - 0x3c]
setl byte [ebp - 0x10]
call fcn.004bc8c0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.004bc8c0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [esi + 8]
push edi
mov byte [ebp - 4], 1
call fcn.004a5900
test al, al
je 0x4a91d0
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.004a5900
lea ecx, [ebp - 0x30]
test al, al
je 0x4a91d3
call fcn.004bc9d0
lea ecx, [ebp - 0x3c]
mov ebx, eax
call fcn.004bc9d0
cmp eax, ebx
je 0x4a91d0
mov edx, dword [esi]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x38]
lea eax, [ebp - 0x6c]
push eax
push ebx
mov ecx, esi
call edx
test al, al
je 0x4a91d0
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
lea ecx, [ebp - 0x5c]
push ecx
push edi
mov ecx, esi
call edx
test al, al
je 0x4a91d0
mov eax, dword [ebp - 0x10]
push edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.004bc9d0
mov ecx, dword [esi + 8]
push eax
call fcn.004a59f0
test eax, eax
jl 0x4a9101
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov ecx, esi
call edx
test al, al
jne 0x4a9119
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
cmp byte [ebp - 0x10], 0
push ebx
sete cl
movzx edx, cl
push edx
lea ecx, [ebp - 0x30]
call fcn.004bc9d0
mov ecx, dword [esi + 8]
push eax
call fcn.004a59f0
test eax, eax
jl 0x4a914c
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov ecx, esi
call edx
test al, al
jne 0x4a9168
mov ecx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x60]
mov edi, ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edx
jmp 0x4a9171
mov ecx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
cmp eax, edx
jg 0x4a917d
mov eax, edx
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x5c], edx
jge 0x4a9188
mov edx, dword [ebp - 0x5c]
sub eax, edx
cmp ecx, edi
jg 0x4a9190
mov ecx, edi
mov edx, dword [ebp - 0x7c]
cmp ebx, edx
jge 0x4a9199
mov edx, ebx
sub ecx, edx
cmp ecx, eax
jge 0x4a91bb
cmp byte [ebp - 0x10], 0
je 0x4a91b1
mov eax, dword [ebp - 0x4c]
add ecx, eax
cmp dword [ebp - 0x24], ecx
jle 0x4a91bb
jmp 0x4a91d0
mov eax, dword [ebp - 0x44]
sub eax, ecx
cmp dword [ebp - 0x24], eax
jl 0x4a91d0
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004bc9d0
push eax
call fcn.004b81a0
add esp, 8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.004bc960
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
cmp dword [ebp + 8], 0x202
pop edi
pop ebx
jne 0x4a921d
cmp dword [esi + 0x448], 0
je 0x4a921d
push 0x7f00
push 0
mov dword [esi + 0x448], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4