Function at 0x40748b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x528
and dword [esp], 0
push ebx
mov ebx, dword [edi + 0x40104]
push esi
mov esi, 0x3ff
push esi
lea eax, [esp + 0x135]
push 0
push eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x13c], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [esp + 0x134]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
add ebx, 3
shl ebx, 0xc
add ebx, edi
push ebx
call sub.msvcrt.dll_strlen
test eax, eax
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
jle 0x407736
mov eax, dword [esp + 0xc]
push str.title
add eax, 2
push edi
call fcn.004057d0
test eax, eax
je 0x40752f
lea eax, [esp + 0x130]
push eax
push ebx
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x40752f
xor esi, esi
inc esi
mov dword [esp + 8], esi
jmp 0x407532
xor esi, esi
inc esi
mov eax, dword [esp + 0xc]
push str.stitle
push edi
add eax, 2
call fcn.004057d0
test eax, eax
je 0x407565
push dword [esp + 0x10]
lea eax, [esp + 0x134]
push eax
push ebx
call sub.msvcrt.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x407565
mov dword [esp + 8], esi
mov eax, dword [esp + 0xc]
push str.ititle
push edi
add eax, 2
call fcn.004057d0
test eax, eax
je 0x407591
push ebx
lea eax, [esp + 0x134]
call fcn.00401f81
test eax, eax
pop ecx
jl 0x407591
mov dword [esp + 8], esi
mov eax, dword [esp + 0xc]
push str.etitle
push edi
add eax, 2
call fcn.004057d0
test eax, eax
je 0x4075ec
lea eax, [esp + 0x130]
push eax
call sub.msvcrt.dll_strlen
cmp eax, dword [esp + 0x14]
pop ecx
jb 0x4075ec
push dword [esp + 0x10]
lea eax, [esp + 0x134]
push eax
call sub.msvcrt.dll_strlen
pop ecx
lea ecx, [esp + 0x134]
sub ecx, dword [esp + 0x14]
add eax, ecx
push eax
push ebx
call sub.msvcrt.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x4075ec
mov dword [esp + 8], esi
mov eax, dword [esp + 0xc]
push 0x412f2c
push edi
add eax, 2
call fcn.004057d0
test eax, eax
je 0x407622
mov eax, ebx
call fcn.004023a5
push 0xfffffffffffffff4
push dword [ebp + 8]
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp dword [esp + 0x10], eax
jne 0x407622
mov dword [esp + 8], esi
mov eax, dword [esp + 0xc]
push str.class
push edi
add eax, 2
call fcn.004057d0
test eax, eax
je 0x407679
push 0xff
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0xff
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0x28]
push eax
push ebx
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x407679
mov dword [esp + 8], esi
mov eax, dword [esp + 0xc]
push str.process
push edi
add eax, 2
call fcn.004057d0
test eax, eax
je 0x407739
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x407739
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebx], 0x2f
jne 0x4076db
mov eax, dword [esp + 0xc]
shl eax, 0xc
lea eax, [eax + edi + 0x3001]
call fcn.004023a5
cmp dword [esp + 0x10], eax
jne 0x407739
mov dword [esp + 8], esi
jmp 0x407739
call fcn.0040d9cb
test eax, eax
je 0x407728
push 0x104
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [esp + 0x10]
lea esi, [esp + 0x2c]
call fcn.0040db32
pop ecx
push ebx
mov ecx, esi
call fcn.004020e9
push eax
call sub.msvcrt.dll__stricmp
xor esi, esi
pop ecx
inc esi
test eax, eax
pop ecx
jne 0x407739
mov dword [esp + 8], esi
jmp 0x407739
push str.Failed_to_load_the_process_library__
mov eax, edi
call fcn.0040572b
jmp 0x407739
xor esi, esi
inc esi
mov ebx, dword [esp + 0xc]
push str.alltop
add ebx, 2
push edi
mov eax, ebx
call fcn.004057d0
test eax, eax
je 0x407784
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x407784
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cmp eax, esi
jle 0x407784
mov dword [esp + 8], esi
mov dword [esp + 0x14], 3
push str.alltopnodesktop
push edi
mov eax, ebx
call fcn.004057d0
test eax, eax
je 0x407838
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x407838
mov ebx, 0xff
push ebx
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0x28]
push str.progman
push eax
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x407838
lea eax, [esp + 0x28]
push str.shell_traywnd
push eax
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x407838
lea eax, [esp + 0x28]
push str.button
push eax
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x407838
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cmp eax, esi
jle 0x407838
mov dword [esp + 8], esi
mov dword [esp + 0x14], 3
mov ebx, dword [esp + 0xc]
push 0x412f78
push edi
lea eax, [ebx + 2]
call fcn.004057d0
test eax, eax
je 0x40785a
mov dword [esp + 8], esi
mov dword [esp + 0x14], 3
cmp dword [esp + 8], 0
je 0x407874
mov eax, dword [esp + 0x14]
add eax, ebx
push eax
push dword [ebp + 8]
inc ebx
push ebx
mov ecx, edi
call fcn.00406c7e
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4