Function at 0x10012650
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
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100de771
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x68
cmp dword [0x1019c518], 0
push esi
push edi
jle 0x10012824
push dword [0x1019c51c]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10012824
mov eax, dword [0x1019c324]
mov ecx, dword [0x101a3f58]
mov edi, dword [eax]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1019c86c]
cmp eax, dword [ecx + 4]
jg 0x10012837
mov eax, dword [0x1019c82c]
mov esi, dword [0x1019c868]
push ecx
mov eax, dword [eax]
mov esi, dword [esi + edi]
mov edx, dword [eax + 0x10]
mov eax, esp
mov dword [eax], esi
mov ecx, dword [0x1019c82c]
call edx
test eax, eax
je 0x10012824
movd xmm0, dword [0x1019c518]
mov eax, dword [0x1019c324]
cvtdq2ps xmm0, xmm0
mov ecx, dword [eax]
mulss xmm0, dword [0x100e4598]
movss dword [ebp - 0x18], xmm0
call fcn.10012230
movq xmm0, qword [eax]
movq qword [ebp - 0x44], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], 0
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.1003f070
movss xmm1, dword [ebp - 0x40]
movss xmm0, dword [ebp - 0x44]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1001276f
sqrtsd xmm0, xmm0
jmp 0x10012774
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x38]
cvtsd2ss xmm0, xmm0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0x7f800000
push eax
mov dword [ebp - 0x34], 0x7f800000
mov dword [ebp - 0x38], 0x7f800000
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [edi + 0x10]
subss xmm0, dword [ebp - 0x28]
movss dword [ebp - 0x28], xmm0
call fcn.1003ee60
mov eax, dword [0x1019c82c]
add esp, 0xc
movss xmm0, dword [ebp - 0x14]
movss xmm1, dword [ebp - 0x38]
xorps xmm0, xmmword [0x100e4350]
mov eax, dword [eax]
mulss xmm1, xmm0
mov edx, dword [eax + 0x10]
mov eax, esp
movss dword [ebp - 0x1c], xmm1
movss xmm1, dword [ebp - 0x34]
mulss xmm1, xmm0
mov dword [eax], esi
mov ecx, dword [0x1019c82c]
movss dword [ebp - 0x20], xmm1
call edx
mov ecx, eax
call fcn.10087150
movss xmm1, dword [ebp - 0x18]
movss xmm0, dword [ebp - 0x14]
mulss xmm1, dword [eax + 0x134]
comiss xmm0, xmm1
jb 0x10012824
movss xmm0, dword [ebp - 0x1c]
movss dword [edi + 0x24], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [edi + 0x28], xmm0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x1019c86c
call fcn.100dc42f
add esp, 4
cmp dword [0x1019c86c], 0xffffffff
jne 0x100126ca
mov dword [ebp - 4], 0
call fcn.1000b080
mov ecx, dword [0x100e4270]
mov esi, eax
movq xmm0, qword [str.m_hActiveWeapon]
mov dword [ebp - 0x6c], ecx
movzx ecx, word [0x100e4274]
mov word [ebp - 0x68], cx
mov cl, byte [0x100e4276]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0xf
movq qword [ebp - 0x74], xmm0
mov byte [ebp - 0x66], cl
mov byte [ebp - 0x65], 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x5c]
push 0x20
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.10003380
movups xmm0, xmmword [str.DT_BaseCombatCharacter]
mov dword [ebp - 0x4c], 0x16
mov dword [ebp - 0x48], 0x1f
movups xmmword [eax], xmm0
mov ecx, dword [0x100e4288]
mov dword [eax + 0x10], ecx
movzx ecx, word [0x100e428c]
mov word [eax + 0x14], cx
mov byte [eax + 0x16], 0
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.10089110
mov edx, dword [ebp - 0x48]
mov dword [0x1019c868], eax
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x10012945
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012939
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012983
jmp 0x10012939
push edx
push ecx
call fcn.100dbfa3
add esp, 8
jmp 0x10012945
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10012995
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012989
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10012989
jmp 0x10012983
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100dbfa3
add esp, 8
jmp 0x10012995
push 0x1019c86c
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
call fcn.100dc3e5
add esp, 4
jmp 0x100126ca