Function at 0x100097d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x10093400]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x10093eb4]
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x100097fb
mov dword [0x100949b4], eax
jmp 0x10009881
cmp eax, 1
jne 0x1000980c
mov dword [0x100949b4], 0xa
jmp 0x10009881
cmp eax, 2
jne 0x1000981d
mov dword [0x100949b4], 0x14
jmp 0x10009881
cmp eax, 3
jne 0x1000982e
mov dword [0x100949b4], 0x1e
jmp 0x10009881
cmp eax, 4
jne 0x1000983f
mov dword [0x100949b4], 0x28
jmp 0x10009881
cmp eax, 5
jne 0x10009850
mov dword [0x100949b4], 0x32
jmp 0x10009881
cmp eax, 6
jne 0x10009861
mov dword [0x100949b4], 0x3c
jmp 0x10009881
cmp eax, 7
jne 0x10009872
mov dword [0x100949b4], 0x46
jmp 0x10009881
cmp eax, 8
jne 0x10009881
mov dword [0x100949b4], 0x50
mov eax, dword [0x10094df4]
cmp dword [eax], 0
je 0x100098cf
mov ecx, dword [0x10094b2c]
sub ecx, dword [0x10096b54]
add ecx, dword [0x10096c80]
mov eax, dword [0x10096d28]
mov ecx, dword [ecx + eax]
call fcn.10008040
test eax, eax
jle 0x100098cf
mov eax, dword [0x10094df4]
mov ecx, dword [eax]
add ecx, dword [0x10096b40]
call fcn.10018720
mov ecx, dword [0x10096b60]
add ecx, eax
call fcn.10018760
jmp 0x100098d3
mov eax, dword [esp + 0xc]
cmp eax, 2
jge 0x10009b7a
cmp dword [0x10094d64], 0
je 0x1000997c
cmp dword [0x10093aa0], 0
je 0x1000997c
mov ecx, dword [0x10094b2c]
sub ecx, dword [0x10096b54]
add ecx, dword [0x10096c80]
mov eax, dword [0x10096d28]
mov ecx, dword [ecx + eax]
call fcn.10008040
test eax, eax
jle 0x1000997c
mov eax, dword [0x10094b94]
mov edx, 0xffff0000
shr eax, 1
movd xmm2, dword [0x100949b4]
push dword [ebp + 8]
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008dbc0]
mov eax, dword [0x10094b90]
shr eax, 1
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008dbc0]
cvtpd2ps xmm0, xmm0
cmp esi, 0xffffffff
jne 0x10009974
mov edx, 0xff00ff00
call fcn.10009f10
add esp, 4
mov eax, dword [0x10094dfc]
lea ecx, [esp + 0x20]
mov edx, esi
push dword [eax*4 + 0x10089a2c]
call fcn.100080d0
add esp, 4
test al, al
je 0x10009b7a
push str.Head
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.100080d0
add esp, 4
test al, al
je 0x10009b7a
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.100081b0
add esp, 0xc
test al, al
je 0x10009b7a
movss xmm1, dword [esp + 0x14]
sub esp, 0xc
addss xmm1, dword [0x1008dad4]
movss xmm2, dword [esp + 0x1c]
mov ecx, esp
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x24], xmm0
mov eax, dword [esp + 0x24]
unpcklps xmm2, xmm1
movq qword [ecx], xmm2
mov dword [ecx + 8], eax
lea ecx, [esp + 0x1c]
call fcn.100081b0
add esp, 0xc
test al, al
je 0x10009b7a
mov eax, dword [0x1009396c]
dec eax
cmp eax, 3
ja case.default.0x10009a35
jmp dword [eax*4 + 0x10009b8c]
mov esi, 1
mov dword [0x10094bf4], esi
jmp 0x10009a76
mov esi, 2
mov dword [0x10094bf4], esi
jmp 0x10009a76
mov esi, 0x11
mov dword [0x10094bf4], esi
jmp 0x10009a76
mov esi, 0x10
mov dword [0x10094bf4], esi
jmp 0x10009a76
mov esi, dword [0x10094bf4]
cvttss2si eax, dword [esp + 0x20]
xorps xmm2, xmm2
xorps xmm0, xmm0
cvtsi2ss xmm2, eax
mov eax, dword [0x10094b90]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008dbc0]
cvttss2si eax, dword [esp + 0x24]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008dae0]
subss xmm2, xmm0
xorps xmm0, xmm0
movss dword [esp + 0xc], xmm2
xorps xmm2, xmm2
cvtsi2ss xmm2, eax
mov eax, dword [0x10094b94]
cvtsi2sd xmm0, eax
shr eax, 0x1f
cmp dword [0x10094d64], 0
addsd xmm0, qword [eax*8 + 0x1008dbc0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008dae0]
subss xmm2, xmm0
movss dword [esp + 0x1c], xmm2
je 0x10009b7a
cmp dword [0x1009396c], 0
je 0x10009b4e
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10009b46
cmp byte [esi*8 + 0x100976a0], 0
lea edi, [esi*8 + 0x100976a4]
je 0x10009b34
cmp dword [edi], 0
je 0x10009b4e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
inc ecx
cmp ecx, eax
ja 0x10009b4e
mov byte [esi*8 + 0x100976a0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
jmp 0x10009b60
mov byte [esi*8 + 0x100976a0], 0
cmp dword [0x10094d64], 0
je 0x10009b7a
cmp dword [0x1009396c], 0
jne 0x10009b7a
cvttss2si eax, dword [esp + 0x1c]
push 0
push 0
push eax
cvttss2si eax, dword [esp + 0x18]
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.10074adb
mov esp, ebp
pop ebp
ret