Function at 0x404e40
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x40c
mov eax, dword [esp + 0x414]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 4]
cmp eax, edx
jb 0x405072
mov ecx, dword [esi + 8]
cmp eax, ecx
jae 0x405072
mov edi, eax
add eax, 2
sub edi, edx
cmp eax, ecx
mov dword [esp + 0x14], edi
jae 0x405072
jmp 0x404e82
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.user32.dll_GetAsyncKeyState]
push 0x11
call ebx
test ax, ax
jge 0x404e9e
push 0x7b
call ebx
test ax, ax
jl 0x405072
mov ecx, dword [esp + 0x420]
mov eax, dword [esi + 4]
mov ebx, dword [edi + ecx + 1]
lea ecx, [edi + ecx + 1]
lea ebp, [eax + edi]
cmp ebx, eax
mov dword [esp + 0x424], ebp
mov dword [esp + 0x10], ecx
jb 0x404f8a
cmp ebx, dword [esi + 8]
jae 0x404f8a
mov edx, dword [esi + 0x38]
lea edi, [esi + 0x34]
xor eax, eax
test edx, edx
je 0x404f04
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 2
cmp eax, ecx
jae 0x404f04
mov ecx, dword [esi + 0x38]
mov ebp, dword [esp + 0x10]
cmp dword [ecx + eax*4], ebp
je 0x404efd
mov ebp, dword [esp + 0x424]
inc eax
jmp 0x404ed7
mov ebp, dword [esp + 0x424]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x404f1b
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 2
cmp eax, edx
jb 0x405059
mov edx, dword [esi + 0x28]
mov eax, ebx
sub eax, edx
lea ecx, [esp + 0x1c]
push eax
push ebx
push ebp
push 0x460e8c
push ecx
call fcn.0043367e
mov eax, dword [esi + 0x24]
add esp, 0x14
lea edx, [esp + 0x1c]
mov ecx, dword [eax + 0x1c]
push edx
push 0
push 0x180
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
mov edx, dword [esi + 0x20]
push 0
push 1
push 0x115
push 0x3ec
push edx
call dword [sym.imp.user32.dll_SendDlgItemMessageA]
mov al, byte [esi + 0x28]
lea ecx, [esp + 0x10]
sub bl, al
mov eax, dword [esp + 0x10]
push ecx
push 1
mov byte [eax], bl
mov edx, dword [edi + 8]
push edx
mov ecx, edi
call fcn.00406010
jmp 0x405059
mov ecx, dword [esi + 0x30]
call fcn.0042a4f0
mov edx, dword [eax + 4]
mov dword [esp + 0x18], eax
xor ecx, ecx
mov edi, edx
test edx, edx
je 0x405039
mov eax, dword [eax + 8]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x405039
cmp ebx, dword [edi]
jb 0x404fbe
cmp ebx, dword [edi + 4]
jb 0x404fc8
mov eax, dword [esp + 0x18]
inc ecx
add edi, 0x10
jmp 0x404f9d
shl ecx, 4
mov ecx, dword [ecx + edx + 8]
test ecx, ecx
mov dword [esp + 0x18], ecx
je 0x405039
mov eax, dword [esi + 0x28]
mov edx, ebx
sub edx, eax
lea eax, [esp + 0x1c]
sub edx, ecx
push edx
push ebx
push ebp
push 0x460e8c
push eax
call fcn.0043367e
mov edx, dword [esi + 0x24]
add esp, 0x14
lea ecx, [esp + 0x1c]
mov eax, dword [edx + 0x1c]
push ecx
push 0
push 0x180
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [esi + 0x20]
push 0
push 1
push 0x115
push 0x3ec
push ecx
call dword [sym.imp.user32.dll_SendDlgItemMessageA]
mov cl, byte [esi + 0x28]
mov al, byte [esp + 0x18]
mov edx, dword [esp + 0x10]
sub bl, cl
sub bl, al
mov byte [edx], bl
jmp 0x405059
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x428]
push ebx
push ebp
push 0x460e50
push ecx
mov dword [eax], 1
call fcn.004339f7
add esp, 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 8]
add ebp, 2
add edx, 5
cmp ebp, eax
mov dword [esp + 0x14], edx
jb 0x404e7e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 0xc