Function at 0x4989d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
call fcn.00474b50
test eax, eax
je case.0x498d57.527
call fcn.00474e90
mov ebp, eax
call fcn.00474b50
test eax, eax
je 0x4989fe
call fcn.00474e90
mov edi, dword [eax + 0x6c]
jmp 0x498a00
xor edi, edi
mov ecx, dword [esp + 0x30]
cmp ecx, 0x200
ja 0x498d3f
je 0x498caa
lea eax, [ecx - 7]
cmp eax, 0xfe
ja case.0x498d57.527
movzx eax, byte [eax + 0x498f1c]
jmp dword [eax*4 + 0x498f04]
cmp ecx, 0x100
je 0x498a46
cmp ecx, 0x104
je 0x498a46
xor bl, bl
jmp 0x498a48
mov bl, 1
mov edi, dword [esp + 0x34]
mov byte [esp + 0x10], bl
cmp edi, 0x100
jae case.0x498d57.527
call fcn.00474e90
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, eax
push 0x11
call ebp
shr eax, 0xf
and al, 1
movzx ecx, al
push ecx
push 0x281
mov ecx, esi
call fcn.004649a0
push 0x10
call ebp
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x282
call fcn.004649a0
push 0x12
call ebp
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x283
call fcn.004649a0
push 0x5d
call ebp
shr eax, 0xf
mov ecx, esi
and al, 1
movzx eax, al
push eax
push 0x284
call fcn.004649a0
mov ecx, dword [esp + 0x38]
cmp edi, 0xd
jne 0x498ae8
mov eax, ecx
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne edi, eax
push edi
call fcn.00498490
mov ebp, dword [esp + 0x14]
add esp, 4
shr ecx, 0x10
movzx esi, cl
test eax, eax
je 0x498b0b
push esi
push edi
push ebp
push eax
call fcn.00496d40
add esp, 0x10
cmp edi, 0x10
jne 0x498b6c
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x498b3a
push esi
push 0xa0
push ebp
push 0x210
call fcn.00496d40
add esp, 0x10
push 0xa1
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x498d57.527
push esi
push 0xa1
push ebp
push 0x214
call fcn.00496d40
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp edi, 0x11
jne 0x498bcd
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x498b9b
push esi
push 0xa2
push ebp
push 0x20f
call fcn.00496d40
add esp, 0x10
push 0xa3
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x498d57.527
push esi
push 0xa3
push ebp
push 0x213
call fcn.00496d40
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp edi, 0x12
jne case.0x498d57.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x498c00
push esi
push 0xa4
push ebp
push 0x211
call fcn.00496d40
add esp, 0x10
push 0xa5
call edi
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x498d57.527
push esi
push 0xa5
push ebp
push 0x215
call fcn.00496d40
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp ecx, 7
mov ecx, ebp
sete al
movzx eax, al
push eax
call fcn.00464640
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
test eax, eax
je case.0x498d57.527
cmp eax, 0x10000
jae case.0x498d57.527
push eax
mov ecx, ebp
call fcn.00464720
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
cmp word [esp + 0x38], 1
jne case.0x498d57.527
call fcn.00498210
test al, al
je case.0x498d57.527
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
mov byte [edi + 0x26], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp byte [edi + 8], 0
mov esi, dword [esp + 0x2c]
mov dword [edi + 4], esi
jne 0x498ce2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push eax
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [edi + 8], 1
mov eax, dword [esp + 0x38]
movsx ecx, ax
shr eax, 0x10
test dword [ebp], 0x400
cwde
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
je 0x498d12
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
movd xmm0, eax
sub esp, 8
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, ecx
mov ecx, ebp
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.00464b80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
lea eax, [ecx - 0x201]
cmp eax, 0xa2
ja case.0x498d57.527
movzx eax, byte [eax + 0x499038]
jmp dword [eax*4 + 0x49901c]
mov eax, dword [edi + 4]
cmp eax, dword [esp + 0x2c]
jne 0x498d6e
mov dword [edi + 4], 0
sub esp, 8
mov byte [edi + 8], 0
mov ecx, ebp
mov dword [esp + 4], 0xff7fffff
mov dword [esp], 0xff7fffff
call fcn.00464b80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
cmp ecx, 0x204
je 0x498da7
xor esi, esi
cmp ecx, 0x206
jne 0x498dac
mov esi, 1
cmp ecx, 0x207
je 0x498dbc
cmp ecx, 0x209
jne 0x498dc1
mov esi, 2
cmp ecx, 0x20b
je 0x498dd1
cmp ecx, 0x20d
jne 0x498de2
mov esi, dword [esp + 0x34]
shr esi, 0x10
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 3
cmp dword [edi + 0xc], 0
jne 0x498dfc
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x498dfc
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [edi + 0xc]
mov ecx, ebp
push 1
bts eax, esi
push esi
mov dword [edi + 0xc], eax
call fcn.00464b20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
xor ebx, ebx
cmp ecx, 0x205
sete bl
cmp ecx, 0x208
jne 0x498e33
mov ebx, 2
jmp 0x498e4c
cmp ecx, 0x20c
jne 0x498e4c
mov ebx, dword [esp + 0x34]
shr ebx, 0x10
dec ebx
neg ebx
sbb ebx, ebx
neg ebx
add ebx, 3
mov eax, dword [edi + 0xc]
btr eax, ebx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x498e6b
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x2c]
jne 0x498e6b
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push ebx
mov ecx, ebp
call fcn.00464b20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
sub esp, 8
shr eax, 0x10
mov ecx, ebp
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x54b300]
movss dword [esp + 4], xmm0
mov dword [esp], 0
call fcn.00464c70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
sub esp, 8
shr eax, 0x10
mov ecx, ebp
cwde
mov dword [esp + 4], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x54b300]
movss dword [esp], xmm0
call fcn.00464c70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
cmp dword [esp + 0x34], 7
jne case.0x498d57.527
mov byte [edi + 0x25], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret