Function at 0x489710
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push ecx
lea edi, [ebp - 0x5c]
mov ecx, 0x17
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x48973e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, 0x2d8
call fcn.0048d320
cmp dword [ebp - 8], eax
jge 0x4897a3
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x2d8
call fcn.0048d3a0
mov dword [ebp - 0x54], eax
mov esi, esp
lea edx, [ebp - 0xd]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx]
call eax
cmp esi, esp
call fcn.00611b50
mov dword [ebp - 0x18], eax
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4897a1
mov al, 1
jmp 0x489a16
jmp 0x489735
mov edx, dword [ebp + 8]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 0x100
je 0x4897d1
cmp dword [ebp - 0x58], 0x104
je 0x489972
cmp dword [ebp - 0x58], 0x106
je 0x4898cc
jmp 0x489a14
cmp dword [ebp + 0xc], 9
jne 0x4898c7
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe8], 0
je 0x489893
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xe8]
mov eax, dword [ebp - 4]
mov edx, dword [edx]
mov esi, esp
mov ecx, dword [eax + 0xe8]
mov eax, dword [edx + 0xdc]
call eax
cmp esi, esp
call fcn.00611b50
movzx ecx, al
test ecx, ecx
je 0x489893
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe8]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [ecx + 0xe8]
mov eax, dword [edx + 0xe8]
call eax
cmp esi, esp
call fcn.00611b50
movzx ecx, al
test ecx, ecx
je 0x489893
push 0x67aeb4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe8]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [ecx + 0xe8]
mov eax, dword [edx + 0x10]
call eax
cmp esi, esp
call fcn.00611b50
push eax
call fcn.00614380
add esp, 8
test eax, eax
je 0x489893
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xe8]
call fcn.004a1970
movzx edx, al
test edx, edx
je 0x489893
xor al, al
jmp 0x489a16
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00611b50
cwde
test eax, eax
jl 0x4898af
mov byte [ebp - 0x59], 1
jmp 0x4898b3
mov byte [ebp - 0x59], 0
movzx ecx, byte [ebp - 0x59]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00483480
mov al, 1
jmp 0x489a16
jmp 0x489a14
mov edx, dword [ebp - 4]
cmp dword [edx + 0xe4], 0
jne 0x4898df
xor al, al
jmp 0x489a16
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0063cf00
add esp, 4
mov word [ebp - 0x20], ax
mov esi, esp
push reloc.WS2_32.dll_select
lea eax, [ebp - 0x20]
push eax
push 0x489d70
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xe4]
mov eax, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [eax + 0xe4]
mov eax, dword [edx + 0x110]
call eax
cmp esi, esp
call fcn.00611b50
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x48996d
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov esi, esp
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x104]
call eax
cmp esi, esp
call fcn.00611b50
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov esi, esp
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x20]
call eax
cmp esi, esp
call fcn.00611b50
mov al, 1
jmp 0x489a16
jmp 0x489a14
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xe8], 0
je 0x489a14
mov dword [ebp - 0x4c], 0
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x4c], 6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xe8]
mov dword [ebp - 0x48], ecx
mov dx, word [ebp + 0xc]
mov word [ebp - 0x38], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xfc]
mov edx, dword [eax + 0x100]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
call fcn.0048a770
mov word [ebp - 0x36], ax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, esp
call fcn.00611b50
mov dword [ebp - 0x44], eax
mov esi, esp
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xe8]
mov eax, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [eax + 0xe8]
mov eax, dword [edx + 0x11c]
call eax
cmp esi, esp
call fcn.00611b50
xor al, al
push edx
mov ecx, ebp
push eax
lea edx, [0x489a3c]
call fcn.00611af0
pop eax
pop edx
pop edi
pop esi
add esp, 0x5c
cmp ebp, esp
call fcn.00611b50
mov esp, ebp
pop ebp
ret 0x10