Function at 0x422a10
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x1ac]
push ebp
call fcn.00423ef0
test eax, eax
je case.0x422ad1.20
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], 0
call ebx
mov edi, dword [esp + 0x34]
test ah, 0x80
je case.0x422a66.49
lea eax, [edi - 0x2d]
cmp eax, 0x2b
ja case.0x422a66.49
xor edx, edx
mov dl, byte [eax + 0x4231b0]
jmp dword [edx*4 + 0x42319c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
jmp case.0x422a66.49
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xcc]
jmp case.0x422a66.49
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd0]
jmp case.0x422a66.49
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd4]
push 0x10
call ebx
test ah, 0x80
je 0x422ab3
cmp edi, 0x2d
jne 0x422ab3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
add edi, 0xfffffff7
cmp edi, 0x68
mov dword [esp + 0x14], edi
ja case.0x422ad1.20
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
xor ecx, ecx
mov cl, byte [edi + 0x42320c]
jmp dword [ecx*4 + 0x4231dc]
mov edx, dword [esi + 0x1b0]
mov eax, dword [ebp]
push edx
push eax
mov ecx, esi
call fcn.004284c0
test eax, eax
je 0x422f42
mov ecx, dword [esi + 0x1b0]
mov edx, dword [ebp]
push 0xffffffffffffff97
push ecx
push edx
mov ecx, esi
call fcn.00422040
mov eax, dword [esi + 0x1b0]
mov ecx, dword [ebp]
push 0x4dab08
push eax
push ecx
mov ecx, esi
call fcn.00427a80
mov edx, dword [esi + 0x1b0]
mov eax, dword [ebp]
push edx
push eax
push 1
mov ecx, esi
call fcn.00428230
mov ecx, dword [esi + 0x1b0]
mov edx, dword [ebp]
push 0xffffffffffffff96
push ecx
push edx
mov ecx, esi
call fcn.00422040
push 0
push ebp
mov ecx, esi
call fcn.00423f60
jmp 0x422f42
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x422bb4
mov eax, dword [esi + 0xcc]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jle 0x422b79
dec ecx
mov dword [esp + 0x1c], ecx
jmp 0x422f42
jne 0x422ba8
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc4]
cmp eax, ecx
jle 0x422ba8
mov edx, eax
mov eax, dword [esi + 0xc8]
dec edx
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 1
jmp 0x422f42
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
jmp 0x422f42
mov eax, dword [esi + 0xc8]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jge 0x422bcd
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x422f42
jne 0x422ba8
mov ecx, dword [esi + 0xc0]
mov eax, dword [esp + 0x18]
dec ecx
cmp eax, ecx
jge 0x422ba8
mov edx, dword [esi + 0xcc]
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], 1
jmp 0x422f42
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc0]
mov edi, eax
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jge 0x422c32
push eax
mov ecx, esi
call fcn.00427ef0
test eax, eax
jg 0x422f42
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc0]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x422c0f
mov dword [esp + 0x18], edi
jmp 0x422f42
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc4]
mov edi, eax
dec eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x422c73
push eax
mov ecx, esi
call fcn.00427ef0
test eax, eax
jg 0x422f42
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc4]
dec eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jge 0x422c50
mov dword [esp + 0x18], edi
jmp 0x422f42
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc8]
mov edi, eax
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x422cb4
push eax
mov ecx, esi
call fcn.00427f20
test eax, eax
jg 0x422f42
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc8]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x422c91
mov dword [esp + 0x1c], edi
jmp 0x422f42
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xcc]
mov edi, eax
dec eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x422cf5
push eax
mov ecx, esi
call fcn.00427f20
test eax, eax
jg 0x422f42
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xcc]
dec eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x422cd2
mov dword [esp + 0x1c], edi
jmp 0x422f42
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00425af0
mov ecx, dword [esi + 0x20]
push 0
push 3
push 0x115
push ecx
call ebx
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.00425af0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
sub eax, ecx
je 0x422d53
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esi + 0xc0]
dec eax
mov dword [esp + 0x18], ecx
cmp ecx, eax
jle 0x422f42
mov dword [esp + 0x18], eax
jmp 0x422f42
mov eax, dword [esi + 0xc0]
dec eax
mov dword [esp + 0x18], eax
jmp 0x422f42
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00425af0
mov ecx, dword [esi + 0x20]
push 0
push 2
push 0x115
push ecx
call ebx
lea edx, [esp + 0x28]
mov ecx, esi
push edx
call fcn.00425af0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
je 0x422db7
mov ecx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esi + 0xc4]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jge 0x422f42
mov dword [esp + 0x18], eax
jmp 0x422f42
mov eax, dword [esi + 0xc4]
mov dword [esp + 0x18], eax
jmp 0x422f42
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
push 0
push 6
je 0x422dfd
mov ecx, dword [esi + 0x20]
push 0x115
push ecx
call ebx
mov edx, dword [esi + 0x20]
push 0
push 6
push 0x114
push edx
call ebx
mov eax, dword [esi + 0xc4]
mov dword [esp + 0x18], eax
jmp 0x422e08
mov ecx, dword [esi + 0x20]
push 0x114
push ecx
call ebx
mov edx, dword [esi + 0xc8]
mov eax, dword [esi + 0xcc]
dec edx
mov dword [esp + 0x1c], eax
cmp eax, edx
jge 0x422e3d
push eax
mov ecx, esi
call fcn.00427f20
test eax, eax
jg 0x422e3d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc8]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x422e1d
mov edx, dword [esi + 0xc0]
mov eax, dword [esp + 0x18]
dec edx
cmp eax, edx
jge 0x422f42
push eax
mov ecx, esi
call fcn.00427ef0
test eax, eax
jg 0x422f42
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc0]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x422e50
jmp 0x422f42
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
push 0
push 7
je 0x422eb1
mov edx, dword [esi + 0x20]
push 0x115
push edx
call ebx
mov eax, dword [esi + 0x20]
push 0
push 7
push 0x114
push eax
call ebx
mov eax, dword [esi + 0xc0]
dec eax
mov dword [esp + 0x18], eax
jmp 0x422ebc
mov ecx, dword [esi + 0x20]
push 0x114
push ecx
call ebx
mov eax, dword [esi + 0xc8]
mov edx, dword [esi + 0xcc]
dec eax
inc edx
cmp eax, edx
mov dword [esp + 0x1c], eax
jle 0x422ef2
push eax
mov ecx, esi
call fcn.00427f20
test eax, eax
jg 0x422ef2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xcc]
dec eax
inc ecx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jg 0x422ed2
mov edx, dword [esi + 0xc4]
mov eax, dword [esp + 0x18]
inc edx
cmp eax, edx
jle 0x422f42
push eax
mov ecx, esi
call fcn.00427ef0
test eax, eax
jg 0x422f42
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc4]
dec eax
inc ecx
cmp eax, ecx
mov dword [esp + 0x18], eax
jg 0x422f01
jmp 0x422f42
mov edx, dword [esi]
or ecx, 0xffffffff
or eax, 0xffffffff
push 1
push ecx
mov ecx, dword [ebp]
push eax
mov eax, dword [esi + 0x1b0]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x108]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
cmp edx, eax
jne 0x422f5c
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 4]
cmp eax, ecx
je 0x423192
mov eax, dword [esi + 0x184]
xor edi, edi
cmp eax, edi
jne 0x423011
mov edx, dword [esi + 0x1ec]
cmp edx, edi
je 0x422f96
mov eax, dword [esi + 0x1f0]
cmp eax, edi
jbe 0x422f96
mov ecx, edx
mov edi, eax
mov eax, dword [ecx]
test eax, eax
je 0x422f90
mov eax, dword [eax]
test eax, eax
jne 0x422f8a
add ecx, 4
dec edi
jne 0x422f84
push edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esi + 0x1fc]
xor edi, edi
add esp, 4
mov dword [esi + 0x1ec], edi
mov dword [esi + 0x1f4], edi
mov dword [esi + 0x1f8], edi
call sub.MFC42.DLL_CPlex::FreeDataChain
mov dword [esi + 0x1fc], edi
mov ecx, dword [esi + 0x8c]
neg ecx
sbb ecx, ecx
push 0x10
add ecx, 4
mov dword [esi + 0x184], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x422feb
cmp dword [esp + 0x34], 9
jne 0x422fff
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1a4], edx
mov dword [esi + 0x1a8], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00424a70
mov dword [esi + 0x184], edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.00424240
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00428540
test eax, eax
jne 0x423192
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.00428320
mov eax, dword [esp + 0x14]
cmp eax, 0x1f
ja case.0x423066.5
xor ecx, ecx
mov cl, byte [eax + 0x423290]
jmp dword [ecx*4 + 0x423278]
push edi
push 1
mov edx, dword [esi + 0x20]
push 0x114
push edx
call ebx
mov edx, dword [esi + 0x20]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi + 0x20]
push edi
push edi
push 0x114
push eax
call ebx
mov edx, dword [esi + 0x20]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
push edi
push 1
push 0x115
jmp 0x42316e
mov edx, dword [esi + 0x20]
push edi
push edi
push 0x115
push edx
call ebx
mov edx, dword [esi + 0x20]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
mov eax, dword [esp + 0x10]
je 0x423135
cmp eax, edi
push edi
push edi
je 0x423070
mov eax, dword [esi + 0x20]
push 0x115
push eax
call ebx
mov ecx, dword [esi + 0x108]
push 1
push ecx
push edi
mov ecx, esi
call fcn.00425e70
mov edx, dword [esi + 0x20]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
cmp eax, edi
push edi
push 1
je 0x423169
mov eax, dword [esi + 0x20]
push 0x115
push eax
call ebx
push 1
push edi
push edi
mov ecx, esi
call fcn.00425e70
mov edx, dword [esi + 0x20]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
push 0x114
mov ecx, dword [esi + 0x20]
push ecx
call ebx
mov edx, dword [esi + 0x20]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc