Function at 0x10030160
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x24], ecx
mov byte [0x101e0b1d], 0
cmp dword [0x10286338], 0xffffffff
je 0x1003018c
mov eax, dword [0x10286338]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
test ecx, ecx
jne 0x100301aa
movzx edx, byte [0x10286340]
test edx, edx
je 0x10030399
movzx eax, byte [0x101e0b20]
test eax, eax
je 0x10030399
mov ecx, dword [0x102bd158]
call fcn.100090e0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [0x102bd160]
call fcn.10008f20
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100301dc
mov ecx, dword [ebp - 4]
call fcn.10008ff0
test eax, eax
jg 0x100301e1
jmp 0x10030399
mov ecx, dword [0x102bd158]
call fcn.10009140
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100301fa
jmp 0x10030399
mov ecx, dword [ebp - 4]
call fcn.10008e90
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10030210
jmp 0x10030399
mov edx, dword [ebp - 8]
cmp dword [edx + 0x2c], 0
jne 0x10030245
mov ecx, 0x10270118
call fcn.100303a0
fstp qword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x2c]
comisd xmm0, xmmword [0x100ea390]
jbe 0x1003023e
mov byte [0x101e0b1e], 1
jmp 0x10030245
mov byte [0x101e0b1e], 0
mov byte [0x101e0b1d], 1
mov eax, dword [ebp + 8]
movss xmm0, dword [eax + 0x28]
mulss xmm0, dword [0x1028633c]
mov ecx, dword [ebp + 8]
movss dword [ecx + 0x28], xmm0
mov edx, dword [ebp + 8]
movss xmm0, dword [edx + 0x24]
mulss xmm0, dword [0x1028633c]
mov eax, dword [ebp + 8]
movss dword [eax + 0x24], xmm0
movzx ecx, byte [0x101e0b1e]
test ecx, ecx
je 0x10030383
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100302d9
mov ecx, dword [ebp - 0x10]
movss xmm0, dword [0x100e6fec]
comiss xmm0, dword [ecx + 0xec]
jbe 0x100302bd
movss xmm0, dword [0x100ea398]
movss dword [ebp - 0x14], xmm0
jmp 0x100302ca
movss xmm0, dword [0x100ea398]
movss dword [ebp - 0x14], xmm0
cvtsi2ss xmm0, dword [ebp - 0xc]
comiss xmm0, dword [ebp - 0x14]
jbe 0x10030381
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movss dword [edx + 0x28], xmm0
mov eax, dword [ebp + 8]
movss xmm0, dword [0x100e7440]
movss dword [eax + 0x24], xmm0
cmp dword [ebp - 0xc], 0
je 0x1003030e
mov ecx, dword [ebp - 0x10]
movss xmm0, dword [0x100e859c]
comiss xmm0, dword [ecx + 0xec]
jbe 0x10030319
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movss dword [edx + 0x24], xmm0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 4]
call fcn.100092e0
mov dword [ebp - 0x1c], eax
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0x44]
call fcn.10006a10
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.10008de0
add esp, 0xc
movss xmm0, dword [eax + 4]
addss xmm0, dword [0x100e6b2c]
push ecx
movss dword [esp], xmm0
mov ecx, dword [ebp + 8]
push ecx
call fcn.1009c380
add esp, 8
jmp 0x10030399
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movss dword [edx + 0x28], xmm0
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movss dword [eax + 0x24], xmm0
mov esp, ebp
pop ebp
ret 4