Function at 0x40cac8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x416020]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2d
call esi
push 0x2e
mov edi, eax
call esi
push dword [ebx + 0x30c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x118]
mov dword [ebp - 0x130], eax
call esi
push 5
push 5
push dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
push dword [ebp - 0x124]
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push dword [ebp - 0x118]
call dword [sym.imp.GDI32.dll_RoundRect]
push dword [ebp - 0x11c]
push dword [ebp - 0x118]
call esi
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x120]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x124]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x128]
add ecx, eax
mov eax, dword [ebp - 0x12c]
push ecx
add eax, edi
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [ebx + 0x98], 0
je 0x40cba4
push dword [ebx + 0x330]
jmp 0x40cbaa
push dword [ebx + 0x334]
push dword [ebp - 0x118]
call esi
push dword [ebp - 0x118]
lea edi, [ebp - 0x140]
push ebx
mov dword [ebp - 0x11c], eax
call fcn.0040cd57
cmp dword [ebx + 0x98], 0
jne 0x40cbdc
cmp dword [ebx + 0xa4], 0
je 0x40cbf4
mov edi, dword [ebp - 0x118]
push ebx
lea esi, [ebp - 0x140]
call fcn.0040ceac
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x11c]
mov edi, dword [ebp - 0x118]
push edi
call esi
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40cc5d
lea ecx, [ebp - 0x154]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
cmp dword [ebp - 0x154], 0
je 0x40cc5d
mov eax, dword [ebp - 0x120]
push dword [ebx + 0x48]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ebp - 0x14c]
cmp dword [ebx + 0x9c], 0
jne 0x40cc4a
push eax
mov eax, dword [ebp - 0x12c]
add eax, 4
jmp 0x40cc55
inc eax
push eax
mov eax, dword [ebp - 0x12c]
add eax, 5
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIcon]
push 0x100
lea eax, [ebp - 0x114]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40cc8a
lea eax, [ebp - 0x114]
push eax
lea eax, [ebx + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebx + 0xb4]
push eax
mov dword [ebp - 0x130], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40cd44
cmp dword [ebx + 0xa0], 0
je 0x40ccb6
push dword [ebx + 0x94]
jmp 0x40ccbf
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebx + 0x2b4]
test eax, eax
je 0x40cce0
push eax
push edi
call esi
mov dword [ebp - 0x118], eax
cmp dword [ebx + 0x9c], 0
je 0x40cd16
push dword [ebp - 0x120]
mov eax, dword [ebp - 0x128]
push dword [ebp - 0x124]
add eax, 2
push eax
mov eax, dword [ebp - 0x12c]
add eax, 2
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x25
lea eax, [ebp - 0x140]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x130]
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp - 0x11c]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x118]
push edi
call esi
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0040e876
leave
ret 4