Function at 0x409efc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x411020]
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 0x409fd8
push dword [ebx + 0x330]
jmp 0x409fde
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.0040a18b
cmp dword [ebx + 0x98], 0
jne 0x40a010
cmp dword [ebx + 0xa4], 0
je 0x40a028
mov edi, dword [ebp - 0x118]
push ebx
lea esi, [ebp - 0x140]
call fcn.0040a2e0
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 0x40a091
lea ecx, [ebp - 0x154]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
cmp dword [ebp - 0x154], 0
je 0x40a091
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 0x40a07e
push eax
mov eax, dword [ebp - 0x12c]
add eax, 4
jmp 0x40a089
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 0x40a0be
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 0x40a178
cmp dword [ebx + 0xa0], 0
je 0x40a0ea
push dword [ebx + 0x94]
jmp 0x40a0f3
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 0x40a114
push eax
push edi
call esi
mov dword [ebp - 0x118], eax
cmp dword [ebx + 0x9c], 0
je 0x40a14a
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.0040ba0c
leave
ret 4