Function at 0x10059750
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp byte [0x100f962c], 0
je 0x10059b6b
cmp byte [0x100fb371], 0
je 0x10059b6b
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10059b6b
mov ecx, dword [0x100fc340]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x10059b6b
mov ecx, dword [0x100fc31c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x10059b6b
mov ecx, dword [0x1017dbe8]
test ecx, ecx
je 0x10059b6b
call fcn.10010c10
cmp eax, 3
jne 0x10059b6b
mov ecx, dword [0x1017dbe8]
call fcn.10014530
test al, 1
je 0x10059b6b
mov ecx, dword [0x1017dbe8]
call fcn.10014530
shr eax, 1
test al, 1
jne 0x10059b6b
mov ecx, dword [0x1017dbec]
test ecx, ecx
je 0x10059b6b
push esi
call fcn.100580f0
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x24]
test al, al
je 0x1005981d
or ecx, 1
mov dword [esi + 0x24], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
test cl, 1
je 0x10059828
and ecx, 0xfffffffe
mov dword [esi + 0x24], ecx
mov eax, dword [0x100fb35c]
cmp eax, 0x2da
je 0x10059b6a
cmp eax, 0x1b9
je 0x10059b6a
mov ecx, dword [0x1017dbec]
mov eax, dword [ecx]
mov eax, dword [eax + 0x51c]
call eax
test eax, eax
jne 0x10059b6a
mov ecx, dword [0x1017dbe8]
lea eax, [ebp - 0x44]
push eax
call fcn.100106c0
movss xmm0, dword [0x100f07d8]
movss xmm1, dword [eax + 8]
comiss xmm0, xmm1
mov eax, dword [esi + 0x24]
jbe 0x10059b64
or eax, 3
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x2c]
mov ecx, dword [0x1017dbe8]
push eax
call fcn.10014620
movss xmm7, dword [0x100f08c8]
movss xmm0, dword [ebp - 0x2c]
comiss xmm0, xmm7
movss xmm2, dword [0x100f0590]
jbe 0x100598d9
comiss xmm2, xmm0
jbe 0x100598d9
movss xmm0, dword [ebp - 0x28]
comiss xmm0, xmm7
jbe 0x100598d9
comiss xmm2, xmm0
jbe 0x100598d9
movss xmm0, dword [ebp - 0x24]
comiss xmm0, xmm7
jbe 0x100598d9
comiss xmm2, xmm0
jbe 0x100598d9
mov al, 1
jmp 0x100598db
xor al, al
test al, al
je 0x100598f1
movss xmm0, dword [0x100f07e8]
movss xmm1, dword [0x100f06e0]
jmp 0x10059901
movss xmm0, dword [0x100f07c8]
movss xmm1, dword [0x100f0680]
lea edx, [ebp - 0x2c]
movss dword [ebp - 4], xmm1
lea ecx, [ebp - 0x44]
movss dword [ebp - 0x38], xmm0
call fcn.10057ee0
cmp dword [0x100fb35c], 0x201
mov dword [ebp - 0x30], 0
movss xmm1, dword [eax + 4]
subss xmm1, dword [0x100f0830]
movss dword [ebp - 0x34], xmm1
je 0x10059b30
movss xmm0, dword [ebp - 0x2c]
comiss xmm0, xmm7
jbe 0x10059970
comiss xmm2, xmm0
jbe 0x10059970
movss xmm0, dword [ebp - 0x28]
comiss xmm0, xmm7
jbe 0x10059970
comiss xmm2, xmm0
jbe 0x10059970
movss xmm0, dword [ebp - 0x24]
comiss xmm0, xmm7
jbe 0x10059970
comiss xmm2, xmm0
jbe 0x10059970
mov al, 1
jmp 0x10059972
xor al, al
test al, al
jne 0x10059b30
movss xmm0, dword [ebp - 4]
lea eax, [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
movss dword [ebp - 4], xmm0
fld dword [ebp - 4]
fsincos
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
fstp dword [edx]
fstp dword [eax]
mulss xmm1, dword [0x100f05a0]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], eax
movss dword [ebp - 0x14], xmm1
fld dword [ebp - 0x14]
fsincos
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
fstp dword [edx]
fstp dword [eax]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], eax
fld dword [ebp - 0x14]
fsincos
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
fstp dword [edx]
fstp dword [eax]
movss xmm5, dword [ebp - 0xc]
movss xmm0, dword [ebp + 8]
movss xmm6, dword [ebp - 0x18]
movss xmm3, dword [ebp - 0x20]
movss xmm4, dword [ebp - 0x1c]
movaps xmm2, xmm3
mulss xmm2, dword [0x100f08f4]
movaps xmm1, xmm4
mulss xmm1, dword [ebp - 8]
movaps xmm7, xmm3
mulss xmm0, xmm5
mulss xmm2, xmm5
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ebp + 8]
mulss xmm0, xmm6
mulss xmm7, xmm6
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [ebp - 8]
xorps xmm0, xmmword [0x100f0ed0]
movss dword [ebp - 0x10], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm5
movaps xmm5, xmm2
mulss xmm1, xmm6
subss xmm7, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm6
subss xmm5, xmm1
movaps xmm1, xmm4
mulss xmm4, dword [ebp - 0xc]
mulss xmm1, dword [0x100f08f4]
movss dword [ebp - 4], xmm5
movaps xmm5, xmm3
mulss xmm5, dword [ebp - 8]
mulss xmm1, dword [ebp + 8]
movaps xmm2, xmm5
mulss xmm5, xmm6
mulss xmm2, dword [ebp - 0xc]
movss xmm6, dword [ebp + 8]
subss xmm5, xmm4
movss xmm4, dword [ebp - 0x14]
movss dword [ebp - 0x20], xmm1
addss xmm2, xmm0
movss xmm1, dword [0x100f076c]
movss xmm0, dword [0x100f0740]
mulss xmm6, xmm3
movss xmm3, dword [0x100f07a4]
mulss xmm4, xmm3
mulss xmm7, xmm1
mulss xmm2, xmm0
subss xmm4, xmm7
mulss xmm5, xmm0
subss xmm4, xmm2
movss xmm2, dword [ebp - 4]
mulss xmm2, xmm1
movss dword [ebp - 0x44], xmm4
movss xmm4, dword [ebp - 0x18]
mulss xmm4, xmm3
subss xmm4, xmm2
subss xmm4, xmm5
movss dword [ebp - 0x40], xmm4
movss xmm4, dword [ebp - 0x10]
lea edx, [ebp - 0x38]
movss xmm2, dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
mulss xmm4, xmm3
mulss xmm2, xmm1
mulss xmm6, xmm0
subss xmm4, xmm2
subss xmm4, xmm6
movss dword [ebp - 0x3c], xmm4
call fcn.100100d0
lea ecx, [ebp - 0x38]
call fcn.1000fd80
movss xmm0, dword [ebp - 0x38]
movss dword [esi + 0xc], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [esi + 0x10], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [esi + 0x14], xmm0
mov byte [0x100fb378], 1
pop esi
mov esp, ebp
pop ebp
ret 4
or eax, 4
mov dword [esi + 0x24], eax
pop esi
mov esp, ebp
pop ebp
ret 4