Function at 0x491f4c
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x370
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rdi, rcx
xor r12d, r12d
cmp byte [rcx + 0x1590], r12b
jne 0x49232a
mov rbp, qword [0x00862c98]
mov rsi, qword [rbp + 0xb0]
cmp rsi, qword [rbp + 0xb8]
je 0x491fbd
mov rbx, qword [rsi]
mov rdx, qword [rdi + 0x7e8]
mov rcx, qword [rbx + 0x58]
call fcn.006a525c
cmp eax, r12d
je 0x491fc0
add rsi, 8
cmp rsi, qword [rbp + 0xb8]
jne 0x491f98
mov rbx, r12
cmp rbx, r12
je 0x492169
mov r8d, 0xff
lea rdx, [rsp + 0x170]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0x390]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0xe8]
call fcn.004023b4
nop
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.00402190
nop
cmp rax, rbx
je 0x492028
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
mov rcx, rbx
call fcn.0040289c
nop
lea rax, [rsp + 0x40]
mov esi, 0x100
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x49205b
cmp rcx, r12
je 0x49205b
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
cmp rdx, rsi
jbe 0x492055
call fcn.006a4944
jmp 0x49205b
call fcn.006a3610
nop
lea rax, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
cmp rcx, rax
je 0x492098
cmp rcx, r12
je 0x492098
mov rax, qword [rsp + 0xe8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, rsi
jbe 0x492093
call fcn.006a4944
jmp 0x492098
call fcn.006a3610
mov rcx, qword [rdi + 0x7b8]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.0046d8ac
nop
lea rcx, [rbx + 0x90]
cmp rax, rcx
je 0x4920cd
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
call fcn.0040289c
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x4920fa
cmp rcx, r12
je 0x4920fa
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
cmp rdx, rsi
jbe 0x4920f5
call fcn.006a4944
jmp 0x4920fa
call fcn.006a3610
mov rax, qword [rdi + 0x7b8]
mov rdx, qword [rax + 0x250]
lea rcx, [rsp + 0x40]
call fcn.0046d8ac
nop
lea rcx, [rbx + 0xc0]
cmp rax, rcx
je 0x49212d
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
call fcn.0040289c
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x49215a
cmp rcx, r12
je 0x49215a
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
cmp rdx, rsi
jbe 0x492155
call fcn.006a4944
jmp 0x49215a
call fcn.006a3610
mov rdx, rbx
mov rcx, qword [0x00862c98]
call fcn.005c1b00
lea rax, [rdi + 0x110]
mov qword [rsp + 0x390], rax
mov rsi, qword [0x00862cb8]
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0x390]
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
call fcn.00414c64
cmp rax, qword [rsi + 0x18]
je 0x4921c3
mov r8, qword [rsi + 0x18]
lea rdx, [rax + 8]
cmp rdx, r8
je 0x4921be
sub r8, rdx
je 0x4921be
mov rcx, rax
call fcn.006a4bf0
add qword [rsi + 0x18], 0xfffffffffffffff8
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rdi + 0x108]
mov qword [rsp + 0x390], r11
mov rsi, qword [0x00862d30]
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0x390]
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
call fcn.00414c64
cmp rax, qword [rsi + 0x10]
je 0x492227
mov r8, qword [rsi + 0x10]
lea rdx, [rax + 8]
cmp rdx, r8
je 0x492222
sub r8, rdx
je 0x492222
mov rcx, rax
call fcn.006a4bf0
add qword [rsi + 0x10], 0xfffffffffffffff8
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rdi + 0x100]
mov qword [rsp + 0x390], r11
mov rsi, qword [0x00862c98]
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0x390]
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
call fcn.00414c64
cmp rax, qword [rsi + 0x10]
je 0x49228b
mov r8, qword [rsi + 0x10]
lea rdx, [rax + 8]
cmp rdx, r8
je 0x492286
sub r8, rdx
je 0x492286
mov rcx, rax
call fcn.006a4bf0
add qword [rsi + 0x10], 0xfffffffffffffff8
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rdi + 0xf8]
mov qword [rsp + 0x390], r11
mov rsi, qword [rdi + 0x7b8]
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0x390]
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
call fcn.00414c64
cmp rax, qword [rsi + 0x10]
je 0x4922ef
mov r8, qword [rsi + 0x10]
lea rdx, [rax + 8]
cmp rdx, r8
je 0x4922ea
sub r8, rdx
je 0x4922ea
mov rcx, rax
call fcn.006a4bf0
add qword [rsi + 0x10], 0xfffffffffffffff8
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x7b8]
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x18]
mov byte [rdi + 0x1590], 1
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x4926c6
lea rdx, [rcx + 0x7c0]
mov rcx, qword [0x00862c98]
call fcn.005c12c0
mov rcx, rdi
call fcn.004926e0
lea rcx, [rdi + 0x15d8]
call fcn.00416048
lea r11, [rsp + 0x40]
mov qword [rsp + 0x60], r11
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x40], r12b
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xd8], rax
mov byte [rsp + 0xb0], r12b
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa8], rax
mov byte [rsp + 0x80], r12b
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x1448]
call fcn.0049f4e8
lea rdx, [rdi + 0x7c0]
mov rcx, qword [0x00862c98]
call fcn.005c7d60
mov rbp, rax
cmp rax, r12
je 0x4923ff
lea rbx, [rax + 0x100]
jmp 0x49240d
mov rbx, qword [0x00862cb8]
add rbx, 0x88
lea rcx, [rbx + 0x1088]
lea rax, [rsp + 0x40]
cmp rax, rcx
je 0x49242d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
call fcn.0040289c
mov byte [rbx + 0x2e4f], 1
lea rcx, [rbx + 0x10e8]
lea rax, [rsp + 0xb0]
cmp rax, rcx
je 0x49245d
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
call fcn.0040289c
mov byte [rbx + 0x2e51], 1
lea rcx, [rbx + 0x10b8]
lea rax, [rsp + 0x80]
cmp rax, rcx
je 0x49248d
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
call fcn.0040289c
mov byte [rbx + 0x2e50], 1
mov al, byte [rdi + 0x1591]
mov byte [rbx + 0x2c78], al
mov byte [rbx + 0x3057], 1
mov ecx, dword [rdi + 0x14b0]
inc ecx
mov eax, ecx
neg eax
cmp byte [rdi + 0x14b4], r12b
cmovne eax, ecx
mov dword [rbx + 0x2704], eax
mov byte [rbx + 0x2ed2], 1
mov esi, 0x100
cmp rbp, r12
je 0x49261e
mov dword [rsp + 0x138], gethostbyname
lea rdx, [rsp + 0x138]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x24], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x2c], r12d
lea rdx, [rsp + 0x20]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x3c], r12d
lea rdx, [rsp + 0x30]
mov rcx, qword [0x008669d8]
call qword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [rsp + 0x140], 5
je 0x492556
cmp dword [rsp + 0x140], 1
jne 0x4925ff
mov r8d, dword [rsp + 0x2c]
sub r8d, dword [rsp + 0x34]
sub r8d, 2
mov edx, dword [rsp + 0x28]
sub edx, dword [rsp + 0x30]
sub edx, 2
mov ecx, dword [rsp + 0x24]
sub ecx, dword [rsp + 0x34]
sub ecx, 2
mov eax, dword [rsp + 0x20]
sub eax, dword [rsp + 0x30]
sub eax, 2
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], ecx
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x7c], r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xe8]
call fcn.0055a5e0
nop
lea rcx, [rbx + 0x2048]
cmp rax, rcx
je 0x4925c2
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
call fcn.0040289c
mov byte [rbx + 0x2ea3], 1
lea rax, [rsp + 0xe8]
mov rcx, qword [rsp + 0x110]
cmp rcx, rax
je 0x4925ff
cmp rcx, r12
je 0x4925ff
mov rdx, qword [rsp + 0xe8]
sub rdx, rcx
cmp rdx, rsi
jbe 0x4925fa
call fcn.006a4944
jmp 0x4925ff
call fcn.006a3610
mov eax, dword [rdi + 0x154]
mov dword [rbx + 0x277c], eax
mov byte [rbx + 0x2ef0], 1
mov rcx, qword [0x00862c98]
call fcn.005c3280
mov rax, qword [rsp + 0x3b0]
mov dword [rax], r12d
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa8]
cmp rcx, rax
je 0x492660
cmp rcx, r12
je 0x492660
mov rdx, qword [rsp + 0x80]
sub rdx, rcx
cmp rdx, rsi
jbe 0x49265a
call fcn.006a4944
jmp 0x492660
call fcn.006a3610
nop
lea rax, [rsp + 0xb0]
mov rcx, qword [rsp + 0xd8]
cmp rcx, rax
je 0x492697
cmp rcx, r12
je 0x492697
mov rdx, qword [rsp + 0xb0]
sub rdx, rcx
cmp rdx, rsi
jbe 0x492691
call fcn.006a4944
jmp 0x492697
call fcn.006a3610
nop
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x4926c4
cmp rcx, r12
je 0x4926c4
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
cmp rdx, rsi
jbe 0x4926bf
call fcn.006a4944
jmp 0x4926c4
call fcn.006a3610
xor eax, eax
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret