Function at 0x491170
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
call eax
movzx ecx, al
test ecx, ecx
jne 0x4911a8
movzx edx, byte [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 8]
call eax
jmp 0x4915b3
cmp dword [ebp + 8], 0
jge 0x4911c2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
call eax
mov al, 1
jmp 0x4915b3
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4d0], 0xffffffff
jne 0x4911f4
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0xffffffff
je 0x4911e8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [eax + 0x4d0], edx
jmp 0x4911f4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x4d0], ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
sub ecx, 0x60
mov eax, dword [ebp - 4]
mov edx, dword [eax - 0x60]
mov eax, dword [edx]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x491218
xor al, al
jmp 0x4915b3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x11c]
call eax
movzx ecx, al
test ecx, ecx
jne 0x491236
xor al, al
jmp 0x4915b3
push str.ListItem
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x491258
xor al, al
jmp 0x4915b3
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x4913a1
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4c4
call fcn.00429b90
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4912fe
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x24]
call edx
movzx eax, al
test eax, eax
jne 0x4912a4
xor al, al
jmp 0x4915b3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp + 8]
jne 0x4912b9
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xffffffff
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4c4
call fcn.0042a410
mov edx, dword [ebp - 4]
cmp dword [edx - 0x574], 0
je 0x4912f9
push 0
push 0
push 0xffffffffffffffff
push str.itemselect
mov eax, dword [ebp - 4]
sub eax, 0x5b8
push eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x574]
call fcn.00427040
jmp 0x49139c
push 1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x24]
call edx
movzx eax, al
test eax, eax
jne 0x49131b
xor al, al
jmp 0x4915b3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x4c4
call fcn.004297c0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
sub ecx, 0x5b8
mov edx, dword [ebp - 4]
mov eax, dword [edx - 0x5b8]
mov edx, dword [eax + 0x218]
call edx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x49136c
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x13c]
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0x574], 0
je 0x49139c
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push str.itemselect
mov eax, dword [ebp - 4]
sub eax, 0x5b8
push eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x574]
call fcn.00427040
jmp 0x4915b1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x491512
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4d0]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x18]
jle 0x4913f1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4d0]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
jmp 0x491402
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x18]
jg 0x491495
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 4]
sub ecx, 0x60
mov eax, dword [ebp - 4]
mov edx, dword [eax - 0x60]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49142d
jmp 0x4913f9
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x11c]
call eax
movzx ecx, al
test ecx, ecx
jne 0x491446
jmp 0x4913f9
push str.ListItem
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x491463
jmp 0x4913f9
push 1
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x24]
call eax
movzx ecx, al
test ecx, ecx
jne 0x49147e
jmp 0x4913f9
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x4c4
call fcn.004297c0
jmp 0x4913f9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
sub ecx, 0x5b8
mov eax, dword [ebp - 4]
mov edx, dword [eax - 0x5b8]
mov eax, dword [edx + 0x218]
call eax
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x4914d4
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x13c]
call edx
mov eax, dword [ebp - 4]
cmp dword [eax - 0x574], 0
je 0x49150d
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4d0]
push edx
mov eax, dword [ebp + 8]
push eax
push str.itemselect
mov ecx, dword [ebp - 4]
sub ecx, 0x5b8
push ecx
mov edx, dword [ebp - 4]
mov ecx, dword [edx - 0x574]
call fcn.00427040
jmp 0x4915b1
push 1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
call eax
movzx ecx, al
test ecx, ecx
jne 0x49152f
xor al, al
jmp 0x4915b3
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x4c4
call fcn.004297c0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
sub ecx, 0x5b8
mov eax, dword [ebp - 4]
mov edx, dword [eax - 0x5b8]
mov eax, dword [edx + 0x218]
call eax
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x491580
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x13c]
call edx
mov eax, dword [ebp - 4]
cmp dword [eax - 0x574], 0
je 0x4915b1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.itemselect
mov edx, dword [ebp - 4]
sub edx, 0x5b8
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 0x574]
call fcn.00427040
mov al, 1
mov esp, ebp
pop ebp
ret 8