Function at 0x1003d470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b009
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1007d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1014b680]
mov esi, dword [0x1014b74c]
cmp byte [eax], 0
je 0x1003d847
cmp byte [eax + 0x38], 0
je 0x1003d847
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x1003d847
call fcn.10003280
test al, al
je 0x1003d847
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x1003d847
push esi
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push edx
push ecx
push dword [eax + 0x74]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.10040490
test al, al
je 0x1003d847
mov eax, dword [0x1014b65c]
mov ecx, esi
push dword [eax + 0x74]
call fcn.1003dbc0
test al, al
je 0x1003d847
mov eax, dword [0x1014b680]
movzx eax, word [eax + 2]
test ax, ax
je 0x1003d847
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1003d847
cmp dword [0x1014a168], 0
jne 0x1003d576
push 0x1006e88c
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x1014a168], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
call ebx
cmp eax, dword [0x1014a168]
jne 0x1003d847
mov ecx, dword [0x1014b65c]
mov ecx, dword [ecx + 0x78]
call fcn.10054850
test al, al
je 0x1003d847
mov eax, dword [0x1014b680]
mov edi, dword [ebp + 8]
movzx eax, word [eax + 2]
test ax, ax
je 0x1003d6f7
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1003d6f7
cmp dword [0x1014a168], 0
jne 0x1003d5e5
push 0x1006e88c
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x1014a168], eax
jmp 0x1003d6f7
call ebx
cmp eax, dword [0x1014a168]
jne 0x1003d6f7
mov eax, dword [0x1014b65c]
mov ebx, dword [0x1014a028]
mov eax, dword [eax + 0x74]
mov dword [ebp + 8], eax
mov eax, dword fs:[0x2c]
mov ebx, dword [eax + ebx*4]
mov eax, dword [0x1014a080]
cmp eax, dword [ebx + 4]
jle 0x1003d65f
push 0x1014a080
call fcn.10065d80
add esp, 4
cmp dword [0x1014a080], 0xffffffff
jne 0x1003d65f
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 0
call fcn.10061920
push 0x1014a080
mov dword [0x1014a078], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10065d2f
add esp, 4
mov eax, dword [0x1014a078]
mov ecx, dword [ebp + 8]
cmp dword [eax + ecx], 2
je 0x1003d6f3
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 1
jne 0x1003d6f7
mov eax, dword [0x1014b65c]
mov eax, dword [eax + 0x74]
mov dword [ebp + 8], eax
mov eax, dword [0x1014a080]
cmp eax, dword [ebx + 4]
jle 0x1003d6e5
push 0x1014a080
call fcn.10065d80
add esp, 4
cmp dword [0x1014a080], 0xffffffff
jne 0x1003d6e5
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 1
call fcn.10061920
push 0x1014a080
mov dword [0x1014a078], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10065d2f
add esp, 4
mov eax, dword [0x1014a078]
mov ecx, dword [ebp + 8]
cmp dword [eax + ecx], 4
jne 0x1003d6f7
or dword [edi + 0x24], 1
mov ecx, dword [esi + 0x48]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xf7
jne 0x1003d725
mov eax, dword [0x1014b65c]
mov ecx, esi
push edi
push dword [eax + 0x78]
push dword [eax + 0x74]
call fcn.1003e170
jmp 0x1003d829
mov ecx, dword [esi + 0x48]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov eax, dword [eax + 0x14]
cmp eax, 0x58
je 0x1003d748
cmp eax, 0x56
je 0x1003d748
cmp eax, 0x59
jne 0x1003d829
mov eax, dword [0x1014b65c]
lea ecx, [ebp - 0x28]
push ecx
mov ebx, dword [eax + 0x78]
mov eax, dword [eax + 0x74]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.10003390
mov ecx, dword [esi + 0x48]
lea eax, [ebp - 0x1c]
push eax
call fcn.10002dd0
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.1003f2e0
test al, al
je 0x1003d829
push ebx
mov ecx, esi
call fcn.1003e940
mov eax, dword [esi + 0x48]
mov ecx, dword fs:[0x2c]
mov dword [ebp + 8], eax
mov eax, dword [0x1014a028]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x1014a054]
cmp eax, dword [ecx + 4]
jle 0x1003d7f4
push 0x1014a054
call fcn.10065d80
add esp, 4
cmp dword [0x1014a054], 0xffffffff
jne 0x1003d7f4
push str.m_vecOrigin
push str.CBaseEntity
mov dword [ebp - 4], 2
call fcn.10061920
push 0x1014a054
mov dword [0x1014a074], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10065d2f
add esp, 4
mov eax, dword [0x1014a074]
sub esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, esp
push ebx
movq xmm0, qword [eax + edx]
mov eax, dword [eax + edx + 8]
push dword [ebp - 0x10]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.1003eb20
test al, al
je 0x1003d829
push edi
push ebx
mov ecx, esi
call fcn.1003f600
mov eax, dword [0x1014b680]
cmp byte [eax + 0xe], 0
je 0x1003d847
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x14]
lea eax, [edi + 0xc]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4