Function at 0x4fe040
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0x15
mov dword [ebp - 0x240], esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x248], eax
mov eax, ebx
and eax, 4
mov dword [ebp - 0x24c], eax
mov eax, ebx
push 0xfffffffffffffff0
push dword [esi + 4]
and eax, 1
and ebx, 0x10
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x254], ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, dword [edi + 0x18]
lea ecx, [edi + 0x1c]
and eax, 0x8000
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edi, dword [sym.imp.USER32.dll_GetSysColorBrush]
test ebx, ebx
jne 0x4fe0d1
mov eax, dword [ebp - 0x240]
cmp byte [eax + 0x25], 0
je 0x4fe0f5
push 0x12
call edi
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.USER32.dll_FrameRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0xf
call edi
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov edi, dword [ebp - 0x250]
mov eax, dword [ebp - 0x244]
neg edi
sbb edi, edi
shl eax, 9
and edi, 0xc000
or eax, edi
or eax, 0x10
push eax
push 4
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFrameControl]
movups xmm0, xmmword [ebp - 0x22c]
movups xmmword [ebp - 0x23c], xmm0
psrldq xmm0, 8
movd eax, xmm0
sub eax, dword [ebp - 0x248]
cmp dword [ebp - 0x244], 0
mov dword [ebp - 0x23c], eax
jne 0x4fe174
mov eax, dword [ebp - 0x240]
mov ecx, 5
cmp byte [eax + 0x24], 0
je 0x4fe179
mov ecx, 0x205
mov eax, dword [ebp - 0x24c]
neg eax
sbb eax, eax
and eax, 0x100
or eax, edi
or eax, ecx
push eax
push 3
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov edi, dword [ebp - 0x240]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x4fe2b4
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
push eax
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x214]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x224]
add eax, dword [ebp - 0x22c]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x214]
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ebx, eax
mov eax, dword [ebp - 0x248]
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, dword [ebp - 0x228]
add eax, dword [ebp - 0x220]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x210]
cdq
sub eax, edx
sar edi, 1
push 1
sar eax, 1
push esi
sub edi, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebp - 0x24c], 0
mov ecx, 0x22
mov eax, 2
cmovne eax, ecx
mov ecx, dword [ebp - 0x244]
push eax
push dword [ebp - 0x210]
test ecx, ecx
lea eax, [edi + 1]
push dword [ebp - 0x214]
cmove eax, edi
push eax
lea eax, [ebx + 1]
cmove eax, ebx
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x240]
test ebx, ebx
je 0x4fe310
cmp byte [edi + 0x24], 0
jne 0x4fe310
movups xmm0, xmmword [ebp - 0x22c]
movups xmmword [ebp - 0x21c], xmm0
psrldq xmm0, 8
movd eax, xmm0
sub eax, dword [ebp - 0x248]
cmp dword [ebp - 0x250], 0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x21c]
je 0x4fe2f6
push 0xfffffffffffffffe
push 0xfffffffffffffffe
jmp 0x4fe2fa
push 0xfffffffffffffffc
push 0xfffffffffffffffc
push eax
mov eax, dword [sym.imp.USER32.dll_InflateRect]
call eax
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
test esi, esi
je 0x4fe31b
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 0x10