Function at 0x407490
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push ecx
lea edi, [ebp - 0x58]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x4074be
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, 0xd0
call fcn.004035e0
cmp dword [ebp - 8], eax
jge 0x407523
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0xd0
call fcn.00403660
mov dword [ebp - 0x54], eax
mov esi, esp
lea edx, [ebp - 0xd]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx]
call eax
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x18], eax
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x407521
mov al, 1
jmp 0x40773c
jmp 0x4074b5
mov edx, dword [ebp + 8]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 0x100
je 0x407551
cmp dword [ebp - 0x58], 0x104
je 0x4076b7
cmp dword [ebp - 0x58], 0x106
je 0x40762a
jmp 0x40773a
cmp dword [ebp + 0xc], 9
jne 0x407625
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54], 0
je 0x4075fb
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x54]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
mov edx, dword [edx]
mov esi, esp
mov eax, dword [edx + 0xc8]
call eax
cmp esi, esp
call fcn.004f4cf0
movzx ecx, al
test ecx, ecx
je 0x4075fb
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x54]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x54]
mov edx, dword [eax]
mov esi, esp
mov eax, dword [edx + 0xd4]
call eax
cmp esi, esp
call fcn.004f4cf0
movzx ecx, al
test ecx, ecx
je 0x4075fb
push 0x5963f4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x54]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x54]
mov edx, dword [eax]
mov esi, esp
mov eax, dword [edx + 0xc]
call eax
cmp esi, esp
call fcn.004f4cf0
push eax
call fcn.004f74e0
add esp, 8
test eax, eax
je 0x4075fb
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x54]
call fcn.0042d410
movzx edx, al
test edx, edx
je 0x4075fb
xor al, al
jmp 0x40773c
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004f4cf0
cwde
test eax, eax
setge cl
movzx edx, cl
push edx
mov ecx, dword [ebp - 4]
call fcn.0040b550
mov al, 1
jmp 0x40773c
jmp 0x40773a
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0050fd70
add esp, 4
mov word [ebp - 0x20], ax
mov esi, esp
push 0x8000000a
lea eax, [ebp - 0x20]
push eax
push 0x40e3c0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x50]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x50]
mov edx, dword [edx]
mov eax, dword [edx + 0xfc]
call eax
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4076b2
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov esi, esp
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0xf0]
call eax
cmp esi, esp
call fcn.004f4cf0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov esi, esp
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x18]
call eax
cmp esi, esp
call fcn.004f4cf0
mov al, 1
jmp 0x40773c
jmp 0x40773a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x54], 0
je 0x40773a
mov dword [ebp - 0x4c], 0
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x4c], 6
mov ax, word [ebp + 0xc]
mov word [ebp - 0x38], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
mov eax, dword [ecx + 0x68]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
call fcn.004077a0
mov word [ebp - 0x36], ax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x44], eax
mov esi, esp
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x54]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x54]
mov edx, dword [eax]
mov eax, dword [edx + 0x108]
call eax
cmp esi, esp
call fcn.004f4cf0
xor al, al
push edx
mov ecx, ebp
push eax
lea edx, [0x407760]
call fcn.004f4c90
pop eax
pop edx
pop edi
pop esi
add esp, 0x58
cmp ebp, esp
call fcn.004f4cf0
mov esp, ebp
pop ebp
ret 0x10