Function at 0x100137b0
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 [0x101f764c]
mov ebx, ecx
test edi, edi
je case.0x1001382e.0
mov eax, dword [0x101f7648]
test eax, eax
jne 0x10013803
mov edx, 0xe80c2f78
mov ecx, 0x1014c9ed
call fcn.10003ad0
mov edx, 0xc10bf213
mov ecx, 0x1014c915
mov esi, eax
call fcn.10003ad0
mov edx, esi
mov ecx, eax
call fcn.100abe50
mov dword [0x101f7648], eax
cmp dword [eax + edi], 0
jle case.0x1001382e.0
cmp byte [0x101f792c], 0
je case.0x1001382e.0
mov ecx, dword [0x101be334]
mov eax, dword [0x101f793c]
cmp ecx, 3
ja case.0x1001382e.0
jmp dword [ecx*4 + 0x10013d80]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10013866
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10013866
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
jne case.0x1001382e.0
call fcn.1000a2e0
cmp eax, 9
je case.0x1001382e.0
cmp eax, 8
je case.0x1001382e.0
cmp eax, 0xa
je case.0x1001382e.0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101c1730]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x101fcdc8]
cmp eax, dword [esi + 4]
jle 0x100138e2
push 0x101fcdc8
call fcn.1010fdd4
add esp, 4
cmp dword [0x101fcdc8], 0xffffffff
jne 0x100138e2
mov ecx, dword [0x101c1768]
push str.m_yaw
mov eax, dword [ecx]
call dword [eax + 0x44]
push 0x101fcdc8
mov dword [0x101fcdb4], eax
call fcn.1010fd83
add esp, 4
mov eax, dword [0x101fcd9c]
cmp eax, dword [esi + 4]
jle 0x10013927
push 0x101fcd9c
call fcn.1010fdd4
add esp, 4
cmp dword [0x101fcd9c], 0xffffffff
jne 0x10013927
mov ecx, dword [0x101c1768]
push str.sensitivity
mov eax, dword [ecx]
call dword [eax + 0x44]
push 0x101fcd9c
mov dword [0x101fcdb8], eax
call fcn.1010fd83
add esp, 4
mov eax, dword [0x101fcd94]
cmp eax, dword [esi + 4]
jle 0x10013964
push 0x101fcd94
call fcn.1010fdd4
add esp, 4
cmp dword [0x101fcd94], 0xffffffff
jne 0x10013964
movss xmm0, dword [ebx + 0x10]
push 0x101fcd94
movss dword [0x101fcd98], xmm0
call fcn.1010fd83
add esp, 4
movss xmm0, dword [ebx + 0x24]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x10013d6a
mov eax, dword [0x101f7680]
mov edi, dword [0x101f764c]
mov dword [esp + 0x14], edi
test eax, eax
jne 0x100139c0
mov edx, 0xe80c2f78
mov ecx, 0x101985a5
call fcn.10003ad0
mov edx, 0xc10bf213
mov ecx, 0x1014c915
mov esi, eax
call fcn.10003ad0
mov edx, esi
mov ecx, eax
call fcn.100abe50
mov edi, dword [0x101f764c]
mov dword [0x101f7680], eax
mov ecx, dword [esp + 0x14]
test byte [eax + ecx], 1
jne 0x10013d6a
mov eax, dword [0x101f76c0]
test eax, eax
jne 0x10013a05
mov edx, 0xe80c2f78
mov ecx, 0x10198749
call fcn.10003ad0
mov edx, 0xc10bf213
mov ecx, 0x1014c93d
mov esi, eax
call fcn.10003ad0
mov edx, esi
mov ecx, eax
call fcn.100abe50
mov dword [0x101f76c0], 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 [0x101f78ec]
jbe 0x10013d6a
mov edx, dword [0x101f7888]
mov ecx, dword [0x101f7890]
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 [0x101fcdb4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], eax
call dword [esp + 0x14]
mov ecx, dword [0x101fcdb8]
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 0x10013c15
movss xmm2, dword [ebx + 0x10]
movss xmm0, dword [0x101fcd98]
subss xmm0, xmm2
comiss xmm1, xmm0
jbe 0x10013d6a
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 [0x101b84e0]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x101b8390]
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 [0x101f78ac]
add esp, 8
movss xmm1, dword [esp + 0x10]
movaps xmm0, xmm1
xorps xmm0, xmmword [0x101b88a0]
fmul dword [0x101b825c]
fstp dword [esp + 0x18]
movss xmm2, dword [esp + 0x18]
comiss xmm0, xmm2
jbe 0x10013d6a
maxss xmm2, dword [0x101b862c]
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 [0x101fcd98]
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 0x10013d48
comiss xmm0, xmm1
jbe 0x10013d6a
movss xmm2, dword [ebx + 0x10]
movss xmm0, dword [0x101fcd98]
subss xmm0, xmm2
comiss xmm0, xmm1
jbe 0x10013d6a
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 [0x101b84e0]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x101b8390]
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 [0x101f78ac]
add esp, 8
movss xmm0, dword [esp + 0x10]
fmul dword [0x101b825c]
fstp dword [esp + 0x18]
movss xmm1, dword [esp + 0x18]
comiss xmm1, xmm0
jbe 0x10013d6a
minss xmm1, dword [0x101b84e0]
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 [0x101fcd98]
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 [0x101c176c]
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 [0x101fcd98], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret