Function at 0x411990
Capabilities:
Get graphical window text
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x11
mov dword [ebp - 0x3a0], esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x411ccc
cmp word [ebp + 0xc], 0x43
jne 0x411ccc
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x411cb6
push ebx
push 0x4000
call fcn.0041c0f7
mov ebx, eax
mov ecx, str.____________________________r_n
mov edx, ebx
add esp, 4
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x4119f1
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a06
sub ecx, edx
sar ecx, 1
push 0x3e8
lea eax, [ebx + ecx*2]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebx - 2]
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x411a30
mov eax, dword [0x4315c8]
mov dword [ecx], eax
mov ax, word [0x4315cc]
push edi
mov word [ecx + 4], ax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411a51
push 0x3e9
push dword [ebp - 0x3a0]
mov ecx, 0xf
mov esi, str.____________________________r_n
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x411aea
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a90
sub ecx, edx
sar ecx, 1
push 0xfa0
lea eax, [ebx + ecx*2]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x411ab2
mov eax, dword [0x4315c8]
lea edi, [ebx - 2]
mov dword [ecx], eax
mov ax, word [0x4315cc]
mov word [ecx + 4], ax
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411ad2
mov ecx, 0xf
mov esi, str.____________________________r_n
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [ebp - 0x3a0]
call esi
mov edi, eax
test edi, edi
je 0x411bda
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x411bcb
push 0x102
lea eax, [ebp - 0x39c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x39c]
push 0x4318a8
push eax
call fcn.0041fb47
add esp, 8
test eax, eax
jne 0x411bcb
push 0xc7
lea eax, [ebp - 0x194]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411b60
mov ax, word [ebp - 0x194]
sub ecx, edx
sar ecx, 1
lea edx, [ebp - 0x194]
test ax, ax
je 0x411ba6
movzx esi, ax
cmp si, 0x26
je 0x411b92
mov ax, word [edx]
mov word [ebx + ecx*2], ax
inc ecx
movzx eax, word [edx + 2]
add edx, 2
mov esi, eax
test ax, ax
jne 0x411b84
mov esi, dword [sym.imp.USER32.dll_GetWindow]
xor eax, eax
mov word [ebx + ecx*2], ax
lea ecx, [ebx - 2]
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x411bb0
mov eax, dword [0x431930]
mov dword [ecx], eax
mov eax, dword [0x431934]
mov dword [ecx + 4], eax
push 2
push edi
call esi
mov edi, eax
test edi, edi
jne 0x411b04
lea ecx, [ebx - 2]
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x411be0
mov eax, dword [0x4315c8]
lea edi, [ebx - 2]
mov dword [ecx], eax
mov ax, word [0x4315cc]
mov word [ecx + 4], ax
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411c00
mov ecx, 0xf
mov esi, str.____________________________r_n
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
pop edi
test eax, eax
je 0x411c96
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411c30
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x411c90
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x411c90
mov ecx, ebx
sub edx, ebx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x411c70
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
call fcn.0041c6ba
add esp, 4
mov eax, 1
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret 0xc