Function at 0x40fd80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
call edx
test al, al
jne 0x40fdb3
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push ecx
push edx
mov ecx, edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
test ebx, ebx
jge 0x40fdce
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
mov ecx, edi
call eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 0xc], 0xffffffff
jne 0x40fde4
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x40fde1
mov dword [edi + 0xc], eax
jmp 0x40fde4
mov dword [edi + 0xc], ebx
mov edx, dword [edi - 0x170]
mov eax, dword [edx]
lea ecx, [edi - 0x170]
push ebx
call eax
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40fe0a
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
mov eax, dword [edx + 0x10c]
mov ecx, esi
call eax
test al, al
je 0x40fdff
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push str.ListItem
mov ecx, esi
call eax
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x40fdff
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x40fedd
lea edx, [edi + 0x10]
mov esi, ebx
mov dword [esp + 0xc], edx
call fcn.00401f20
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x18]
cmp esi, 0xffffffff
je 0x40fe98
push 0
call eax
test al, al
je 0x40fdff
cmp dword [edi + 8], ebx
jne 0x40fe7a
mov dword [edi + 8], 0xffffffff
test esi, esi
jl 0x410017
mov edx, dword [esp + 0xc]
mov ecx, esi
call fcn.00401ef0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
call eax
test al, al
je 0x40fdff
mov esi, dword [esp + 0xc]
push ebx
mov dword [edi + 8], ebx
call fcn.00401dd0
lea esi, [edi - 0x6c0]
mov edx, ebx
mov eax, esi
call fcn.00410710
cmp byte [ebp + 0xc], 0
je 0x40fffb
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
jmp 0x40fffb
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x40ffb9
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
mov ecx, edi
call eax
mov ecx, dword [edi + 0xc]
mov eax, ecx
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x40ff0f
mov eax, ebx
mov dword [esp + 0x10], ecx
cmp eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
jg 0x40ff81
mov edx, dword [edi - 0x170]
mov eax, dword [esp + 0xc]
mov edx, dword [edx]
lea ecx, [edi - 0x170]
push eax
call edx
mov esi, eax
test esi, esi
je 0x40ff72
mov eax, dword [esi]
mov edx, dword [eax + 0x10c]
mov ecx, esi
call edx
test al, al
je 0x40ff72
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.ListItem
mov ecx, esi
call edx
test eax, eax
je 0x40ff72
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push 1
call eax
test al, al
je 0x40ff72
mov ecx, dword [esp + 0xc]
push ecx
lea esi, [edi + 0x10]
call fcn.00401dd0
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
jle 0x40ff19
lea esi, [edi - 0x6c0]
mov edx, ebx
mov eax, esi
mov dword [edi + 8], ebx
call fcn.00410710
cmp byte [ebp + 0xc], 0
je 0x40ffa7
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
call eax
mov ecx, dword [edi - 0x67c]
test ecx, ecx
je 0x410017
mov edx, dword [edi + 0xc]
push 0
push edx
jmp 0x41000b
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push 1
mov ecx, esi
call edx
test al, al
je 0x40fdff
push ebx
lea esi, [edi + 0x10]
mov dword [edi + 8], ebx
call fcn.00401dd0
lea esi, [edi - 0x6c0]
mov edx, ebx
mov eax, esi
call fcn.00410710
cmp byte [ebp + 0xc], 0
je 0x40fffb
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x128]
call edx
mov edi, dword [edi - 0x67c]
test edi, edi
je 0x410017
push 0
push 0
mov ecx, edi
push ebx
push str.itemselect
push esi
call fcn.00408d80
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8