Function at 0x100151f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [0x102a0609], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x100155fa
mov edx, dword [0x10266258]
mov eax, dword [0x102a05ec]
cmp edx, 3
ja case.0x10015219.0
jmp dword [edx*4 + 0x10015604]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10015251
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10015251
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x100155fa
mov edi, dword [0x102a036c]
test edi, edi
je 0x100155fa
mov eax, dword [0x102a0368]
test eax, eax
jne 0x1001529e
mov edx, 0xe80c2f78
mov ecx, 0x102113c1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov dword [0x102a0368], eax
cmp dword [eax + edi], 0
jle 0x100155fa
call fcn.1000c3f0
cmp eax, 9
je 0x100155fa
cmp eax, 8
je 0x100155fa
mov eax, dword [0x102a03b0]
mov esi, dword [0x102a036c]
mov edi, esi
test eax, eax
jne 0x10015304
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov esi, dword [0x102a036c]
mov dword [0x102a03b0], eax
test byte [eax + edi], 1
jne 0x100155fa
movss xmm1, dword [esi + 0x118]
xorps xmm2, xmm2
movss xmm0, dword [esi + 0x114]
mulss xmm0, xmm0
mov dword [ebp - 0x18], 0
mulss xmm1, xmm1
addss xmm0, xmm1
movss dword [ebp - 8], xmm0
sqrtss xmm0, dword [ebp - 8]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [0x102516a8]
comiss xmm0, dword [ebp - 0x18]
jae 0x100155fa
mov esi, dword [ebp - 4]
mov eax, dword [esi + 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 0x100153bf
mov dword [0x102a05b4], 0xc3340000
test cl, cl
je 0x1001539f
movss xmm2, dword [0x102518bc]
mov dword [0x102a05b4], 0xc3610000
jmp 0x10015425
movss xmm2, dword [0x102518b4]
test dl, dl
je 0x10015425
movss xmm2, dword [0x102518b0]
mov dword [0x102a05b4], 0xc3070000
jmp 0x10015425
test cl, cl
je 0x100153ed
movss xmm2, dword [0x10251750]
mov dword [0x102a05b4], 0x42b40000
test bl, bl
je 0x10015425
movss xmm2, dword [0x10251720]
mov dword [0x102a05b4], 0x42340000
jmp 0x10015425
test dl, dl
je 0x1001541b
movss xmm2, dword [0x102518a8]
mov dword [0x102a05b4], 0xc2b40000
test bl, bl
je 0x10015425
movss xmm2, dword [0x1025189c]
mov dword [0x102a05b4], 0xc2340000
jmp 0x10015425
mov dword [0x102a05b4], 0
addss xmm2, dword [0x102684b0]
mov eax, dword [0x102a036c]
movss dword [0x102684b0], xmm2
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
movq xmm0, qword [eax + 0x114]
movq qword [ebp - 0x14], xmm0
movss xmm1, dword [ebp - 0x14]
movss xmm0, dword [ebp - 0x10]
call fcn.10009a60
mulss xmm0, dword [0x10251730]
push ecx
movss xmm1, dword [0x102684b0]
subss xmm1, xmm0
movss dword [ebp - 4], xmm1
fld dword [ebp - 4]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__fdclass
add esp, 4
test ax, ax
jle 0x100154dc
xorps xmm3, xmm3
movss xmm0, dword [0x102517d8]
movss dword [esi + 0x28], xmm0
movss xmm0, dword [0x102684b0]
subss xmm0, xmm3
push ecx
movss dword [ebp - 4], xmm0
fld dword [ebp - 4]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__fdclass
add esp, 4
test ax, ax
jle 0x10015560
xorps xmm1, xmm1
movss dword [0x102684b0], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movss xmm2, dword [ebp - 4]
comiss xmm2, dword [0x102518b4]
jb 0x100154fc
movss xmm0, dword [0x10251778]
comiss xmm0, xmm2
jb 0x100154fc
xorps xmm1, xmm1
jmp 0x10015547
movaps xmm0, xmm2
divss xmm0, dword [0x102517c8]
call fcn.10009aa0
movss dword [ebp - 8], xmm0
fld dword [ebp - 8]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [ebp - 4]
xorps xmm1, xmm1
fstp dword [ebp - 8]
movss xmm0, dword [ebp - 8]
add esp, 4
comiss xmm1, xmm2
mulss xmm0, dword [0x102517c8]
jbe 0x10015543
addss xmm2, xmm0
jmp 0x10015547
subss xmm2, xmm0
comiss xmm2, xmm1
movaps xmm3, xmm2
jbe 0x10015494
movss xmm0, dword [0x102518d0]
jmp 0x1001549c
movss xmm0, dword [ebp - 4]
comiss xmm0, dword [0x102518b4]
jb 0x1001558d
movss xmm1, dword [0x10251778]
comiss xmm1, xmm0
jb 0x1001558d
movaps xmm1, xmm0
movss dword [0x102684b0], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
divss xmm0, dword [0x102517c8]
call fcn.10009aa0
movss dword [ebp - 8], xmm0
fld dword [ebp - 8]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [ebp - 4]
xorps xmm0, xmm0
add esp, 4
comiss xmm0, xmm2
fstp dword [ebp - 8]
jbe 0x100155de
movss xmm1, dword [ebp - 8]
mulss xmm1, dword [0x102517c8]
addss xmm1, xmm2
movss dword [0x102684b0], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movss xmm0, dword [ebp - 8]
movaps xmm1, xmm2
mulss xmm0, dword [0x102517c8]
subss xmm1, xmm0
movss dword [0x102684b0], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret