Function at 0x1001517c
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [0x10281360]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x10015419
mov eax, dword [0x1028135c]
test eax, eax
jne 0x1001510d
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 + ebx], 0
jle 0x10015419
call fcn.1000b770
cmp eax, 9
je 0x10015419
cmp eax, 8
je 0x10015419
cmp eax, 0xa
je 0x10015419
cmp byte [0x102815c9], 0
je 0x10015419
mov ecx, dword [0x102472dc]
mov eax, dword [0x10281654]
cmp ecx, 3
ja case.0x10015154.0
jmp dword [ecx*4 + 0x10015420]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x1001518c
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x1001518c
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x10015419
test byte [0x102816d4], 1
je 0x10015412
mov eax, dword [0x102813b4]
mov ebx, dword [0x10281360]
test eax, eax
jne 0x100151de
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 dword [0x102813b4], eax
test byte [eax + ebx], 1
jne 0x10015412
cmp byte [0x10281634], 0
je 0x10015215
cmp byte [0x1028161d], 0
je 0x10015215
mov ecx, dword [0x1024b32c]
and dword [edi + 0x30], 0xfffffff7
push 0
push str._forward
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
cmp byte [0x102815f5], 0
lea esi, [edi + 0x30]
je 0x1001523b
mov ecx, dword [0x1024b32c]
and dword [esi], 0xffffffef
push 0
push str._back
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
cmp byte [0x102815f6], 0
je 0x10015261
mov ecx, dword [0x1024b32c]
and dword [esi], 0xfffffdff
push 0
push str._moveleft
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
cmp byte [0x102815f7], 0
mov ecx, esi
je 0x1001528c
mov ecx, dword [0x1024b32c]
and dword [esi], 0xfffffbff
push 0
push str._moveright
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
lea ecx, [edi + 0x30]
cmp byte [0x10281625], 0
mov byte [0x10286f58], 1
je 0x100152a1
or dword [esi], 2
jmp 0x100152a3
mov ecx, esi
mov eax, dword [esi]
mov ebx, dword [0x10281360]
or eax, 4
mov dword [ecx], eax
mov eax, dword [0x102813d8]
test eax, eax
jne 0x100152e7
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
movss xmm1, dword [eax + ebx + 4]
movss xmm0, dword [eax + ebx]
mulss xmm0, xmm0
mov dword [esp + 0x14], 0
mulss xmm1, xmm1
addss xmm0, xmm1
movss dword [esp + 0x10], xmm0
sqrtss xmm0, dword [esp + 0x10]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x102408ec]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
mulss xmm0, dword [0x102408ec]
mov eax, dword [0x102813d8]
movss dword [edi + 0x28], xmm0
movss dword [edi + 0x24], xmm0
mov edi, dword [0x10281360]
test eax, eax
jne 0x1001537a
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
mov dword [eax + edi + 4], 0
mov eax, dword [0x102813d8]
mov edi, dword [0x10281360]
test eax, eax
jne 0x100153bf
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
mov dword [eax + edi], 0
mov eax, dword [0x102813d8]
mov edi, dword [0x10281360]
test eax, eax
jne 0x10015403
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
mov dword [eax + edi + 8], 0x43bb0000
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov byte [0x10286f58], 0
pop edi
pop esi
pop ebx
add esp, 0x18
ret