Function at 0x10167270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018bea1
push eax
mov dword fs:[0], esp
sub esp, 0x18
cmp byte [0x10301c84], 0
push ebx
push esi
push edi
je 0x101672b5
cmp byte [0x102fdd18], 0
je 0x101672b5
mov ecx, dword [0x10243e1c]
push str.lastdisguise
mov eax, dword [ecx]
mov eax, dword [eax + 0x1a8]
call eax
mov edi, dword [0x102412a0]
mov esi, dword [0x102412a4]
mov byte [0x102fdaf8], 0
mov byte [0x102fdd18], 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
test edi, edi
je 0x10167585
test esi, esi
je 0x10167585
cmp byte [0x10302170], 0
je 0x10167585
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10243ad0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103074f8]
mov dword [ebp - 0x18], ecx
cmp eax, dword [ecx + 4]
jle 0x10167348
push 0x103074f8
call fcn.10189be4
add esp, 4
cmp dword [0x103074f8], 0xffffffff
jne 0x10167348
push 0x103074f8
mov dword [0x10307500], 0
mov dword [0x103074fc], 0x10302194
call fcn.10189b93
add esp, 4
mov ecx, dword [0x10302194]
test ecx, ecx
je 0x1016738d
mov eax, dword [0x103074fc]
mov eax, dword [eax]
test eax, eax
jne 0x10167366
mov dword [0x10307500], eax
xor al, al
jmp 0x10167381
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
movzx ecx, al
mov dword [0x10307500], ecx
mov ecx, dword [0x10302194]
test al, al
jne 0x1016738d
test ecx, ecx
jne 0x10167585
mov ecx, dword [0x102fd8c0]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x10167585
mov ecx, dword [0x102fd964]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x10167585
cmp byte [0x102fd880], al
jne 0x10167585
mov ebx, dword [ebp + 8]
push ebx
push ecx
push edi
call fcn.10165d40
cmp byte [0x10301cf0], 0
je 0x1016756d
cmp byte [0x102fd99c], 0
je 0x1016756d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 7
jne 0x1016756d
cmp byte [0x102fd894], 0
jne 0x1016756d
cmp byte [0x10301d38], 0
je 0x10167428
push ebx
push esi
push edi
mov ecx, 0x102fdd10
call fcn.10166630
jmp 0x10167559
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
sub esp, 0xc
mov edi, esp
push eax
call fcn.100786b0
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov ecx, eax
call edx
movss xmm2, dword [esi]
movss xmm1, dword [esi + 4]
movss xmm0, dword [esi + 8]
addss xmm2, dword [eax]
addss xmm1, dword [eax + 4]
addss xmm0, dword [eax + 8]
mov esi, dword [ebp - 0x14]
lea eax, [ebx + 0xc]
push eax
movss dword [edi], xmm2
movss dword [edi + 4], xmm1
movss dword [edi + 8], xmm0
mov edi, dword [ebp - 0x10]
push esi
push edi
call fcn.10166030
mov dword [ebp + 8], eax
test eax, eax
je 0x10167559
push eax
push esi
call fcn.10165f80
test al, al
je 0x10167559
or dword [ebx + 0x24], 1
cmp byte [0x1030516c], 0
mov byte [0x102fdd18], 1
je 0x10167559
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x102fd87c]
cmp eax, dword [ecx + 4]
jle 0x10167509
push 0x102fd87c
call fcn.10189be4
add esp, 4
cmp dword [0x102fd87c], 0xffffffff
jne 0x10167509
push str.m_flSimulationTime
push str.DT_BaseEntity
mov dword [ebp - 4], 0
call fcn.1006e7b0
push 0x102fd87c
mov dword [0x102fd888], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10189b93
add esp, 4
mov eax, dword [0x10243ea0]
movss xmm0, dword [0x102fd904]
mov ecx, dword [ebp + 8]
movss xmm2, dword [eax + 0x1c]
divss xmm0, xmm2
movaps xmm1, xmm2
mulss xmm1, dword [0x1022b69c]
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [0x102fd888]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, dword [eax + ecx]
divss xmm0, xmm2
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebx + 8], eax
test byte [ebx + 0x24], 1
je 0x10167566
mov byte [0x102fd894], 1
mov byte [0x102fdaf8], 1
push ebx
push ecx
push edi
call fcn.100b1af0
push ebx
push esi
push edi
call fcn.100b06e0
push ebx
push esi
push edi
call fcn.100b3dc0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4