Function at 0x454954
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x454e14
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x4549ec
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x4549ec
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.00454484
mov ebx, eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4549de
lea eax, [ebp - 0x10]
mov ecx, ebx
mov edx, esi
call fcn.004544dc
jmp 0x4549ec
mov edx, esi
shr edx, 1
lea eax, [ebp - 0x10]
mov ecx, ebx
call fcn.004544dc
test edi, edi
je 0x4549fb
mov esi, edi
lea edi, [ebp - 0x34]
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 0x454a08
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetClientRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x454a5e
mov esi, 2
cmp byte [ebp + 0xc], 0
je 0x454a3e
push 0x210
push 4
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.user32.dll_DrawFrameControl
jmp 0x454a52
push 0x10
push 4
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.user32.dll_DrawFrameControl
push 0x15
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x14], eax
jmp 0x454a8c
xor esi, esi
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_CreateSolidBrush
mov ebx, eax
push ebx
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.user32.dll_FillRect
push ebx
call sub.gdi32.dll_DeleteObject
push 0xf
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp + 0x1c]
jne 0x454b72
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0
je 0x454b72
cmp dword [ebp + 0x14], 0xffffffff
je 0x454ab7
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x74], edx
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x74]
push ebp
push esi
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov eax, edi
call fcn.004548d4
pop ecx
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x454b72
mov eax, dword [ebp - 0x14]
and eax, 0xff00
mov dword [ebp - 0x18], eax
and dword [ebp - 0x14], 0xff00ff
mov eax, dword [ebp - 0x10]
and eax, 0xff00
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
and eax, 0xff00ff
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov eax, 4
sub eax, ebx
imul dword [ebp - 0x14]
mov edx, ebx
imul edx, dword [ebp - 0x1c]
add eax, edx
shr eax, 2
and eax, 0xff00ff
mov edx, 4
sub edx, ebx
imul edx, dword [ebp - 0x18]
mov ecx, ebx
imul ecx, dword [ebp - 0x20]
add edx, ecx
shr edx, 2
and edx, 0xff00
add eax, edx
mov dword [ebp - 0x24], eax
push ebp
push esi
lea eax, [ebx + edi]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.004548d4
pop ecx
push ebp
push esi
mov eax, edi
sub eax, ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.004548d4
pop ecx
inc ebx
cmp ebx, 4
jne 0x454b0e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax]
call dword [edx + 0xc8]
and al, byte [ebp + 8]
je 0x454bae
push esi
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x44]
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 - 0x44]
push eax
call sub.user32.dll_InflateRect
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.user32.dll_DrawFocusRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
lea ecx, [esi + 3]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
call fcn.004545f8
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x454c0f
push 0x64
lea eax, [ebp - 0x10e]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetWindowTextW
lea eax, [ebp - 8]
lea edx, [ebp - 0x10e]
mov ecx, 0x65
call fcn.00406bb0
jmp 0x454c45
push 0x64
lea eax, [ebp - 0x10e]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10e]
mov ecx, 0
call fcn.00405cfc
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 8]
call fcn.00406bcc
push 1
push 0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0045437c
mov edi, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x34]
sub edi, eax
sub edi, 0x1b
sub edi, 8
sar edi, 1
jns 0x454c6b
adc edi, 0
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x454d2e
push 0xffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_SetTextColor
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x454cc6
lea eax, [ebp - 8]
call fcn.00405c14
call fcn.00406d20
push eax
mov eax, dword [ebp - 8]
call fcn.00406a3c
push eax
lea eax, [esi + 5]
push eax
lea eax, [edi + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_TextOutW
jmp 0x454d18
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.00406bf4
mov eax, dword [ebp - 0x118]
call fcn.00405ddc
push eax
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.00406bf4
mov eax, dword [ebp - 0x11c]
call fcn.004061d8
push eax
lea eax, [esi + 5]
push eax
lea eax, [edi + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
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 + 0x10]
push eax
call sub.gdi32.dll_SetTextColor
jmp 0x454d3e
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_SetTextColor
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x454d77
lea eax, [ebp - 8]
call fcn.00405c14
call fcn.00406d20
push eax
mov eax, dword [ebp - 8]
call fcn.00406a3c
push eax
add esi, 4
push esi
add edi, 0x1b
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_TextOutW
jmp 0x454dc9
lea eax, [ebp - 0x120]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.00406bf4
mov eax, dword [ebp - 0x120]
call fcn.00405ddc
push eax
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.00406bf4
mov eax, dword [ebp - 0x124]
call fcn.004061d8
push eax
add esi, 4
push esi
add edi, 0x1b
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_TextOutA
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
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 0x454e1b
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.00405a3c
lea eax, [ebp - 8]
call fcn.004069a0
ret