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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x6d9120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x11
mov dword [ebp - 0x3a4], ecx
mov dword [ebp - 0x3a0], esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4119ec
cmp word [ebp + 0xc], 0x43
jne 0x4119ec
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4119d6
push ebx
push edi
push 0x4000
call fcn.004122bf
mov ebx, eax
mov ecx, 0x658498
mov edx, ebx
add esp, 4
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4117a0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4117b5
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 word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4117e0
mov eax, dword [0x6584d4]
lea edi, [ebx - 2]
mov dword [ecx], eax
mov ax, word [0x6584d8]
mov word [ecx + 4], ax
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411800
push 0x3e9
push dword [ebp - 0x3a0]
mov ecx, 0xf
mov esi, 0x658498
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 0x41189a
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411840
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 0x411862
mov eax, dword [0x6584d4]
lea edi, [ebx - 2]
mov dword [ecx], eax
mov ax, word [0x6584d8]
mov word [ecx + 4], ax
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411882
mov ecx, 0xf
mov esi, 0x658498
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [ebp - 0x3a0]
call edi
mov esi, eax
test esi, esi
je 0x41196e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41195f
push 0x102
lea eax, [ebp - 0x39c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x39c]
push 0x658448
push eax
call fcn.00601290
add esp, 8
test eax, eax
jne 0x41195f
push 0xc7
lea eax, [ebp - 0x194]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411906
sub ecx, edx
lea eax, [ebp - 0x194]
sar ecx, 1
cmp word [ebp - 0x194], 0
je 0x41193b
movzx edx, word [eax]
cmp edx, 0x26
je 0x411932
mov word [ebx + ecx*2], dx
inc ecx
add eax, 2
cmp word [eax], 0
jne 0x411925
xor eax, eax
mov word [ebx + ecx*2], ax
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x411944
mov eax, dword [0x6584dc]
mov dword [ecx], eax
mov eax, dword [0x6584e0]
mov dword [ecx + 4], eax
push 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x4118b4
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x411971
mov eax, dword [0x6584d4]
lea edi, [ebx - 2]
mov dword [ecx], eax
mov ax, word [0x6584d8]
mov word [ecx + 4], ax
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411991
mov ecx, 0xf
mov esi, 0x658498
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x3a4]
push ebx
call fcn.00411c70
push ebx
call fcn.004122c8
add esp, 4
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dddbe
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dddbe
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005dddbe
mov esp, ebp
pop ebp
ret 0xc