Function at 0x4d5d30
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x100
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp byte [rcx + 0xf1], 0
jne 0x4d5fdb
lea rax, [rcx + 0xe8]
mov qword [rsp + 0x28], rax
mov rsi, qword [0x00862cb8]
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0x28]
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
call fcn.00414c64
cmp rax, qword [rsi + 0x18]
je 0x4d5db4
mov r8, qword [rsi + 0x18]
lea rdx, [rax + 8]
cmp rdx, r8
je 0x4d5daf
sub r8, rdx
je 0x4d5daf
mov rcx, rax
call fcn.006a4bf0
add qword [rsi + 0x18], 0xfffffffffffffff8
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [rdi + 0xf0], 0
jne 0x4d5de7
xor r9d, r9d
xor r8d, r8d
mov edx, 0xb8
mov rcx, qword [rdi + 0xf8]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4d5fb0
mov rcx, qword [rdi + 0xf8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.006a43c4
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rcx, qword [rdi + 0xf8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea r8d, [rax + 1]
mov rdx, rbx
mov rcx, qword [rdi + 0xf8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
nop
mov rcx, qword [rdi + 0xf8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd r8, eax
lea r9, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.0042100c
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.00402190
nop
lea rax, [rsp + 0xb0]
mov rcx, qword [rsp + 0xf8]
cmp rcx, rax
je 0x4d5eb5
test rcx, rcx
je 0x4d5eb5
mov rax, qword [rsp + 0xb0]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov esi, 0x100
cmp rdx, rsi
jbe 0x4d5eae
call fcn.006a4944
jmp 0x4d5eba
call fcn.006a3610
jmp 0x4d5eba
mov esi, 0x100
lea rcx, [rsp + 0x80]
call fcn.004d62f0
nop
mov r9d, 6
mov r8d, 0x40000000
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.005944d4
nop
lea rcx, [rax + 8]
mov rax, qword [rcx]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
sub r8, rdx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, [0x007955b8]
mov qword [rsp + 0x30], rax
lea rax, [0x007955c8]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.0059492c
lea r11, [0x007955f8]
mov qword [rsp + 0x38], r11
lea rax, [0x007955e8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa8]
cmp rcx, rax
je 0x4d5f6b
test rcx, rcx
je 0x4d5f6b
mov rdx, qword [rsp + 0x80]
sub rdx, rcx
cmp rdx, rsi
jbe 0x4d5f65
call fcn.006a4944
jmp 0x4d5f6b
call fcn.006a3610
nop
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x4d5f99
test rcx, rcx
je 0x4d5f99
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
cmp rdx, rsi
jbe 0x4d5f93
call fcn.006a4944
jmp 0x4d5f99
call fcn.006a3610
nop
jmp 0x4d5fa8
mov rcx, rbx
call fcn.006a5088
mov byte [rdi + 0xf1], 1
xor edx, edx
mov ecx, 0x403
call fcn.00568b58
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 0x4d5fe8
mov rax, qword [rsp + 0x130]
and dword [rax], 0
xor eax, eax
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret