Function at 0x4b8984
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
call fcn.0040f198
mov eax, dword [ebp - 0x18]
call fcn.004b9d64
test eax, eax
jne 0x4b89df
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004232c0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x34]
sub dword [ebp - 0x20], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x3c]
dec edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
dec eax
call fcn.0040f198
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl byte [ebp - 0x2d]
mov dl, 1
mov eax, dword [0x40e5f8]
call fcn.00403068
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4b8de1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.004b9d64
call fcn.004b40cc
mov byte [ebp - 0x36], al
lea eax, [ebp - 0x50]
push eax
call sub.user32.dll_SetRectEmpty
mov al, byte [ebp - 0x36]
push eax
push 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x174]
push eax
lea eax, [ebp - 0x48]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.004b612c
lea eax, [ebp - 0x50]
call fcn.004b3cdc
mov eax, 0xc
call fcn.00402764
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x4b8ab8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebx], eax
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
call fcn.0040f198
mov eax, dword [ebp - 0x74]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 8], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.0040fa30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b8ad4
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 4]
mov eax, esi
call fcn.004164cc
dec eax
test eax, eax
jl 0x4b8bcb
inc eax
mov dword [ebp - 0x40], eax
xor ebx, ebx
mov edx, ebx
mov eax, esi
call fcn.00416460
mov edx, dword [0x4b2de0]
call fcn.00403160
test al, al
je 0x4b8bc1
mov eax, 0xc
call fcn.00402764
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x4b8ba5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 0x3c]
mov edx, ebx
mov eax, esi
call fcn.00416460
mov dword [edi], eax
mov edx, ebx
mov eax, esi
call fcn.00416460
push eax
mov eax, dword [ebp - 0x18]
call fcn.004b9d64
pop edx
cmp edx, eax
je 0x4b8b76
mov al, byte [ebp - 0x36]
push eax
mov edx, ebx
mov eax, esi
call fcn.00416460
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x174]
push eax
lea eax, [edi + 4]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.004b612c
jmp 0x4b8b90
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x7c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [edi + 8], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.0040fa30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b8bc1
inc ebx
dec dword [ebp - 0x40]
jne 0x4b8af0
call fcn.004b41cc
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_LockWindowUpdate
push 0x403
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetDCEx
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x4b8d87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f4940]
mov eax, dword [eax]
mov al, byte [eax + 0x68]
mov byte [ebp - 0x37], al
mov eax, dword [0x4f4940]
mov eax, dword [eax]
xor edx, edx
call fcn.00433758
xor eax, eax
push ebp
push 0x4b8d41
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.0042734c
push eax
call sub.user32.dll_SetCapture
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
call sub.user32.dll_SetRectEmpty
push ebp
call fcn.004b866c
pop ecx
jmp 0x4b8cf5
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_GetMessageA
sub eax, 0xffffffff
je 0x4b8d0c
dec eax
je 0x4b8c6c
jmp 0x4b8c7a
mov eax, dword [ebp - 0x64]
push eax
call sub.user32.dll_PostQuitMessage
jmp 0x4b8d0c
mov eax, dword [ebp - 0x68]
cmp eax, 0x202
jg 0x4b8c9c
je 0x4b8cdd
add eax, 0xffffff00
sub eax, 2
jb 0x4b8cab
sub eax, 0xfe
je 0x4b8cd4
dec eax
je 0x4b8d0c
jmp 0x4b8ce3
sub eax, 0x203
je 0x4b8d0c
dec eax
sub eax, 6
jb 0x4b8cf5
jmp 0x4b8ce3
cmp dword [ebp - 0x64], 0x11
jne 0x4b8cf5
cmp dword [ebp - 0x68], 0x100
sete al
cmp al, byte [ebp - 0x2d]
je 0x4b8cf5
cmp dword [ebp - 0x68], 0x100
sete byte [ebp - 0x2d]
push ebp
call fcn.004b866c
pop ecx
jmp 0x4b8cf5
push ebp
call fcn.004b866c
pop ecx
jmp 0x4b8cf5
mov byte [ebp - 0x35], 1
jmp 0x4b8d0c
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 0x18]
call fcn.0042734c
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
je 0x4b8c4f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8d48
mov eax, dword [ebp - 0x18]
call fcn.0042734c
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x4b8d31
call sub.user32.dll_ReleaseCapture
mov eax, dword [0x4f4940]
mov eax, dword [eax]
mov dl, byte [ebp - 0x37]
call fcn.00433758
ret