Function at 0x4a57b650
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 0x4a57bb06
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x4a57b6e8
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x4a57b6e8
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.4a57b180
mov ebx, eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4a57b6da
lea eax, [ebp - 0x10]
mov ecx, ebx
mov edx, esi
call fcn.4a57b1d4
jmp 0x4a57b6e8
mov edx, esi
shr edx, 1
lea eax, [ebp - 0x10]
mov ecx, ebx
call fcn.4a57b1d4
test edi, edi
je 0x4a57b6f7
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 0x4a57b704
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 0x4a57b75a
mov esi, 2
cmp byte [ebp + 0xc], 0
je 0x4a57b73a
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 0x4a57b74e
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 0x4a57b788
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 0x4a57b86e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0
je 0x4a57b86e
cmp dword [ebp + 0x14], 0xffffffff
je 0x4a57b7b3
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.4a57b5d0
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 0x4a57b86e
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.4a57b5d0
pop ecx
push ebp
push esi
mov eax, edi
sub eax, ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.4a57b5d0
pop ecx
inc ebx
cmp ebx, 4
jne 0x4a57b80a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax]
call dword [edx + 0xc8]
and al, byte [ebp + 8]
je 0x4a57b8aa
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.4a57b2f0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a57b90b
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.4a5083a4
jmp 0x4a57b941
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.4a507c94
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 8]
call fcn.4a5083c0
push 1
push 0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.4a57b08c
mov edi, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x34]
sub edi, eax
sub edi, 0x1b
sub edi, 8
sar edi, 1
jns 0x4a57b967
adc edi, 0
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x4a57ba25
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 0x4a57b9bd
mov eax, dword [ebp - 8]
call fcn.4a507ae8
push eax
mov eax, dword [ebp - 8]
call fcn.4a5082f8
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 0x4a57ba0f
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x118]
call fcn.4a507af4
push eax
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x11c]
call fcn.4a507f78
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 0x4a57ba35
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 0x4a57ba69
mov eax, dword [ebp - 8]
call fcn.4a507ae8
push eax
mov eax, dword [ebp - 8]
call fcn.4a5082f8
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 0x4a57babb
lea eax, [ebp - 0x120]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x120]
call fcn.4a507af4
push eax
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x124]
call fcn.4a507f78
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 0x4a57bb0d
lea eax, [ebp - 0x124]
mov edx, 5
call fcn.4a5076a8
lea eax, [ebp - 8]
call fcn.4a507618
ret