Function at 0x5104a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5106bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x654], 0
jbe 0x5104ef
mov eax, dword [ebp - 4]
cmp dword [eax + 0x658], 2
je 0x5104f3
xor eax, eax
jmp 0x5104f5
mov al, 1
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.0040a504
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x5106d4
call fcn.00404fb4
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.0040567c
cmp byte [ebp - 0x1a], 0
je 0x510562
push dword [ebp - 0x18]
push 0x5106dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x654]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.0040a6d4
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.0040567c
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405778
cmp dword [ebp - 0xc], 0
je 0x510572
cmp dword [ebp - 0xc], 1
jne 0x510626
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x381], 0
je 0x5105d5
cmp dword [ebp - 0x10], 0x23
je 0x5105b2
cmp dword [ebp - 0x10], 0x24
je 0x5105b2
cmp dword [ebp - 0x10], 0x25
je 0x5105b2
cmp dword [ebp - 0x10], 0x27
je 0x5105b2
cmp dword [ebp - 0x10], 0x26
je 0x5105b2
cmp dword [ebp - 0x10], 0x28
je 0x5105b2
cmp dword [ebp - 0x10], 0x21
je 0x5105b2
cmp dword [ebp - 0x10], 0x22
jne 0x5105d5
push 0x90
call sub.user32.dll_GetKeyState
test al, 1
je 0x5105d5
push 0
xor ecx, ecx
mov edx, 0x90
mov eax, dword [ebp - 4]
call fcn.004f9aec
mov byte [ebp - 0x19], 1
mov al, byte [ebp - 0x1a]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004f9aec
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b0]
call fcn.004b1734
test eax, eax
jge 0x51060f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b0]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp byte [ebp - 0x19], 0
je 0x510626
push 0
xor ecx, ecx
mov edx, 0x90
mov eax, dword [ebp - 4]
call fcn.004f9aec
cmp dword [ebp - 0xc], 0
je 0x510632
cmp dword [ebp - 0xc], 2
jne 0x51068a
mov al, byte [ebp - 0x1a]
push eax
mov ecx, 2
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004f9aec
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b0]
call fcn.004b1734
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x510671
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b0]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp dword [ebp - 0x10], 0xd
je 0x510680
cmp dword [ebp - 0x10], 0x385
jne 0x51068a
mov eax, dword [ebp - 4]
mov byte [eax + 0x37f], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5106c4
lea eax, [ebp - 0x2c]
call fcn.00404c88
lea eax, [ebp - 0x28]
call fcn.004054b0
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404cac
lea eax, [ebp - 0x18]
call fcn.004054b0
ret