Function at 0x424180
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], 0
test eax, eax
mov byte [ebp - 4], 1
jne 0x4242c9
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call ebx
and eax, 0x8000
push 0x11
mov dword [ebp - 0x18], eax
call ebx
mov si, ax
push 0x12
and esi, 0x8000
call ebx
mov bx, ax
push 0x4701fc
lea ecx, [ebp - 0x14]
and ebx, 0x8000
call sub.MFC42u.DLL_CString::CString_4
test esi, esi
mov byte [ebp - 4], 2
je 0x424221
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push 0x46d9ac
push eax
call esi
add esp, 8
test eax, eax
je 0x424227
push 0x46dba8
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::operator
jmp 0x424227
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42424d
mov ecx, dword [ebp + 8]
push 0x46d9b8
push ecx
call esi
add esp, 8
test eax, eax
je 0x42424d
push 0x46db98
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::operator
test ebx, ebx
je 0x424270
mov edx, dword [ebp + 8]
push 0x46d9a4
push edx
call esi
add esp, 8
test eax, eax
je 0x424270
push 0x46c7f4
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::operator
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
mov ecx, edi
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push 0x4701fc
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x4242a7
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
jne 0x4242a7
mov ecx, edi
call fcn.0042b130
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetCaretPos]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x20]
and edx, 0xffff
shl edx, 0x10
and eax, 0xffff
or edx, eax
push edx
push 0
push 0xd7
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
jl 0x4242a7
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_5
lea edx, [ebp - 0x14]
mov bl, 4
push edx
mov ecx, edi
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CWnd::GetWindowTextW
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, esi
test esi, esi
mov dword [edi + 0x4c], eax
jle 0x424391
mov ecx, dword [ebp - 0x14]
mov ax, word [ecx + esi*2 - 2]
cmp ax, 0x20
je 0x424391
lea edx, [ebp + 8]
lea eax, [ebp - 0x18]
push edx
push 0x46c7b4
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::operator_3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
inc dword [edi + 0x4c]
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax - 8]
jge 0x4243ca
cmp word [eax + esi*2], 0x20
je 0x4243ca
lea ecx, [ebp + 8]
push 0x46c7b4
lea edx, [ebp - 0x18]
push ecx
push edx
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::operator_3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
push esi
call sub.MFC42u.DLL_CString::Insert
mov ecx, dword [edi + 0x4c]
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x50], ecx
push edx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::SetWindowTextW
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x4c]
push eax
mov eax, dword [edi + 0x20]
push ecx
push 0xb1
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
jmp 0x4242a2