Function at 0x1002f050
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100628c9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10074040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [0x10142a3c]
mov esi, dword [edx + 0x74]
test esi, esi
je 0x1002f2d6
cmp dword [edx + 0x78], 0
je 0x1002f2d6
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101413f8]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x10141474]
cmp eax, dword [edi + 4]
jle 0x1002f0fa
push 0x10141474
call fcn.1005e6a1
add esp, 4
cmp dword [0x10141474], 0xffffffff
jne 0x1002f0f4
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 0
call fcn.1005a6e0
push 0x10141474
mov dword [0x10141470], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1005e650
add esp, 4
mov edx, dword [0x10142a3c]
mov eax, dword [0x10141470]
cmp dword [eax + esi], 4
jne 0x1002f2d6
mov ecx, dword [edx + 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 1
jne 0x1002f2d6
mov ecx, dword [0x10142a5c]
cmp byte [ecx], 0
je 0x1002f17a
cmp byte [ecx + 0x40], 0
je 0x1002f17a
movzx eax, word [ecx + 2]
test ax, ax
je 0x1002f17a
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1002f174
cmp dword [0x10141540], 0
jne 0x1002f162
push 0x10066848
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x10141540], eax
jmp 0x1002f174
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x10141540]
je 0x1002f2d6
mov ecx, dword [0x10142a5c]
cmp dword [ecx + 0x74], 0
je 0x1002f2d6
mov esi, dword [ebp + 8]
test byte [esi + 0x24], 1
je 0x1002f2d6
mov edx, dword [0x10142a3c]
mov eax, dword [0x10141638]
mov ebx, dword [edx + 0x78]
cmp eax, dword [edi + 4]
jle 0x1002f1f8
push 0x10141638
call fcn.1005e6a1
add esp, 4
cmp dword [0x10141638], 0xffffffff
jne 0x1002f1ec
push str.m_flChargeBeginTime
push str.CTFPipebombLauncher
mov dword [ebp - 4], 1
call fcn.1005a6e0
push 0x10141638
mov dword [0x1014163c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1005e650
add esp, 4
mov ecx, dword [0x10142a5c]
mov edx, dword [0x10142a3c]
mov eax, dword [edx + 0x2c]
movss xmm0, dword [eax + 0xc]
mov eax, dword [0x1014163c]
subss xmm0, dword [eax + ebx]
movss dword [ebp - 0x14], xmm0
movd xmm0, dword [ecx + 0x74]
mov ecx, dword [edx + 0x14]
cvtdq2ps xmm0, xmm0
mov eax, dword [ecx]
divss xmm0, dword [0x1006c134]
mov eax, dword [eax + 0x120]
movss dword [ebp - 0x10], xmm0
call eax
push 0
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x24]
mov dword [ebp + 8], ecx
mov ecx, eax
call dword [ebp + 8]
mov eax, dword [0x10142a3c]
fstp st(0)
mov ebx, dword [eax + 0x78]
mov eax, dword [0x101414a0]
cmp eax, dword [edi + 4]
jle 0x1002f295
push 0x101414a0
call fcn.1005e6a1
add esp, 4
cmp dword [0x101414a0], 0xffffffff
jne 0x1002f295
push str.m_iItemDefinitionIndex
push str.CEconEntity
mov dword [ebp - 4], 2
call fcn.1005a6e0
push 0x101414a0
mov dword [0x10141438], eax
call fcn.1005e650
add esp, 4
mov eax, dword [0x10141438]
cmp dword [eax + ebx], 0x47e
jne 0x1002f2ba
mov eax, dword [0x10142a5c]
movd xmm0, dword [eax + 0x74]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1006c170]
jmp 0x1002f2bf
movss xmm0, dword [ebp - 0x10]
movss xmm1, dword [ebp - 0x14]
comiss xmm1, dword [0x1006c104]
ja 0x1002f2d6
comiss xmm1, xmm0
jb 0x1002f2d6
and dword [esi + 0x24], 0xfffffffe
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