Function at 0x1008fd30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1019541d
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [0x1024d1e0]
test edi, edi
je 0x10090173
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1024f340]
mov ebx, dword [eax + ecx*4]
mov eax, dword [0x10318900]
cmp eax, dword [ebx + 4]
jle 0x1008fdaf
push 0x10318900
call fcn.101928b8
add esp, 4
cmp dword [0x10318900], 0xffffffff
jne 0x1008fdaf
push 0x10318900
mov dword [0x103188fc], 0
mov dword [0x103188f8], 0x10315df0
call fcn.10192867
add esp, 4
mov eax, dword [0x103188f8]
mov eax, dword [eax]
test eax, eax
jne 0x1008fdc1
mov dword [0x103188fc], eax
jmp 0x1008fddb
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
movzx eax, al
mov dword [0x103188fc], eax
jne 0x100901d6
cmp dword [0x10315df0], 0
je 0x100901d6
mov eax, dword [0x10310864]
cmp eax, 3
jne 0x1008fdff
cmp byte [0x10315e14], 0
jne 0x100901d6
cmp byte [0x10315eb8], 0
je 0x10090173
cmp eax, 3
jne 0x10090173
mov eax, dword [0x103106f4]
cmp eax, dword [ebx + 4]
jle 0x1008fe6c
push 0x103106f4
call fcn.101928b8
add esp, 4
cmp dword [0x103106f4], 0xffffffff
jne 0x1008fe6c
push str.m_iClass
push str.m_PlayerClass
push str.DT_TFPlayer
mov dword [ebp - 4], 0
call fcn.100757e0
push 0x103106f4
mov dword [0x10310704], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10192867
add esp, 4
mov eax, dword [0x10310704]
mov esi, 0x41
mov ecx, 0x23
cmp dword [eax + edi], 1
mov eax, dword [0x10310700]
cmove esi, ecx
cmp eax, 0x191
jg 0x10090012
je 0x1008ff91
add eax, 0xffffff80
cmp eax, 0xe3
ja case.0x1008fead.129
movzx eax, byte [eax + 0x10090214]
jmp dword [eax*4 + 0x100901ec]
mov esi, 0x1a
jmp case.0x1008fead.129
mov esi, 9
jmp case.0x1008fead.129
mov eax, dword [0x10310850]
cmp eax, dword [ebx + 4]
jle 0x1008ff1a
push 0x10310850
call fcn.101928b8
add esp, 4
cmp dword [0x10310850], 0xffffffff
jne 0x1008ff1a
push str.m_iHealth
push str.DT_BasePlayer
mov dword [ebp - 4], 1
call fcn.100756f0
push 0x10310850
mov dword [0x10310874], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10192867
add esp, 4
mov eax, dword [0x10310874]
sub esp, 8
movsd xmm0, qword [0x10237948]
movd xmm1, dword [eax + edi]
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x102378a0]
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.0x1008fead.129
mov esi, 0x34
jmp case.0x1008fead.129
mov esi, 0x51
jmp case.0x1008fead.129
mov esi, 0x4e
jmp case.0x1008fead.129
mov esi, 0x55
jmp case.0x1008fead.129
mov esi, 0x25
jmp case.0x1008fead.129
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x1ac]
call eax
mov ecx, dword [0x10310850]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebx + 4]
jle 0x1008fff8
push 0x10310850
call fcn.101928b8
add esp, 4
cmp dword [0x10310850], 0xffffffff
jne 0x1008fff8
push str.m_iHealth
push str.DT_BasePlayer
mov dword [ebp - 4], 2
call fcn.100756f0
push 0x10310850
mov dword [0x10310874], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10192867
add esp, 4
mov eax, dword [0x10310874]
mov esi, 0x51
mov ecx, dword [ebp - 0x14]
mov edx, 0x31
cmp dword [eax + edi], ecx
cmovg esi, edx
jmp case.0x1008fead.129
cmp eax, 0x1bf
je case.0x1008fead.329
cmp eax, 0x288
je 0x1009002e
cmp eax, 0x49d
jne case.0x1008fead.129
mov esi, 0x38
jmp case.0x1008fead.129
mov esi, 0xc
jmp case.0x1008fead.129
mov esi, 0x31
mov ecx, dword [0x10310738]
push dword [0x10310860]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
test edi, edi
je 0x10090173
cmp dword [0x10310700], 0x290
mov eax, dword [ebx + 4]
jne 0x10090186
cmp dword [0x10310850], eax
jle 0x100900ba
push 0x10310850
call fcn.101928b8
add esp, 4
cmp dword [0x10310850], 0xffffffff
jne 0x100900ba
push str.m_iHealth
push str.DT_BasePlayer
mov dword [ebp - 4], 3
call fcn.100756f0
push 0x10310850
mov dword [0x10310874], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10192867
add esp, 4
mov eax, dword [0x10310874]
cmp esi, dword [eax + edi]
jl 0x10090105
push 5
mov ecx, edi
call fcn.1007f840
test al, al
jne 0x10090105
push 0x39
mov ecx, edi
call fcn.1007f840
test al, al
jne 0x10090105
push 0x33
mov ecx, edi
call fcn.1007f840
test al, al
jne 0x10090105
push 0x34
mov ecx, edi
call fcn.1007f840
test al, al
jne 0x10090105
push 0xe
mov ecx, edi
call fcn.1007f840
test al, al
je 0x10090173
mov ecx, edi
call fcn.10071fe0
test al, al
je 0x10090173
push 7
mov ecx, edi
call fcn.1007f840
test al, al
jne 0x10090173
mov eax, dword [0x1031081c]
cmp eax, dword [ebx + 4]
jle 0x10090168
push 0x1031081c
call fcn.101928b8
add esp, 4
cmp dword [0x1031081c], 0xffffffff
jne 0x10090168
push str.m_bViewingCYOAPDA
push str.DT_TFPlayer
mov dword [ebp - 4], 4
call fcn.100756f0
push 0x1031081c
mov dword [0x10310824], eax
call fcn.10192867
add esp, 4
mov eax, dword [0x10310824]
cmp byte [eax + edi], 0
je 0x100901d6
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 [0x10310850], eax
jle 0x100901cc
push 0x10310850
call fcn.101928b8
add esp, 4
cmp dword [0x10310850], 0xffffffff
jne 0x100901cc
push str.m_iHealth
push str.DT_BasePlayer
mov dword [ebp - 4], 5
call fcn.100756f0
push 0x10310850
mov dword [0x10310874], eax
call fcn.10192867
add esp, 4
mov eax, dword [0x10310874]
cmp esi, dword [eax + edi]
jg 0x10090173
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