Function at 0x1001ed30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x1022e1b8]
push esi
push edi
test ecx, ecx
jne 0x1001ed7e
push 0x4ac
call fcn.10026ba6
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, eax
call fcn.10023250
mov ecx, eax
mov dword [0x1022e1b8], ecx
cmp byte [ecx + 0x79], 0
mov edx, dword [0x1022e1a4]
je 0x1001ed94
mov dword [edx + 0x1290], 0x3f99999a
cmp byte [ecx + 0x63], 0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
je 0x1001ee96
push 0x42
call edi
test ax, ax
je 0x1001ee8a
mov esi, dword [0x1022e1a4]
movss xmm0, dword [esi + 0x1434]
subss xmm0, dword [0x1002ea98]
mulss xmm0, dword [0x1002e988]
movss dword [ebp - 0x24], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [ebp - 0x24]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x28], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov eax, dword [0x1022e1b8]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x24], xmm0
test eax, eax
jne 0x1001ee2b
push 0x4ac
call fcn.10026ba6
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
call fcn.10023250
mov esi, dword [0x1022e1a4]
movss xmm0, dword [ebp - 0x24]
mov dword [0x1022e1b8], eax
movss xmm1, dword [eax + 0x74]
lea ecx, [ebp - 0x1c]
mov eax, dword [esi + 0x54]
movaps xmm2, xmm1
mulss xmm1, dword [ebp - 0x28]
xorps xmm3, xmm3
mov dword [ebp - 8], eax
mulss xmm2, xmm0
push ecx
movq xmm0, qword [esi + 0x4c]
mov ecx, esi
xorps xmm1, xmmword [0x1002efd0]
xorps xmm2, xmmword [0x1002efd0]
addss xmm2, dword [ebp - 8]
movq qword [ebp - 0x10], xmm0
movss xmm0, dword [ebp - 0xc]
addss xmm1, dword [ebp - 0x10]
addss xmm0, xmm3
movss dword [ebp - 0x14], xmm2
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x18], xmm0
mov eax, dword [esi]
call dword [eax + 0x34]
mov ecx, dword [0x1022e1b8]
mov edx, dword [0x1022e1a4]
test ecx, ecx
jne 0x1001eebf
push 0x4ac
call fcn.10026ba6
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
call fcn.10023250
mov edx, dword [0x1022e1a4]
mov ecx, eax
mov dword [0x1022e1b8], ecx
cmp byte [ecx + 0x6d], 0
je 0x1001ef8d
push 0x20
call edi
test ax, ax
je 0x1001ef81
mov esi, dword [0x1022e1a4]
movss xmm0, dword [esi + 0x1434]
subss xmm0, dword [0x1002ea98]
mulss xmm0, dword [0x1002e988]
movss dword [ebp - 0x28], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [ebp - 0x28]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x24], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm3, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
mov eax, dword [esi + 0x54]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
movq xmm0, qword [esi + 0x4c]
xorps xmm1, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm1
xorps xmm3, xmmword [0x1002efd0]
movq qword [ebp - 0x10], xmm0
movss xmm1, dword [ebp - 0xc]
movss xmm0, dword [ebp - 8]
xorps xmm2, xmmword [0x1002efd0]
addss xmm3, dword [ebp - 0x10]
addss xmm1, dword [0x1002e990]
addss xmm0, xmm2
movss dword [ebp - 0x10], xmm3
movss dword [ebp - 0xc], xmm1
movss dword [ebp - 8], xmm0
call dword [eax + 0x34]
mov ecx, dword [0x1022e1b8]
mov edx, dword [0x1022e1a4]
test ecx, ecx
jne 0x1001efb6
push 0x4ac
call fcn.10026ba6
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
call fcn.10023250
mov edx, dword [0x1022e1a4]
mov ecx, eax
mov dword [0x1022e1b8], ecx
cmp byte [ecx + 0x66], 0
je 0x1001f00e
test edx, edx
je 0x1001f00e
mov eax, dword [ecx + 0x68]
movss xmm1, dword [edx + 0x4f4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jb 0x1001efee
mov dword [edx + 0x10f4], 1
mov dword [edx + 0x1268], 2
mov eax, dword [ecx + 0x68]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
jb 0x1001f00e
mov dword [edx + 0x10f4], 0
mov dword [edx + 0x1268], 0
cmp byte [ecx + 0x64], 0
je 0x1001f043
test edx, edx
je 0x1001f043
mov eax, dword [ecx + 0x68]
movss xmm1, dword [edx + 0x4f4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jb 0x1001f033
mov byte [ecx + 0x66], 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
jb 0x1001f043
mov byte [ecx + 0x66], 0
cmp byte [ecx + 0x52], 0
je 0x1001f068
push 0x51
call edi
mov edx, dword [0x1022e1a4]
mov ecx, dword [0x1022e1b8]
test ax, ax
je 0x1001f068
mov dword [edx + 0x1374], 0
test ecx, ecx
jne 0x1001f091
push 0x4ac
call fcn.10026ba6
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
call fcn.10023250
mov edx, dword [0x1022e1a4]
mov ecx, eax
mov dword [0x1022e1b8], ecx
cmp byte [ecx + 0x81], 0
je 0x1001f0be
push 0x71
call edi
mov edx, dword [0x1022e1a4]
mov ecx, dword [0x1022e1b8]
test ax, ax
je 0x1001f0be
mov eax, dword [0x1022e1b4]
mov dword [eax + 0xcf934], 0
cmp dword [edx + 0x1268], 0
je 0x1001f145
test ecx, ecx
jne 0x1001f0f0
push 0x4ac
call fcn.10026ba6
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
call fcn.10023250
mov edx, dword [0x1022e1a4]
mov ecx, eax
mov dword [0x1022e1b8], ecx
cmp byte [ecx + 0x65], 0
je 0x1001f106
mov eax, dword [edx + 0x1268]
mov dword [eax + 0x2ec], 0
cmp byte [ecx + 0x6c], 0
je 0x1001f11c
mov eax, dword [edx + 0x1268]
mov dword [eax + 0x2ec], 0x3f800000
cmp byte [ecx + 0x70], 0
je 0x1001f132
mov eax, dword [edx + 0x1268]
mov dword [eax + 0x2e8], 0
cmp byte [ecx + 0x6f], 0
je 0x1001f145
mov eax, dword [edx + 0x1268]
mov byte [eax + 0x350], 1
test ecx, ecx
jne 0x1001f16e
push 0x4ac
call fcn.10026ba6
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
call fcn.10023250
mov edx, dword [0x1022e1a4]
mov ecx, eax
mov dword [0x1022e1b8], ecx
cmp byte [ecx + 0x83], 0
je 0x1001f181
mov dword [edx + 0xd308], 0x497423f0
cmp byte [ecx + 0x51], 0
je 0x1001f191
mov dword [edx + 0x3f4], 0
cmp byte [ecx + 0x60], 0
je 0x1001f1b6
push 0x20
call edi
mov edx, dword [0x1022e1a4]
mov ecx, dword [0x1022e1b8]
test ax, ax
je 0x1001f1b6
mov dword [edx + 0x135c], 0x41c80000
test ecx, ecx
jne 0x1001f1df
push 0x4ac
call fcn.10026ba6
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
call fcn.10023250
mov edx, dword [0x1022e1a4]
mov ecx, eax
mov dword [0x1022e1b8], ecx
cmp byte [ecx + 0x4f], 0
je 0x1001f209
test edx, edx
je 0x1001f209
movd xmm0, dword [ecx + 0x44]
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [edx + 0x4f4]
jb 0x1001f209
mov eax, dword [0x1022e1b4]
mov dword [eax + 0xcf934], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002641f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret