Function at 0x10012c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
cmp byte [0x100cd57c], 0
push ebx
push esi
push edi
mov dword [esp + 0x28], ecx
je 0x10012eec
push dword [0x100cd580]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10012eec
mov eax, dword [0x100cd344]
mov ebx, 1
movss xmm0, dword [0x100b5978]
movss dword [esp + 0x24], xmm0
mov dword [esp + 0x10], 0xffffffff
mov esi, dword [eax]
mov dword [esp + 0x20], esi
nop dword [eax + eax]
mov ecx, dword [0x100c7a3c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
je 0x10012d76
mov ecx, edi
call fcn.10060680
test al, al
je 0x10012d76
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x10012d76
cmp edi, esi
je 0x10012d76
mov ecx, esi
call fcn.10003030
mov ecx, edi
mov esi, eax
call fcn.10003030
movss xmm2, dword [esi]
movss xmm0, dword [esi + 4]
movss xmm1, dword [esi + 8]
subss xmm0, dword [eax + 4]
subss xmm2, dword [eax]
subss xmm1, dword [eax + 8]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10002ea0
movss xmm1, dword [esp + 0x24]
comiss xmm1, xmm0
mov esi, dword [esp + 0x20]
jbe 0x10012d76
mov edx, ebx
movss dword [esp + 0x24], xmm0
mov dword [esp + 0x10], edx
jmp 0x10012d7a
mov edx, dword [esp + 0x10]
inc ebx
cmp ebx, 0x40
jl 0x10012ce0
cmp edx, 0xffffffff
je 0x10012eec
mov ecx, dword [0x100c7a3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x10012eec
mov ecx, eax
call fcn.10003030
mov ecx, dword [esp + 0x20]
mov esi, eax
call fcn.10003030
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
movss xmm1, dword [eax + 4]
subss xmm1, dword [esi + 4]
movss xmm2, dword [eax]
subss xmm2, dword [esi]
cvtps2pd xmm0, xmm0
movss dword [esp + 0x20], xmm1
movsd qword [esp + 0x10], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movaps xmm1, xmm2
mulss xmm1, xmm2
movss dword [esp + 0x24], xmm2
addss xmm0, xmm1
call fcn.10002ea0
movsd xmm1, qword [esp + 0x10]
cvtss2sd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.100842c0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x100b5958]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x20]
divss xmm0, dword [esp + 0x24]
cvtps2pd xmm0, xmm0
call fcn.100842c0
movss xmm1, dword [esp + 0x24]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
comiss xmm1, xmm0
mulss xmm2, dword [0x100b5958]
movss dword [esp + 0x20], xmm2
jb 0x10012e74
addss xmm2, dword [0x100b5974]
movss dword [esp + 0x20], xmm2
mov ecx, dword [0x100c7a1c]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov eax, dword [ecx]
push edx
call dword [eax + 0x48]
movss xmm0, dword [esp + 0x20]
lea ecx, [esp + 0x10]
subss xmm0, dword [esp + 0x30]
movss dword [esp + 0x14], xmm0
call fcn.10022440
movss xmm0, dword [0x100b57cc]
movss xmm1, dword [esp + 0x14]
comiss xmm0, xmm1
jbe 0x10012edc
mov eax, dword [esp + 0x28]
mov dword [eax + 0x28], 0x43e10000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
comiss xmm1, xmm0
jbe 0x10012eec
mov eax, dword [esp + 0x28]
mov dword [eax + 0x28], 0xc3e10000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret