Function at 0x41d670
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], 0x45d7f8
mov dword [ebp - 0x4c], 0x46430c
mov dword [ebp - 0x48], ebp
mov dword [ebp - 0x40], esp
mov dword [ebp - 0x48], 0x41d931
lea eax, [ebp - 0x6c]
call fcn.0045e461
test esi, esi
je 0x41d716
sub esp, 4
lea edi, [ebp - 0x888]
push 0x800
push 0
push edi
call fcn.0044c927
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 0x41d716
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], 0
cmp word [ebp - 0x888], 0
je 0x41d800
sub esp, 0xc
push edi
call fcn.0044c630
add esp, 0x10
jmp 0x41d802
mov dword [ebp - 0x64], 0xffffffff
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x64], 0xffffffff
lea esi, [ebp - 0x88]
push eax
push 0x4641ae
push 0x15
push esi
call fcn.0044f17c
add esp, 0x10
test eax, eax
mov dword [ebp - 0x870], 0xf
mov dword [ebp - 0x874], 0
mov byte [ebp - 0x884], 0
jle 0x41d77a
mov dword [ebp - 0x64], 0xffffffff
sub esp, 4
lea ecx, [ebp - 0x888]
push eax
push esi
push ecx
call fcn.004025f8
add esp, 0x10
mov dword [ebp - 0x64], 3
lea eax, [ebp - 0x888]
push 5
push str.W_e:
push 0
push eax
call fcn.00402cac
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 0x41d7e7
mov edi, dword [esi + 0x14]
mov ebx, esi
add ebx, 4
mov ecx, edi
inc ecx
je 0x41d8cc
sub esp, 4
push ecx
push ebx
push eax
mov dword [ebp - 0x2c], edx
call fcn.0044c75c
mov edx, dword [ebp - 0x2c]
add esp, 0x10
jmp 0x41d8d1
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 0x41d8d1
xor eax, eax
mov dword [ebp - 0x64], 0xffffffff
sub esp, 4
lea esi, [ebp - 0x88]
push eax
push edi
push esi
call fcn.0041a23c
add esp, 0x10
mov dword [ebp - 0x64], 1
sub esp, 8
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00416078
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 0x41d850
sub ecx, eax
mov dword [ebp - 0x64], 2
sub esp, 4
push ecx
push eax
push dword [ebp + 8]
call fcn.004025f8
add esp, 0x10
mov eax, dword [ebp - 0x18]
test eax, eax
lea esi, [ebp - 0x6c]
je 0x41d8ad
mov ecx, dword [ebp - 0x10]
sub ecx, eax
cmp ecx, 0x1000
jb 0x41d88c
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.004406b8
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 0x41d917
mov eax, dword [ebp - 0x84]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41d8ca
mov eax, dword [eax - 4]
jmp 0x41d90b
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 0x41d917
mov eax, dword [ebp - 0x884]
inc ecx
cmp ecx, 0x1000
jb 0x41d90b
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.004406b8
add esp, 0x10
sub esp, 0xc
push esi
call fcn.0045e482
add esp, 0x10
mov eax, dword [ebp + 8]
add esp, 0x87c
pop esi
pop edi
pop ebx
pop ebp
ret