Function at 0x451308
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x451669
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x45137f
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x45137f
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00450e24
mov ebx, eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x451371
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, esi
call fcn.00450e7c
jmp 0x45137f
mov edx, esi
shr edx, 1
lea eax, [ebp - 0xc]
mov ecx, ebx
call fcn.00450e7c
test edi, edi
je 0x45138e
mov esi, edi
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x45139b
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetClientRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4513f1
mov esi, 2
cmp byte [ebp + 0xc], 0
je 0x4513d1
push 0x210
push 4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawFrameControl
jmp 0x4513e5
push 0x10
push 4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawFrameControl
push 0x15
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x10], eax
jmp 0x45141f
xor esi, esi
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateSolidBrush
mov ebx, eax
push ebx
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_FillRect
push ebx
call sub.gdi32.dll_DeleteObject
push 0xf
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp eax, dword [ebp + 0x1c]
jne 0x451505
mov eax, dword [ebp - 4]
cmp dword [eax + 0x64], 0
je 0x451505
cmp dword [ebp + 0x14], 0xffffffff
je 0x45144a
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x6c]
push ebp
push esi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov eax, edi
call fcn.00451288
pop ecx
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x451505
mov eax, dword [ebp - 0x10]
and eax, 0xff00
mov dword [ebp - 0x14], eax
and dword [ebp - 0x10], 0xff00ff
mov eax, dword [ebp - 0xc]
and eax, 0xff00
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
and eax, 0xff00ff
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov eax, 4
sub eax, ebx
imul dword [ebp - 0x10]
mov edx, ebx
imul edx, dword [ebp - 0x18]
add eax, edx
shr eax, 2
and eax, 0xff00ff
mov edx, 4
sub edx, ebx
imul edx, dword [ebp - 0x14]
mov ecx, ebx
imul ecx, dword [ebp - 0x1c]
add edx, ecx
shr edx, 2
and edx, 0xff00
add eax, edx
mov dword [ebp - 0x20], eax
push ebp
push esi
lea eax, [ebx + edi]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00451288
pop ecx
push ebp
push esi
mov eax, edi
sub eax, ebx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00451288
pop ecx
inc ebx
cmp ebx, 4
jne 0x4514a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc8]
and al, byte [ebp + 8]
je 0x451541
push esi
lea esi, [ebp - 0x30]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x40]
push eax
call sub.user32.dll_InflateRect
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawFocusRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
lea ecx, [esi + 3]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
call fcn.00450f98
push 0x1e
lea eax, [ebp - 0x5f]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetWindowTextA
mov ebx, eax
push 1
push 0
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x5f]
mov ecx, 0x1f
push 0
call fcn.0040747c
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00450d94
mov edi, dword [ebp - 0x28]
sub edi, dword [ebp - 0x30]
sub edi, eax
sub edi, 0x1b
sub edi, 8
sar edi, 1
jns 0x4515b8
adc edi, 0
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x451605
push 0xffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SetTextColor
push ebx
lea eax, [ebp - 0x5f]
push eax
lea eax, [esi + 5]
push eax
lea eax, [edi + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_TextOutA
push 0x15
call sub.user32.dll_GetSysColor
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SetTextColor
jmp 0x451615
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SetTextColor
push ebx
lea eax, [ebp - 0x5f]
push eax
add esi, 4
push esi
add edi, 0x1b
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_TextOutA
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451670
lea eax, [ebp - 0x64]
call fcn.00406de8
ret