Function at 0x100afb40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x118
mov eax, dword [0x101733b8]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x101e07a9], 0
push esi
push edi
mov edi, ecx
je 0x100b0044
mov esi, dword [0x101e0948]
mov dword [0x101e08b0], 0x3f800000
test esi, esi
je 0x100afc29
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101e14f0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101e26f4]
mov dword [esp + 0xc], ecx
cmp eax, dword [ecx + 4]
jle 0x100afbd4
push 0x101e26f4
call fcn.100b5535
add esp, 4
cmp dword [0x101e26f4], 0xffffffff
jne 0x100afbd0
mov eax, dword [0x101e26fc]
push 0x101e26f4
mov dword [0x101e26f8], eax
call fcn.100b54eb
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, dword [0x101e26f8]
cmp dword [eax + esi], 0
jne 0x100afc29
mov eax, dword [0x101e26ec]
cmp eax, dword [ecx + 4]
jle 0x100afc19
push 0x101e26ec
call fcn.100b5535
add esp, 4
cmp dword [0x101e26ec], 0xffffffff
jne 0x100afc19
mov eax, dword [0x101e2700]
push 0x101e26ec
mov dword [0x101e26f0], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e26f0]
mov byte [esp + 0xb], 1
cmp dword [eax + esi], 0
jg 0x100afc2e
mov byte [esp + 0xb], 0
mov eax, dword [0x101dfef4]
inc eax
cmp eax, 3
ja case.default.0x100afc3d
jmp dword [eax*4 + 0x100b0058]
push dword [0x101dfef0]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x100afc5e
push dword [0x101dfef0]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
test al, al
je case.default.0x100afc3d
cmp byte [esp + 0xb], 0
mov eax, dword [0x101e1d84]
je 0x100afc95
cmp byte [eax + 0xa5], 0
jne 0x100afd74
mov byte [eax + 0xa5], 1
mov byte [edi + 0x18], 1
jmp 0x100afda3
cmp byte [eax + 0xa5], 0
je 0x100afcaf
mov byte [eax + 0xa5], 0
mov dword [eax + 0xb0], 0
cmp byte [0x101dd680], 0
je 0x100afd74
mov eax, dword [0x101e0948]
mov esi, dword fs:[0x2c]
mov ecx, dword [0x101e47cc]
mov dword [esp + 0xc], eax
mov eax, dword [0x101e14f0]
mov esi, dword [esi + eax*4]
cmp ecx, dword [esi + 4]
jle 0x100afd17
push 0x101e47cc
call fcn.100b5535
mov ecx, dword [0x101e47cc]
add esp, 4
cmp ecx, 0xffffffff
jne 0x100afd17
mov eax, dword [0x101e2940]
push 0x101e47cc
mov dword [0x101e479c], eax
call fcn.100b54eb
mov ecx, dword [0x101e47cc]
add esp, 4
mov eax, dword [0x101e479c]
mov edx, dword [esp + 0xc]
cmp dword [eax + edx], 4
jne 0x100afd74
mov eax, dword [0x101e0948]
mov dword [esp + 0xc], eax
cmp ecx, dword [esi + 4]
jle 0x100afd64
push 0x101e47cc
call fcn.100b5535
add esp, 4
cmp dword [0x101e47cc], 0xffffffff
jne 0x100afd64
mov eax, dword [0x101e2940]
push 0x101e47cc
mov dword [0x101e479c], eax
call fcn.100b54eb
add esp, 4
mov eax, dword [0x101e479c]
mov ecx, dword [esp + 0xc]
mov dword [eax + ecx], 5
mov byte [edi + 0x18], 1
jmp 0x100afda3
mov eax, dword [0x101e1d84]
cmp byte [eax + 0xa5], 0
je 0x100afda3
cmp byte [edi + 0x18], 0
je 0x100afda3
mov byte [eax + 0xa5], 0
mov dword [eax + 0xb0], 0
mov byte [edi + 0x18], 0
mov eax, dword [0x101e1d84]
cmp byte [eax + 0xa5], 0
je 0x100b0044
mov ecx, dword [0x101e1d90]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x48]
call eax
movss xmm1, dword [esp + 0x10]
mulss xmm1, dword [0x1016d48c]
movaps xmm0, xmm1
call fcn.10131200
movaps xmm1, xmm0
shufps xmm0, xmm1, 1
movups xmmword [esp + 0x50], xmm1
movss xmm1, dword [esp + 0x14]
mulss xmm1, dword [0x1016d48c]
movaps xmmword [esp + 0x40], xmm0
movaps xmm0, xmm1
call fcn.10131200
movaps xmm1, xmmword [esp + 0x40]
movaps xmm2, xmm0
mov eax, dword [0x101e1d20]
shufps xmm0, xmm2, 1
mulss xmm0, xmm1
mov ecx, dword [0x101e0948]
mulss xmm2, xmm1
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [esp + 0x50]
movups xmmword [esp + 0x60], xmm2
xorps xmm0, xmmword [0x1016ddc0]
movups xmmword [esp + 0x50], xmm0
movd xmm0, dword [0x101dd67c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x18], xmm0
movss xmm1, dword [eax + 0x10]
subss xmm1, dword [edi + 0x34]
movss xmm0, dword [0x1016d4e8]
andps xmm1, xmmword [0x1016dda0]
comiss xmm0, xmm1
jb 0x100afed4
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
call eax
mov ecx, dword [0x101e1d38]
mov esi, eax
push 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
call edx
movss xmm0, dword [esi]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esi + 4]
movss xmm1, dword [eax + 8]
lea eax, [esp + 0x28]
addss xmm1, dword [esi + 8]
movss dword [esp + 0x2c], xmm0
addss xmm1, dword [0x1016d4b0]
movss dword [esp + 0x30], xmm1
jmp 0x100afefb
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [0x101e1e48]
lea eax, [esp + 0x1c]
movq xmm0, qword [eax]
lea ecx, [esp + 0x70]
movups xmm2, xmmword [esp + 0x40]
mov eax, dword [eax + 8]
movss xmm1, dword [esp + 0x18]
mov edi, dword [0x101e1d14]
movq qword [esp + 0x34], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0xc0], xmm0
mov dword [esp + 0x3c], eax
movups xmmword [esp + 0xd0], xmm0
mov dword [esp + 0xc], 0x1016d430
movss xmm0, dword [esp + 0x34]
mulss xmm2, xmm1
mov dword [esp + 0xe0], 0
mov eax, dword [edi]
mov dword [esp + 0x28], 0x41800000
subss xmm0, xmm2
mov dword [esp + 0x2c], 0x41800000
movups xmm2, xmmword [esp + 0x60]
mov esi, dword [eax + 0x14]
lea eax, [esp + 0x28]
push eax
mulss xmm2, xmm1
lea eax, [esp + 0x20]
push eax
movss dword [esp + 0x48], xmm0
lea eax, [esp + 0x48]
movss xmm0, dword [esp + 0x40]
subss xmm0, xmm2
mov dword [esp + 0x38], 0x41800000
movups xmm2, xmmword [esp + 0x58]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x28], 0xc1800000
mulss xmm2, xmm1
push eax
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x4c]
subss xmm0, xmm2
mov dword [esp + 0x30], 0xc1800000
mov dword [esp + 0x34], 0xc1800000
movss dword [esp + 0x58], xmm0
call fcn.10057e80
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2000b
push eax
mov ecx, edi
call esi
movss xmm0, dword [0x1016d538]
movss xmm1, dword [esp + 0xec]
comiss xmm0, xmm1
jb 0x100b001b
movaps xmm0, xmm1
mulss xmm0, dword [0x101e08b0]
movss dword [0x101e08b0], xmm0
mulss xmm1, dword [esp + 0x18]
mov eax, dword [0x101e1d84]
movq xmm0, qword [esp + 0x10]
movss dword [esp + 0x18], xmm1
mov ecx, dword [esp + 0x18]
movq qword [eax + 0xa8], xmm0
mov dword [eax + 0xb0], ecx
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
call fcn.100b5418
mov esp, ebp
pop ebp
ret