Function at 0x410426
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41e460]
cmp dword [eax + 0x3a], 0
jne 0x410476
cmp dword [ebp + 0xc], 9
je 0x410476
cmp dword [ebp + 0xc], 0xd
je 0x410476
cmp dword [ebp + 0xc], 0x1b
je 0x410476
mov ecx, dword [0x41e460]
mov dword [ecx + 0x3a], 1
push 0x7f
push 0x420ac0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x420b40
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
push 0x64
push 0x420a3c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x420a3c
call fcn.00414050
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
sub eax, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x13
ja case.0x4104ed.4
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov cl, byte [edx + 0x410707]
jmp dword [ecx*4 + 0x4106f3]
mov eax, dword [ebp - 0x14]
sub eax, 1
test eax, eax
jge 0x410507
mov dword [ebp - 0x20], 0
jmp 0x410510
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x420a3c], 0
jmp 0x4106d0
mov ecx, dword [0x41e460]
mov dword [ecx + 0x3a], 0
push 0x64
push 0x420a3c
mov edx, dword [0x41e460]
mov eax, dword [edx + 0x4a]
push eax
mov ecx, dword [0x41e460]
mov edx, dword [ecx + 0x4e]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0040fd20
add esp, 0x14
jmp 0x4106d0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
and edx, 0x8000
test edx, edx
jne 0x410595
push 0
push 0x27
push 0x100
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4105a8
push 0
push 0x25
push 0x100
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4106d0
cmp dword [ebp + 0xc], 0xd
jne 0x4105cb
mov edx, dword [0x41e460]
cmp dword [edx + 0x3e], 0
je 0x4105cb
mov eax, dword [0x41e460]
mov dword [eax + 0x42], 1
mov ecx, dword [0x41e460]
cmp dword [ecx + 0x3a], 0
jne 0x4105e3
mov edx, dword [0x41e460]
cmp dword [edx + 0x42], 0
je 0x410602
mov eax, dword [0x41e460]
mov ecx, dword [eax + 0x4a]
push ecx
mov edx, dword [0x41e460]
mov eax, dword [edx + 0x4e]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411ac0
add esp, 0xc
push 1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4106ef
mov cl, byte [ebp + 0xc]
push ecx
call fcn.00411e3a
add esp, 4
test eax, eax
je 0x410676
mov edx, dword [0x41e460]
mov eax, dword [edx + 0x4a]
imul eax, eax, 0x26
mov ecx, dword [0x41e460]
mov edx, dword [ecx + 0x32]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edx + eax + 0x1c]
jge 0x410651
mov edx, dword [0x41e460]
cmp dword [edx + 0x6c], 0
je 0x41065e
mov eax, dword [0x41e460]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x6c]
jge 0x410676
mov edx, dword [ebp - 0x14]
mov al, byte [ebp + 0xc]
mov byte [edx + 0x420a3c], al
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x420a3d], 0
jmp 0x4106d0
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
cmp dword [ebp - 0x14], 0
jne 0x4106ce
push 0x64
push 0x420a3c
mov edx, dword [0x41e460]
mov eax, dword [edx + 0x4a]
push eax
mov ecx, dword [0x41e460]
mov edx, dword [ecx + 0x4e]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0040fd20
add esp, 0x14
push 0x420a3c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x41e460]
mov dword [edx + 0x3a], 0
jmp 0x4106ef
push 0x420a3c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esp, ebp
pop ebp
ret