Function at 0x408bb9
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4e7c00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + 0xf0]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x14], esi
jg 0x408e89
push ebx
push edi
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], ebp
call fcn.004c7894
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x40], 1
call fcn.00407710
mov ebx, eax
cmp ebx, ebp
jg 0x408c22
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.004c78e6
lea eax, [edi - 0x10]
jmp 0x408e68
mov eax, dword [0x51be3c]
inc eax
mov dword [0x51be3c], eax
push 0x10
mov byte [esp + 0x40], 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x408c43
mov ebp, 0x10
mov eax, dword [esi + 0x60]
movzx eax, word [eax]
and eax, 0xffdf
cmp ax, 0x41
jb 0x408cec
cmp ax, 0x5a
ja 0x408cec
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
mov byte [esp + 0x3c], 3
mov edi, eax
jle 0x408cc8
jmp 0x408c90
mov eax, dword [esp + 0x28]
lea esp, [esp]
test esi, esi
jl 0x408e9a
cmp esi, eax
jge 0x408e9a
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402340
push 0x4f043c
lea ecx, [esp + 0x18]
call fcn.00403f10
inc esi
cmp esi, edi
jl 0x408c88
or ebp, 0x200
push ebp
push 3
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00409990
mov eax, dword [esp + 0x24]
add esp, 0x10
add eax, 0xfffffff0
jmp 0x408e12
test ebp, ebp
jne 0x408d84
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x51c334]
push ebx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x48], 4
call fcn.00402400
mov edx, dword [0x51c33c]
mov eax, dword [esp + 0x20]
add esp, 0xc
push 4
push edx
push eax
mov ecx, esi
call fcn.004c9539
cmp eax, 6
lea ecx, [esp + 0x14]
je 0x408d7a
call fcn.00401300
mov ecx, dword [0x51be3c]
dec ecx
mov dword [0x51be3c], ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.004c78e6
lea ecx, [esp + 0x18]
call fcn.00401300
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov byte [esp + 0x3c], 2
call fcn.00401300
call fcn.004cc87a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x3c], 5
call fcn.004e1d89
mov edi, dword [eax + 8]
xor esi, esi
test ebx, ebx
jle 0x408e0f
lea ebx, [ebx]
test esi, esi
jl 0x408e9a
cmp esi, dword [esp + 0x28]
jge 0x408e9a
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*4]
push eax
push edi
call fcn.0040a5e0
add esp, 8
test eax, eax
jne 0x408e0a
cmp esi, dword [esp + 0x28]
jge 0x408e9a
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + esi*4]
mov eax, dword [0x51c31c]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402400
mov ebp, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push ebp
call fcn.004db4d5
inc esi
cmp esi, ebx
jl 0x408db0
lea eax, [ebp - 0x10]
mov byte [esp + 0x3c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408e2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x1c]
push 0
mov ecx, esi
call fcn.00407380
mov ecx, dword [esi + 0x6c]
push 0xffffffffffffffff
add ecx, 0x5c
call fcn.004052c0
mov eax, dword [0x51be3c]
dec eax
lea ecx, [esp + 0x20]
mov dword [0x51be3c], eax
mov byte [esp + 0x3c], 0
call fcn.004c78e6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret
jmp fcn.004c6440