Function at 0x10008aa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x10092400]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x10092f7c]
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x10008acb
mov dword [0x100939bc], eax
jmp 0x10008b51
cmp eax, 1
jne 0x10008adc
mov dword [0x100939bc], 0xa
jmp 0x10008b51
cmp eax, 2
jne 0x10008aed
mov dword [0x100939bc], 0x14
jmp 0x10008b51
cmp eax, 3
jne 0x10008afe
mov dword [0x100939bc], 0x1e
jmp 0x10008b51
cmp eax, 4
jne 0x10008b0f
mov dword [0x100939bc], 0x28
jmp 0x10008b51
cmp eax, 5
jne 0x10008b20
mov dword [0x100939bc], 0x32
jmp 0x10008b51
cmp eax, 6
jne 0x10008b31
mov dword [0x100939bc], 0x3c
jmp 0x10008b51
cmp eax, 7
jne 0x10008b42
mov dword [0x100939bc], 0x46
jmp 0x10008b51
cmp eax, 8
jne 0x10008b51
mov dword [0x100939bc], 0x50
mov eax, dword [0x10093e20]
cmp dword [eax], 0
je 0x10008b9f
mov ecx, dword [0x10093b3c]
sub ecx, dword [0x10095b90]
add ecx, dword [0x10095cdc]
mov eax, dword [0x10095da8]
mov ecx, dword [ecx + eax]
call fcn.10007310
test eax, eax
jle 0x10008b9f
mov eax, dword [0x10093e20]
mov ecx, dword [eax]
add ecx, dword [0x10095b74]
call fcn.10017d10
mov ecx, dword [0x10095b9c]
add ecx, eax
call fcn.10017d50
jmp 0x10008ba3
mov eax, dword [esp + 0xc]
cmp eax, 2
jge 0x10008e3a
cmp dword [0x10093d80], 0
je 0x10008c4c
cmp dword [0x10092b68], 0
je 0x10008c4c
mov ecx, dword [0x10093b3c]
sub ecx, dword [0x10095b90]
add ecx, dword [0x10095cdc]
mov eax, dword [0x10095da8]
mov ecx, dword [ecx + eax]
call fcn.10007310
test eax, eax
jle 0x10008c4c
mov eax, dword [0x10093ba4]
mov edx, 0xffff0000
shr eax, 1
movd xmm2, dword [0x100939bc]
push dword [ebp + 8]
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008cba0]
mov eax, dword [0x10093ba0]
shr eax, 1
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008cba0]
cvtpd2ps xmm0, xmm0
cmp esi, 0xffffffff
jne 0x10008c44
mov edx, 0xff00ff00
call fcn.100091d0
add esp, 4
mov eax, dword [0x10093e2c]
lea ecx, [esp + 0x20]
mov edx, esi
push dword [eax*4 + 0x10088cb4]
call fcn.100073a0
add esp, 4
test al, al
je 0x10008e3a
push str.Head
mov edx, esi
lea ecx, [esp + 0x18]
call fcn.100073a0
add esp, 4
test al, al
je 0x10008e3a
movq xmm0, qword [esp + 0x20]
sub esp, 0xc
mov eax, dword [esp + 0x34]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [esp + 0x2c]
call fcn.10007480
add esp, 0xc
test al, al
je 0x10008e3a
movss xmm1, dword [esp + 0x18]
sub esp, 0xc
addss xmm1, dword [0x1008cae0]
movss xmm2, dword [esp + 0x20]
mov ecx, esp
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x28], xmm0
mov eax, dword [esp + 0x28]
unpcklps xmm2, xmm1
movq qword [ecx], xmm2
mov dword [ecx + 8], eax
lea ecx, [esp + 0x20]
call fcn.10007480
add esp, 0xc
test al, al
je 0x10008e3a
mov ecx, dword [0x1009288c]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x10008d08
jmp dword [eax*4 + 0x10008e4c]
mov esi, 1
mov dword [0x10093c10], esi
jmp 0x10008d49
mov esi, 2
mov dword [0x10093c10], esi
jmp 0x10008d49
mov esi, 0x11
mov dword [0x10093c10], esi
jmp 0x10008d49
mov esi, 0x10
mov dword [0x10093c10], esi
jmp 0x10008d49
mov esi, dword [0x10093c10]
cvttss2si eax, dword [esp + 0x20]
xorps xmm0, xmm0
xorps xmm2, xmm2
xorps xmm3, xmm3
cvtsi2ss xmm2, eax
mov eax, dword [0x10093ba0]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008cba0]
cvttss2si eax, dword [esp + 0x24]
cvtpd2ps xmm0, xmm0
cvtsi2ss xmm3, eax
mov eax, dword [0x10093ba4]
mulss xmm0, dword [0x1008caec]
subss xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
shr eax, 0x1f
movss dword [esp + 0x10], xmm2
addsd xmm0, qword [eax*8 + 0x1008cba0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008caec]
subss xmm3, xmm0
movss dword [esp + 0xc], xmm3
test ecx, ecx
je 0x10008e24
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10008e07
cmp byte [esi*8 + 0x10096778], 0
lea edi, [esi*8 + 0x1009677c]
je 0x10008df5
cmp dword [edi], 0
je 0x10008e0f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
inc ecx
cmp ecx, eax
ja 0x10008e0f
mov byte [esi*8 + 0x10096778], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
jmp 0x10008e18
mov byte [esi*8 + 0x10096778], 0
cmp dword [0x1009288c], 0
jne 0x10008e3a
movss xmm3, dword [esp + 0xc]
movss xmm2, dword [esp + 0x10]
cvttss2si eax, xmm3
push 0
push 0
push eax
cvttss2si eax, xmm2
push eax
push 1
call dword [sym.imp.USER32.dll_mouse_event]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.100731eb
mov esp, ebp
pop ebp
ret