Function at 0x140018780
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x300
mov rax, qword [0x14002b138]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
and dword [rsp + 0x40], 0
mov rdi, rcx
mov rbp, rdx
mov ebx, 0x10
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8, rbx
call fcn.1400249ae
lea rcx, [rsp + 0x80]
mov r8, rbx
xor edx, edx
call fcn.1400249ae
lea r8, [rsp + 0x40]
lea rdx, [0x140003b40]
lea rcx, [rsp + 0xc8]
call fcn.1400214f4
xor ecx, ecx
call fcn.140023bb4
mov dword [rsp + 0x68], eax
test rbp, rbp
jne 0x14001880d
mov dword [rsp + 0x40], 0x80004003
jmp 0x140018d70
movss xmm1, dword [0x140002048]
xor ecx, ecx
call fcn.14000bf70
and dword [rsp + 0x50], 0
and dword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov r14d, eax
call fcn.140018db0
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140018859
mov rcx, qword [rdi + 0x58]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
call fcn.140022044
mov rcx, rbx
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x140018889
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rcx, rbp
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [rbx + 8], eax
mov rax, qword [rsp + 0x48]
mov qword [rbx], rax
jmp 0x14001888b
xor ebx, ebx
test rbx, rbx
jne 0x1400188d7
mov dword [rsp + 0x40], 0x8007000e
mov rcx, qword [0x14002b160]
lea r12, [0x14002b160]
cmp rcx, r12
je 0x140018d70
test byte [rcx + 0x1c], 4
je 0x140018d70
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x4d]
lea r8, [0x140001ec0]
mov r9d, 0x8007000e
call fcn.140006078
jmp 0x140018d70
mov eax, dword [rsp + 0x88]
movd xmm0, dword [rsp + 0x80]
movd xmm1, dword [rsp + 0x84]
sub eax, dword [rsp + 0x80]
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x58]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mov r9d, 1
mov r8d, 0xffe4e5f0
or edx, 0xffffffff
movss dword [rsp + 0x58], xmm0
movss dword [rsp + 0x5c], xmm1
movd xmm0, eax
mov eax, dword [rsp + 0x8c]
sub eax, dword [rsp + 0x84]
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x60], xmm0
movd xmm0, eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x64], xmm0
call sub.gdiplus.dll_GdipCreateLineBrushFromRect
mov ecx, 0x18
mov r15d, eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_GetSysColor]
and qword [rsp + 0x98], 0
movzx edx, ax
movzx ecx, al
shr eax, 0x10
or ecx, 0xffffff00
shr dx, 8
movzx eax, al
shl ecx, 8
movzx r8d, dl
lea rdx, [rsp + 0x98]
or ecx, r8d
shl ecx, 8
or ecx, eax
call sub.gdiplus.dll_GdipCreateSolidFill
mov rax, qword [rsp + 0x98]
lea r12, [0x14002b160]
mov qword [rsp + 0xc0], rax
test r15d, r15d
je 0x1400189ff
mov dword [rsp + 0x40], 0x80004005
mov rcx, qword [0x14002b160]
cmp rcx, r12
je 0x140018d46
test byte [rcx + 0x1c], 4
je 0x140018d46
mov edx, 0x4e
mov dword [rsp + 0x20], r15d
jmp 0x140018a77
cmp dword [rsp + 0x68], 0
movss xmm0, dword [rsp + 0x64]
movss xmm1, dword [rsp + 0x60]
mov rcx, qword [rbx]
mov rdx, rax
movss xmm3, dword [rsp + 0x5c]
movss xmm2, dword [rsp + 0x58]
movss dword [rsp + 0x28], xmm0
movss dword [rsp + 0x20], xmm1
jne 0x140018a38
mov rdx, qword [rsp + 0x90]
call sub.gdiplus.dll_GdipFillRectangle
test eax, eax
je 0x140018a46
mov dword [rbx + 8], eax
jmp 0x140018a48
xor eax, eax
test eax, eax
je 0x140018a8d
mov dword [rsp + 0x40], 0x80004005
mov rcx, qword [0x14002b160]
cmp rcx, r12
je 0x140018d46
test byte [rcx + 0x1c], 4
je 0x140018d46
mov edx, 0x4f
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001ec0]
mov r9d, 0x80004005
call fcn.140013520
cmp dword [rsp + 0x40], 0
jl 0x140018d46
mov rcx, qword [rdi + 0x58]
lea rdx, [rsp + 0xe0]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r15d, eax
test eax, eax
jg 0x140018b07
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov dword [rsp + 0x40], r9d
mov rcx, qword [0x14002b160]
cmp rcx, r12
je 0x140018d46
test byte [rcx + 0x1c], 4
je 0x140018d46
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001ec0]
mov edx, 0x50
call fcn.140006078
jmp 0x140018d46
and qword [rsp + 0xa8], 0
and qword [rsp + 0xa0], 0
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0xa8]
mov rdx, rbp
mov rcx, rdi
call fcn.140018ed8
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140018d46
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.1400234b0
mov edx, r14d
lea rcx, [rsp + 0x70]
neg edx
mov r8d, edx
call qword [sym.imp.USER32.dll_InflateRect]
mov rcx, qword [rdi + 0x48]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov ecx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x70]
add ecx, r14d
bt rax, 0x16
mov eax, dword [rsp + 0x78]
jae 0x140018b97
add edx, ecx
mov dword [rsp + 0x70], edx
jmp 0x140018b9d
sub eax, ecx
mov dword [rsp + 0x78], eax
movd xmm1, dword [rsp + 0x74]
sub eax, edx
movd xmm0, edx
mov edx, 0x658
xor ecx, ecx
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0xb4], xmm1
movss dword [rsp + 0xb0], xmm0
movd xmm0, eax
mov eax, dword [rsp + 0x7c]
sub eax, dword [rsp + 0x74]
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0xb8], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0xbc], xmm0
call qword [sym.imp.UxTheme.dll_GetThemeSysColor]
cmp dword [rsp + 0x68], 0
mov r11d, eax
je 0x140018c0e
mov ecx, 0x17
call qword [sym.imp.USER32.dll_GetSysColor]
mov r11d, eax
and qword [rsp + 0x68], 0
movzx eax, r11w
movzx ecx, r11b
or ecx, 0xffffff00
shr ax, 8
shr r11d, 0x10
shl ecx, 8
movzx edx, al
movzx eax, r11b
or ecx, edx
lea rdx, [rsp + 0x68]
shl ecx, 8
or ecx, eax
call sub.gdiplus.dll_GdipCreateSolidFill
mov rbp, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x68]
test eax, eax
je 0x140018c87
mov dword [rsp + 0x40], 0x80004005
mov rcx, qword [0x14002b160]
cmp rcx, r12
je 0x140018d13
test byte [rcx + 0x1c], 4
je 0x140018d13
mov edx, 0x51
jmp 0x140018cf9
test rdi, rdi
je 0x140018c91
mov rax, qword [rdi]
jmp 0x140018c93
xor eax, eax
test rbp, rbp
je 0x140018c9e
mov r9, qword [rbp]
jmp 0x140018ca1
xor r9d, r9d
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
lea rdx, [rsp + 0xe0]
mov r8d, r15d
mov qword [rsp + 0x20], rax
call sub.gdiplus.dll_GdipDrawString
test eax, eax
je 0x140018cd4
mov dword [rbx + 8], eax
jmp 0x140018cd6
xor eax, eax
test eax, eax
je 0x140018d13
mov dword [rsp + 0x40], 0x80004005
mov rcx, qword [0x14002b160]
cmp rcx, r12
je 0x140018d13
test byte [rcx + 0x1c], 4
je 0x140018d13
mov edx, 0x52
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001ec0]
mov r9d, 0x80004005
mov dword [rsp + 0x20], eax
call fcn.140013520
test rbp, rbp
je 0x140018d29
mov rcx, qword [rbp]
call sub.gdiplus.dll_GdipDeleteFont
mov rcx, rbp
call sub.gdiplus.dll_GdipFree
test rdi, rdi
je 0x140018d3e
mov rcx, qword [rdi]
call sub.gdiplus.dll_GdipDeleteStringFormat
mov rcx, rdi
call sub.gdiplus.dll_GdipFree
mov rcx, r14
call sub.gdiplus.dll_GdipDeleteBrush
mov rcx, qword [rbx]
call sub.gdiplus.dll_GdipDeleteGraphics
mov rcx, rbx
call sub.gdiplus.dll_GdipFree
mov rcx, qword [rsp + 0xc0]
call sub.gdiplus.dll_GdipDeleteBrush
mov rcx, qword [rsp + 0x90]
call sub.gdiplus.dll_GdipDeleteBrush
lea rcx, [rsp + 0xc8]
call fcn.140021548
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400247e0
mov rbx, qword [rsp + 0x340]
add rsp, 0x300
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret