Function at 0x41fd34
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], 0x53474c
mov dword [ebp - 0x4c], 0x53c620
mov dword [ebp - 0x48], ebp
mov dword [ebp - 0x40], esp
mov dword [ebp - 0x48], 0x41fff5
lea eax, [ebp - 0x6c]
call fcn.005353b5
test esi, esi
je 0x41fdda
sub esp, 4
lea edi, [ebp - 0x888]
push 0x800
push 0
push edi
call fcn.00524727
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 0x41fdda
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], 0
cmp word [ebp - 0x888], 0
je 0x41fec4
sub esp, 0xc
push edi
call fcn.005243e8
add esp, 0x10
jmp 0x41fec6
mov dword [ebp - 0x64], 0xffffffff
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x64], 0xffffffff
lea esi, [ebp - 0x88]
push eax
push 0x53c4c2
push 0x15
push esi
call fcn.00526f7c
add esp, 0x10
test eax, eax
mov dword [ebp - 0x870], 0xf
mov dword [ebp - 0x874], 0
mov byte [ebp - 0x884], 0
jle 0x41fe3e
mov dword [ebp - 0x64], 0xffffffff
sub esp, 4
lea ecx, [ebp - 0x888]
push eax
push esi
push ecx
call fcn.004056a0
add esp, 0x10
mov dword [ebp - 0x64], 3
lea eax, [ebp - 0x888]
push 5
push str.W_e:
push 0
push eax
call fcn.004058f0
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 0x41feab
mov edi, dword [esi + 0x14]
mov ebx, esi
add ebx, 4
mov ecx, edi
inc ecx
je 0x41ff90
sub esp, 4
push ecx
push ebx
push eax
mov dword [ebp - 0x2c], edx
call fcn.0052455c
mov edx, dword [ebp - 0x2c]
add esp, 0x10
jmp 0x41ff95
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 0x41ff95
xor eax, eax
mov dword [ebp - 0x64], 0xffffffff
sub esp, 4
lea esi, [ebp - 0x88]
push eax
push edi
push esi
call fcn.0041cd04
add esp, 0x10
mov dword [ebp - 0x64], 1
sub esp, 8
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00418e90
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 0x41ff14
sub ecx, eax
mov dword [ebp - 0x64], 2
sub esp, 4
push ecx
push eax
push dword [ebp + 8]
call fcn.004056a0
add esp, 0x10
mov eax, dword [ebp - 0x18]
test eax, eax
lea esi, [ebp - 0x6c]
je 0x41ff71
mov ecx, dword [ebp - 0x10]
sub ecx, eax
cmp ecx, 0x1000
jb 0x41ff50
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0051a4c8
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 0x41ffdb
mov eax, dword [ebp - 0x84]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41ff8e
mov eax, dword [eax - 4]
jmp 0x41ffcf
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 0x41ffdb
mov eax, dword [ebp - 0x884]
inc ecx
cmp ecx, 0x1000
jb 0x41ffcf
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0051a4c8
add esp, 0x10
sub esp, 0xc
push esi
call fcn.005353d6
add esp, 0x10
mov eax, dword [ebp + 8]
add esp, 0x87c
pop esi
pop edi
pop ebx
pop ebp
ret