Function at 0x4078ac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x115c
call fcn.00409270
mov dword [ebp - 0x108], 0x10
push 0x104
lea eax, [ebp - 0x1150]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
push 0
push 0x146
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xf
jbe 0x407905
mov dword [ebp - 0x10c], 0xf
mov dword [ebp - 0x1154], 1
jmp 0x407920
mov eax, dword [ebp - 0x1154]
add eax, 1
mov dword [ebp - 0x1154], eax
mov ecx, dword [ebp - 0x1154]
cmp ecx, dword [ebp - 0x10c]
ja 0x40795d
mov edx, dword [ebp - 0x1154]
imul edx, edx, 0x104
lea eax, [ebp + edx - 0x1150]
push eax
mov ecx, dword [ebp - 0x1154]
sub ecx, 1
push ecx
push 0x148
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x407911
mov eax, dword [ebp - 0x1154]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x1154], 0
jmp 0x407984
mov ecx, dword [ebp - 0x1154]
add ecx, 1
mov dword [ebp - 0x1154], ecx
mov edx, dword [ebp - 0x10c]
sub edx, 1
cmp dword [ebp - 0x1154], edx
jae 0x407a7c
mov eax, dword [ebp - 0x1154]
add eax, 1
mov dword [ebp - 0x1158], eax
jmp 0x4079b9
mov ecx, dword [ebp - 0x1158]
add ecx, 1
mov dword [ebp - 0x1158], ecx
mov edx, dword [ebp - 0x1158]
cmp edx, dword [ebp - 0x10c]
jae 0x407a77
mov eax, dword [ebp - 0x1158]
imul eax, eax, 0x104
lea ecx, [ebp + eax - 0x1150]
push ecx
mov edx, dword [ebp - 0x1154]
imul edx, edx, 0x104
lea eax, [ebp + edx - 0x1150]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x407a72
mov ecx, dword [ebp - 0x1158]
add ecx, 1
mov dword [ebp - 0x115c], ecx
jmp 0x407a20
mov edx, dword [ebp - 0x115c]
add edx, 1
mov dword [ebp - 0x115c], edx
mov eax, dword [ebp - 0x115c]
cmp eax, dword [ebp - 0x10c]
jae 0x407a63
mov ecx, dword [ebp - 0x115c]
imul ecx, ecx, 0x104
lea edx, [ebp + ecx - 0x1150]
push edx
mov eax, dword [ebp - 0x115c]
sub eax, 1
imul eax, eax, 0x104
lea ecx, [ebp + eax - 0x1150]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x407a11
mov edx, dword [ebp - 0x10c]
sub edx, 1
mov dword [ebp - 0x10c], edx
jmp 0x4079aa
jmp 0x407975
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [ebp - 0x104]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x1154], eax
jmp 0x407ab6
mov edx, dword [ebp - 0x1154]
sub edx, 1
mov dword [ebp - 0x1154], edx
cmp dword [ebp - 0x1154], 0
jbe 0x407af8
mov eax, dword [ebp - 0x1154]
movsx ecx, byte [ebp + eax - 0x104]
cmp ecx, 0x5c
jne 0x407af6
mov edx, dword [ebp - 0x1154]
mov byte [ebp + edx - 0x103], 0
push str.apps.lst
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x407af8
jmp 0x407aa7
push 0x40c23c
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x407b1e
jmp 0x407b82
mov dword [ebp - 0x1154], 0
jmp 0x407b39
mov edx, dword [ebp - 0x1154]
add edx, 1
mov dword [ebp - 0x1154], edx
mov eax, dword [ebp - 0x1154]
cmp eax, dword [ebp - 0x10c]
jae 0x407b72
mov ecx, dword [ebp - 0x1154]
imul ecx, ecx, 0x104
lea edx, [ebp + ecx - 0x1150]
push edx
push 0x40c240
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
jmp 0x407b2a
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov esp, ebp
pop ebp
ret