Function at 0x40ce3f
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x420199
call fcn.0041ee80
sub esp, 0x68
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x44]
call sub.MFC71.DLL_CDC::CDC
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00408b8a
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0x4240c4
mov eax, dword [esi + 0x9c8]
sub eax, dword [esi + 0x9c0]
lea ecx, [ebp - 0x2c]
push eax
mov eax, dword [esi + 0x9c4]
sub eax, dword [esi + 0x9bc]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
call fcn.00408b66
push dword [ebp - 0x28]
push dword [ebp - 0x40]
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x24], eax
call sub.MFC71.DLL_CDC::CDC
push dword [ebp + 8]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00408b8a
lea eax, [esi + 0x460]
cmp eax, ebx
jne 0x40cecf
xor eax, eax
jmp 0x40ced2
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x50]
call sub.MFC71.DLL_CDC::SelectGdiObject
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x9c0]
mov edi, dword [esi + 0x9bc]
mov eax, dword [esi + 0x9c8]
mov ecx, dword [esi + 0x9c4]
push 0xcc0020
push edx
push edi
push dword [ebp - 0x50]
sub eax, edx
push eax
sub ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x40cf29
xor eax, eax
jmp 0x40cf2c
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x50]
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [ebp - 0x54]
call sub.MFC71.DLL_CDC::DeleteDC
lea eax, [esi + 0x970]
push eax
lea ecx, [ebp - 0x44]
call sub.MFC71.DLL_CDC::SelectObject
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x20], eax
call sub.MFC71.DLL_CDC::SetTextColor
push 1
lea ecx, [ebp - 0x44]
call sub.MFC71.DLL_CDC::SetBkMode
mov eax, dword [esi + 0x99c]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi + 0x994]
mov edi, dword [esi + 0x98c]
lea eax, [esi + 0x990]
mov ebx, dword [eax]
mov dword [ebp - 0x18], ecx
add ecx, ebx
cmp ecx, 5
mov dword [ebp - 0x1c], edx
mov dword [eax], ecx
jle 0x40cf97
or dword [esi + 0x994], 0xffffffff
jmp 0x40cfa5
test ecx, ecx
jge 0x40cfa5
mov dword [esi + 0x994], 1
and dword [ebp - 0x14], 0
test edx, edx
jle 0x40d068
push dword [ebp - 0x14]
lea ecx, [esi + 0x99c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator]
mov byte [ebp - 0xd], al
push 1
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040c5bc
mov eax, dword [esi + 0x9c8]
sub eax, dword [esi + 0x9c0]
push 3
cdq
pop ecx
idiv ecx
test byte [esi + 0x998], 1
je 0x40cff3
lea eax, [ebx + ebx]
mov ecx, dword [esi + 0x9c8]
sub ecx, dword [esi + 0x9c0]
mov edx, dword [esi + 0x9c4]
sub edx, dword [esi + 0x9bc]
and dword [ebp - 0x64], 0
and dword [ebp - 0x60], 0
push 0
push 1
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0xd]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 4
push eax
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x5c], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add edi, dword [ebp - 0x34]
test byte [esi + 0x998], 2
je 0x40d040
add edi, ebx
add ebx, dword [ebp - 0x18]
cmp ebx, 5
jle 0x40d04e
or dword [ebp - 0x18], 0xffffffff
jmp 0x40d059
test ebx, ebx
jge 0x40d059
mov dword [ebp - 0x18], 1
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x40cfb1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
mov bx, ax
push 0x11
and ebx, 0x80
shr ebx, 7
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x80
shr eax, 7
test ebx, ebx
je 0x40d09f
test eax, eax
je 0x40d09f
add dword [esi + 0x98c], 0xffffffec
jmp 0x40d0a6
add dword [esi + 0x98c], 0xfffffffe
test edi, edi
jge 0x40d0bc
mov eax, dword [esi + 0x9c4]
sub eax, dword [esi + 0x9bc]
mov dword [esi + 0x98c], eax
mov ecx, dword [ebp + 8]
push 0xcc0020
push 0
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi + 0x9c8]
sub eax, dword [esi + 0x9c0]
push eax
mov eax, dword [esi + 0x9c4]
sub eax, dword [esi + 0x9bc]
push eax
push dword [esi + 0x9c0]
push dword [esi + 0x9bc]
call fcn.00408bab
push dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
call sub.MFC71.DLL_CDC::SelectObject
mov eax, dword [ebp - 0x24]
test eax, eax
pop edi
pop esi
pop ebx
je 0x40d10f
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x40]
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [ebp - 0x44]
call sub.MFC71.DLL_CDC::DeleteDC
lea ecx, [ebp - 0x2c]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0041e7aa
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0x422c38
call sub.MFC71.DLL_CGdiObject::DeleteObject
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0041e7aa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4