Function at 0x10013080
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 [0x10249c14]
mov ebx, ecx
test edi, edi
je case.0x100130fe.0
mov eax, dword [0x10249c10]
test eax, eax
jne 0x100130d3
mov edx, 0xe80c2f78
mov ecx, 0x101e7481
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73a9
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov dword [0x10249c10], eax
cmp dword [eax + edi], 0
jle case.0x100130fe.0
cmp byte [0x1024a2cd], 0
je case.0x100130fe.0
mov ecx, dword [0x1021030c]
mov eax, dword [0x1024a2e0]
cmp ecx, 3
ja case.0x100130fe.0
jmp dword [ecx*4 + 0x10013650]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10013136
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10013136
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
jne case.0x100130fe.0
call fcn.1000ae70
cmp eax, 9
je case.0x100130fe.0
cmp eax, 8
je case.0x100130fe.0
cmp eax, 0xa
je case.0x100130fe.0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10213bc0]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1024aea0]
cmp eax, dword [esi + 4]
jle 0x100131b2
push 0x1024aea0
call fcn.10177088
add esp, 4
cmp dword [0x1024aea0], 0xffffffff
jne 0x100131b2
mov ecx, dword [0x10213bf8]
push str.m_yaw
mov eax, dword [ecx]
call dword [eax + 0x44]
push 0x1024aea0
mov dword [0x1024aeac], eax
call fcn.10177037
add esp, 4
mov eax, dword [0x1024aeb4]
cmp eax, dword [esi + 4]
jle 0x100131f7
push 0x1024aeb4
call fcn.10177088
add esp, 4
cmp dword [0x1024aeb4], 0xffffffff
jne 0x100131f7
mov ecx, dword [0x10213bf8]
push str.sensitivity
mov eax, dword [ecx]
call dword [eax + 0x44]
push 0x1024aeb4
mov dword [0x1024ae44], eax
call fcn.10177037
add esp, 4
mov eax, dword [0x1024ae4c]
cmp eax, dword [esi + 4]
jle 0x10013234
push 0x1024ae4c
call fcn.10177088
add esp, 4
cmp dword [0x1024ae4c], 0xffffffff
jne 0x10013234
movss xmm0, dword [ebx + 0x10]
push 0x1024ae4c
movss dword [0x1024aea4], xmm0
call fcn.10177037
add esp, 4
movss xmm0, dword [ebx + 0x24]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1001363a
mov eax, dword [0x10249c64]
mov edi, dword [0x10249c14]
mov dword [esp + 0x14], edi
test eax, eax
jne 0x10013290
mov edx, 0xe80c2f78
mov ecx, 0x101e75b1
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73a9
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov edi, dword [0x10249c14]
mov dword [0x10249c64], eax
mov ecx, dword [esp + 0x14]
test byte [eax + ecx], 1
jne 0x1001363a
mov eax, dword [0x10249c88]
test eax, eax
jne 0x100132d5
mov edx, 0xe80c2f78
mov ecx, 0x101e7741
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73d1
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov dword [0x10249c88], 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 [0x1024a298]
jbe 0x1001363a
mov edx, dword [0x1024a240]
mov ecx, dword [0x1024a23c]
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 [0x1024aeac]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], eax
call dword [esp + 0x14]
mov ecx, dword [0x1024ae44]
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 0x100134e5
movss xmm2, dword [ebx + 0x10]
movss xmm0, dword [0x1024aea4]
subss xmm0, xmm2
comiss xmm1, xmm0
jbe 0x1001363a
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 [0x10209468]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x102092d8]
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 [0x1024a258]
add esp, 8
movss xmm1, dword [esp + 0x10]
movaps xmm0, xmm1
xorps xmm0, xmmword [0x10209860]
fmul dword [0x10209184]
fstp dword [esp + 0x18]
movss xmm2, dword [esp + 0x18]
comiss xmm0, xmm2
jbe 0x1001363a
maxss xmm2, dword [0x102095d8]
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 [0x1024aea4]
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 0x10013618
comiss xmm0, xmm1
jbe 0x1001363a
movss xmm2, dword [ebx + 0x10]
movss xmm0, dword [0x1024aea4]
subss xmm0, xmm2
comiss xmm0, xmm1
jbe 0x1001363a
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 [0x10209468]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x102092d8]
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 [0x1024a258]
add esp, 8
movss xmm0, dword [esp + 0x10]
fmul dword [0x10209184]
fstp dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
comiss xmm1, xmm0
jbe 0x1001363a
minss xmm1, dword [0x10209468]
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 [0x1024aea4]
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 [0x10213bfc]
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 [0x1024aea4], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret