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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x15c], 0xffffffff
je 0x40565f
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, dword [edi + 0x224]
cmp eax, ecx
je 0x40544d
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x40565f
mov eax, dword [ebx + 4]
cmp eax, 0x100
je 0x405462
cmp eax, 0x104
jne 0x40565f
cmp dword [ebx + 8], 0xd
jne 0x40565f
mov eax, dword [0x43d4c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x43d4c4
call edx
mov ebx, dword [edi + 0x26c]
mov esi, eax
add esi, 0x10
mov dword [esp + 0x10], esi
call dword [sym.imp.USER32.dll_GetFocus]
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4054dc
mov edx, dword [edi + 0x224]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esi - 8]
mov ebx, eax
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, ebx
or eax, ecx
jge 0x4054d0
mov ecx, ebx
lea eax, [esp + 0x10]
call fcn.00401d00
mov esi, dword [esp + 0x10]
mov edx, dword [edi + 0x224]
inc ebx
push ebx
push esi
push edx
jmp 0x405515
mov eax, dword [edi + 0x26c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebx, eax
sub edx, ebx
or ecx, edx
jge 0x40550b
mov ecx, ebx
lea eax, [esp + 0x10]
call fcn.00401d00
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 0x26c]
inc ebx
push ebx
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0041ce04
add esp, 8
test eax, eax
jl 0x40566a
cmp eax, dword [esi - 8]
jg 0x40566a
xor ecx, ecx
mov dword [esi - 0xc], eax
lea ebx, [esp + 0x10]
mov word [esi + eax*2], cx
call fcn.00401ad0
call fcn.00401a50
mov ebx, dword [esp + 0x10]
cmp dword [ebx - 0xc], 0
je 0x40563e
mov edx, dword [edi + 0x130]
push 0
push 0
push 0x1304
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jge 0x40558a
mov eax, dword [0x43e808]
push 0
push 1
push eax
mov eax, edi
call fcn.00406920
cmp dword [esp + 0x14], 0
je 0x4055c8
push 0x12
xor esi, esi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4055a5
mov esi, 1
push 0x7d04
push esi
push edi
call fcn.00408940
lea eax, [esp + 0x10]
call fcn.00409a00
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0x104
jne 0x4055e0
push 0
push 1
push ebx
mov eax, edi
call fcn.00406920
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x405632
lea esi, [esp + 0x10]
call fcn.00409960
push ebx
push str.http:__www._s.com
mov edi, esi
call fcn.00413d60
mov edi, dword [esp + 0x18]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x224]
add esp, 8
push edi
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0
push edi
mov eax, esi
call fcn.00406920
lea eax, [esp + 0x10]
call fcn.00409a00
jmp 0x40563e
push 0
push 0
push ebx
mov eax, edi
call fcn.00406920
lea eax, [ebx - 0x10]
mov esi, 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40565f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00401730
int3