Function at 0x4856a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x48], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dec
lea ebx, [ebp - 0x44]
xor eax, eax
push ebp
push 0x485975
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x413350]
call fcn.00403b1c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x485943
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404dfc
push eax
call sub.user32.dll_GetKeyState
test eax, eax
jne 0x485710
call fcn.00404384
jmp 0x48594a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_EnableWindow
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_EndPaint
lea eax, [ebp - 0x48]
push eax
movzx eax, word [ebx]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
movzx eax, word [ebx + 2]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
movzx eax, word [ebx + 6]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
movzx eax, word [ebx + 8]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
movzx eax, word [ebx + 0xa]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x78]
mov ecx, 5
mov eax, 0x48598c
call fcn.0040a120
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_EnableWindow
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_EndPaint
lea eax, [ebp - 0x7c]
push eax
movzx eax, word [ebx]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
movzx eax, word [ebx + 2]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
movzx eax, word [ebx + 6]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
movzx eax, word [ebx + 8]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
movzx eax, word [ebx + 0xa]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x78]
mov ecx, 5
mov eax, 0x48598c
call fcn.0040a120
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_EnableWindow
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_EndPaint
lea eax, [ebp - 0x80]
push eax
movzx eax, word [ebx]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
movzx eax, word [ebx + 2]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
movzx eax, word [ebx + 6]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
movzx eax, word [ebx + 8]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
movzx eax, word [ebx + 0xa]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x78]
mov ecx, 5
mov eax, 0x48598c
call fcn.0040a120
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
call fcn.004095bc
mov ebx, eax
mov eax, ebx
and ax, 4
cmp ax, 4
jne 0x4858a0
mov edx, 0x4859ac
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4858ad
mov edx, 0x4859b8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
and ax, 2
cmp ax, 2
jne 0x4858c8
mov edx, 0x4859ac
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4858d5
mov edx, 0x4859b8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
and ax, 1
cmp ax, 1
jne 0x4858f0
mov edx, 0x4859ac
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4858fd
mov edx, 0x4859b8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
and bx, 0x20
cmp bx, 0x20
jne 0x485916
mov edx, 0x4859ac
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x485923
mov edx, 0x4859b8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48594a
mov eax, dword [ebp - 8]
call fcn.00403b4c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48597c
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.00404960
lea eax, [ebp - 0x48]
call fcn.0040493c
lea eax, [ebp - 4]
call fcn.0040493c
ret