Function at 0x497c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
mov esi, dword [ebp + 8]
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x497ef7
push edi
push 0x10
call ebx
mov edi, eax
push 0x11
and edi, 0x8000
call ebx
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 0xffffffdd
and ebx, 0x8000
cmp ecx, 0xb
ja case.0x497cc8.38
jmp dword [ecx*4 + 0x497f00]
test ebx, ebx
je 0x497d2f
mov eax, dword [esi + 0xe10]
mov ebx, dword [esi + 0xe14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xddc]
cmp eax, 0xffffffff
jne 0x497cff
push dword [esi + 0xdd8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0xddc], eax
test ebx, ebx
je 0x497d12
push 0
push eax
push ebx
push 0
mov ecx, esi
call fcn.004960d0
mov ebx, eax
push ebx
test edi, edi
mov ecx, esi
cmovne ebx, dword [ebp + 8]
push ebx
call fcn.00496ab0
mov ecx, esi
call fcn.00496790
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push edi
mov ecx, esi
call fcn.00497180
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test ebx, ebx
je 0x497da1
mov eax, dword [esi + 0xe10]
mov ebx, dword [esi + 0xe14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xddc]
cmp eax, 0xffffffff
jne 0x497d6e
push dword [esi + 0xdd8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0xddc], eax
cmp ebx, eax
je 0x497d84
push 1
push eax
lea eax, [ebx + 1]
mov ecx, esi
push eax
push 0
call fcn.004960d0
mov ebx, eax
push ebx
test edi, edi
mov ecx, esi
cmovne ebx, dword [ebp + 8]
push ebx
call fcn.00496ab0
mov ecx, esi
call fcn.00496790
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push edi
mov ecx, esi
call fcn.00497210
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test edi, edi
je 0x497dbc
mov eax, dword [esi + 0xe10]
jmp 0x497dbe
xor eax, eax
push 0
push eax
mov ecx, esi
call fcn.00496ab0
mov ecx, esi
call fcn.00496790
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push ebx
push edi
mov ecx, esi
call fcn.004971c0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test dword [esi + 0xdf8], 0x800
jne case.0x497cc8.38
test edi, edi
je 0x497e02
test ebx, ebx
jne case.0x497cc8.38
mov eax, dword [esi + 0xe10]
cmp eax, dword [esi + 0xe14]
je 0x497e28
mov eax, dword [esi]
push esi
test edi, edi
je 0x497ebc
call dword [eax + 0x1c8]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00496ab0
test edi, edi
je 0x497e47
mov eax, dword [esi + 0xe14]
test eax, eax
lea ecx, [eax - 1]
cmove ecx, eax
jmp 0x497ea4
test ebx, ebx
je 0x497e8d
mov eax, dword [esi + 0xddc]
cmp eax, 0xffffffff
jne 0x497e68
push dword [esi + 0xdd8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0xddc], eax
push eax
push dword [esi + 0xe10]
mov ecx, esi
call fcn.00496ab0
mov ecx, esi
call fcn.00496790
mov eax, dword [esi]
push esi
call dword [eax + 0x1c4]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov edx, dword [esi + 0xe14]
mov eax, dword [esi + 0xdd8]
lea ecx, [edx + 1]
cmp word [eax + edx*2], 0
cmove ecx, edx
push ecx
push dword [esi + 0xe10]
mov ecx, esi
call fcn.00496ab0
mov ecx, esi
call fcn.00496790
mov eax, dword [esi]
push esi
call dword [eax + 0x1c4]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test edi, edi
je 0x497ee9
test dword [esi + 0xdf8], 0x800
jne case.0x497cc8.38
mov eax, dword [esi]
push esi
call dword [eax + 0x1bc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test ebx, ebx
je case.0x497cc8.38
mov eax, dword [esi]
push esi
call dword [eax + 0x1c0]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10