Function at 0x4892f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x288]
test eax, eax
push esi
mov esi, dword [sym.imp.user32.dll_GetKeyState]
je 0x489316
push 0x11
call esi
test ah, 0xff
setne byte [esp + 0x10]
jmp 0x489338
push 0xa2
call esi
test ah, 0xff
jne 0x489333
push 0xa3
call esi
test ah, 0xff
mov byte [esp + 0x10], 0
je 0x489338
mov byte [esp + 0x10], 1
mov eax, dword [ebp + 0x288]
test eax, eax
je 0x489350
push 0x12
call esi
test ah, 0xff
setne byte [esp + 0x14]
jmp 0x489372
push 0xa4
call esi
test ah, 0xff
jne 0x48936d
push 0xa5
call esi
test ah, 0xff
mov byte [esp + 0x14], 0
je 0x489372
mov byte [esp + 0x14], 1
mov eax, dword [ebp + 0x288]
test eax, eax
je 0x48938a
push 0x10
call esi
test ah, 0xff
setne byte [esp + 0x18]
jmp 0x4893ac
push 0xa0
call esi
test ah, 0xff
jne 0x4893a7
push 0xa1
call esi
test ah, 0xff
mov byte [esp + 0x18], 0
je 0x4893ac
mov byte [esp + 0x18], 1
mov ecx, dword [0x645858]
test ecx, ecx
je 0x4893c6
mov eax, dword [ecx]
call dword [eax + 0xd0]
test eax, eax
je 0x4893c6
mov bl, 1
jmp 0x4893c8
xor bl, bl
mov al, byte [ebp + 0x28c]
test al, al
mov esi, dword [esp + 0x28]
mov dword [esp + 0x28], esi
je 0x489414
mov eax, dword [esp + 0x24]
cmp eax, 0x100
je 0x489556
cmp eax, 0x104
je 0x489556
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push esi
mov ecx, ebp
call fcn.004881c0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [ebp + 0xc]
call fcn.00488b70
test bl, bl
je 0x489445
mov cl, byte [esp + 0x10]
test cl, cl
jne 0x489445
mov cl, byte [esp + 0x14]
test cl, cl
jne 0x489445
mov eax, dword [eax]
cmp eax, dword [ebp + 0x10]
jne 0x489556
mov eax, dword [0x645ae0]
test eax, eax
je 0x48945c
mov ecx, dword [eax + 0x4aa70]
test ecx, ecx
je 0x489556
mov al, byte [esp + 0x10]
test al, al
movzx ecx, si
mov dword [esp + 0xc], ecx
je 0x489476
mov eax, ecx
or eax, 0x10000
mov dword [esp + 0xc], eax
mov al, byte [esp + 0x14]
test al, al
je 0x489486
or dword [esp + 0xc], 0x20000
mov al, byte [esp + 0x18]
test al, al
je 0x489496
or dword [esp + 0xc], 0x40000
mov eax, dword [esp + 0x24]
cmp eax, 0x100
je 0x4894af
cmp eax, 0x104
je 0x4894af
mov byte [esp + 0x24], 0
jmp 0x4894c2
test dword [esp + 0x2c], 0x40000000
jne 0x489556
mov byte [esp + 0x24], 1
push edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call fcn.00488b00
mov edi, dword [esp + 0x2c]
cmp edi, dword [ebp + 4]
je 0x489555
mov ecx, dword [0x646564]
mov esi, dword [ecx + 0x64]
mov ecx, dword [0x644938]
mov edx, dword [ecx]
call dword [edx + 0x3c]
test eax, eax
je 0x48950f
mov ecx, dword [0x644938]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
cmp dword [eax], 0x4d
jne 0x48950f
mov bl, 1
jmp 0x489511
xor bl, bl
test esi, esi
je 0x489531
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x148]
test eax, eax
jne 0x489527
test bl, bl
je 0x489531
mov ecx, dword [edi + 0x10]
mov al, byte [ecx + 0x19]
test al, al
je 0x489555
mov al, byte [esp + 0x28]
test al, al
mov eax, dword [edi + 0x10]
je 0x489541
mov ecx, dword [eax + 0x10]
jmp 0x489544
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x489555
mov edx, dword [eax]
push edx
lea eax, [esp + 0x14]
push eax
call ecx
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc