Function at 0x493175
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x49317e
mov eax, dword [ebp - 4]
add esp, 0xfffffce0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x8324], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004052e5
xor eax, eax
push ebp
push 0x49341d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x8320], 0x94
lea eax, [ebp - 0x8320]
push eax
call sub.user32.dll_GetSystemMetrics
cmp dword [ebp - 0x8310], 2
jne 0x49320e
mov dword [ebp - 0x88], 0xc
xor eax, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0xffffffff
push 0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.user32.dll_DestroyWindow
jmp 0x493222
push 0x400
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.user32.dll_DestroyWindow
xor eax, eax
push ebp
push 0x4933e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040390d
mov dword [ebp - 0x6c], 0x44
mov word [ebp - 0x3c], 0
mov dword [ebp - 0x40], 1
or dword [ebp - 0x40], 0x100
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x8289]
mov edx, dword [ebp - 4]
call fcn.00409fc1
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x8289]
push eax
push 0
call sub.user32.dll_DispatchMessageA
test eax, eax
je 0x4933aa
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x49338b
push 0x3e8
mov eax, dword [ebp - 0x7c]
push eax
call sub.user32.dll_ScreenToClient
mov dword [ebp - 0x20], eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0x8000
lea eax, [ebp - 0x8088]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_KillTimer
test eax, eax
je 0x493371
cmp dword [ebp - 0x18], 0
jbe 0x493371
xor eax, eax
push ebp
push 0x493367
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x8088]
xor ecx, ecx
mov edx, 0x8000
call fcn.0040390d
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x8088]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_LoadBitmapA
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x8324]
lea edx, [ebp - 0x8088]
mov ecx, 0x8000
call fcn.004050a5
mov eax, dword [ebp - 0x8324]
mov ecx, dword [ebp - 0x14]
dec ecx
xor edx, edx
call fcn.00405355
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.004050fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x493371
cmp dword [ebp - 0x20], 0x102
je 0x493381
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x4932ad
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, dword [ebp - 0x7c]
push eax
call sub.user32.dll_DefFrameProcA
mov eax, dword [ebp - 0x78]
push eax
call sub.user32.dll_DefFrameProcA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4933ef
cmp dword [ebp - 0x28], 0
jne 0x4933ca
lea eax, [ebp - 0x28]
mov edx, 0x493435
call fcn.00404ecd
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
call fcn.00404e89
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_DefFrameProcA
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_DefFrameProcA
ret