Function at 0x4e49e0
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1a8
mov rbp, rsp
mov dword [rbp + 0x5c], edx
mov dword [rbp + 0x68], r9d
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0x1d0], rcx
mov dword [rbp + 0x1e0], r8d
nop
mov eax, dword [rbp + 0x68]
test eax, eax
je 0x4e4aba
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x20]
mov edx, 0xc
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x4e4aba
mov ecx, dword [rbp + 0x1e0]
mov edx, dword [rbp + 0x68]
call fcn.004e42c0
mov ebx, eax
mov rcx, qword [rbp + 0x1f0]
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4e4a99
lea rcx, [rbp + 0x1e0]
mov edx, dword [rbp + 0x68]
mov r8d, ebx
call fcn.004e4330
jmp 0x4e4aba
lea rcx, [rbp + 0x1e0]
mov r8d, 2
mov eax, dword [rbp + 0x68]
xor edx, edx
div r8d
mov rdx, rax
mov r8d, ebx
call fcn.004e4330
cmp qword [rbp + 0x208], 0
je 0x4e4ad8
mov rsi, qword [rbp + 0x208]
lea rdi, [rbp + 0x190]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
jmp 0x4e4aeb
mov rcx, qword [rbp + 0x1f0]
lea rdx, [rbp + 0x190]
call sub.user32.dll_GetClientRect
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0xe8]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x190]
test al, al
je 0x4e4b77
mov eax, 2
mov dword [rbp + 0x60], eax
cmp byte [rbp + 0x210], 0
je 0x4e4b42
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x20]
lea rdx, [rbp + 0x190]
mov r8d, 4
mov r9d, 0x210
call sub.user32.dll_DrawFrameControl
jmp 0x4e4b67
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x20]
lea rdx, [rbp + 0x190]
mov r8d, 4
mov r9d, 0x10
call sub.user32.dll_DrawFrameControl
mov ecx, 0x15
call sub.user32.dll_GetSysColor
mov dword [rbp + 0x6c], eax
jmp 0x4e4bbb
xor rax, rax
mov dword [rbp + 0x60], eax
mov ecx, dword [rbp + 0x1e0]
call sub.gdi32.dll_CreateSolidBrush
mov rbx, rax
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x20]
lea rdx, [rbp + 0x190]
mov r8, rbx
call sub.user32.dll_FillRect
mov rcx, rbx
call sub.gdi32.dll_DeleteObject
mov ecx, 0xf
call sub.user32.dll_GetSysColor
mov dword [rbp + 0x6c], eax
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rbp + 0x1f0]
cmp rcx, qword [rax + 0xb8]
jne 0x4e4d12
mov rax, qword [rbp + 0x1d0]
cmp dword [rax + 0xcc], 0
je 0x4e4d12
cmp dword [rbp + 0x200], 0xffffffff
je 0x4e4c06
mov rax, qword [rbp + 0x1d0]
mov ecx, dword [rbp + 0x200]
mov dword [rax + 0xd8], ecx
mov rax, qword [rbp + 0x1d0]
mov eax, dword [rax + 0xd8]
mov dword [rbp + 0x64], eax
mov rcx, rbp
mov edx, dword [rbp + 0x64]
mov r8d, dword [rbp + 0x19c]
mov r9d, dword [rbp + 0x6c]
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x20], eax
call fcn.004e48f0
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x20]
mov edx, 0xc
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x4e4d12
mov eax, dword [rbp + 0x6c]
and eax, 0xff00
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x6c]
and eax, 0xff00ff
mov dword [rbp + 0x6c], eax
mov eax, dword [rbp + 0x1e0]
and eax, 0xff00
mov dword [rbp + 0x74], eax
mov esi, dword [rbp + 0x1e0]
and esi, 0xff00ff
xor rbx, rbx
mov edi, 4
sub edi, ebx
mov eax, dword [rbp + 0x6c]
imul edi, eax
mov eax, ebx
imul eax, esi
add edi, eax
shr edi, 2
and edi, 0xff00ff
mov eax, 4
sub eax, ebx
mov ecx, dword [rbp + 0x70]
imul eax, ecx
mov ecx, ebx
mov edx, dword [rbp + 0x74]
imul ecx, edx
add eax, ecx
shr eax, 2
and eax, 0xff00
add edi, eax
mov rcx, rbp
mov edx, dword [rbp + 0x64]
add edx, ebx
mov r8d, dword [rbp + 0x19c]
mov r9d, edi
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x20], eax
call fcn.004e48f0
mov rcx, rbp
mov edx, dword [rbp + 0x64]
sub edx, ebx
mov r8d, dword [rbp + 0x19c]
mov r9d, edi
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x20], eax
call fcn.004e48f0
add ebx, 1
cmp ebx, 4
jne 0x4e4c88
nop
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0xe8]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x190]
test al, al
je 0x4e4d7b
cmp byte [rbp + 0x218], 0
je 0x4e4d7b
lea rdi, [rbp + 0x180]
lea rsi, [rbp + 0x190]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rcx, [rbp + 0x180]
mov edx, 0xfffffffd
mov r8d, 0xfffffffd
call sub.user32.dll_InflateRect
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x20]
lea rdx, [rbp + 0x180]
call sub.user32.dll_DrawFocusRect
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0xe8]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x1d0]
mov rdx, qword [rbp + 0x1d0]
mov rdx, qword [rdx + 0x20]
mov r8d, dword [rbp + 0x60]
add r8d, 3
mov r9, rax
mov rax, qword [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
mov eax, dword [rbp + 0x1e0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 0x10
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x38], rax
call fcn.004e4430
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4e4e25
mov rcx, qword [rbp + 0x1f0]
lea rdx, [rbp + 0xb6]
mov r8d, 0x64
call sub.user32.dll_GetWindowTextW
lea rcx, [rbp + 0xa8]
lea rdx, [rbp + 0xb6]
mov r8d, 0x65
call fcn.00411f10
jmp 0x4e4e68
mov rcx, qword [rbp + 0x1f0]
lea rdx, [rbp + 0xb6]
mov r8d, 0x64
call sub.user32.dll_GetWindowTextA
lea rcx, [rbp + 0x98]
lea rdx, [rbp + 0xb6]
xor r8, r8
call fcn.00410cf0
lea rcx, [rbp + 0xa8]
mov rdx, qword [rbp + 0x98]
call fcn.00411f60
mov rcx, qword [rbp + 0x1d0]
xor rdx, rdx
mov r8, qword [rbp + 0xa8]
mov r9b, 1
mov qword [rsp + 0x20], 0
call fcn.004e4160
mov ecx, dword [rbp + 0x198]
sub ecx, dword [rbp + 0x190]
sub ecx, eax
sub ecx, 0x23
mov r8d, 2
mov eax, ecx
cdq
idiv r8d
mov dword [rbp + 0x64], eax
mov rcx, qword [rbp + 0x1f0]
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x4e4faf
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x20]
mov edx, 0xffffff
call sub.gdi32.dll_SetTextColor
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4e4f24
mov rcx, qword [rbp + 0xa8]
call fcn.00411e10
mov rbx, rax
mov rcx, qword [rbp + 0xa8]
call fcn.004108a0
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rbp + 0x64]
add edx, 0x1c
mov r8d, dword [rbp + 0x60]
add r8d, 5
mov r9, rbx
mov dword [rsp + 0x20], eax
call sub.gdi32.dll_TextOutW
jmp 0x4e4f90
lea rcx, [rbp + 0x90]
mov rdx, qword [rbp + 0xa8]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x90]
call fcn.00411320
mov rbx, rax
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0xa8]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x88]
call fcn.004108b0
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rbp + 0x64]
add edx, 0x1c
mov r8d, dword [rbp + 0x60]
add r8d, 5
mov r9, rbx
mov dword [rsp + 0x20], eax
call sub.gdi32.dll_TextOutA
mov ecx, 0x15
call sub.user32.dll_GetSysColor
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx + 0x20]
mov edx, eax
call sub.gdi32.dll_SetTextColor
jmp 0x4e4fc2
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x20]
mov edx, dword [rbp + 0x5c]
call sub.gdi32.dll_SetTextColor
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4e5011
mov rcx, qword [rbp + 0xa8]
call fcn.00411e10
mov rbx, rax
mov rcx, qword [rbp + 0xa8]
call fcn.004108a0
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rbp + 0x64]
add edx, 0x1b
mov r8d, dword [rbp + 0x60]
add r8d, 4
mov r9, rbx
mov dword [rsp + 0x20], eax
call sub.gdi32.dll_TextOutW
jmp 0x4e5077
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0xa8]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x80]
call fcn.00411320
mov rbx, rax
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xa8]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x78]
call fcn.004108b0
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx + 0x20]
mov edx, dword [rbp + 0x64]
add edx, 0x1b
mov r8d, dword [rbp + 0x60]
add r8d, 4
mov r9, rbx
mov dword [rsp + 0x20], eax
call sub.gdi32.dll_TextOutA
mov rcx, qword [rbp + 0x1f8]
xor rdx, rdx
xor r8, r8
mov r9d, dword [rbp + 0x198]
mov eax, dword [rbp + 0x19c]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0xcc0020
call sub.gdi32.dll_BitBlt
nop
lea rcx, [rbp + 0x78]
mov edx, 5
call fcn.00410190
lea rcx, [rbp + 0xa8]
call fcn.00410080
lea rsp, [rbp + 0x1a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret