Function at 0x401030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xd18
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45e12c], 1
movups xmm0, xmmword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
push esi
movups xmmword [ebp - 0x3c0], xmm0
push edi
movups xmm0, xmmword [ebx + 0x20]
mov dword [ebp - 0x38c], edx
mov dword [ebp - 0x380], ecx
movups xmmword [ebp - 0x3d0], xmm0
mov dword [ebp - 0x3a0], eax
movups xmm0, xmmword [ebx + 0x30]
movups xmmword [ebp - 0x3e0], xmm0
movups xmm0, xmmword [ebx + 0x40]
movups xmmword [ebp - 0x3b0], xmm0
jne 0x4019a9
push 0
push 0x310
lea ecx, [ebp - 0xd10]
mov dword [ebp - 0xcd8], 0
push ecx
push eax
push dword [0x45e6f4]
xorps xmm0, xmm0
mov dword [ebp - 0xcd4], 0
movups xmmword [ebp - 0xce8], xmm0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [0x45e6d8]
lea esi, [ebp - 0xd10]
cdq
lea edi, [ebp - 0xa00]
sub eax, edx
mov ecx, 0xc4
rep movsd dword es:[edi], dword [esi]
mov esi, eax
xorps xmm2, xmm2
mov eax, dword [0x45e6dc]
xorps xmm1, xmm1
cdq
xorps xmm0, xmm0
sub eax, edx
sar esi, 1
mov edi, eax
movss dword [ebp - 0x370], xmm2
sar edi, 1
cmp byte [0x45e126], 0
movss dword [ebp - 0x340], xmm2
movss dword [ebp - 0x374], xmm2
movss dword [ebp - 0x33c], xmm2
movss dword [ebp - 0x36c], xmm1
movss dword [ebp - 0x338], xmm1
movd xmm1, esi
movd xmm2, edi
movss dword [ebp - 0x384], xmm0
movss dword [ebp - 0x37c], xmm0
movss dword [ebp - 0x388], xmm0
mov dword [ebp - 0x398], esi
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x39c], edi
cvtdq2ps xmm2, xmm2
je 0x4011e9
movss dword [ebp - 0x14], xmm1
movss xmm1, dword [0x45ad14]
movss dword [ebp - 0x10], xmm2
movss xmm2, dword [0x45e11c]
comiss xmm1, xmm2
ja 0x4011e9
push 0x1d
push ecx
mov ecx, dword [ebp - 0x380]
subss xmm2, xmm1
lea eax, [ebp - 0x14]
mov dword [esp], 0x40c25c20
push eax
xorps xmm3, xmm3
call fcn.0042cef0
mov eax, dword [ebp - 0x380]
push ecx
mov dword [esp], 0x40000000
mov ecx, eax
push 1
push 0xffffffffffffffff
push dword [eax + 0x54]
push dword [eax + 0x5c]
call fcn.0042ba80
mov eax, dword [ebp - 0x380]
mov dword [eax + 0x54], 0
cmp dword [ebx + 8], 0
movss xmm0, dword [0x45aea0]
movss dword [ebp - 0x378], xmm0
jbe 0x401777
mov eax, dword [ebp - 0x38c]
add eax, 4
mov dword [ebp - 0x38c], eax
push 0
push 4
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x45e6f4]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 0x310
lea eax, [ebp - 0x6f0]
mov dword [ebp - 0x6e0], 0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x6dc], 0
push dword [0x45e6f4]
mov dword [ebp - 0x6d8], 0
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [ebp - 0x604], 0
jle 0x40172e
cmp byte [0x45e124], 0
jne 0x4012a8
mov eax, dword [ebp - 0x6f4]
cmp dword [ebp - 0x3e4], eax
je 0x40172e
movups xmm0, xmmword [ebp - 0x3c0]
lea ecx, [ebp - 0x58]
movups xmmword [ebp - 0x58], xmm0
movups xmm0, xmmword [ebp - 0x3d0]
movups xmmword [ebp - 0x48], xmm0
movups xmm0, xmmword [ebp - 0x3e0]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [ebp - 0x3b0]
movups xmmword [ebp - 0x28], xmm0
call fcn.00407b20
movss xmm6, dword [ebp - 0x6c4]
movss xmm7, dword [ebp - 0x6c8]
movss xmm0, dword [ebp - 0x58]
movss xmm4, dword [ebp - 0x54]
movss xmm2, dword [ebp - 0x6c0]
movss xmm5, dword [ebp - 0x44]
mulss xmm0, xmm7
mulss xmm4, xmm6
movss xmm1, dword [ebp - 0x34]
mulss xmm5, xmm6
addss xmm4, xmm0
movss xmm3, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x50]
mulss xmm0, xmm2
mulss xmm1, xmm6
addss xmm4, xmm0
mulss xmm3, xmm6
movss xmm0, dword [ebp - 0x48]
mulss xmm0, xmm7
addss xmm4, dword [ebp - 0x4c]
addss xmm5, xmm0
movss xmm0, dword [ebp - 0x40]
mulss xmm0, xmm2
addss xmm5, xmm0
movss xmm0, dword [ebp - 0x38]
mulss xmm0, xmm7
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x30]
mulss xmm0, xmm2
addss xmm5, dword [ebp - 0x3c]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x28]
mulss xmm0, xmm7
addss xmm1, dword [ebp - 0x2c]
addss xmm3, xmm0
movss xmm0, dword [ebp - 0x20]
mulss xmm0, xmm2
addss xmm3, xmm0
movss xmm0, dword [0x45accc]
addss xmm3, dword [ebp - 0x1c]
comiss xmm0, xmm3
jae 0x401409
movss xmm0, dword [0x45ace8]
comiss xmm0, xmm1
ja 0x401409
movss xmm1, dword [0x45ad54]
xorps xmm0, xmm0
divss xmm1, xmm3
cvtsi2ss xmm0, dword [0x45e6d8]
movaps xmm2, xmm1
mulss xmm1, xmm5
mulss xmm2, xmm4
addss xmm1, dword [0x45ad54]
addss xmm2, dword [0x45ad54]
mulss xmm1, dword [0x45ad14]
mulss xmm2, dword [0x45ad14]
mulss xmm2, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [0x45e6dc]
mulss xmm1, xmm0
subss xmm0, xmm1
jmp 0x401412
xorps xmm0, xmm0
xorps xmm3, xmm3
xorps xmm2, xmm2
xorps xmm4, xmm4
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jp 0x401434
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jp 0x401434
ucomiss xmm3, xmm4
lahf
test ah, 0x44
jnp 0x40172e
movups xmm0, xmmword [ebp - 0x3c0]
lea ecx, [ebp - 0x58]
movss xmm2, dword [ebp - 0x6c0]
movaps xmm3, xmm7
addss xmm2, dword [0x45ae10]
movups xmmword [ebp - 0x58], xmm0
movups xmm0, xmmword [ebp - 0x3d0]
movaps xmm1, xmm6
addss xmm3, xmm4
movups xmmword [ebp - 0x48], xmm0
movups xmm0, xmmword [ebp - 0x3e0]
addss xmm1, xmm4
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [ebp - 0x3b0]
movups xmmword [ebp - 0x28], xmm0
call fcn.00407b20
movss xmm0, dword [ebp - 0x58]
movss xmm7, dword [ebp - 0x54]
movss xmm5, dword [ebp - 0x44]
mulss xmm0, xmm3
mulss xmm7, xmm1
movss xmm6, dword [ebp - 0x34]
mulss xmm5, xmm1
addss xmm7, xmm0
mulss xmm6, xmm1
movss xmm0, dword [ebp - 0x50]
mulss xmm0, xmm2
addss xmm7, xmm0
movss xmm0, dword [ebp - 0x48]
mulss xmm0, xmm3
addss xmm5, xmm0
movss xmm0, dword [ebp - 0x40]
mulss xmm0, xmm2
addss xmm7, dword [ebp - 0x4c]
addss xmm5, xmm0
movss xmm0, dword [ebp - 0x38]
mulss xmm0, xmm3
addss xmm5, dword [ebp - 0x3c]
addss xmm6, xmm0
movss xmm0, dword [ebp - 0x30]
mulss xmm0, xmm2
movss dword [ebp - 0x370], xmm5
movss xmm5, dword [ebp - 0x28]
addss xmm6, xmm0
movss xmm0, dword [ebp - 0x24]
mulss xmm0, xmm1
mulss xmm5, xmm3
addss xmm6, dword [ebp - 0x2c]
addss xmm5, xmm0
movss xmm0, dword [ebp - 0x20]
mulss xmm0, xmm2
addss xmm5, xmm0
movss xmm0, dword [0x45accc]
addss xmm5, dword [ebp - 0x1c]
comiss xmm0, xmm5
movss dword [ebp - 0x36c], xmm5
jae 0x4015aa
movss xmm0, dword [0x45ace8]
comiss xmm0, xmm6
ja 0x4015aa
movss xmm4, dword [0x45ad54]
xorps xmm3, xmm3
movaps xmm1, xmm4
xorps xmm0, xmm0
divss xmm1, xmm5
cvtsi2ss xmm3, dword [0x45e6dc]
cvtsi2ss xmm0, dword [0x45e6d8]
movaps xmm2, xmm1
mulss xmm1, dword [ebp - 0x370]
mulss xmm2, xmm7
addss xmm1, xmm4
addss xmm2, xmm4
mulss xmm1, dword [0x45ad14]
mulss xmm2, dword [0x45ad14]
mulss xmm1, xmm3
mulss xmm2, xmm0
subss xmm3, xmm1
jmp 0x4015b8
xorps xmm2, xmm2
movss dword [ebp - 0x36c], xmm4
xorps xmm3, xmm3
xorps xmm0, xmm0
movss dword [ebp - 0x370], xmm3
cvtsi2ss xmm0, esi
movss dword [ebp - 0x374], xmm2
movaps xmm1, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, edi
subss xmm1, xmm2
subss xmm0, xmm3
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm0, xmm1
call fcn.00401000
movaps xmm3, xmm0
comiss xmm3, dword [0x45e11c]
ja 0x40172e
movss xmm0, dword [ebp - 0x374]
xorps xmm4, xmm4
movss xmm1, dword [ebp - 0x370]
movss xmm2, dword [ebp - 0x36c]
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jp 0x40163c
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x40163c
ucomiss xmm2, xmm4
lahf
test ah, 0x44
jnp 0x40172e
mov eax, dword [0x45e128]
test eax, eax
jne 0x4016dd
movss xmm2, dword [ebp - 0x9d8]
movss xmm0, dword [ebp - 0x9d4]
subss xmm0, dword [ebp - 0x6c4]
subss xmm2, dword [ebp - 0x6c8]
movss xmm1, dword [ebp - 0x9d0]
subss xmm1, dword [ebp - 0x6c0]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.00401000
movss xmm3, dword [ebp - 0x378]
comiss xmm3, xmm0
jbe 0x40172e
movss dword [ebp - 0x378], xmm0
movss xmm0, dword [ebp - 0x374]
movss dword [ebp - 0x384], xmm0
movss xmm0, dword [ebp - 0x370]
movss dword [ebp - 0x37c], xmm0
movss xmm0, dword [ebp - 0x36c]
movss dword [ebp - 0x388], xmm0
jmp 0x40170f
cmp eax, 1
jne 0x40172e
movss xmm4, dword [ebp - 0x378]
comiss xmm4, xmm3
jbe 0x40172e
movss dword [ebp - 0x378], xmm3
movss dword [ebp - 0x384], xmm0
movss dword [ebp - 0x37c], xmm1
movss dword [ebp - 0x388], xmm2
mov ecx, 0xc4
lea edi, [ebp - 0x368]
lea esi, [ebp - 0x6f0]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x39c]
mov esi, dword [ebp - 0x398]
mov eax, dword [ebp - 0x38c]
add eax, 4
sub dword [ebx + 8], 1
mov dword [ebp - 0x38c], eax
jne 0x401212
movss xmm0, dword [ebp - 0x338]
movss dword [ebp - 0x36c], xmm0
movss xmm0, dword [ebp - 0x33c]
movss dword [ebp - 0x374], xmm0
movss xmm0, dword [ebp - 0x340]
movss dword [ebp - 0x370], xmm0
cmp dword [ebp - 0x27c], 0
jle 0x4019a9
movss xmm1, dword [ebp - 0x384]
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x37c]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x4017be
ucomiss xmm2, xmm0
lahf
test ah, 0x44
jp 0x4017be
movss xmm3, dword [ebp - 0x388]
ucomiss xmm3, xmm0
lahf
test ah, 0x44
jnp 0x4019a9
cmp byte [0x45e127], 0
je 0x401812
movd xmm0, esi
lea eax, [ebp - 0x14]
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, dword [ebp - 0x380]
mov dword [esp], 0x40400000
push 0xff0000ff
push eax
movss dword [ebp - 0x390], xmm0
lea eax, [ebp - 0x390]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebp - 0x14], xmm1
movss dword [ebp - 0x10], xmm2
movss dword [ebp - 0x38c], xmm0
call fcn.0042d7b0
push 0x46
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8001
test cx, ax
je 0x4019a9
movss xmm1, dword [ebp - 0x370]
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x374]
addss xmm1, xmm0
addss xmm2, xmm0
mov dword [ebp - 0x38c], 0
movss xmm0, dword [ebp - 0x36c]
addss xmm0, dword [0x45acf4]
movss dword [ebp - 0x370], xmm1
movss dword [ebp - 0x374], xmm2
movss dword [ebp - 0x36c], xmm0
movaps xmm0, xmm1
subss xmm0, dword [ebp - 0x9d8]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x18], xmm0
movaps xmm0, xmm2
subss xmm0, dword [ebp - 0x9d4]
fld qword [ebp - 0x18]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
movss xmm2, dword [ebp - 0x9d4]
xorps xmm0, xmmword [0x45b250]
cvtss2sd xmm1, xmm0
subss xmm2, dword [ebp - 0x374]
divsd xmm1, qword [0x45adc0]
movss xmm3, dword [ebp - 0x9d8]
mulsd xmm1, qword [0x45ae00]
subss xmm3, dword [ebp - 0x370]
mulss xmm2, xmm2
subsd xmm1, qword [0x45ae00]
mulss xmm3, xmm3
cvtpd2ps xmm0, xmm1
movss xmm1, dword [ebp - 0x9d0]
addss xmm2, xmm3
movaps xmmword [ebp - 0x3b0], xmm0
movss xmm0, dword [ebp - 0x36c]
subss xmm1, xmm0
subss xmm0, dword [ebp - 0x9d0]
mulss xmm1, xmm1
movss dword [ebp - 0x36c], xmm0
addss xmm2, xmm1
movaps xmm0, xmm2
call fcn.00401000
movss xmm1, dword [ebp - 0x36c]
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_asin_precise
cvtsd2ss xmm0, xmm0
mov eax, dword [ebp - 0x38c]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push 0xc
movaps xmm1, xmmword [ebp - 0x3b0]
mulss xmm0, dword [0x45ae70]
push eax
mov eax, dword [ebp - 0x3a0]
add eax, 0x34
cvtss2sd xmm0, xmm0
push eax
push dword [0x45e6f4]
divsd xmm0, qword [0x45adc0]
cvtsd2ss xmm0, xmm0
unpcklps xmm1, xmm0
movq qword [ebp - 0x18], xmm1
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004522e5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret