Function at 0x4546a4
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 0x454a05
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x45471b
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x45471b
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.004541c0
mov ebx, eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x45470d
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, esi
call fcn.00454218
jmp 0x45471b
mov edx, esi
shr edx, 1
lea eax, [ebp - 0xc]
mov ecx, ebx
call fcn.00454218
test edi, edi
je 0x45472a
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 0x454737
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 0x45478d
mov esi, 2
cmp byte [ebp + 0xc], 0
je 0x45476d
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 0x454781
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 0x4547bb
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 0x4548a1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x64], 0
je 0x4548a1
cmp dword [ebp + 0x14], 0xffffffff
je 0x4547e6
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.00454624
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 0x4548a1
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.00454624
pop ecx
push ebp
push esi
mov eax, edi
sub eax, ebx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00454624
pop ecx
inc ebx
cmp ebx, 4
jne 0x45483d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc8]
and al, byte [ebp + 8]
je 0x4548dd
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.00454334
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.00406028
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0045412c
mov edi, dword [ebp - 0x28]
sub edi, dword [ebp - 0x30]
sub edi, eax
sub edi, 0x1b
sub edi, 8
sar edi, 1
jns 0x454954
adc edi, 0
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x4549a1
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 0x4549b1
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 0x454a0c
lea eax, [ebp - 0x64]
call fcn.00405cdc
ret