Function at 0x4e7dbc
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x58bd4c
call fcn.005589d4
sub esp, 0x60
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x3c]
call sub.MFC71.DLL_CDC::CDC
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0041c030
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0x596538
mov eax, dword [esi + 0x920]
sub eax, dword [esi + 0x918]
lea ecx, [ebp - 0x24]
push eax
mov eax, dword [esi + 0x91c]
sub eax, dword [esi + 0x914]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
call fcn.0041bfe0
push dword [ebp - 0x20]
push dword [ebp - 0x38]
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [ebp - 0x4c]
call sub.MFC71.DLL_CDC::CDC
push dword [ebp + 8]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.0041c030
lea eax, [esi + 0x43c]
cmp eax, ebx
jne 0x4e7e49
xor eax, eax
jmp 0x4e7e4c
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x48]
call sub.MFC71.DLL_CDC::SelectGdiObject
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x6c]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x918]
mov edi, dword [esi + 0x914]
mov eax, dword [esi + 0x920]
mov ecx, dword [esi + 0x91c]
push 0xcc0020
push edx
push edi
push dword [ebp - 0x48]
sub eax, edx
push eax
sub ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x4e7ea3
xor eax, eax
jmp 0x4e7ea6
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x48]
call sub.MFC71.DLL_CDC::SelectGdiObject
lea ecx, [ebp - 0x4c]
call sub.MFC71.DLL_CDC::DeleteDC
lea eax, [esi + 0x900]
cmp eax, ebx
jne 0x4e7ec5
xor eax, eax
jmp 0x4e7ec8
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004e6e81
push ebx
lea ecx, [ebp - 0x3c]
call sub.MFC71.DLL_CDC::SetTextColor
push 1
lea ecx, [ebp - 0x3c]
call sub.MFC71.DLL_CDC::SetBkMode
mov eax, dword [esi + 0x938]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi + 0x930]
mov edi, dword [esi + 0x928]
lea eax, [esi + 0x92c]
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 0x4e7f19
or dword [esi + 0x930], 0xffffffff
jmp 0x4e7f27
test ecx, ecx
jge 0x4e7f27
mov dword [esi + 0x930], 1
and dword [ebp - 0x14], 0
test edx, edx
jle 0x4e7fea
push dword [ebp - 0x14]
lea ecx, [esi + 0x938]
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 - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004e6ec8
mov eax, dword [esi + 0x920]
sub eax, dword [esi + 0x918]
push 3
cdq
pop ecx
idiv ecx
test byte [esi + 0x934], 1
je 0x4e7f75
lea eax, [ebx + ebx]
mov ecx, dword [esi + 0x920]
sub ecx, dword [esi + 0x918]
mov edx, dword [esi + 0x91c]
sub edx, dword [esi + 0x914]
and dword [ebp - 0x5c], 0
and dword [ebp - 0x58], 0
push 0
push 1
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0xd]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push 4
push eax
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x54], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add edi, dword [ebp - 0x2c]
test byte [esi + 0x934], 2
je 0x4e7fc2
add edi, ebx
add ebx, dword [ebp - 0x18]
cmp ebx, 5
jle 0x4e7fd0
or dword [ebp - 0x18], 0xffffffff
jmp 0x4e7fdb
test ebx, ebx
jge 0x4e7fdb
mov dword [ebp - 0x18], 1
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x4e7f33
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 0x4e8021
test eax, eax
je 0x4e8021
add dword [esi + 0x928], 0xffffffec
jmp 0x4e8028
add dword [esi + 0x928], 0xfffffffe
test edi, edi
jge 0x4e803e
mov eax, dword [esi + 0x91c]
sub eax, dword [esi + 0x914]
mov dword [esi + 0x928], eax
mov ecx, dword [ebp + 8]
push 0xcc0020
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [esi + 0x920]
sub eax, dword [esi + 0x918]
push eax
mov eax, dword [esi + 0x91c]
sub eax, dword [esi + 0x914]
push eax
push dword [esi + 0x918]
push dword [esi + 0x914]
call fcn.0041c0a0
lea ecx, [ebp - 0x3c]
call sub.MFC71.DLL_CDC::DeleteDC
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00556f48
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
mov dword [ebp - 0x24], 0x596524
call sub.MFC71.DLL_CGdiObject::DeleteObject
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00556f48
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4