Function at 0x40917e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push ecx
lea edi, [ebp - 0x28]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
sub ecx, 8
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0x4e
ja case.0x4091c5.11
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dl, byte [eax + 0x40977b]
jmp dword [edx*4 + 0x40974b]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x80]
cmp eax, dword [edx + 0x70]
jge 0x40926b
push 0
push 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x64]
mov eax, dword [ebp - 0x24]
add edx, dword [eax + 0x80]
push edx
call sub.Engine.dll_TSplitString
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x70]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x70], edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x70]
sub eax, dword [edx + 0x80]
add eax, 1
mov esi, esp
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x64]
mov eax, dword [ebp - 0x24]
add edx, dword [eax + 0x80]
add edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x64]
mov eax, dword [ebp - 0x24]
add edx, dword [eax + 0x80]
push edx
call dword [sym.imp.MSVCRTD.dll_memmove]
add esp, 0xc
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov esi, esp
mov ecx, dword [ebp - 0x24]
call dword [edx + 4]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x409736
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x80], 0
je 0x4092ab
push 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x80]
sub edx, 1
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x64]
push ecx
call sub.Engine.dll_TSplitString
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x80], eax
mov ecx, dword [ebp - 0x24]
call fcn.00409ad3
jmp 0x409736
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0x80]
cmp edx, dword [ecx + 0x70]
jge 0x4092f9
push 0
push 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp - 0x24]
add ecx, dword [edx + 0x80]
push ecx
call sub.Engine.dll_TSplitString
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x80]
add edx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x80], edx
mov ecx, dword [ebp - 0x24]
call fcn.00409ad3
jmp 0x409736
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x80], 0
mov ecx, dword [ebp - 0x24]
call fcn.00409ad3
jmp 0x409736
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x70]
mov dword [edx + 0x80], ecx
mov ecx, dword [ebp - 0x24]
call fcn.00409ad3
jmp 0x409736
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x5c]
and eax, 0x20
test eax, eax
je 0x409438
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x7c], 0
je 0x409438
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
shl eax, 1
mov ecx, dword [ebp - 0x24]
cdq
idiv dword [ecx + 0x60]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x409384
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x7c]
jge 0x4093b7
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x64]
add edx, dword [ebp - 0x10]
push edx
call fcn.00409e45
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0xc], ecx
jmp 0x40937b
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x80]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x64]
add edx, dword [ebp - 0x10]
push edx
call sub.Engine.dll_TSplitString
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x80], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x80]
cmp ecx, dword [ebp - 0xc]
jl 0x40942e
cmp dword [ebp - 0xc], 0
je 0x40942e
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x80], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x64]
mov eax, dword [ebp - 0xc]
movsx ecx, byte [edx + eax - 1]
cmp ecx, 0xa
jne 0x40942e
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x80]
sub eax, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x80], eax
mov ecx, dword [ebp - 0x24]
call fcn.00409ad3
jmp 0x409469
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x58], 0
je 0x409469
mov esi, esp
push 0x26
mov eax, dword [ebp - 0x24]
push eax
push 0x62e
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x58]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x58]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
jmp 0x409736
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x5c]
and ecx, 0x20
test ecx, ecx
je 0x40958b
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
shl eax, 1
mov ecx, dword [ebp - 0x24]
cdq
idiv dword [ecx + 0x60]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jmp 0x4094b1
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x7c]
jg 0x4094e4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x64]
add edx, dword [ebp - 0x1c]
push edx
call fcn.00409e45
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x4094a8
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x80]
sub eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x64]
add edx, dword [ebp - 0x18]
push edx
call sub.Engine.dll_TSplitString
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x80], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x64]
add eax, dword [ebp - 0x1c]
push eax
call fcn.00409e45
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x80]
cmp eax, dword [ebp - 0x18]
jl 0x409581
cmp dword [ebp - 0x18], 0
je 0x409581
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x80], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp - 0x18]
movsx eax, byte [ecx + edx - 1]
cmp eax, 0xa
jne 0x409581
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x80]
sub edx, 1
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x80], edx
mov ecx, dword [ebp - 0x24]
call fcn.00409ad3
jmp 0x4095bc
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x58], 0
je 0x4095bc
mov esi, esp
push 0x28
mov edx, dword [ebp - 0x24]
push edx
push 0x62e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x58]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x58]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
jmp 0x409736
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x58], 0
je 0x4095f4
mov esi, esp
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x62e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x58]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x58]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
jmp 0x409736
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x58], 0
je 0x4096d0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x5c]
and edx, 0x20
test edx, edx
jne 0x409640
mov esi, esp
push 0xd
mov eax, dword [ebp - 0x24]
push eax
push 0x62e
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x58]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x58]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
jmp 0x4096d0
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
movsx eax, ax
and eax, 0x8000
test eax, eax
jne 0x4096a5
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
movsx ecx, ax
and ecx, 0x8000
test ecx, ecx
jne 0x4096a5
mov esi, esp
push 0xd
mov edx, dword [ebp - 0x24]
push edx
push 0x62e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x58]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x58]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
jmp 0x4096d0
push 0
push 0xa
mov ecx, dword [ebp - 0x24]
call fcn.00409913
test eax, eax
je 0x4096d0
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov esi, esp
mov ecx, dword [ebp - 0x24]
call dword [edx + 4]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], 1
jmp 0x409736
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x409702
mov ecx, dword [ebp - 0x24]
call fcn.004090db
test eax, eax
je 0x409702
mov dword [ebp - 4], 1
jmp 0x409736
mov eax, 1
jmp 0x409739
cmp dword [ebp + 8], 0x30
jl 0x409717
cmp dword [ebp + 8], 0x39
jle 0x409736
cmp dword [ebp + 8], 0x41
jl 0x409723
cmp dword [ebp + 8], 0x5a
jle 0x409736
cmp dword [ebp + 8], 0x60
jl 0x40972f
cmp dword [ebp + 8], 0x6f
jle 0x409736
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
add esp, 0x28
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret 8