Function at 0x1000a570
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10088400]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x10088ccc]
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x1000a597
mov dword [0x100896ac], eax
jmp 0x1000a61d
cmp eax, 1
jne 0x1000a5a8
mov dword [0x100896ac], 0xa
jmp 0x1000a61d
cmp eax, 2
jne 0x1000a5b9
mov dword [0x100896ac], 0x14
jmp 0x1000a61d
cmp eax, 3
jne 0x1000a5ca
mov dword [0x100896ac], 0x1e
jmp 0x1000a61d
cmp eax, 4
jne 0x1000a5db
mov dword [0x100896ac], 0x28
jmp 0x1000a61d
cmp eax, 5
jne 0x1000a5ec
mov dword [0x100896ac], 0x32
jmp 0x1000a61d
cmp eax, 6
jne 0x1000a5fd
mov dword [0x100896ac], 0x3c
jmp 0x1000a61d
cmp eax, 7
jne 0x1000a60e
mov dword [0x100896ac], 0x46
jmp 0x1000a61d
cmp eax, 8
jne 0x1000a61d
mov dword [0x100896ac], 0x50
mov eax, dword [0x10089b14]
cmp dword [eax], 0
je 0x1000a66b
mov ecx, dword [0x10089828]
sub ecx, dword [0x1008b874]
add ecx, dword [0x1008b9a4]
mov eax, dword [0x1008ba3c]
mov ecx, dword [ecx + eax]
call fcn.100087d0
test eax, eax
jle 0x1000a66b
mov eax, dword [0x10089b14]
mov ecx, dword [eax]
add ecx, dword [0x1008b860]
call fcn.10012530
mov ecx, dword [0x1008b880]
add ecx, eax
call fcn.10012570
jmp 0x1000a66e
mov eax, dword [ebp - 0xc]
cmp eax, 2
jge 0x1000a8c2
cmp dword [0x10089a7c], 0
je 0x1000a6d9
cmp dword [0x10088a78], 0
je 0x1000a6d9
mov ecx, dword [0x10089828]
sub ecx, dword [0x1008b874]
add ecx, dword [0x1008b9a4]
mov eax, dword [0x1008ba3c]
mov ecx, dword [ecx + eax]
call fcn.100087d0
test eax, eax
jle 0x1000a6d9
mov edx, dword [0x10089894]
push ecx
mov ecx, dword [0x10089890]
shr edx, 1
shr ecx, 1
cmp esi, 0xffffffff
je 0x1000a6c9
push 0xffff0000
jmp 0x1000a6ce
push 0xff00ff00
sub esp, 8
call fcn.1000ac60
add esp, 0x10
mov eax, dword [0x10089b20]
lea ecx, [ebp - 0x28]
mov edx, esi
push dword [eax*4 + 0x10080740]
call fcn.10008860
add esp, 4
test al, al
je 0x1000a8c2
push str.Head
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.10008860
add esp, 4
test al, al
je 0x1000a8c2
movq xmm0, qword [ebp - 0x28]
sub esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x28]
call fcn.10008930
add esp, 0xc
test al, al
je 0x1000a8c2
movss xmm1, dword [ebp - 0x14]
sub esp, 0xc
addss xmm1, dword [0x100849a8]
movss xmm2, dword [ebp - 0x18]
mov ecx, esp
movss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x10], xmm0
mov eax, dword [ebp - 0x10]
unpcklps xmm2, xmm1
movq qword [ecx], xmm2
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x18]
call fcn.10008930
add esp, 0xc
test al, al
je 0x1000a8c2
mov eax, dword [0x10088a64]
dec eax
cmp eax, 3
ja case.default.0x1000a787
jmp dword [eax*4 + 0x1000a8d4]
mov esi, 1
mov dword [0x100898f4], esi
jmp 0x1000a7c8
mov esi, 2
mov dword [0x100898f4], esi
jmp 0x1000a7c8
mov esi, 0x11
mov dword [0x100898f4], esi
jmp 0x1000a7c8
mov esi, 0x10
mov dword [0x100898f4], esi
jmp 0x1000a7c8
mov esi, dword [0x100898f4]
cvttss2si eax, dword [ebp - 0x28]
xorps xmm2, xmm2
xorps xmm0, xmm0
cvtsi2ss xmm2, eax
mov eax, dword [0x10089890]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10084ab0]
cvttss2si eax, dword [ebp - 0x24]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x100849b8]
subss xmm2, xmm0
xorps xmm0, xmm0
movss dword [ebp - 0xc], xmm2
xorps xmm2, xmm2
cvtsi2ss xmm2, eax
mov eax, dword [0x10089894]
cvtsi2sd xmm0, eax
shr eax, 0x1f
cmp dword [0x10089a7c], 0
addsd xmm0, qword [eax*8 + 0x10084ab0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x100849b8]
subss xmm2, xmm0
movss dword [ebp - 0x1c], xmm2
je 0x1000a8c2
cmp dword [0x10088a64], 0
je 0x1000a898
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x1000a890
cmp byte [esi*8 + 0x1008c398], 0
lea edi, [esi*8 + 0x1008c39c]
je 0x1000a87e
cmp dword [edi], 0
je 0x1000a898
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
inc ecx
cmp ecx, eax
ja 0x1000a898
mov byte [esi*8 + 0x1008c398], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
jmp 0x1000a8aa
mov byte [esi*8 + 0x1008c398], 0
cmp dword [0x10089a7c], 0
je 0x1000a8c2
cmp dword [0x10088a64], 0
jne 0x1000a8c2
cvttss2si eax, dword [ebp - 0x1c]
push 0
push 0
push eax
cvttss2si eax, dword [ebp - 0xc]
push eax
push 1
call dword [sym.imp.USER32.dll_mouse_event]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret