Function at 0x421fa0
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 0x422217
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.0x421fe8.38
jmp dword [ecx*4 + 0x422220]
test ebx, ebx
je 0x42204f
mov eax, dword [esi + 0xe10]
mov ebx, dword [esi + 0xe14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xddc]
cmp eax, 0xffffffff
jne 0x42201f
push dword [esi + 0xdd8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0xddc], eax
test ebx, ebx
je 0x422032
push 0
push eax
push ebx
push 0
mov ecx, esi
call fcn.004203f0
mov ebx, eax
push ebx
test edi, edi
mov ecx, esi
cmovne ebx, dword [ebp + 8]
push ebx
call fcn.00420dd0
mov ecx, esi
call fcn.00420ab0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push edi
mov ecx, esi
call fcn.004214a0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test ebx, ebx
je 0x4220c1
mov eax, dword [esi + 0xe10]
mov ebx, dword [esi + 0xe14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xddc]
cmp eax, 0xffffffff
jne 0x42208e
push dword [esi + 0xdd8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0xddc], eax
cmp ebx, eax
je 0x4220a4
push 1
push eax
lea eax, [ebx + 1]
mov ecx, esi
push eax
push 0
call fcn.004203f0
mov ebx, eax
push ebx
test edi, edi
mov ecx, esi
cmovne ebx, dword [ebp + 8]
push ebx
call fcn.00420dd0
mov ecx, esi
call fcn.00420ab0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push edi
mov ecx, esi
call fcn.00421530
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test edi, edi
je 0x4220dc
mov eax, dword [esi + 0xe10]
jmp 0x4220de
xor eax, eax
push 0
push eax
mov ecx, esi
call fcn.00420dd0
mov ecx, esi
call fcn.00420ab0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push ebx
push edi
mov ecx, esi
call fcn.004214e0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test dword [esi + 0xdf8], 0x800
jne case.0x421fe8.38
test edi, edi
je 0x422122
test ebx, ebx
jne case.0x421fe8.38
mov eax, dword [esi + 0xe10]
cmp eax, dword [esi + 0xe14]
je 0x422148
mov eax, dword [esi]
push esi
test edi, edi
je 0x4221dc
call dword [eax + 0x1c8]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00420dd0
test edi, edi
je 0x422167
mov eax, dword [esi + 0xe14]
test eax, eax
lea ecx, [eax - 1]
cmove ecx, eax
jmp 0x4221c4
test ebx, ebx
je 0x4221ad
mov eax, dword [esi + 0xddc]
cmp eax, 0xffffffff
jne 0x422188
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.00420dd0
mov ecx, esi
call fcn.00420ab0
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.00420dd0
mov ecx, esi
call fcn.00420ab0
mov eax, dword [esi]
push esi
call dword [eax + 0x1c4]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test edi, edi
je 0x422209
test dword [esi + 0xdf8], 0x800
jne case.0x421fe8.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.0x421fe8.38
mov eax, dword [esi]
push esi
call dword [eax + 0x1c0]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10