Function at 0x408077
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x41c084
call fcn.00410ec8
sub esp, 0x58
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x5c]
xor ebx, ebx
mov eax, dword [esi + 4]
push ecx
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x64], eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00408370
mov edi, 0xff000000
cmp dword [esi + 0x7c], edi
jne 0x4080c1
push 9
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x7c], eax
cmp dword [esi + 0x20], edi
jne 0x4080d1
push 2
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x20], eax
cmp dword [esi + 0x80], edi
jne 0x4080e7
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x80], eax
cmp dword [esi + 0x24], edi
jne 0x4080f7
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x24], eax
push dword [esi + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 0x64]
call edi
push ebx
lea eax, [esi + 0x38]
push ebx
push ebx
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push dword [esi + 0x20]
push dword [ebp - 0x64]
call edi
push ebx
lea eax, [esi + 0x48]
push ebx
push ebx
push eax
push 2
push ebx
push ebx
push dword [ebp - 0x64]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x404158]
mov dword [ebp - 0x14], eax
push dword [esi + 4]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
add eax, 2
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], eax
call fcn.00408275
push dword [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004082ee
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x48]
push eax
push ecx
push dword [esi + 0x4c]
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x64]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [esi + 0x7c]
push dword [ebp - 0x64]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esi + 0x20]
push dword [ebp - 0x64]
call edi
push 0x25
push dword [ebp - 0x18]
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [ebp - 0x64]
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x58]
push eax
push ecx
push dword [esi + 0x5c]
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x64]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [esi + 0x80]
push dword [ebp - 0x64]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esi + 0x24]
push dword [ebp - 0x64]
call edi
push 0x25
push dword [ebp - 0x18]
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [ebp - 0x64]
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
cmp eax, ebx
je 0x408238
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x64]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x10], ebx
je 0x40824e
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x14]
call fcn.00407ae9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00408350
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10