Function at 0x10008270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x10090400]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x100912c4]
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x1000829b
mov dword [0x10091afc], eax
jmp 0x10008321
cmp eax, 1
jne 0x100082ac
mov dword [0x10091afc], 0xa
jmp 0x10008321
cmp eax, 2
jne 0x100082bd
mov dword [0x10091afc], 0x14
jmp 0x10008321
cmp eax, 3
jne 0x100082ce
mov dword [0x10091afc], 0x1e
jmp 0x10008321
cmp eax, 4
jne 0x100082df
mov dword [0x10091afc], 0x28
jmp 0x10008321
cmp eax, 5
jne 0x100082f0
mov dword [0x10091afc], 0x32
jmp 0x10008321
cmp eax, 6
jne 0x10008301
mov dword [0x10091afc], 0x3c
jmp 0x10008321
cmp eax, 7
jne 0x10008312
mov dword [0x10091afc], 0x46
jmp 0x10008321
cmp eax, 8
jne 0x10008321
mov dword [0x10091afc], 0x50
mov eax, dword [0x10092ae4]
cmp dword [eax], 0
je 0x1000836f
mov ecx, dword [0x1009283c]
sub ecx, dword [0x10094840]
add ecx, dword [0x1009497c]
mov eax, dword [0x10094a28]
mov ecx, dword [ecx + eax]
call fcn.10006ae0
test eax, eax
jle 0x1000836f
mov eax, dword [0x10092ae4]
mov ecx, dword [eax]
add ecx, dword [0x1009482c]
call fcn.10017540
mov ecx, dword [0x1009484c]
add ecx, eax
call fcn.10017580
jmp 0x10008373
mov eax, dword [esp + 0xc]
cmp eax, 2
jge 0x1000861a
cmp dword [0x10092a58], 0
je 0x1000841c
cmp dword [0x10090aa4], 0
je 0x1000841c
mov ecx, dword [0x1009283c]
sub ecx, dword [0x10094840]
add ecx, dword [0x1009497c]
mov eax, dword [0x10094a28]
mov ecx, dword [ecx + eax]
call fcn.10006ae0
test eax, eax
jle 0x1000841c
mov eax, dword [0x100928a4]
mov edx, 0xffff0000
shr eax, 1
movd xmm2, dword [0x10091afc]
push dword [ebp + 8]
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008b650]
mov eax, dword [0x100928a0]
shr eax, 1
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008b650]
cvtpd2ps xmm0, xmm0
cmp esi, 0xffffffff
jne 0x10008414
mov edx, 0xff00ff00
call fcn.100089b0
add esp, 4
mov eax, dword [0x10092af0]
lea ecx, [esp + 0x20]
mov edx, esi
push dword [eax*4 + 0x1008772c]
call fcn.10006b70
add esp, 4
test al, al
je 0x1000861a
push str.Head
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.10006b70
add esp, 4
test al, al
je 0x1000861a
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.10006c50
add esp, 0xc
test al, al
je 0x1000861a
movss xmm1, dword [esp + 0x14]
sub esp, 0xc
addss xmm1, dword [0x1008b558]
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.10006c50
add esp, 0xc
test al, al
je 0x1000861a
mov eax, dword [0x10090a90]
dec eax
cmp eax, 3
ja case.default.0x100084d5
jmp dword [eax*4 + 0x1000862c]
mov esi, 1
mov dword [0x100928f8], esi
jmp 0x10008516
mov esi, 2
mov dword [0x100928f8], esi
jmp 0x10008516
mov esi, 0x11
mov dword [0x100928f8], esi
jmp 0x10008516
mov esi, 0x10
mov dword [0x100928f8], esi
jmp 0x10008516
mov esi, dword [0x100928f8]
cvttss2si eax, dword [esp + 0x20]
xorps xmm2, xmm2
xorps xmm0, xmm0
cvtsi2ss xmm2, eax
mov eax, dword [0x100928a0]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008b650]
cvttss2si eax, dword [esp + 0x24]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008b564]
subss xmm2, xmm0
xorps xmm0, xmm0
movss dword [esp + 0xc], xmm2
xorps xmm2, xmm2
cvtsi2ss xmm2, eax
mov eax, dword [0x100928a4]
cvtsi2sd xmm0, eax
shr eax, 0x1f
cmp dword [0x10092a58], 0
addsd xmm0, qword [eax*8 + 0x1008b650]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008b564]
subss xmm2, xmm0
movss dword [esp + 0x1c], xmm2
je 0x1000861a
cmp dword [0x10090a90], 0
je 0x100085ee
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x100085e6
cmp byte [esi*8 + 0x100953b0], 0
lea edi, [esi*8 + 0x100953b4]
je 0x100085d4
cmp dword [edi], 0
je 0x100085ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
inc ecx
cmp ecx, eax
ja 0x100085ee
mov byte [esi*8 + 0x100953b0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
jmp 0x10008600
mov byte [esi*8 + 0x100953b0], 0
cmp dword [0x10092a58], 0
je 0x1000861a
cmp dword [0x10090a90], 0
jne 0x1000861a
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.1007296b
mov esp, ebp
pop ebp
ret