Function at 0x41e2d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43cbd0
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e4f0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 1
mov dword [esp + 0x30], eax
je 0x41e32c
mov eax, dword [esi + 0x13c]
test eax, eax
jge 0x41e336
mov ecx, dword [esi + 0x138]
mov dword [esi + 0x13c], ecx
jmp 0x41e336
mov dword [esi + 0x13c], 0xffffffff
mov ecx, esi
call fcn.00420320
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x138]
cmp word [esi + 0x10e], 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], 3
jne 0x41e374
mov ebp, dword [esi + 0xb8]
jmp 0x41e37a
mov ebp, dword [esi + 0xb4]
lea eax, [esi + 0x44]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esi + 0x20]
xor edi, edi
push edx
mov dword [esp + 0x58], edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ebx, eax
cmp ebx, edi
je 0x41e4df
mov ecx, dword [esi + 0x88]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x41e47f
mov al, byte [edi + eax]
cmp al, 9
jne 0x41e3db
mov edx, dword [esi + 0xf4]
lea ebp, [ebp + edx*4]
jmp 0x41e43b
mov byte [esp + 0x1c], al
mov ecx, esi
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041ef80
test eax, eax
je 0x41e3f7
add ebp, dword [esi + 0xfc]
jmp 0x41e43b
mov ecx, dword [esp + 0x10]
push 1
mov dl, byte [edi + ecx]
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], dl
mov eax, dword [esp + 0x24]
push eax
call fcn.0043a87a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push ebx
push edx
mov ecx, esi
mov byte [esp + 0x60], 1
call fcn.00420150
mov ecx, dword [eax]
mov byte [esp + 0x54], 0
add ebp, ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea ecx, [eax - 3]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jg 0x41e451
lea edx, [ebp - 3]
cmp eax, edx
jl 0x41e47f
mov eax, dword [esp + 0x10]
mov cl, byte [edi + eax]
mov byte [esp + 0x28], cl
mov ecx, esi
mov edx, dword [esp + 0x28]
push edx
call fcn.0041ef80
test eax, eax
je 0x41e46d
inc edi
mov eax, dword [esp + 0x10]
inc edi
mov dword [esp + 0x18], ebp
cmp edi, dword [eax - 8]
jl 0x41e3c8
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esi + 0x44]
mov eax, dword [ecx - 8]
cmp eax, edi
jl 0x41e4a5
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x138], eax
cmp ecx, eax
jne 0x41e4c3
mov edx, dword [esi + 0x20]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x41e4df
mov ecx, esi
call fcn.0041b540
mov eax, dword [esi + 0x20]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, esi
call fcn.0041a8d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret