Function at 0x407de4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
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.0x407e18.11
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dl, byte [eax + 0x40830a]
jmp dword [edx*4 + 0x4082da]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x60]
cmp eax, dword [edx + 0x50]
jge 0x407e99
push 0
push 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 0x24]
add edx, dword [eax + 0x60]
push edx
call sub.Engine.dll_TSplitString
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x50]
sub edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x50], edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x50]
sub eax, dword [edx + 0x60]
add eax, 1
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 0x24]
add edx, dword [eax + 0x60]
add edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 0x24]
add edx, dword [eax + 0x60]
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
call dword [edx + 4]
jmp 0x4082d1
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x60], 0
je 0x407ed0
push 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x60]
sub edx, 1
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x44]
push ecx
call sub.Engine.dll_TSplitString
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x60], eax
mov ecx, dword [ebp - 0x24]
call fcn.004085c3
jmp 0x4082d1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0x60]
cmp edx, dword [ecx + 0x50]
jge 0x407f12
push 0
push 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp - 0x24]
add ecx, dword [edx + 0x60]
push ecx
call sub.Engine.dll_TSplitString
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x60]
add edx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x60], edx
mov ecx, dword [ebp - 0x24]
call fcn.004085c3
jmp 0x4082d1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x60], 0
mov ecx, dword [ebp - 0x24]
call fcn.004085c3
jmp 0x4082d1
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x50]
mov dword [edx + 0x60], ecx
mov ecx, dword [ebp - 0x24]
call fcn.004085c3
jmp 0x4082d1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x3c]
and eax, 0x20
test eax, eax
je 0x408039
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x5c], 0
je 0x408039
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
shl eax, 1
mov ecx, dword [ebp - 0x24]
cdq
idiv dword [ecx + 0x40]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x407f97
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 + 0x5c]
jge 0x407fca
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 + 0x44]
add edx, dword [ebp - 0x10]
push edx
call fcn.004088f3
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0xc], ecx
jmp 0x407f8e
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x60]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x44]
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 + 0x60], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x60]
cmp ecx, dword [ebp - 0xc]
jl 0x40802f
cmp dword [ebp - 0xc], 0
je 0x40802f
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x60], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 0xc]
movsx ecx, byte [edx + eax - 1]
cmp ecx, 0xa
jne 0x40802f
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x60]
sub eax, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x60], eax
mov ecx, dword [ebp - 0x24]
call fcn.004085c3
jmp 0x408061
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x38], 0
je 0x408061
push 0x26
mov eax, dword [ebp - 0x24]
push eax
push 0x62e
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x38]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x10]
mov dword [ebp - 4], eax
jmp 0x4082d1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
and ecx, 0x20
test ecx, ecx
je 0x408171
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
shl eax, 1
mov ecx, dword [ebp - 0x24]
cdq
idiv dword [ecx + 0x40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jmp 0x4080a9
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 + 0x5c]
jg 0x4080dc
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 + 0x44]
add edx, dword [ebp - 0x1c]
push edx
call fcn.004088f3
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x4080a0
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x60]
sub eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x44]
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 + 0x60], 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 + 0x44]
add eax, dword [ebp - 0x1c]
push eax
call fcn.004088f3
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 + 0x60]
cmp eax, dword [ebp - 0x18]
jl 0x408167
cmp dword [ebp - 0x18], 0
je 0x408167
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x60], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp - 0x18]
movsx eax, byte [ecx + edx - 1]
cmp eax, 0xa
jne 0x408167
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x60]
sub edx, 1
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x60], edx
mov ecx, dword [ebp - 0x24]
call fcn.004085c3
jmp 0x408199
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x38], 0
je 0x408199
push 0x28
mov edx, dword [ebp - 0x24]
push edx
push 0x62e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x10]
mov dword [ebp - 4], eax
jmp 0x4082d1
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x38], 0
je 0x4081c8
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 + 0x38]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x10]
mov dword [ebp - 4], eax
jmp 0x4082d1
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x38], 0
je 0x408274
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x3c]
and edx, 0x20
test edx, edx
jne 0x408208
push 0xd
mov eax, dword [ebp - 0x24]
push eax
push 0x62e
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x38]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x10]
mov dword [ebp - 4], eax
jmp 0x408274
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
jne 0x408252
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
test ecx, ecx
jne 0x408252
push 0xd
mov edx, dword [ebp - 0x24]
push edx
push 0x62e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x10]
mov dword [ebp - 4], eax
jmp 0x408274
push 0
push 0xa
mov ecx, dword [ebp - 0x24]
call fcn.00408469
test eax, eax
je 0x408274
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x24]
call dword [edx + 4]
mov dword [ebp - 4], 1
jmp 0x4082d1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x40829d
mov ecx, dword [ebp - 0x24]
call fcn.00407d86
test eax, eax
je 0x40829d
mov dword [ebp - 4], 1
jmp 0x4082d1
mov eax, 1
jmp 0x4082d4
cmp dword [ebp + 8], 0x30
jl 0x4082b2
cmp dword [ebp + 8], 0x39
jle 0x4082d1
cmp dword [ebp + 8], 0x41
jl 0x4082be
cmp dword [ebp + 8], 0x5a
jle 0x4082d1
cmp dword [ebp + 8], 0x60
jl 0x4082ca
cmp dword [ebp + 8], 0x6f
jle 0x4082d1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8