Function at 0x4056c6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
push 0
push ebx
call edi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4058c2
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x4058c2
push 0xfffffffffffffff0
push ebx
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
call fcn.004053d8
add esp, 0x10
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, dword [ebp - 0x10]
push dword [edi + 0x10]
mov dword [ebp - 0x24], eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1c], eax
push 0x100
lea eax, [ebp - 0x28c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28c]
push eax
lea ebx, [edi + 0x18]
push esi
lea edi, [ebp - 0x34]
lea eax, [ebp - 0x54]
call fcn.004054d8
mov ebx, dword [sym.imp.GDI32.dll_ExtTextOutA]
xor edi, edi
add esp, 0xc
cmp dword [ebp + 0xc], edi
je 0x4057a1
cmp dword [ebp - 8], edi
je 0x405794
push dword [ebp - 8]
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x4057a1
push edi
push edi
push edi
push dword [ebp + 8]
push 2
push edi
push edi
push esi
call ebx
mov eax, dword [ebp - 0x10]
test dword [eax + 0x14], 6
jne 0x4057b6
test dword [ebp - 4], 0x10
je 0x405815
lea eax, [ebp - 0x8c]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
je 0x405815
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x88]
push dword [ebp - 0xc]
lea eax, [eax + ecx + 1]
mov dword [ebp - 0x40], eax
inc eax
push esi
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push edi
push edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
push 2
push edi
push edi
push esi
call ebx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
je 0x405815
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [ebp - 0x14], edi
je 0x40586c
mov ebx, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push esi
call ebx
push edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
push edi
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
cmp dword [ebp - 8], 1
je 0x40585d
push dword [ebp - 8]
push esi
call ebx
cmp dword [ebp - 4], edi
je 0x40586c
push dword [ebp - 4]
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
and eax, 0x18
cmp al, 8
jne 0x405898
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push edi
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
je 0x4058b2
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
je 0x4058c2
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
pop edi
pop ebx
leave
ret