Function at 0x140052d7c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rdi, rcx
mov esi, r8d
mov rcx, qword [rcx + 0x48]
mov r14, rdx
test rcx, rcx
jne 0x140052dc1
mov rcx, rdi
call fcn.140052b60
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x140052e8a
and dword [rbp + 0x67], 0
lea rdx, [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rbp + 0x67], 0x103
je 0x140052e27
lea rcx, [rdi + 0xa8]
call fcn.140019cc4
and qword [rdi + 0x48], 0
xor r9d, r9d
mov edx, esi
mov qword [rdi + 0x90], 1
mov rcx, r14
lea r8d, [r9 + 5]
call qword [sym.imp.USER32.dll_PostMessageW]
lea rdx, [rbp + 0x7f]
mov dword [rbp + 0x7f], 0x3e8
lea rcx, [rbp - 0x39]
call fcn.140006e84
mov rcx, rax
call fcn.14000bf34
jmp 0x1400530b8
mov rax, qword [rdi + 0x70]
lea r8, [rbp + 0x87]
lea rdx, [rbp + 0x7f]
mov qword [rbp + 0x7f], rax
lea rcx, [rbp - 9]
call fcn.140008d98
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x39], xmm0
call fcn.140010a48
lea r8, [rbp + 7]
mov rcx, rdi
lea rdx, [rbp - 0x29]
call fcn.1400111d0
mov rcx, rax
call fcn.140006e14
lea rcx, [rbp - 0x29]
mov r15, qword [rax]
call fcn.140010a40
lea rcx, [rbp + 7]
call fcn.140010a40
test r15, r15
jne 0x140052ea0
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400530b8
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x140052edd
xor eax, eax
lea rdx, [rbp + 7]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movups xmmword [rbp + 7], xmm0
lea ebx, [rax + 0xc]
mov r8d, ebx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8d, ebx
lea rdx, str.The_Witness
lea rcx, [rbp + 7]
call fcn.1400316c0
test eax, eax
je 0x140052ee9
mov ecx, dword [rdi + 0x50]
call fcn.14005313c
mov qword [rdi + 0x58], rax
cmp qword [rdi + 0x58], 0
jne 0x140052f01
lea rcx, str.Couldnt_find_the_HWND_for_the_game
call fcn.140006e90
jmp 0x1400530b8
lea rbx, [rdi + 0xa8]
cmp r15, qword [rdi + 0x80]
je 0x140052f20
mov rcx, rbx
mov qword [rdi + 0x80], r15
call fcn.140019cc4
movsxd rax, dword [rdi + 0x78]
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x31], rax
lea rcx, [rbp + 7]
mov qword [rbp - 0x39], r15
call fcn.140008d98
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 9], xmm0
call fcn.140010a48
lea r8, [rbp - 0x29]
mov rcx, rdi
lea rdx, [rbp + 0x1f]
call fcn.140017e88
mov rcx, rax
call fcn.140006e14
lea rcx, [rbp + 0x1f]
mov r12d, dword [rax]
call fcn.140008e94
lea rcx, [rbp - 0x29]
call fcn.140010a40
cmp dword [rdi + 0x88], r12d
je 0x140052f97
mov rcx, rbx
mov dword [rdi + 0x88], r12d
call fcn.140019cc4
mov rax, qword [rdi + 0x70]
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x39], rax
lea rcx, [rbp + 7]
mov qword [rbp - 0x31], 0x10
call fcn.140008d98
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 9], xmm0
call fcn.140010a48
mov r9d, 1
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x1f]
mov rcx, rdi
call fcn.14001114c
mov rcx, rax
call fcn.140006e14
lea rcx, [rbp + 0x1f]
mov ebx, dword [rax]
call fcn.140008e94
lea rcx, [rbp - 0x29]
call fcn.140010a40
cmp ebx, 0x61a80
je 0x140053017
mov qword [rdi + 0x90], 4
jmp 0x1400530b8
mov eax, dword [rdi + 0x78]
lea r8, [rbp - 0x29]
sub eax, 4
mov qword [rbp - 0x39], r15
cdqe
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
mov qword [rbp - 0x31], rax
call fcn.140008d98
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 9], xmm0
call fcn.140010a48
lea r8, [rbp - 0x29]
mov rcx, rdi
lea rdx, [rbp + 0x1f]
call fcn.140017f00
mov rcx, rax
call fcn.140006e14
lea rcx, [rbp + 0x1f]
mov bl, byte [rax]
call fcn.140010928
lea rcx, [rbp - 0x29]
call fcn.140010a40
cmp bl, 1
jne 0x14005308b
mov qword [rdi + 0x90], 3
jmp 0x1400530b8
xor r9d, r9d
mov ebx, 2
mov edx, esi
mov rcx, r14
mov r8d, ebx
cmp byte [rdi + 0x98], r9b
je 0x1400530ab
mov r8, qword [rdi + 0x90]
call qword [sym.imp.USER32.dll_PostMessageW]
mov qword [rdi + 0x90], rbx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret