Function at 0x10035280
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a789
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 [0x1014b65c]
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x1003557d
call fcn.10003280
test al, al
je 0x1003557d
mov ecx, dword [0x1014b65c]
cmp dword [ecx + 0x78], 0
je 0x1003557d
mov ecx, dword [ecx + 0x74]
call fcn.10031c00
cmp byte [eax], 1
ja 0x1003557d
mov eax, dword [0x1014b65c]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x1a4]
cmp eax, 8
je 0x1003557d
cmp eax, 9
je 0x1003557d
cmp eax, 0xa
je 0x1003557d
cmp dword [0x1014a168], 0
jne 0x1003533c
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
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x1014a168]
jne 0x1003557d
mov eax, dword [0x1014b680]
movzx eax, word [eax + 0x1de]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1003557d
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x1003557d
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x1003557d
call fcn.10003280
test al, al
je 0x1003557d
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x74]
mov eax, dword [ecx + 8]
add ecx, 8
mov eax, dword [eax + 0x20]
call eax
test al, al
jne 0x1003557d
mov eax, dword [0x1014b65c]
mov ecx, dword [0x1014a028]
mov edi, dword [eax + 0x74]
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1014a080]
cmp eax, dword [esi + 4]
jle 0x10035424
push 0x1014a080
call fcn.10065d80
add esp, 4
cmp dword [0x1014a080], 0xffffffff
jne 0x10035424
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]
cmp dword [eax + edi], 1
jne 0x1003557d
mov ecx, dword [0x1014b65c]
mov ecx, dword [ecx + 0x74]
call fcn.10031d40
test al, al
je 0x1003557d
mov eax, dword [0x1014b65c]
mov ecx, dword [0x1014a0b8]
mov edi, dword [eax + 0x78]
cmp ecx, dword [esi + 4]
jle 0x100354ac
push 0x1014a0b8
call fcn.10065d80
mov ecx, dword [0x1014a0b8]
add esp, 4
cmp ecx, 0xffffffff
jne 0x100354ac
push str.m_iItemDefinitionIndex
push str.CEconEntity
mov dword [ebp - 4], 1
call fcn.10061920
push 0x1014a0b8
mov dword [0x1014a048], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10065d2f
mov ecx, dword [0x1014a0b8]
add esp, 4
mov eax, dword [0x1014a048]
cmp dword [eax + edi], 0x2d
je 0x10035513
mov eax, dword [0x1014b65c]
mov edi, dword [eax + 0x78]
cmp ecx, dword [esi + 4]
jle 0x10035505
push 0x1014a0b8
call fcn.10065d80
add esp, 4
cmp dword [0x1014a0b8], 0xffffffff
jne 0x10035505
push str.m_iItemDefinitionIndex
push str.CEconEntity
mov dword [ebp - 4], 2
call fcn.10061920
push 0x1014a0b8
mov dword [0x1014a048], eax
call fcn.10065d2f
add esp, 4
mov eax, dword [0x1014a048]
cmp dword [eax + edi], 0x436
jne 0x1003557d
cmp byte [0x1014a238], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0x42140000
mov dword [ebp - 0x14], 0
movss xmm0, dword [esi + 0x10]
movss dword [ebp + 8], xmm0
movss dword [ebp - 0x18], xmm0
jne 0x10035540
or dword [esi + 0x24], 3
movq xmm0, qword [ebp - 0x1c]
sub esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, esp
mov byte [0x1014a238], 0
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.10031de0
movss xmm0, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0xc], 0x42140000
movss dword [esi + 0x10], xmm0
mov dword [esi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4