Function at 0x452509
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4528d0
cmp word [ebp + 0xc], 0
push 2
pop eax
je 0x452554
cmp word [ebp + 0xc], ax
je 0x452554
xor bl, bl
jmp 0x452556
mov bl, 1
mov eax, dword fs:[0x2c]
mov byte [ebp - 0x215], bl
mov edi, dword [eax]
mov eax, dword [0xd5b680]
cmp eax, dword [edi + 4]
jle 0x4525a3
push 0xd5b680
call fcn.004efe9f
cmp dword [0xd5b680], 0xffffffff
pop ecx
jne 0x4525a3
and dword [0xd5b67c], 0
push 0x517a0b
call fcn.004f0205
mov dword [esp], 0xd5b680
call fcn.004efe55
pop ecx
mov eax, dword [0xd5b678]
cmp eax, dword [edi + 4]
jle 0x4525de
mov edi, 0xd5b678
push edi
call fcn.004efe9f
cmp dword [0xd5b678], 0xffffffff
pop ecx
jne 0x4525de
and dword [0xd5b674], 0
push 0x5179e7
call fcn.004f0205
push edi
call fcn.004efe55
pop ecx
pop ecx
cmp dword [0xd5b67c], 0
mov edi, 0x158
jne 0x45263f
call fcn.004164bb
test al, al
mov ecx, edi
lea eax, [edi - 4]
push eax
cmove ecx, eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x214], ecx
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x214]
push 0
push eax
push 0
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 0x1fc]
mov byte [ebp - 0x1e5], 0xcc
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0xd5b67c], eax
cmp dword [0xd5b674], 0
jne 0x4526ad
call fcn.004164bb
test al, al
mov eax, 0x154
push eax
cmove edi, eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], edi
xor edi, edi
push edi
push eax
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x214]
push edi
push eax
push edi
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
or byte [ebp - 0x1e3], 0x10
lea eax, [ebp - 0x1fc]
push eax
mov dword [ebp - 0x1f4], 0x384
mov word [ebp - 0x1e5], 0x7cc
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0xd5b674], eax
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
sub ecx, 2
mov eax, dword [esi + 0xc]
add edx, 2
mov esi, dword [esi]
add esi, 2
test bl, bl
mov ebx, dword [sym.imp.USER32.dll_SetRect]
je 0x452716
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x9c]
push eax
call ebx
lea esi, [ebp - 0x9c]
lea edi, [ebp - 0xac]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xac]
push 0xffffffffffffffff
push 0xfffffffffffffffc
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
push dword [ebp - 0x90]
mov eax, dword [ebp - 0x21c]
push dword [eax + 8]
push dword [ebp - 0x98]
push dword [ebp - 0x94]
jmp 0x452762
add eax, 0xfffffffb
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x9c]
push eax
call ebx
lea esi, [ebp - 0x9c]
lea edi, [ebp - 0xac]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xac]
push 0xfffffffffffffffc
push 2
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_InflateRect]
push dword [ebp - 0x98]
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x94]
push dword [eax + 4]
push dword [ebp - 0x9c]
lea eax, [ebp - 0xbc]
push eax
call ebx
push 2
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FillRect]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push pe_nt_image_headers32
call edi
push pe_nt_image_headers32
mov esi, eax
call edi
push esi
push eax
mov eax, dword [ebp - 0x90]
lea ecx, [ebp + 8]
sub eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x9c]
push eax
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
call fcn.00459547
push 0x80
lea eax, [ebp - 0x8c]
push 0
push eax
call fcn.004f1a90
mov eax, dword [ebp - 0x220]
add esp, 0xc
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 0x7f
lea ecx, [ebp - 0x8c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 9
call edi
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov bl, byte [ebp - 0x215]
mov eax, dword [0xd5b674]
test bl, bl
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
cmovne eax, dword [0xd5b67c]
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 0x220], eax
test bl, bl
je 0x45285e
push 0x8824
lea eax, [ebp - 0xac]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextA]
jmp 0x452898
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xac]
push 4
push dword [ebp - 0xa0]
add eax, 2
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push dword [ebp - 0x220]
push dword [ebp + 8]
call edi
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4528d0
movzx eax, byte [ebp + 0x18]
add eax, 0x20
shl eax, 9
push eax
push 1
lea eax, [ebp - 0xbc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004efcea
mov esp, ebp
pop ebp
ret 0x14