Function at 0x41210c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x412451
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b6bc]
call fcn.00402af4
mov dword [ebp - 4], eax
call sub.user32.dll_GetDesktopWindow
push 5
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
mov eax, 0xc8
call fcn.004025a8
mov esi, eax
test ebx, ebx
jbe 0x4121a1
push 0xc8
push esi
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.0040364c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00406bf4
cmp dword [ebp - 0x10], 0
je 0x412193
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.0040364c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
ja 0x412157
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x412436
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x412427
inc ebx
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
call fcn.00406b08
mov edx, dword [ebp - 0xc]
mov eax, 0x412468
call fcn.00403980
test eax, eax
je 0x412216
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x41247c
call fcn.00403980
test eax, eax
je 0x412248
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x412490
call fcn.00403980
test eax, eax
je 0x41227a
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x4124a4
call fcn.00403980
test eax, eax
je 0x4122ac
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x4124c0
call fcn.00403980
test eax, eax
je 0x4122de
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x4124d0
call fcn.00403980
test eax, eax
je 0x412310
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x4124e0
call fcn.00403980
test eax, eax
je 0x412342
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x4124f0
call fcn.00403980
test eax, eax
je 0x412374
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x412504
call fcn.00403980
test eax, eax
je 0x4123a3
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x412534
call fcn.00403980
test eax, eax
je 0x4123e1
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
call fcn.00410bec
mov eax, dword [0x4176e8]
call fcn.0040e3e0
jmp 0x41241d
mov edx, dword [ebp - 0xc]
mov eax, 0x41254c
call fcn.00403980
test eax, eax
je 0x41241d
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
call fcn.00410bec
mov eax, dword [0x4176e8]
call fcn.0040e3e0
inc dword [ebp - 8]
dec ebx
jne 0x4121cb
mov eax, esi
call fcn.004025c0
mov eax, dword [ebp - 4]
call fcn.00402b24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412458
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004034b8
ret