Function at 0x612260
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x66fb18
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x61228c
xor eax, eax
jmp 0x6125f0
mov ecx, esi
call fcn.00612160
mov ebx, eax
test ebx, ebx
je 0x6125f0
mov ecx, dword [esi + 4]
call fcn.00610960
test eax, eax
mov dword [esp + 0x20], eax
je 0x6125f0
mov ecx, dword [esi + 4]
call fcn.006111d0
mov edi, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov ecx, edi
call fcn.004a7cd0
or ebp, 0xffffffff
cmp eax, 0xe
jne 0x6124e0
mov eax, dword [esp + 0x74]
cmp eax, 5
ja case.0x6122e1.3
jmp dword [eax*4 + 0x612608]
lea eax, [esp + 0x78]
mov ecx, edi
push eax
call fcn.004a8b60
mov ecx, dword [esi + 4]
push eax
mov dword [esp + 0x70], 1
mov edx, dword [ecx + 0x10]
push edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
push eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
push eax
push 1
call fcn.0055b440
add esp, 0x14
lea ecx, [esp + 0x78]
mov dword [esp + 0x6c], ebp
call fcn.00499a60
jmp 0x6124ef
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
call fcn.004a8b60
mov edx, dword [esi + 4]
push eax
mov dword [esp + 0x70], 2
mov eax, dword [edx + 0x10]
push eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
push eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl cl
push ecx
push 2
call fcn.0055b440
add esp, 0x14
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], ebp
call fcn.00499a60
jmp 0x6124ef
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.004a8b60
push eax
mov eax, dword [esi + 4]
mov dword [esp + 0x70], 3
mov ecx, dword [eax + 0x10]
push ecx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
push eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl dl
push edx
push 3
call fcn.0055b440
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], ebp
call fcn.00499a60
jmp 0x6124ef
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.004a8b60
mov ecx, dword [esi + 4]
push eax
mov dword [esp + 0x70], 4
mov edx, dword [ecx + 0x10]
push edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
push eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
push eax
push 4
call fcn.0055b440
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ebp
call fcn.00499a60
jmp 0x6124ef
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.004a8b60
mov edx, dword [esi + 4]
push eax
mov dword [esp + 0x70], 5
mov eax, dword [edx + 0x10]
push eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
push eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl cl
push ecx
push 5
call fcn.0055b440
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], ebp
call fcn.00499a60
jmp 0x6124ef
lea edx, [esp + 0x1c]
mov ecx, edi
push edx
call fcn.004a8b60
push eax
mov eax, dword [esi + 4]
mov dword [esp + 0x70], 0
mov ecx, dword [eax + 0x10]
push ecx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
push eax
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl dl
push edx
push 1
call fcn.0055b440
add esp, 0x14
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], ebp
call fcn.00499a60
jmp 0x6124ef
mov ecx, dword [esi + 4]
mov eax, dword [ebx]
push edi
mov edx, dword [ecx + 0x10]
mov ecx, ebx
push edx
call dword [eax + 0x20]
mov eax, dword [esp + 0x20]
mov ecx, esi
push eax
push ebx
call fcn.00612640
test eax, eax
je 0x6125f0
mov ecx, esi
call fcn.00612620
test eax, eax
je 0x6125f0
mov ecx, edi
call fcn.004a7cd0
cmp eax, 9
je 0x61254a
cmp eax, 0xe
jne 0x6125eb
mov ecx, dword [esi + 4]
call fcn.006111d0
cmp eax, dword [esp + 0x24]
je 0x6125eb
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 0xa8]
jmp 0x6125eb
push 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x24], edi
call fcn.0049b150
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x70], 6
call fcn.004a8580
push 4
lea ecx, [esp + 0x40]
call fcn.0049b150
push 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 7
call fcn.0049b150
mov edx, dword [ebx]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x50]
push eax
push ecx
mov ecx, ebx
mov byte [esp + 0x74], 8
call dword [edx + 0x7c]
mov edx, dword [ebx]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x6c]
push 0xfffffffffffffffe
lea edx, [esp + 0x40]
push 0xfffffffffffffffe
push edx
call fcn.0055e6c0
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 7
call fcn.0049b170
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 6
call fcn.0049b170
lea ecx, [esp + 0x50]
mov dword [esp + 0x6c], ebp
call fcn.0049b170
mov eax, 1
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8