Function at 0x10015be0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x10281360]
mov ebx, ecx
test edi, edi
je case.0x10015c5e.0
mov eax, dword [0x1028135c]
test eax, eax
jne 0x10015c33
mov edx, 0xe80c2f78
mov ecx, 0x10219689
call fcn.10004f10
mov edx, 0xc10bf213
mov ecx, 0x102195b1
mov esi, eax
call fcn.10004f10
mov edx, esi
mov ecx, eax
call fcn.10127750
mov dword [0x1028135c], eax
cmp dword [eax + edi], 0
jle case.0x10015c5e.0
cmp byte [0x1028164c], 0
je case.0x10015c5e.0
mov ecx, dword [0x10247350]
mov eax, dword [0x1028165c]
cmp ecx, 3
ja case.0x10015c5e.0
jmp dword [ecx*4 + 0x100161b0]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10015c96
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10015c96
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
jne case.0x10015c5e.0
call fcn.1000b770
cmp eax, 9
je case.0x10015c5e.0
cmp eax, 8
je case.0x10015c5e.0
cmp eax, 0xa
je case.0x10015c5e.0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1024b2f0]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10286f84]
cmp eax, dword [esi + 4]
jle 0x10015d12
push 0x10286f84
call fcn.1018b6e4
add esp, 4
cmp dword [0x10286f84], 0xffffffff
jne 0x10015d12
mov ecx, dword [0x1024b328]
push str.m_yaw
mov eax, dword [ecx]
call dword [eax + 0x44]
push 0x10286f84
mov dword [0x10286f6c], eax
call fcn.1018b693
add esp, 4
mov eax, dword [0x10286f54]
cmp eax, dword [esi + 4]
jle 0x10015d57
push 0x10286f54
call fcn.1018b6e4
add esp, 4
cmp dword [0x10286f54], 0xffffffff
jne 0x10015d57
mov ecx, dword [0x1024b328]
push str.sensitivity
mov eax, dword [ecx]
call dword [eax + 0x44]
push 0x10286f54
mov dword [0x10286f74], eax
call fcn.1018b693
add esp, 4
mov eax, dword [0x10286f4c]
cmp eax, dword [esi + 4]
jle 0x10015d94
push 0x10286f4c
call fcn.1018b6e4
add esp, 4
cmp dword [0x10286f4c], 0xffffffff
jne 0x10015d94
movss xmm0, dword [ebx + 0x10]
push 0x10286f4c
movss dword [0x10286f50], xmm0
call fcn.1018b693
add esp, 4
movss xmm0, dword [ebx + 0x24]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1001619a
mov eax, dword [0x102813b4]
mov edi, dword [0x10281360]
mov dword [esp + 0x14], edi
test eax, eax
jne 0x10015df0
mov edx, 0xe80c2f78
mov ecx, 0x102197a5
call fcn.10004f10
mov edx, 0xc10bf213
mov ecx, 0x102195b1
mov esi, eax
call fcn.10004f10
mov edx, esi
mov ecx, eax
call fcn.10127750
mov edi, dword [0x10281360]
mov dword [0x102813b4], eax
mov ecx, dword [esp + 0x14]
test byte [eax + ecx], 1
jne 0x1001619a
mov eax, dword [0x102813d8]
test eax, eax
jne 0x10015e35
mov edx, 0xe80c2f78
mov ecx, 0x10219945
call fcn.10004f10
mov edx, 0xc10bf213
mov ecx, 0x102195d9
mov esi, eax
call fcn.10004f10
mov edx, esi
mov ecx, eax
call fcn.10127750
mov dword [0x102813d8], eax
movq xmm0, qword [eax + edi]
movq qword [esp + 0x1c], xmm0
movss xmm1, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x20]
mulss xmm1, xmm1
mov dword [esp + 0x28], 0
mulss xmm0, xmm0
addss xmm1, xmm0
movss dword [esp + 0x14], xmm1
sqrtss xmm0, dword [esp + 0x14]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x28]
comiss xmm0, dword [0x10281604]
jbe 0x1001619a
mov edx, dword [0x102815a0]
mov ecx, dword [0x1028159c]
mov eax, dword [edx + 0x4cb4]
add eax, dword [edx + 0x4cb0]
mov esi, dword [edx + 0x174]
test esi, esi
mov edi, dword [ecx]
push eax
push dword [edx + 0x4cb8]
setg al
movzx eax, al
push eax
mov eax, dword [edi + 0xc]
push esi
call eax
mov ecx, dword [0x10286f6c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], eax
call dword [esp + 0x14]
mov ecx, dword [0x10286f74]
fstp dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], eax
call dword [esp + 0x14]
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
xorps xmm1, xmm1
mulss xmm0, dword [esp + 0x10]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ebx + 0x28]
comiss xmm1, xmm0
jbe 0x10016045
movss xmm2, dword [ebx + 0x10]
movss xmm0, dword [0x10286f50]
subss xmm0, xmm2
comiss xmm1, xmm0
jbe 0x1001619a
fld dword [esp + 0x20]
sub esp, 8
fld dword [esp + 0x24]
fpatan
mov dword [esp + 4], 0x43b40000
cvtps2pd xmm1, xmm2
fstp dword [esp + 0x20]
movss xmm0, dword [esp + 0x20]
mulss xmm0, dword [0x10240840]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x102406a8]
subsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
fmul dword [0x102815b8]
add esp, 8
movss xmm1, dword [esp + 0x10]
movaps xmm0, xmm1
xorps xmm0, xmmword [0x10240c20]
fmul dword [0x10240554]
fstp dword [esp + 0x18]
movss xmm2, dword [esp + 0x18]
comiss xmm0, xmm2
jbe 0x1001619a
maxss xmm2, dword [0x102409ac]
push ecx
divss xmm2, xmm1
movss dword [esp], xmm2
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_roundf]
fmul dword [esp + 0x14]
movss xmm0, dword [ebx + 0x10]
mov dword [esp], 0x43b40000
push ecx
fstp dword [esp + 0x20]
subss xmm0, dword [esp + 0x20]
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
movss xmm0, dword [0x10286f50]
fstp dword [esp + 0x20]
movss xmm1, dword [esp + 0x20]
subss xmm0, xmm1
mov dword [esp + 4], 0x43b40000
movss dword [ebx + 0x10], xmm1
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
movss xmm0, dword [esp + 0x18]
sqrtss xmm0, xmm0
fstp dword [esp + 0x20]
movss xmm1, dword [esp + 0x20]
divss xmm1, xmm0
movss dword [esp + 0x20], xmm1
fld dword [esp + 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp dword [esp + 0x20]
movss xmm0, dword [esp + 0x20]
jmp 0x10016178
comiss xmm0, xmm1
jbe 0x1001619a
movss xmm2, dword [ebx + 0x10]
movss xmm0, dword [0x10286f50]
subss xmm0, xmm2
comiss xmm0, xmm1
jbe 0x1001619a
fld dword [esp + 0x20]
sub esp, 8
fld dword [esp + 0x24]
fpatan
mov dword [esp + 4], 0x43b40000
cvtps2pd xmm1, xmm2
fstp dword [esp + 0x20]
movss xmm0, dword [esp + 0x20]
mulss xmm0, dword [0x10240840]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x102406a8]
subsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
fmul dword [0x102815b8]
add esp, 8
movss xmm0, dword [esp + 0x10]
fmul dword [0x10240554]
fstp dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
comiss xmm1, xmm0
jbe 0x1001619a
minss xmm1, dword [0x10240840]
push ecx
divss xmm1, xmm0
movss dword [esp], xmm1
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_roundf]
fmul dword [esp + 0x14]
movss xmm0, dword [ebx + 0x10]
mov dword [esp], 0x43b40000
push ecx
fstp dword [esp + 0x20]
subss xmm0, dword [esp + 0x20]
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
movss xmm0, dword [0x10286f50]
fstp dword [esp + 0x20]
movss xmm1, dword [esp + 0x20]
subss xmm0, xmm1
mov dword [esp + 4], 0x43b40000
movss dword [ebx + 0x10], xmm1
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
movss xmm0, dword [esp + 0x18]
sqrtss xmm0, xmm0
fstp dword [esp + 0x20]
movss xmm1, dword [esp + 0x20]
divss xmm1, xmm0
movss dword [esp + 0x20], xmm1
fld dword [esp + 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp dword [esp + 0x20]
movss xmm0, dword [esp + 0x20]
mulss xmm0, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [0x1024b32c]
cvttss2si eax, xmm0
mov word [ebx + 0x44], ax
lea eax, [ebx + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x4c]
call eax
movss xmm0, dword [ebx + 0x10]
movss dword [0x10286f50], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret