Function at 0x3007071a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x14], ecx
call fcn.30071470
test eax, eax
je 0x30070999
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
push dword [0x30155cf8]
mov ebx, dword [ebp + 0xc]
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 6
mov dword [ebp - 0x30], eax
call esi
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
mov dword [ebp - 0x28], eax
call edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.300705c2
mov eax, dword [0x30155d08]
push 0xff
add dword [ebp - 0x10], eax
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.3001fb91
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [ebp - 0x38]
push 1
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov di, word [ebp + 0x10]
mov ax, di
neg ax
sbb eax, eax
add eax, 3
push eax
call esi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push 0
dec eax
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 4]
dec eax
push eax
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov ax, di
neg ax
sbb eax, eax
and al, 0xf6
add eax, 0x13
push eax
call esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.3001fb91
pop ecx
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
dec eax
push 4
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.3007099d
mov eax, dword [ebp - 0x14]
test byte [eax + 0x44], 2
je 0x30070983
neg di
sbb edi, edi
add edi, 0xb
push edi
call esi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x30155d00]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_FillRect]
add eax, ecx
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
mov eax, dword [ebp - 8]
push edi
mov dword [ebp - 0x1c], eax
sub eax, dword [0x30155d00]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x30155d04]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, ecx
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 0x18], eax
sub eax, dword [0x30155d04]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
pop eax
sub eax, dword [0x30155d04]
push eax
push 1
pop eax
sub eax, dword [0x30155d00]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
dec eax
push eax
push ebx
mov esi, dword [sym.imp.GDI32.dll_LineTo]
call esi
mov eax, dword [ebp - 4]
dec eax
push eax
mov eax, dword [ebp - 8]
dec eax
push eax
push ebx
call esi
mov eax, dword [ebp - 4]
dec eax
push eax
push dword [ebp - 0x10]
push ebx
call esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call esi
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebx
pop esi
pop edi
leave
ret 0xc