Function at 0x1001546f
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
cmp byte [0x10281601], 0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x10015853
mov edx, dword [0x102472d4]
mov eax, dword [0x102815d8]
cmp edx, 3
ja case.0x10015456.0
jmp dword [edx*4 + 0x1001585c]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x1001548e
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x1001548e
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x10015853
mov edi, dword [0x10281360]
test edi, edi
je 0x10015853
mov eax, dword [0x1028135c]
test eax, eax
jne 0x100154db
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 0x10015853
call fcn.1000b770
cmp eax, 9
je 0x10015853
cmp eax, 8
je 0x10015853
mov eax, dword [0x102813b4]
mov esi, dword [0x10281360]
mov edi, esi
test eax, eax
jne 0x10015541
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 esi, dword [0x10281360]
mov dword [0x102813b4], eax
test byte [eax + edi], 1
jne 0x10015853
movss xmm1, dword [esi + 0x118]
xorps xmm2, xmm2
movss xmm0, dword [esi + 0x114]
mulss xmm0, xmm0
mov dword [esp + 0x18], 0
mulss xmm1, xmm1
addss xmm0, xmm1
movss dword [esp + 0x14], xmm0
sqrtss xmm0, dword [esp + 0x14]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [0x10240768]
comiss xmm0, dword [esp + 0x18]
jae 0x10015853
mov eax, dword [ebp + 0x30]
mov ebx, eax
mov edx, eax
shr ebx, 3
mov ecx, eax
shr edx, 0xa
shr ecx, 9
and bl, 1
shr eax, 4
and dl, 1
and cl, 1
test al, 1
je 0x100155fe
mov dword [0x102815a4], 0xc3340000
test cl, cl
je 0x100155de
movss xmm2, dword [0x102409b4]
mov dword [0x102815a4], 0xc3610000
jmp 0x10015664
movss xmm2, dword [0x102409ac]
test dl, dl
je 0x10015664
movss xmm2, dword [0x102409a4]
mov dword [0x102815a4], 0xc3070000
jmp 0x10015664
test cl, cl
je 0x1001562c
movss xmm2, dword [0x10240808]
mov dword [0x102815a4], 0x42b40000
test bl, bl
je 0x10015664
movss xmm2, dword [0x102407e0]
mov dword [0x102815a4], 0x42340000
jmp 0x10015664
test dl, dl
je 0x1001565a
movss xmm2, dword [0x1024099c]
mov dword [0x102815a4], 0xc2b40000
test bl, bl
je 0x10015664
movss xmm2, dword [0x10240990]
mov dword [0x102815a4], 0xc2340000
jmp 0x10015664
mov dword [0x102815a4], 0
addss xmm2, dword [0x102495b4]
mov eax, dword [0x10281360]
push ecx
movss dword [0x102495b4], xmm2
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
movq xmm0, qword [eax + 0x114]
movq qword [esp + 0x1c], xmm0
fld dword [esp + 0x20]
fld dword [esp + 0x1c]
fpatan
movss xmm1, dword [0x102495b4]
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x102407f0]
subss xmm1, xmm0
movss dword [esp + 0x14], xmm1
fld dword [esp + 0x14]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__fdclass
add esp, 4
test ax, ax
jle 0x10015726
xorps xmm3, xmm3
movss xmm0, dword [0x102408b0]
movss dword [ebp + 0x28], xmm0
movss xmm0, dword [0x102495b4]
subss xmm0, xmm3
push ecx
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__fdclass
add esp, 4
test ax, ax
jle 0x100157b0
xorps xmm1, xmm1
movss dword [0x102495b4], xmm1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
movss xmm2, dword [esp + 0x10]
comiss xmm2, dword [0x102409ac]
jb 0x10015747
movss xmm0, dword [0x10240840]
comiss xmm0, xmm2
jb 0x10015747
xorps xmm1, xmm1
jmp 0x10015797
movaps xmm0, xmm2
mulss xmm0, dword [0x10240538]
call fcn.10009190
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x14]
xorps xmm1, xmm1
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
add esp, 4
comiss xmm1, xmm2
mulss xmm0, dword [0x1024089c]
jbe 0x10015793
addss xmm2, xmm0
jmp 0x10015797
subss xmm2, xmm0
comiss xmm2, xmm1
movaps xmm3, xmm2
jbe 0x100156db
movss xmm0, dword [0x102409c8]
jmp 0x100156e3
movss xmm0, dword [esp + 0x10]
comiss xmm0, dword [0x102409ac]
jb 0x100157df
movss xmm1, dword [0x10240840]
comiss xmm1, xmm0
jb 0x100157df
movaps xmm1, xmm0
movss dword [0x102495b4], xmm1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mulss xmm0, dword [0x10240538]
call fcn.10009190
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x14]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm2
fstp dword [esp + 0x14]
jbe 0x10015836
movss xmm1, dword [esp + 0x14]
mulss xmm1, dword [0x1024089c]
addss xmm1, xmm2
movss dword [0x102495b4], xmm1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
movss xmm0, dword [esp + 0x14]
movaps xmm1, xmm2
mulss xmm0, dword [0x1024089c]
subss xmm1, xmm0
movss dword [0x102495b4], xmm1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret