Function at 0x41ecb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x87c
call sub.USER32.DLL_GetForegroundWindow
mov esi, eax
mov dword [ebp - 0x50], 0x45e02c
mov dword [ebp - 0x4c], 0x464550
mov dword [ebp - 0x48], ebp
mov dword [ebp - 0x40], esp
mov dword [ebp - 0x48], 0x41ef71
lea eax, [ebp - 0x6c]
call fcn.0045ec95
test esi, esi
je 0x41ed56
sub esp, 4
lea edi, [ebp - 0x888]
push 0x800
push 0
push edi
call fcn.0044d15b
add esp, 0x10
mov dword [ebp - 0x64], 0xffffffff
sub esp, 4
push 0x400
push edi
push esi
call sub.USER32.DLL_GetWindowTextW
add esp, 4
test eax, eax
jle 0x41ed56
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], 0
cmp word [ebp - 0x888], 0
je 0x41ee40
sub esp, 0xc
push edi
call fcn.0044ce1c
add esp, 0x10
jmp 0x41ee42
mov dword [ebp - 0x64], 0xffffffff
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x64], 0xffffffff
lea esi, [ebp - 0x88]
push eax
push 0x4643f2
push 0x15
push esi
call fcn.0044f9b0
add esp, 0x10
test eax, eax
mov dword [ebp - 0x870], 0xf
mov dword [ebp - 0x874], 0
mov byte [ebp - 0x884], 0
jle 0x41edba
mov dword [ebp - 0x64], 0xffffffff
sub esp, 4
lea ecx, [ebp - 0x888]
push eax
push esi
push ecx
call fcn.004041b8
add esp, 0x10
mov dword [ebp - 0x64], 3
lea eax, [ebp - 0x888]
push 5
push str.W_e:
push 0
push eax
call fcn.00404408
add esp, 0x10
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ecx + 0x18], 0xf
lea eax, [ecx + 4]
mov dword [ecx + 0x14], 0
mov byte [ecx + 4], 0
mov edx, dword [esi + 0x18]
cmp edx, 0xf
ja 0x41ee27
mov edi, dword [esi + 0x14]
mov ebx, esi
add ebx, 4
mov ecx, edi
inc ecx
je 0x41ef0c
sub esp, 4
push ecx
push ebx
push eax
mov dword [ebp - 0x2c], edx
call fcn.0044cf90
mov edx, dword [ebp - 0x2c]
add esp, 0x10
jmp 0x41ef11
mov ebx, esi
add ebx, 4
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov dword [esi + 4], 0
mov edi, dword [esi + 0x14]
jmp 0x41ef11
xor eax, eax
mov dword [ebp - 0x64], 0xffffffff
sub esp, 4
lea esi, [ebp - 0x88]
push eax
push edi
push esi
call fcn.0041b87c
add esp, 0x10
mov dword [ebp - 0x64], 1
sub esp, 8
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00417d80
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
mov byte [ecx + 4], 0
lea ecx, [eax - 1]
nop
cmp byte [ecx + 1], 0
lea ecx, [ecx + 1]
jne 0x41ee90
sub ecx, eax
mov dword [ebp - 0x64], 2
sub esp, 4
push ecx
push eax
push dword [ebp + 8]
call fcn.004041b8
add esp, 0x10
mov eax, dword [ebp - 0x18]
test eax, eax
lea esi, [ebp - 0x6c]
je 0x41eeed
mov ecx, dword [ebp - 0x10]
sub ecx, eax
cmp ecx, 0x1000
jb 0x41eecc
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.00440ea4
add esp, 0x10
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x70]
cmp ecx, 8
jb 0x41ef57
mov eax, dword [ebp - 0x84]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41ef0a
mov eax, dword [eax - 4]
jmp 0x41ef4b
mov edi, 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [ebx], 0
mov ecx, dword [ebp - 0x870]
cmp ecx, 0x10
lea esi, [ebp - 0x6c]
jb 0x41ef57
mov eax, dword [ebp - 0x884]
inc ecx
cmp ecx, 0x1000
jb 0x41ef4b
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.00440ea4
add esp, 0x10
sub esp, 0xc
push esi
call fcn.0045ecb6
add esp, 0x10
mov eax, dword [ebp + 8]
add esp, 0x87c
pop esi
pop edi
pop ebx
pop ebp
ret