Function at 0x1005d860
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1018bff0]
push ebx
push esi
push edi
mov eax, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp eax, 2
je 0x1005d882
mov byte [ebp - 1], 0
cmp eax, 3
jne 0x1005d886
mov byte [ebp - 1], 1
mov eax, dword [0x1018bfe4]
mov eax, dword [eax + 0x174]
mov dword [ebp - 8], eax
mov eax, dword [0x1018bac8]
test al, 1
jne 0x1005d95a
or eax, 1
mov dword [ebp - 0x18], 0
push 0x2d
mov dword [0x1018bac8], eax
lea ecx, [ebp - 0x28]
mov eax, dword [0x1018bfd0]
vpxor xmm0, xmm0, xmm0
push str.CBaseAttributableItem__m_iItemDefinitionIndex
mov dword [ebp - 0x10], eax
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.100052f0
cmp dword [ebp - 0x14], 0xf
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
mov ecx, 0x811c9dc5
mov ebx, dword [ebp - 0x18]
cmova edi, esi
xor edx, edx
test ebx, ebx
je 0x1005d903
movzx eax, byte [edi + edx]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebx
jb 0x1005d8f2
push ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10008e20
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1005db3d
add eax, 0x20
mov dword [0x1018bb3c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1005d95a
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1005d950
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005db37
push ecx
push esi
call fcn.10112642
add esp, 8
mov eax, dword [0x1018bb3c]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 4]
movzx ebx, word [ecx + eax]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1005d989
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
jne 0x1005db30
cmp byte [ebp - 1], 0
je 0x1005db30
mov eax, dword [0x1018bb84]
mov edx, 1
mov dword [ebp - 0x10], edx
cmp dword [eax + 0x18], edx
jle 0x1005db30
nop dword [eax]
mov ecx, dword [0x1018bbc4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
cmp bx, 0x26
je 0x1005da5a
cmp bx, 0xb
je 0x1005da5a
mov eax, dword [0x1018bb6c]
test al, 1
jne 0x1005db1b
or eax, 1
mov dword [ebp - 0x18], 0
push 0x16
mov dword [0x1018bb6c], eax
lea ecx, [ebp - 0x28]
mov eax, dword [0x1018bfd0]
vpxor xmm0, xmm0, xmm0
push str.CBasePlayer__m_iHealth
mov dword [ebp - 0xc], eax
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.100052f0
cmp dword [ebp - 0x14], 0xf
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
mov ecx, 0x811c9dc5
mov ebx, dword [ebp - 0x18]
cmova edi, esi
xor edx, edx
test ebx, ebx
je 0x1005da41
movzx eax, byte [edi + edx]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebx
jb 0x1005da30
push ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10008e20
mov eax, dword [ebp - 0x2c]
jmp 0x1005dadd
mov eax, dword [0x1018bb6c]
test al, 1
jne 0x1005db1b
or eax, 1
mov dword [ebp - 0x18], 0
push 0x16
mov dword [0x1018bb6c], eax
lea ecx, [ebp - 0x28]
mov eax, dword [0x1018bfd0]
vpxor xmm0, xmm0, xmm0
push str.CBasePlayer__m_iHealth
mov dword [ebp - 0xc], eax
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.100052f0
cmp dword [ebp - 0x14], 0xf
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
mov ecx, 0x811c9dc5
mov ebx, dword [ebp - 0x18]
cmova edi, esi
xor edx, edx
test ebx, ebx
je 0x1005dac9
movzx eax, byte [edi + edx]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebx
jb 0x1005dab8
push ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10008e20
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1005db3d
add eax, 0x20
mov dword [0x1018bb5c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1005db18
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1005db0e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005db37
push ecx
push esi
call fcn.10112642
add esp, 8
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x1018bb84]
inc edx
mov dword [ebp - 0x10], edx
cmp edx, dword [eax + 0x18]
jl 0x1005d9b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.invalid_unordered_map_K__T__key
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
int3