Function at 0x1002a200
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x1003900c]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [0x10056c50]
push ebx
push esi
push edi
test eax, eax
je 0x1002a550
mov ecx, dword [eax + 0xd1340]
mov eax, ecx
xor eax, 0x1497b068
mov dword [esp + 0x1c], eax
je 0x1002a550
shr eax, 0x10
test eax, eax
je 0x1002a550
movss xmm0, dword [0x10035e9c]
xor ebx, ebx
movss dword [esp + 0x10], xmm0
cmp word [0x10056c52], bx
je 0x1002a550
cmp ecx, 0x1497b068
je 0x1002a550
mov ecx, dword [0x10054ed0]
xor esi, esi
mov eax, dword [ecx + 0x2c]
xor eax, 0x13e1855c
jbe 0x1002a550
cmp eax, esi
jbe 0x1002a3c3
test esi, esi
jle 0x1002a3c3
mov eax, dword [ecx + 0x44]
xor eax, 0x304cfd16
mov edi, dword [eax + esi*4]
test edi, edi
je 0x1002a3c3
cmp edi, dword [0x10054f04]
je 0x1002a3c3
mov eax, dword [edi + 0x210]
cmp eax, 0x20
je 0x1002a2c8
cmp eax, 0x21
jne 0x1002a3c3
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x1002a3c3
lea eax, [esp + 0x50]
mov edx, edi
push eax
push 6
lea ecx, [esp + 0x28]
call fcn.10029ab0
mov ecx, dword [0x10054ed4]
add esp, 8
mov eax, dword [ecx + 0x18]
shr eax, 1
push dword [ecx + 0x50]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100364f0]
mov eax, dword [ecx + 0x1c]
shr eax, 1
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x18], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100364f0]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x58]
push eax
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x24], xmm0
call fcn.10029700
test al, al
jne 0x1002a356
movss xmm0, dword [0x10035e98]
jmp 0x1002a3aa
movss xmm1, dword [esp + 0x44]
movss xmm0, dword [esp + 0x14]
comiss xmm1, xmm0
jbe 0x1002a36d
subss xmm1, xmm0
jmp 0x1002a374
subss xmm0, xmm1
movaps xmm1, xmm0
movss xmm0, dword [esp + 0x48]
movss xmm2, dword [esp + 0x18]
comiss xmm0, xmm2
jbe 0x1002a38b
subss xmm0, xmm2
jmp 0x1002a392
subss xmm2, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
movss xmm1, dword [esp + 0x10]
comiss xmm1, xmm0
mov ecx, dword [0x10054ed0]
jbe 0x1002a3c3
mov ebx, edi
movss dword [esp + 0x10], xmm0
mov eax, dword [ecx + 0x2c]
inc esi
xor eax, 0x13e1855c
cmp eax, esi
ja 0x1002a28d
test ebx, ebx
je 0x1002a550
movss xmm0, dword [ebx + 0x4dc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1002a550
lea eax, [esp + 0x38]
mov edx, ebx
push eax
push 6
lea ecx, [esp + 0x28]
call fcn.10029ab0
mov eax, dword [0x10054ed4]
add esp, 8
push dword [eax + 0x50]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10029700
cmp ebx, dword [esp + 0x1c]
je 0x1002a550
cmp byte [0x1005433c], 0
je 0x1002a46e
mov eax, dword [0x10054f04]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
movq xmm0, qword [eax + 0x24]
mov eax, dword [eax + 0x2c]
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x50]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [esp + 0x58]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.10029860
add esp, 0x18
test al, al
je 0x1002a550
cmp byte [0x1005433e], 0
je 0x1002a4d6
mov eax, dword [0x10054f04]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
movq xmm0, qword [eax + 0x24]
mov eax, dword [eax + 0x2c]
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x50]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [esp + 0x58]
push str.__s_
push 0xffff0000
movq qword [ecx], xmm0
movss xmm0, dword [0x1005a250]
addss xmm0, dword [0x10035d88]
mov dword [ecx + 8], eax
cvttss2si eax, xmm0
push eax
cvttss2si eax, dword [0x1005a24c]
push eax
call fcn.10028d30
add esp, 0x28
cmp byte [0x10054344], 0
je 0x1002a550
movss xmm0, dword [esp + 0x30]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1002a500
movss xmm0, dword [esp + 0x2c]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1002a550
mov eax, dword [0x10054368]
test eax, eax
je 0x1002a550
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1002a550
cmp byte [0x10054363], 0
jne 0x1002a550
mov eax, dword [0x10054374]
sub eax, 1
je 0x1002a532
sub eax, 1
je 0x1002a532
sub eax, 1
jne 0x1002a550
movq xmm0, qword [esp + 0x2c]
sub esp, 0xc
mov eax, dword [esp + 0x40]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.10029fe0
add esp, 0xc
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002d3bc
mov esp, ebp
pop ebp
ret