Function at 0x518944
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 0x10
je 0x518999
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004de6c8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x518999
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x2c4], 0
je 0x518999
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x2c4]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x24]
test al, al
jne 0x518c80
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x100
jb 0x5189e4
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x109
ja 0x5189e4
mov dl, 1
mov eax, dword [ebp - 0x14]
call fcn.004de6c8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x518c75
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x124]
test al, al
jne 0x518c80
jmp 0x518c75
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x200
jb 0x518c50
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x20e
ja 0x518c50
mov eax, dword [ebp - 0x14]
test byte [eax + 0x58], 0x80
jne 0x518a27
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x203
je 0x518a21
sub eax, 3
je 0x518a21
sub eax, 3
jne 0x518a27
mov eax, dword [ebp - 0x18]
sub dword [eax], 2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, 0xfffffe00
cmp eax, 7
ja case.0x518a3a.516
jmp dword [eax*4 + 0x518a41]
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x558c60]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.004eed98
jmp 0x518c75
mov eax, dword [ebp - 0x14]
test byte [eax + 0x5a], 8
je 0x518c75
mov eax, dword [0x518c88]
mov edx, dword [ebp - 0x14]
and eax, dword [edx + 0x5c]
mov edx, dword [0x518c8c]
cmp edx, eax
jne 0x518c75
mov eax, dword [0x55e2c8]
call fcn.00529b6c
test al, al
jne 0x518c75
mov eax, dword [0x55e2c8]
call fcn.00529a94
mov byte [ebp - 0x1d], 0
mov eax, dword [0x55e2c8]
cmp dword [eax + 0x28], 0
je 0x518b62
mov eax, dword [ebp - 0x14]
mov edx, dword [0x50da48]
call fcn.00405c48
test al, al
je 0x518b01
mov eax, dword [ebp - 0x14]
call fcn.00522390
mov edx, eax
mov eax, dword [0x55e2c8]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + pe_nt_image_headers32]
mov byte [ebp - 0x1d], al
jmp 0x518b62
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
je 0x518b2f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
call fcn.00522390
mov edx, eax
mov eax, dword [0x55e2c8]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + pe_nt_image_headers32]
mov byte [ebp - 0x1d], al
jmp 0x518b62
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004de6c8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x518b62
mov eax, dword [ebp - 0x1c]
call fcn.00522390
mov edx, eax
mov eax, dword [0x55e2c8]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + pe_nt_image_headers32]
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0
je 0x518b83
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 1
mov eax, dword [0x558c60]
mov eax, dword [eax]
call fcn.004eef3c
jmp 0x518c75
mov eax, dword [0x55e2c8]
cmp dword [eax + 0x28], 0
je 0x518c75
xor edx, edx
mov eax, dword [0x55e2c8]
call fcn.00529cb4
jmp 0x518c75
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x67], 1
jne 0x518bbd
mov eax, dword [ebp - 0x14]
mov si, 0xffee
call fcn.00405ce8
jmp 0x518c80
mov eax, dword [ebp - 0x14]
or dword [eax + 0x5c], 1
jmp 0x518c75
mov eax, dword [ebp - 0x14]
and dword [eax + 0x5c], 0xfffffffe
jmp 0x518c75
mov eax, dword [0x55e2c8]
cmp byte [eax + 0x20], 0
je 0x518c75
mov eax, dword [0x55e2c8]
cmp dword [eax + 0x1c], 0
je 0x518c75
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x55e2c8]
cmp eax, dword [edx + 0x1c]
jne 0x518c75
lea eax, [ebp - 0x11d]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x11d]
call fcn.004de57c
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.0040cd9c
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffc9
call fcn.00405ce8
jmp 0x518c80
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xb00b
jne 0x518c75
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.00516444
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret