Function at 0x1002f290
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1012d9ed
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [0x101d3580]
test edi, edi
je 0x1002f691
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101d5a74]
mov ebx, dword [eax + ecx*4]
mov eax, dword [0x1028c324]
cmp eax, dword [ebx + 4]
jle 0x1002f30f
push 0x1028c324
call fcn.1012b230
add esp, 4
cmp dword [0x1028c324], 0xffffffff
jne 0x1002f30f
push 0x1028c324
mov dword [0x1028c31c], 0
mov dword [0x1028c318], 0x101cf108
call fcn.1012b1df
add esp, 4
mov eax, dword [0x1028c318]
mov eax, dword [eax]
test eax, eax
jne 0x1002f321
mov dword [0x1028c31c], eax
jmp 0x1002f33b
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
movzx eax, al
mov dword [0x1028c31c], eax
jne 0x1002f706
mov eax, dword [0x101d606c]
cmp eax, 3
jne 0x1002f352
cmp byte [0x101d6010], 0
jne 0x1002f706
cmp byte [0x101d600d], 0
je 0x1002f691
cmp eax, 3
jne 0x1002f691
mov eax, dword [0x101d5f30]
cmp eax, dword [ebx + 4]
jle 0x1002f3bf
push 0x101d5f30
call fcn.1012b230
add esp, 4
cmp dword [0x101d5f30], 0xffffffff
jne 0x1002f3bf
push str.m_iClass
push str.m_PlayerClass
push str.DT_TFPlayer
mov dword [ebp - 4], 0
call fcn.10018010
push 0x101d5f30
mov dword [0x101d5f40], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1012b1df
add esp, 4
mov eax, dword [0x101d5f40]
mov esi, 0x41
mov ecx, 0x23
cmp dword [eax + edi], 1
mov eax, dword [0x101d5f04]
cmove esi, ecx
cmp eax, 0x191
jg 0x1002f565
je 0x1002f4e4
add eax, 0xffffff80
cmp eax, 0xe3
ja case.0x1002f400.129
movzx eax, byte [eax + 0x1002f744]
jmp dword [eax*4 + 0x1002f71c]
mov esi, 0x1a
jmp case.0x1002f400.129
mov esi, 9
jmp case.0x1002f400.129
mov eax, dword [0x101d6054]
cmp eax, dword [ebx + 4]
jle 0x1002f46d
push 0x101d6054
call fcn.1012b230
add esp, 4
cmp dword [0x101d6054], 0xffffffff
jne 0x1002f46d
push str.m_iHealth
push str.DT_BasePlayer
mov dword [ebp - 4], 1
call fcn.10017f20
push 0x101d6054
mov dword [0x101d607c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1012b1df
add esp, 4
mov eax, dword [0x101d607c]
sub esp, 8
movsd xmm0, qword [0x101beb08]
movd xmm1, dword [eax + edi]
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x101bea60]
subsd xmm0, xmm1
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x18]
cvttsd2si esi, qword [ebp - 0x18]
add esp, 8
jmp case.0x1002f400.129
mov esi, 0x34
jmp case.0x1002f400.129
mov esi, 0x51
jmp case.0x1002f400.129
mov esi, 0x4e
jmp case.0x1002f400.129
mov esi, 0x55
jmp case.0x1002f400.129
mov esi, 0x25
jmp case.0x1002f400.129
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x1ac]
call eax
mov ecx, dword [0x101d6054]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebx + 4]
jle 0x1002f54b
push 0x101d6054
call fcn.1012b230
add esp, 4
cmp dword [0x101d6054], 0xffffffff
jne 0x1002f54b
push str.m_iHealth
push str.DT_BasePlayer
mov dword [ebp - 4], 2
call fcn.10017f20
push 0x101d6054
mov dword [0x101d607c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1012b1df
add esp, 4
mov eax, dword [0x101d607c]
mov esi, 0x51
mov ecx, dword [ebp - 0x14]
mov edx, 0x31
cmp dword [eax + edi], ecx
cmovg esi, edx
jmp case.0x1002f400.129
cmp eax, 0x1bf
je case.0x1002f400.329
cmp eax, 0x288
je 0x1002f581
cmp eax, 0x49d
jne case.0x1002f400.129
mov esi, 0x38
jmp case.0x1002f400.129
mov esi, 0xc
jmp case.0x1002f400.129
mov esi, 0x31
mov ecx, dword [0x101d5edc]
push dword [0x101d6064]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
test edi, edi
je 0x1002f691
cmp dword [0x101d5f04], 0x290
mov eax, dword [ebx + 4]
jne 0x1002f6a4
cmp dword [0x101d6054], eax
jle 0x1002f60d
push 0x101d6054
call fcn.1012b230
add esp, 4
cmp dword [0x101d6054], 0xffffffff
jne 0x1002f60d
push str.m_iHealth
push str.DT_BasePlayer
mov dword [ebp - 4], 3
call fcn.10017f20
push 0x101d6054
mov dword [0x101d607c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1012b1df
add esp, 4
mov eax, dword [0x101d607c]
cmp esi, dword [eax + edi]
jl 0x1002f622
mov ecx, edi
call fcn.1002ebb0
test al, al
jne 0x1002f691
mov ecx, edi
call fcn.10014740
test al, al
je 0x1002f691
mov ecx, edi
call fcn.10021e40
shr eax, 7
test al, 1
jne 0x1002f691
mov eax, dword [0x101d6008]
cmp eax, dword [ebx + 4]
jle 0x1002f686
push 0x101d6008
call fcn.1012b230
add esp, 4
cmp dword [0x101d6008], 0xffffffff
jne 0x1002f686
push str.m_bViewingCYOAPDA
push str.DT_TFPlayer
mov dword [ebp - 4], 4
call fcn.10017f20
push 0x101d6008
mov dword [0x101d601c], eax
call fcn.1012b1df
add esp, 4
mov eax, dword [0x101d601c]
cmp byte [eax + edi], 0
je 0x1002f706
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x101d6054], eax
jle 0x1002f6ea
push 0x101d6054
call fcn.1012b230
add esp, 4
cmp dword [0x101d6054], 0xffffffff
jne 0x1002f6ea
push str.m_iHealth
push str.DT_BasePlayer
mov dword [ebp - 4], 5
call fcn.10017f20
push 0x101d6054
mov dword [0x101d607c], eax
call fcn.1012b1df
add esp, 4
mov eax, dword [0x101d607c]
cmp esi, dword [eax + edi]
setle al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret