Function at 0x1002d120
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x134], 2
jne 0x1002d675
movss xmm0, dword [edi + 0xe0]
mov al, byte [0x11dc5500]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [edi + 0xe4]
movss dword [esp + 0x14], xmm0
test al, al
je 0x1002d16b
movss xmm0, dword [0x1003ac00]
jmp 0x1002d173
movss xmm0, dword [0x1003adcc]
test al, al
movss dword [esp + 0x20], xmm0
push 0x56
sete byte [0x11dc5500]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x1002d384
cmp byte [0x10f78535], 0
je 0x1002d384
movss xmm0, dword [esp + 0x14]
movss xmm1, dword [esp + 0xc]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10002a80
xorps xmm1, xmm1
cvtss2sd xmm1, xmm0
movsd xmm0, qword [0x1003ac98]
divsd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan
movss xmm1, dword [0x1003ad34]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x1003ad14]
movss dword [esp + 0x20], xmm0
mov eax, dword [esp + 0x20]
and eax, 0x7f800000
cmp eax, 0x7f800000
je 0x1002d216
comiss xmm0, xmm1
ja 0x1002d216
xorps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x1002d21c
xorps xmm0, xmm0
jmp 0x1002d21c
movaps xmm0, xmm1
xorps xmm2, xmm2
movss xmm1, dword [0x11dc53c0]
addss xmm1, xmm0
comiss xmm1, dword [0x1003ad54]
movaps xmm0, xmm1
movss dword [esp + 0x10], xmm1
mulss xmm0, dword [0x1003ab18]
movss dword [esp + 0xc], xmm0
ja 0x1002d272
movss xmm3, dword [0x1003adf8]
comiss xmm3, xmm1
ja 0x1002d272
movss dword [0x11d569f4], xmm1
movss dword [0x11dc53c0], xmm1
mov dword [esi + 0x1c], 0xc3e10000
pop edi
pop esi
mov esp, ebp
pop ebp
ret
comiss xmm2, xmm0
jbe 0x1002d288
movaps xmm0, xmm1
mulss xmm0, dword [0x1003adc0]
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x14]
xorps xmm2, xmm2
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
add esp, 4
comiss xmm2, xmm1
mulss xmm0, dword [0x1003ad7c]
jbe 0x1002d2c7
addss xmm0, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x10], xmm0
jmp 0x1002d2d1
subss xmm1, xmm0
movss dword [esp + 0x10], xmm1
comiss xmm1, dword [0x1003ad54]
movaps xmm0, xmm1
movss dword [0x11dc53c0], xmm1
mulss xmm0, dword [0x1003ab18]
movaps xmm3, xmm1
movss dword [esp + 0xc], xmm0
ja 0x1002d30f
movss xmm4, dword [0x1003adf8]
comiss xmm4, xmm3
movss dword [esp + 0x10], xmm1
movss dword [esp + 0xc], xmm0
jbe 0x1002d36f
comiss xmm2, xmm0
jbe 0x1002d322
mulss xmm1, dword [0x1003adc0]
movss dword [esp + 0xc], xmm1
fld dword [esp + 0xc]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x14]
xorps xmm0, xmm0
fstp dword [esp + 0x10]
add esp, 4
comiss xmm0, xmm1
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x1003ad7c]
jbe 0x1002d36b
addss xmm1, xmm0
movss dword [0x11d569f4], xmm1
mov dword [esi + 0x1c], 0xc3e10000
pop edi
pop esi
mov esp, ebp
pop ebp
ret
subss xmm1, xmm0
movss dword [0x11d569f4], xmm1
mov dword [esi + 0x1c], 0xc3e10000
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10002d90
test byte [eax], 1
jne 0x1002d675
movss xmm0, dword [esi + 0x18]
xorps xmm2, xmm2
comiss xmm0, xmm2
jbe 0x1002d3a8
mov dword [esi + 0x18], 0
movss xmm0, dword [esp + 0x14]
movss xmm1, dword [esp + 0xc]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.10002a80
movaps xmm1, xmm0
movss xmm0, dword [0x1003acdc]
divss xmm0, xmm1
movss dword [esp + 0x1c], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atanf
movss xmm1, dword [0x11d569f4]
movaps xmm3, xmm0
mulss xmm3, dword [0x1003ad14]
xorps xmm2, xmm2
subss xmm1, dword [0x11dc53c4]
maxss xmm3, xmm2
comiss xmm1, dword [0x1003ad54]
movaps xmm4, xmm1
movss dword [esp + 0x24], xmm1
minss xmm3, dword [0x1003ad34]
mulss xmm4, dword [0x1003ab18]
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x10], xmm4
ja 0x1002d43c
movss xmm0, dword [0x1003adf8]
comiss xmm0, xmm1
jbe 0x1002d492
comiss xmm2, xmm4
jbe 0x1002d452
movaps xmm0, xmm1
mulss xmm0, dword [0x1003adc0]
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x28]
xorps xmm2, xmm2
movss xmm3, dword [esp + 0x1c]
add esp, 4
comiss xmm2, xmm1
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x1003ad7c]
jbe 0x1002d48e
addss xmm1, xmm0
jmp 0x1002d492
subss xmm1, xmm0
comiss xmm1, xmm2
movss xmm0, dword [0x11d569f4]
movss dword [0x11dc53c4], xmm0
jbe 0x1002d4b0
mov dword [esi + 0x1c], 0xc3e10000
jmp 0x1002d4bc
comiss xmm2, xmm1
jbe 0x1002d4bc
mov dword [esi + 0x1c], 0x43e10000
andps xmm1, xmmword [0x1003aea0]
comiss xmm3, xmm1
jae 0x1002d4d5
comiss xmm1, dword [0x1003acf8]
jb 0x1002d63d
movss xmm3, dword [esp + 0x14]
xorps xmm0, xmm0
movss xmm1, dword [esp + 0xc]
cvtps2pd xmm3, xmm3
cvtps2pd xmm1, xmm1
ucomisd xmm3, xmm0
lahf
test ah, 0x44
jp 0x1002d4fe
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1002d522
movaps xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x1003aca8]
xorps xmm1, xmm1
xorps xmm2, xmm2
comisd xmm1, xmm0
jbe 0x1002d522
addsd xmm0, qword [0x1003acb0]
movss xmm4, dword [0x11d569f4]
cvtsd2ss xmm0, xmm0
movaps xmm1, xmm4
subss xmm1, xmm0
movss dword [esp + 0x14], xmm0
comiss xmm1, dword [0x1003ad54]
movaps xmm3, xmm1
movss dword [esp + 0x24], xmm1
mulss xmm3, dword [0x1003ab18]
movss dword [esp + 0x10], xmm3
ja 0x1002d568
movss xmm5, dword [0x1003adf8]
comiss xmm5, xmm1
jbe 0x1002d5c6
comiss xmm2, xmm3
jbe 0x1002d57e
movaps xmm0, xmm1
mulss xmm0, dword [0x1003adc0]
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x28]
xorps xmm2, xmm2
movss xmm4, dword [0x11d569f4]
add esp, 4
comiss xmm2, xmm1
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x1003ad7c]
jbe 0x1002d5bc
addss xmm1, xmm0
jmp 0x1002d5c0
subss xmm1, xmm0
movss xmm0, dword [esp + 0x14]
movss xmm2, dword [0x1003acdc]
comiss xmm2, xmm1
jae 0x1002d5ef
comiss xmm2, dword [esp + 0x1c]
jae 0x1002d614
addss xmm0, xmm2
movss dword [0x11d569f4], xmm0
mov dword [esi + 0x1c], 0xc3e10000
jmp 0x1002d63d
comiss xmm1, dword [0x1003add4]
jae 0x1002d614
comiss xmm2, dword [esp + 0x1c]
jae 0x1002d614
subss xmm0, xmm2
movss dword [0x11d569f4], xmm0
mov dword [esi + 0x1c], 0x43e10000
jmp 0x1002d63d
movss xmm1, dword [esp + 0x20]
movss xmm0, dword [esp + 0x18]
mulss xmm0, xmm1
mulss xmm1, dword [0x1003ad84]
addss xmm0, xmm4
movss dword [0x11d569f4], xmm0
movss dword [esi + 0x1c], xmm1
mov ecx, dword [esi + 0x24]
xorps xmm0, xmm0
and ecx, 0xfffff9e7
mov eax, ecx
or ecx, 0x200
or eax, 0x400
comiss xmm0, dword [esi + 0x1c]
cmovbe ecx, eax
comiss xmm0, dword [esi + 0x18]
jbe 0x1002d66f
or ecx, 0x10
mov dword [esi + 0x24], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or ecx, 8
mov dword [esi + 0x24], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret