Function at 0x1003a7a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040e3d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x1004b0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005b2f8]
mov edi, dword [ebx + 8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x1003b259
mov eax, dword [0x1005b2f4]
mov eax, dword [eax + 8]
cmp dword [ecx + eax], 0
jle 0x1003b259
mov eax, dword [edi + 0x1fd4]
movq xmm0, qword [edi + 0x1fcc]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 0
push eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
movq qword [ebp - 0x50], xmm0
call fcn.1003cd80
test al, al
je 0x1003a894
movd xmm0, dword [0x1005b9b8]
xor ecx, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [ebp - 0x58]
movd xmm0, dword [0x1005b9b4]
cvtdq2ps xmm0, xmm0
seta cl
xor eax, eax
comiss xmm0, dword [ebp - 0x5c]
seta al
test eax, eax
je 0x1003a894
test ecx, ecx
jne 0x1003b259
movss xmm0, dword [edi + 0x1fcc]
lea eax, [ebp - 0x90]
xorps xmm1, xmm1
addss xmm0, xmm1
push eax
lea eax, [ebp - 0x50]
push eax
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [edi + 0x1fd0]
addss xmm0, xmm1
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [edi + 0x1fd4]
addss xmm0, dword [0x10046118]
movss dword [ebp - 0x48], xmm0
call fcn.1003cd80
test al, al
je 0x1003a91c
movd xmm0, dword [0x1005b9b8]
xor ecx, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [ebp - 0x8c]
movd xmm0, dword [0x1005b9b4]
cvtdq2ps xmm0, xmm0
seta cl
xor eax, eax
comiss xmm0, dword [ebp - 0x90]
seta al
test eax, eax
je 0x1003a91c
test ecx, ecx
jne 0x1003b259
mov eax, dword [0x1005b2f4]
lea edx, [ebp - 0x68]
mov ecx, dword [0x1005b35c]
movss xmm1, dword [edi + 0x3f60]
push edx
movzx eax, byte [eax + 0x3d3]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
movd xmm0, eax
mov eax, dword [ecx]
cvtdq2ps xmm0, xmm0
minss xmm1, xmm0
movss dword [ebp - 0xb8], xmm1
call dword [eax + 0x48]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.10001fe0
mov eax, dword [0x1005b2f8]
mov ecx, dword [0x1005b09c]
mov esi, dword [eax + 0x14]
mov eax, dword fs:[0x2c]
mov dword [ebp - 0xa8], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1005ba48]
mov dword [ebp - 0xa4], ecx
cmp eax, dword [ecx + 4]
jle 0x1003a9ed
push 0x1005ba48
call fcn.1003d5d2
add esp, 4
cmp dword [0x1005ba48], 0xffffffff
jne 0x1003a9ed
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x44]
call eax
push str.m_vecAbsOrigin
push eax
call fcn.1003d150
push 0x1005ba48
mov dword [0x1005ba44], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1003d581
add esp, 4
mov esi, dword [0x1005b2f4]
mov eax, dword [0x1005b2f8]
mov edx, dword [0x1005ba44]
mov ecx, dword [esi + 0x1c]
add ecx, dword [eax + 0x14]
cmp dword [esi + 0x430], 1
mov eax, dword [ebp - 0xa8]
movss xmm1, dword [eax + edx]
movss xmm0, dword [eax + edx + 4]
addss xmm1, dword [ecx]
addss xmm0, dword [ecx + 4]
jne 0x1003abf2
subss xmm1, dword [edi + 0x1fcc]
subss xmm0, dword [edi + 0x1fd0]
movss dword [ebp - 0xa8], xmm1
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
xorps xmm2, xmm2
xorps xmm1, xmm1
cvtsd2ss xmm2, xmm0
movss xmm0, dword [ebp - 0xa8]
comiss xmm0, xmm1
mulss xmm2, dword [0x10046104]
jb 0x1003aa76
addss xmm2, dword [0x10046164]
movss xmm0, dword [ebp - 0x64]
subss xmm0, xmm2
subss xmm0, dword [0x10046130]
mulss xmm0, dword [0x10045f58]
movss dword [ebp - 0xa4], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mulss xmm1, dword [0x10046180]
addss xmm1, dword [0x1005b9bc]
movss dword [ebp - 0x44], xmm1
movss xmm1, dword [ebp - 0xa4]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mulss xmm0, dword [0x10046180]
addss xmm0, dword [0x1005b9c0]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [ebp - 0xa4]
addss xmm0, dword [0x10045f60]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x90], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movsd xmm0, qword [ebp - 0x90]
mulss xmm1, dword [0x1004617c]
addss xmm1, dword [0x1005b9bc]
movss dword [ebp - 0x34], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mulss xmm0, dword [0x1004617c]
addss xmm0, dword [0x1005b9c0]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0xa4]
subss xmm0, dword [0x10045f60]
movss dword [ebp - 0xa4], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mulss xmm1, dword [0x1004617c]
addss xmm1, dword [0x1005b9bc]
movss dword [ebp - 0x24], xmm1
movss xmm1, dword [ebp - 0xa4]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mulss xmm0, dword [0x1004617c]
addss xmm0, dword [0x1005b9c0]
movss dword [ebp - 0x20], xmm0
mov al, byte [esi + 0x3d0]
mov dh, byte [esi + 0x3d1]
mov dl, byte [esi + 0x3d2]
mov byte [ebp - 0x9d], al
jmp 0x1003b218
cmp byte [esi + 0x2f8], 0
je 0x1003ad1b
mov eax, dword [esi + 0x380]
mov ecx, dword [esi + 0x2f4]
sub eax, 0
je 0x1003ac53
sub eax, 1
je 0x1003ac33
sub eax, 1
jne 0x1003ad1b
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [0x1005b2f4]
test ax, ax
setne al
jmp 0x1003ac4b
mov eax, dword [0x1005b304]
cmp ecx, 0x100
jae 0x1003b279
mov al, byte [eax + ecx + 0x118]
test al, al
je 0x1003ad1b
mov eax, dword [0x1005b2f8]
mov ecx, dword [ebp - 0xa4]
mov byte [ebp - 0x9d], 1
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xac], eax
mov eax, dword [0x1005ba48]
cmp eax, dword [ecx + 4]
jle 0x1003accf
push 0x1005ba48
call fcn.1003d5d2
add esp, 4
cmp dword [0x1005ba48], 0xffffffff
jne 0x1003acc9
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 4], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
push str.m_vecAbsOrigin
push eax
call fcn.1003d150
push 0x1005ba48
mov dword [0x1005ba44], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1003d581
add esp, 4
mov esi, dword [0x1005b2f4]
mov edx, dword [0x1005ba44]
mov eax, dword [ebp - 0xac]
mov ecx, dword [esi + 0x28]
movss xmm3, dword [0x100460fc]
movss xmm2, dword [eax + edx]
movss xmm4, dword [eax + edx + 4]
mov eax, dword [0x1005b2f8]
mov eax, dword [eax + 0x14]
movss xmm0, dword [ecx + eax]
mulss xmm0, dword [0x100460c4]
mov ecx, dword [ebp - 0xac]
subss xmm3, xmm0
addss xmm3, dword [ecx + edx + 8]
jmp 0x1003ade2
movss xmm0, dword [ebp - 0x68]
mulss xmm0, dword [0x10045f58]
mov byte [ebp - 0x9d], 0
movss dword [ebp - 0xb4], xmm0
call fcn.10001d00
movss dword [ebp - 0xa8], xmm0
movss xmm0, dword [ebp - 0x64]
mulss xmm0, dword [0x10045f58]
movss dword [ebp - 0xac], xmm0
call fcn.10001d00
mulss xmm0, dword [ebp - 0xa8]
movss dword [ebp - 0xb0], xmm0
movss xmm0, dword [ebp - 0xac]
call fcn.10001d40
mulss xmm0, dword [ebp - 0xa8]
movss dword [ebp - 0xa4], xmm0
movss xmm0, dword [ebp - 0xb4]
call fcn.10001d40
movss xmm1, dword [0x100460f4]
movaps xmm3, xmm0
xorps xmm3, xmmword [0x10046220]
mov eax, dword [0x1005b2f8]
movss xmm2, dword [ebp - 0xb0]
movss xmm4, dword [ebp - 0xa4]
mulss xmm3, xmm1
mulss xmm2, xmm1
addss xmm3, dword [eax + 0x44]
mulss xmm4, xmm1
addss xmm2, dword [eax + 0x3c]
subss xmm3, dword [0x10046078]
addss xmm4, dword [eax + 0x40]
movaps xmm1, xmm4
movss dword [ebp - 0xb0], xmm2
subss xmm1, dword [edi + 0x1fd0]
subss xmm2, dword [edi + 0x1fcc]
movss dword [ebp - 0xac], xmm3
subss xmm3, dword [edi + 0x1fd4]
movss dword [ebp - 0xa4], xmm4
movaps xmm0, xmm1
movss dword [ebp - 0x88], xmm1
mulss xmm0, xmm1
movaps xmm1, xmm2
mulss xmm1, xmm2
movss dword [ebp - 0xa8], xmm2
movss dword [ebp - 0xb4], xmm3
addss xmm0, xmm1
call fcn.10001d60
movss xmm1, dword [ebp - 0xb4]
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x10046104]
movss dword [ebp - 0x5c], xmm0
movss xmm0, dword [ebp - 0x88]
divss xmm0, dword [ebp - 0xa8]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
xorps xmm2, xmm2
mov dword [ebp - 0x54], 0
cvtsd2ss xmm2, xmm0
movss xmm0, dword [ebp - 0xa8]
xorps xmm1, xmm1
comiss xmm0, xmm1
mulss xmm2, dword [0x10046104]
movss dword [ebp - 0x58], xmm2
jb 0x1003aeb9
addss xmm2, dword [0x10046164]
movss dword [ebp - 0x58], xmm2
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10001fe0
cmp byte [ebp - 0x9d], 0
mov eax, 0x22
movss xmm0, dword [ebp - 0xb0]
mov esi, 0x1d
movss xmm1, dword [ebp - 0xac]
cmovne esi, eax
movss xmm2, dword [ebp - 0x58]
xorps xmm3, xmm3
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [ebp - 0xa4]
movss dword [ebp - 0x4c], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x48], xmm1
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x1003af39
movq xmm0, qword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
movq qword [ebp - 0x74], xmm0
movaps xmm0, xmm1
addss xmm0, xmm3
mov dword [ebp - 0x6c], eax
movss dword [ebp - 0xa8], xmm0
jmp 0x1003afb2
movaps xmm0, xmm2
mulss xmm0, dword [0x10045f58]
movss dword [ebp - 0x88], xmm0
call fcn.10001d00
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0xb0]
movss dword [ebp - 0x74], xmm0
movss xmm0, dword [ebp - 0x88]
call fcn.10001d40
movd xmm1, esi
xorps xmm3, xmm3
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm1
movss xmm1, dword [ebp - 0xac]
movaps xmm2, xmm1
addss xmm0, dword [ebp - 0xa4]
addss xmm2, xmm3
movss dword [ebp - 0x70], xmm0
movss dword [ebp - 0xa8], xmm2
movss dword [ebp - 0x6c], xmm2
movss xmm2, dword [ebp - 0x58]
movzx esi, byte [ebp - 0x9d]
movss xmm0, dword [ebp - 0xb0]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [ebp - 0xa4]
lea eax, [esi + 5]
movss dword [ebp - 0x4c], xmm0
lea esi, [esi*2 + 0x18]
movd xmm4, eax
movd xmm0, esi
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm4, xmm4
ucomiss xmm0, xmm3
movss dword [ebp - 0x48], xmm1
movss dword [ebp - 0xb4], xmm4
lahf
test ah, 0x44
jp 0x1003b013
movq xmm0, qword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
movq qword [ebp - 0x80], xmm0
mov dword [ebp - 0x78], eax
jmp 0x1003b08c
movaps xmm0, xmm4
addss xmm0, xmm2
mulss xmm0, dword [0x10045f58]
movss dword [ebp - 0x88], xmm0
call fcn.10001d00
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0xb0]
movss dword [ebp - 0x80], xmm0
movss xmm0, dword [ebp - 0x88]
call fcn.10001d40
movss xmm4, dword [ebp - 0xb4]
xorps xmm3, xmm3
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm1
movss xmm1, dword [ebp - 0xac]
addss xmm0, dword [ebp - 0xa4]
movss dword [ebp - 0x7c], xmm0
movss xmm0, dword [ebp - 0xa8]
movss dword [ebp - 0x78], xmm0
movss xmm0, dword [ebp - 0xb0]
movss dword [ebp - 0x50], xmm0
movss xmm0, dword [ebp - 0xa4]
movss dword [ebp - 0x4c], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x48], xmm1
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x1003b0cd
movq xmm0, qword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x54], eax
jmp 0x1003b135
movss xmm0, dword [ebp - 0x58]
subss xmm0, xmm4
mulss xmm0, dword [0x10045f58]
movss dword [ebp - 0x88], xmm0
call fcn.10001d00
xorps xmm1, xmm1
cvtsi2ss xmm1, esi
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0xb0]
movss dword [ebp - 0x5c], xmm0
movss xmm0, dword [ebp - 0x88]
call fcn.10001d40
xorps xmm1, xmm1
cvtsi2ss xmm1, esi
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0xa4]
movss dword [ebp - 0x58], xmm0
movss xmm0, dword [ebp - 0xa8]
movss dword [ebp - 0x54], xmm0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], 0
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x8c], 0
push eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
call fcn.1003cd80
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.1003cd80
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1003cd80
movss xmm0, dword [ebp - 0x90]
mov eax, dword [0x1005b2f4]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [ebp - 0x8c]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [ebp - 0x9c]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [ebp - 0x98]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x50]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x4c]
movss dword [ebp - 0x20], xmm0
mov cl, byte [eax + 0x3d0]
mov dh, byte [eax + 0x3d1]
mov dl, byte [eax + 0x3d2]
mov byte [ebp - 0x9d], cl
cvttss2si eax, dword [ebp - 0xb8]
mov ecx, dword [0x1005b350]
mov esi, dword [ecx]
movzx eax, al
push eax
movzx eax, dl
push eax
movzx eax, dh
push eax
movzx eax, byte [ebp - 0x9d]
push eax
mov eax, dword [esi + 0x3c]
call eax
mov ecx, dword [0x1005b350]
lea edx, [ebp - 0x44]
push 1
push edx
push 3
mov eax, dword [ecx]
mov eax, dword [eax + 0x1a8]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003d53a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1001b160
int3