Function at 0x49e844
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x270
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov rbp, rcx
test rcx, rcx
je 0x49e877
add rcx, 0xfffffffffffffe78
jmp 0x49e879
xor ecx, ecx
cmp r8, 0x52
jne 0x49ec5e
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 2
movsxd rcx, eax
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.006a43c4
mov rbx, rax
mov qword [rsp + 0x88], rax
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea r8d, [rax + 1]
mov rdx, rbx
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0x290]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.004023b4
nop
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x2a0]
mov edx, 0xb0
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r12d, 0x100
movsxd rax, dword [rsp + 0x20]
cmp dword [rsp + 0x2a0], eax
jne 0x49e9a3
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.005680ac
nop
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x49e956
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x30]
call fcn.00406d38
nop
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xd8]
cmp rcx, rax
je 0x49ebd0
test rcx, rcx
je 0x49ebd0
mov rax, qword [rsp + 0x90]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r12
jbe 0x49e999
call fcn.006a4944
jmp 0x49ebd0
call fcn.006a3610
jmp 0x49ebd0
mov r8, rax
mov r9, rdi
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x30]
call fcn.00421328
mov rsi, rax
mov ecx, dword [rsp + 0x20]
sub ecx, dword [rsp + 0x2a0]
movsxd r9, ecx
movsxd r8, dword [rsp + 0x2a0]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.00421328
nop
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.005680ac
mov rdi, rax
movsxd r9, dword [rsp + 0x2a0]
xor r8d, r8d
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x30]
call fcn.00421328
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.0040fc8c
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.0040fc8c
nop
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x49ea5d
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x30]
call fcn.00406d38
nop
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xd8]
cmp rcx, rax
je 0x49ea9b
test rcx, rcx
je 0x49ea9b
mov rax, qword [rsp + 0x90]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r12
jbe 0x49ea95
call fcn.006a4944
jmp 0x49ea9b
call fcn.006a3610
nop
lea rax, [rsp + 0x130]
mov rcx, qword [rsp + 0x178]
cmp rcx, rax
je 0x49ead9
test rcx, rcx
je 0x49ead9
mov rax, qword [rsp + 0x130]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r12
jbe 0x49ead3
call fcn.006a4944
jmp 0x49ead9
call fcn.006a3610
nop
lea rax, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x218]
cmp rcx, rax
je 0x49eb17
test rcx, rcx
je 0x49eb17
mov rax, qword [rsp + 0x1d0]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r12
jbe 0x49eb11
call fcn.006a4944
jmp 0x49eb17
call fcn.006a3610
nop
lea rax, [rsp + 0xe0]
mov rcx, qword [rsp + 0x128]
cmp rcx, rax
je 0x49eb55
test rcx, rcx
je 0x49eb55
mov rax, qword [rsp + 0xe0]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r12
jbe 0x49eb4f
call fcn.006a4944
jmp 0x49eb55
call fcn.006a3610
nop
lea rax, [rsp + 0x180]
mov rcx, qword [rsp + 0x1c8]
cmp rcx, rax
je 0x49eb93
test rcx, rcx
je 0x49eb93
mov rax, qword [rsp + 0x180]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r12
jbe 0x49eb8d
call fcn.006a4944
jmp 0x49eb93
call fcn.006a3610
nop
lea rax, [rsp + 0x220]
mov rcx, qword [rsp + 0x268]
cmp rcx, rax
je 0x49ebd0
test rcx, rcx
je 0x49ebd0
mov rax, qword [rsp + 0x220]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r12
jbe 0x49ebcb
call fcn.006a4944
jmp 0x49ebd0
call fcn.006a3610
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.USER32.dll_SetWindowTextW]
movsxd r9, dword [rsp + 0x20]
movsxd r8, dword [rsp + 0x2a0]
mov edx, 0xb1
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xb7
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
cmp rcx, rax
je 0x49ec4f
test rcx, rcx
je 0x49ec4f
mov rax, qword [rsp + 0x30]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r12
jbe 0x49ec49
call fcn.006a4944
jmp 0x49ec4f
call fcn.006a3610
nop
mov rcx, rbx
call fcn.006a5088
xor eax, eax
jmp 0x49ed69
cmp r8, 0x45
jne 0x49ec84
mov r9, qword [rbp + 0x58]
mov edx, 0x111
mov r8d, 0x83
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x49ed69
cmp r8, 0x42
jne 0x49ecaa
mov r9, qword [rbp + 0x58]
mov edx, 0x111
mov r8d, 0x8cc
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x49ed69
cmp r8, 0x49
jne 0x49ecd0
mov r9, qword [rbp + 0x58]
mov edx, 0x111
mov r8d, 0x8cd
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x49ed69
cmp r8, 0x55
jne 0x49ecf3
mov r9, qword [rbp + 0x58]
mov edx, 0x111
mov r8d, 0x8ce
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x49ed69
cmp r8, 0x53
jne 0x49ed16
mov r9, qword [rbp + 0x58]
mov edx, 0x111
mov r8d, 0x8cf
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x49ed69
cmp r8, 0x4a
jne 0x49ed39
mov r9, qword [rbp + 0x58]
mov edx, 0x111
mov r8d, 0x8d0
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x49ed69
cmp r8, 0x4c
jne 0x49ed5c
mov r9, qword [rbp + 0x58]
mov edx, 0x111
mov r8d, 0x8d1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x49ed69
mov rax, qword [rsp + 0x2b0]
and dword [rax], 0
xor eax, eax
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret