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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42d384]
cmp dword [eax + 0x3a], 0
jne 0x41a7f6
cmp dword [ebp + 0xc], 9
je 0x41a7f6
cmp dword [ebp + 0xc], 0xd
je 0x41a7f6
cmp dword [ebp + 0xc], 0x1b
je 0x41a7f6
mov ecx, dword [0x42d384]
mov dword [ecx + 0x3a], 1
push 0x7f
push 0x431210
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x431290
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 0x43118c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x43118c
call fcn.0041efa0
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.0x41a86d.4
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov cl, byte [edx + 0x41aa87]
jmp dword [ecx*4 + 0x41aa73]
mov eax, dword [ebp - 0x14]
sub eax, 1
test eax, eax
jge 0x41a887
mov dword [ebp - 0x20], 0
jmp 0x41a890
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 + 0x43118c], 0
jmp 0x41aa50
mov ecx, dword [0x42d384]
mov dword [ecx + 0x3a], 0
push 0x64
push 0x43118c
mov edx, dword [0x42d384]
mov eax, dword [edx + 0x4a]
push eax
mov ecx, dword [0x42d384]
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.0041a0a0
add esp, 0x14
jmp 0x41aa50
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 0x41a915
push 0
push 0x27
push pe_nt_image_headers32
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x41a928
push 0
push 0x25
push pe_nt_image_headers32
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x41aa50
cmp dword [ebp + 0xc], 0xd
jne 0x41a94b
mov edx, dword [0x42d384]
cmp dword [edx + 0x3e], 0
je 0x41a94b
mov eax, dword [0x42d384]
mov dword [eax + 0x42], 1
mov ecx, dword [0x42d384]
cmp dword [ecx + 0x3a], 0
jne 0x41a963
mov edx, dword [0x42d384]
cmp dword [edx + 0x42], 0
je 0x41a982
mov eax, dword [0x42d384]
mov ecx, dword [eax + 0x4a]
push ecx
mov edx, dword [0x42d384]
mov eax, dword [edx + 0x4e]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041be40
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 0x41aa6f
mov cl, byte [ebp + 0xc]
push ecx
call fcn.0041c1ba
add esp, 4
test eax, eax
je 0x41a9f6
mov edx, dword [0x42d384]
mov eax, dword [edx + 0x4a]
imul eax, eax, 0x26
mov ecx, dword [0x42d384]
mov edx, dword [ecx + 0x32]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edx + eax + 0x1c]
jge 0x41a9d1
mov edx, dword [0x42d384]
cmp dword [edx + 0x6c], 0
je 0x41a9de
mov eax, dword [0x42d384]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x6c]
jge 0x41a9f6
mov edx, dword [ebp - 0x14]
mov al, byte [ebp + 0xc]
mov byte [edx + 0x43118c], al
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x43118d], 0
jmp 0x41aa50
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
cmp dword [ebp - 0x14], 0
jne 0x41aa4e
push 0x64
push 0x43118c
mov edx, dword [0x42d384]
mov eax, dword [edx + 0x4a]
push eax
mov ecx, dword [0x42d384]
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.0041a0a0
add esp, 0x14
push 0x43118c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x42d384]
mov dword [edx + 0x3a], 0
jmp 0x41aa6f
push 0x43118c
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