Function at 0x1002ee90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040921
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1004b0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005b2f8]
mov edi, dword [ebp + 8]
mov esi, dword [0x1005b310]
mov dword [ebp - 0x88], edi
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x84], esi
test edx, edx
je 0x1002f444
mov ecx, dword [0x1005b2f4]
mov eax, dword [ecx + 8]
cmp dword [edx + eax], 0
jle 0x1002f444
cmp byte [ecx + 0x2f8], 0
je 0x1002efe8
cmp byte [esi + 0x74c], 0
jne 0x1002ef7c
mov eax, dword [ecx + 0x380]
mov edx, dword [ecx + 0x2f4]
sub eax, 0
je 0x1002ef57
sub eax, 1
je 0x1002ef3b
sub eax, 1
jne 0x1002ef73
push edx
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x1005b2f4]
test ax, ax
setne al
jmp 0x1002ef53
mov eax, dword [0x1005b304]
cmp edx, 0x100
jae 0x1002f484
mov al, byte [eax + edx + 0x118]
test al, al
je 0x1002ef73
mov ecx, dword [0x1005b35c]
push str.thirdperson
mov eax, dword [ecx]
call dword [eax + 0x1b0]
mov byte [esi + 0x74c], 1
jmp 0x1002efe2
cmp byte [esi + 0x74c], 0
je 0x1002efe8
mov eax, dword [ecx + 0x380]
mov edx, dword [ecx + 0x2f4]
sub eax, 0
je 0x1002efe8
sub eax, 1
je 0x1002efac
sub eax, 1
jne 0x1002efc8
push edx
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x1005b2f4]
test ax, ax
setne al
jmp 0x1002efc4
mov eax, dword [0x1005b304]
cmp edx, 0x100
jae 0x1002f484
mov al, byte [eax + edx + 0x118]
test al, al
jne 0x1002efe8
mov ecx, dword [0x1005b35c]
push str.firstperson
mov eax, dword [ecx]
call dword [eax + 0x1b0]
mov byte [esi + 0x74c], 0
mov ecx, dword [0x1005b2f4]
cmp byte [ecx + 0x398], 0
je 0x1002f0bd
cmp byte [esi + 0x74c], 0
jne 0x1002f0bd
mov eax, dword [0x1005b2f8]
mov edi, dword [ecx + 0x68]
mov esi, dword [ecx + 0x58]
mov ecx, dword [ecx + 0x4d0]
add edi, dword [eax + 0x14]
add esi, dword [eax + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x74], eax
call dword [ebp - 0x74]
movss xmm2, dword [0x10045fbc]
movss xmm6, dword [esi + 4]
movss xmm3, dword [edi + 4]
movss xmm5, dword [edi + 8]
movss xmm7, dword [esi + 8]
fstp dword [ebp - 0x74]
movss xmm4, dword [ebp - 0x74]
movaps xmm1, xmm4
mulss xmm6, xmm4
mov ecx, dword [0x1005b2f4]
mulss xmm1, dword [esi]
mov esi, dword [ebp - 0x84]
mulss xmm6, xmm2
mulss xmm1, xmm2
mulss xmm7, xmm4
addss xmm6, xmm3
addss xmm1, dword [edi]
mov edi, dword [ebp - 0x88]
mulss xmm7, xmm2
movss xmm0, dword [edi + 0xc4]
subss xmm0, xmm1
addss xmm7, xmm5
movss dword [edi + 0xc4], xmm0
movss xmm0, dword [edi + 0xc8]
subss xmm0, xmm6
movss dword [edi + 0xc8], xmm0
movss xmm0, dword [edi + 0xcc]
subss xmm0, xmm7
movss dword [edi + 0xcc], xmm0
movss xmm0, dword [ecx + 0x314]
ucomiss xmm0, dword [0x10045f3c]
lahf
test ah, 0x44
jnp 0x1002f0f4
cmp byte [ecx + 0x399], 0
jne 0x1002f0ec
mov eax, dword [0x1005b2f8]
mov ecx, dword [ecx + 0x6c]
mov eax, dword [eax + 0x14]
cmp byte [ecx + eax], 0
jne 0x1002f0f4
movss dword [edi + 0xb0], xmm0
cmp byte [esi + 0x74c], 0
je 0x1002f467
mov ecx, dword [0x1005b35c]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ecx]
push edx
call dword [eax + 0x48]
movss xmm1, dword [ebp - 0x18]
movss xmm2, dword [ebp - 0x1c]
movss xmm0, dword [ebp - 0x14]
movss dword [edi + 0xc8], xmm1
addss xmm1, dword [0x10046164]
movss dword [edi + 0xc4], xmm2
xorps xmm2, xmmword [0x10046220]
movss dword [edi + 0xcc], xmm0
movss dword [ebp - 0x7c], xmm2
comiss xmm1, dword [0x10046164]
movss dword [ebp - 0x1c], xmm2
movss dword [ebp - 0x78], xmm1
ja 0x1002f180
movss xmm0, dword [0x100461d4]
comiss xmm0, xmm1
jbe 0x1002f1d5
movaps xmm0, xmm1
divss xmm0, dword [0x10046188]
call fcn.10001d20
movss dword [ebp - 0x74], xmm0
fld dword [ebp - 0x74]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [ebp - 0x78]
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x7c]
add esp, 4
fstp dword [ebp - 0x80]
comiss xmm0, xmm1
movss xmm0, dword [ebp - 0x80]
mulss xmm0, dword [0x10046188]
jbe 0x1002f1cc
addss xmm1, xmm0
jmp 0x1002f1d0
subss xmm1, xmm0
movss dword [ebp - 0x78], xmm1
mulss xmm2, dword [0x10045f58]
movss dword [ebp - 0x18], xmm1
movaps xmm0, xmm2
movss dword [ebp - 0x7c], xmm2
call fcn.10001d40
movss dword [ebp - 0x80], xmm0
movss xmm0, dword [ebp - 0x7c]
call fcn.10001d00
movss dword [ebp - 0x74], xmm0
movss xmm0, dword [ebp - 0x78]
mulss xmm0, dword [0x10045f58]
movss dword [ebp - 0x78], xmm0
call fcn.10001d40
movss dword [ebp - 0x7c], xmm0
movss xmm0, dword [ebp - 0x78]
call fcn.10001d00
mov eax, dword [0x1005b2f8]
mulss xmm0, dword [ebp - 0x74]
mov ecx, dword [0x1005b09c]
movss xmm1, dword [ebp - 0x7c]
mov esi, dword [eax + 0x14]
mov eax, dword fs:[0x2c]
mulss xmm1, dword [ebp - 0x74]
mov dword [ebp - 0x74], esi
movss dword [ebp - 0x78], xmm0
mov ecx, dword [eax + ecx*4]
movss xmm0, dword [ebp - 0x80]
xorps xmm0, xmmword [0x10046220]
mov eax, dword [0x1005ba48]
movss dword [ebp - 0x7c], xmm1
movss dword [ebp - 0x80], xmm0
cmp eax, dword [ecx + 4]
jle 0x1002f2c4
push 0x1005ba48
call fcn.1003d5d2
add esp, 4
cmp dword [0x1005ba48], 0xffffffff
jne 0x1002f2c4
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]
push 0x30
mov ecx, dword [esi + 0x1c]
add ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x74]
push 0
movss xmm0, dword [edx + eax]
addss xmm0, dword [ecx]
movss dword [ebp - 0x84], xmm0
movss dword [ebp - 0xa0], xmm0
movss xmm0, dword [edx + eax + 4]
addss xmm0, dword [ecx + 4]
movss dword [ebp - 0x88], xmm0
movss dword [ebp - 0x9c], xmm0
movss xmm0, dword [edx + eax + 8]
lea eax, [ebp - 0x4c]
addss xmm0, dword [ecx + 8]
push eax
movss dword [ebp - 0x74], xmm0
movss dword [ebp - 0x98], xmm0
call sub.VCRUNTIME140.dll_memset
movss xmm0, dword [ebp - 0x78]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x68], 0
add esp, 0xc
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
movss xmm1, dword [esi + 0x2fc]
mulss xmm0, xmm1
push eax
lea eax, [ebp - 0xa0]
push eax
addss xmm0, dword [ebp - 0x84]
lea eax, [ebp - 0x70]
push eax
movss dword [ebp - 0x94], xmm0
movss xmm0, dword [ebp - 0x7c]
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0x88]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ebp - 0x80]
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0x74]
movss dword [ebp - 0x8c], xmm0
call fcn.1000d520
mov eax, dword [0x1005b2f4]
movss xmm1, dword [ebp - 0x78]
movss xmm0, dword [eax + 0x2fc]
subss xmm0, dword [0x1004608c]
mulss xmm0, dword [ebp - 0x44]
mulss xmm1, xmm0
addss xmm1, dword [ebp - 0x84]
movss dword [edi + 0xb8], xmm1
movss xmm1, dword [ebp - 0x7c]
mulss xmm1, xmm0
addss xmm1, dword [ebp - 0x88]
movss dword [edi + 0xbc], xmm1
movss xmm1, dword [ebp - 0x80]
mulss xmm1, xmm0
addss xmm1, dword [ebp - 0x74]
movss dword [edi + 0xc0], xmm1
jmp 0x1002f467
cmp byte [esi + 0x74c], 0
je 0x1002f467
mov ecx, dword [0x1005b35c]
push str.firstperson
mov eax, dword [ecx]
call dword [eax + 0x1b0]
mov byte [esi + 0x74c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003d53a
mov esp, ebp
pop ebp
ret 4
call fcn.1001b160
int3