Function at 0x513020
Capabilities:
Get graphical window text

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0xc0
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.004b4010
test al, al
je 0x5132fc
lea rcx, [rbp + 0x28]
mov edx, 0x98
xor r8, r8
call fcn.00406d50
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
mov rdi, rax
mov rcx, rbx
call fcn.004b3a10
mov r13, rax
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
mov eax, dword [rax + 0x28]
mov rcx, r13
mov edx, 0x1096
movsxd r8, eax
xor r9, r9
call sub.user32.dll_SendMessageW
mov dword [rbp + 0x2c], 0xd
cmp qword [rdi + 0x20], 0
je 0x5130aa
or dword [rbp + 0x2c], 2
mov dword [rbp + 0x58], 0
mov dword [rbp + 0x28], 0x98
cmp byte [rdi + 0x2e], 2
jne 0x5130fc
cmp dword [rdi + 0x48], 0xffffffff
jle 0x5130fc
lea rax, [0x0051330c]
mov qword [rbp + 0x30], rax
lea rax, [0x0051330c]
mov qword [rbp + 0x60], rax
mov rcx, qword [rdi + 0x18]
call fcn.0040bbf0
mov qword [rbp + 0x80], rax
mov rcx, qword [rdi + 0x30]
call fcn.0040bbf0
mov qword [rbp + 0x90], rax
jmp 0x513132
mov rcx, qword [rdi + 0x18]
call fcn.0040bbf0
mov qword [rbp + 0x30], rax
mov rcx, qword [rdi + 0x30]
call fcn.0040bbf0
mov qword [rbp + 0x60], rax
lea rax, [0x0051330c]
mov qword [rbp + 0x80], rax
lea rax, [0x0051330c]
mov qword [rbp + 0x90], rax
mov rcx, qword [rdi + 0x20]
call fcn.0040bbf0
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x50], 0
mov dword [rbp + 0x54], 0
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
movzx rax, word [rax + 0x2c]
test ax, 1
je 0x51316d
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x54], eax
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
movzx rax, word [rax + 0x2c]
test ax, 2
je 0x51318b
or dword [rbp + 0x54], 2
mov ecx, 6
xor rdx, rdx
call fcn.004300b0
test al, al
je 0x5132a5
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
movzx rax, word [rax + 0x2c]
test ax, 8
je 0x5131bf
or dword [rbp + 0x54], 4
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
movzx rax, word [rax + 0x2c]
test ax, 0x10
je 0x5131dd
or dword [rbp + 0x54], 8
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
movzx rax, word [rax + 0x2c]
test ax, 4
je 0x5131fb
or dword [rbp + 0x54], 1
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
movzx rax, word [rax + 0x2c]
test ax, 0x20
je 0x513219
or dword [rbp + 0x54], 0x10
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
movzx rax, word [rax + 0x2c]
test ax, 0x40
je 0x513237
or dword [rbp + 0x54], 0x20
cmp dword [rdi + 0x48], 0xffffffff
jle 0x513244
or dword [rbp + 0x2c], 0x1000
mov eax, dword [rdi + 0x48]
mov dword [rbp + 0x9c], eax
cmp byte [rdi + 0x2e], 2
jne 0x513260
cmp dword [rdi + 0x48], 0xffffffff
jle 0x513260
or dword [rbp + 0x2c], 0x400
cmp qword [rdi + 0x30], 0
je 0x513283
cmp byte [rdi + 0x2e], 2
jne 0x51327c
cmp dword [rdi + 0x48], 0xffffffff
jle 0x51327c
or dword [rbp + 0x2c], 0x900
jmp 0x513283
or dword [rbp + 0x2c], 0x100
cmp byte [rdi + 0x2f], 0
jne 0x51328f
or dword [rbp + 0x58], 8
jmp 0x5132a5
cmp byte [rdi + 0x2f], 1
jne 0x51329b
or dword [rbp + 0x58], 0x20
jmp 0x5132a5
cmp byte [rdi + 0x2f], 2
jne 0x5132a5
or dword [rbp + 0x58], 0x10
cmp byte [rdi + 0x2e], 0
jne 0x5132b1
or dword [rbp + 0x58], 1
jmp 0x5132c7
cmp byte [rdi + 0x2e], 1
jne 0x5132bd
or dword [rbp + 0x58], 4
jmp 0x5132c7
cmp byte [rdi + 0x2e], 2
jne 0x5132c7
or dword [rbp + 0x58], 2
or dword [rbp + 0x2c], 0x10
mov rcx, qword [rbx + 0x738]
mov edx, esi
call fcn.00518ba0
mov eax, dword [rax + 0x28]
mov dword [rbp + 0x4c], eax
mov rcx, rbx
call fcn.004b3a10
mov rcx, rax
mov edx, 0x1091
movsxd r8, esi
lea r9, [rbp + 0x28]
call sub.user32.dll_SendMessageW
lea rsp, [rbp + 0xc0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret