Function at 0x14018e420
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x100
mov rax, qword [0x1403c2c80]
xor rax, rsp
mov qword [rbp - 9], rax
mov r13, rdx
mov rdi, rcx
lea rdx, str.ibSize
mov rcx, r13
mov r14d, r9d
mov rbx, r8
call qword [sym.imp.USER32.dll_GetPropA]
mov ecx, 6
mov rsi, rax
call qword [sym.imp.USER32.dll_GetSysColor]
cmp dword [rbp + 0x7f], 0
mov dword [rsp + 0x44], eax
je 0x14018e490
mov ecx, 9
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 2
jmp 0x14018e4ae
cmp dword [0x1403d7988], 0
mov ecx, shutdown
jne 0x14018e4a3
mov ecx, 9
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 3
mov dword [rsp + 0x40], eax
call qword [sym.imp.USER32.dll_GetSysColor]
mov edx, 1
mov rcx, rdi
mov r15d, eax
call qword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, 5
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, 8
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
cmp dword [rbp + 0x67], 0
mov r8d, dword [rbx]
mov eax, dword [rbx + 4]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 0xc]
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x64], ecx
je 0x14018e538
test r14d, r14d
je 0x14018e530
mov rax, qword [rsp + 0x58]
shr rax, 0x20
add eax, esi
mov dword [rsp + 0x5c], eax
jmp 0x14018e538
add r8d, esi
mov dword [rsp + 0x58], r8d
cmp dword [rbp + 0x77], 0
je 0x14018e55a
test r14d, r14d
je 0x14018e554
mov rcx, qword [rsp + 0x60]
shr rcx, 0x20
sub ecx, esi
mov dword [rsp + 0x64], ecx
jmp 0x14018e55a
sub edx, esi
mov dword [rsp + 0x60], edx
mov r12d, dword [rbp + 0x6f]
test r12d, r12d
je 0x14018e56e
test r14d, r14d
je 0x14018e591
sub ecx, esi
mov dword [rsp + 0x64], ecx
test r14d, r14d
je 0x14018e597
mov ecx, dword [rbx + 8]
mov dword [rsp + 0x70], ecx
lea eax, [rcx - 1]
mov dword [rsp + 0x68], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x6c], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x74], eax
jmp 0x14018e5b1
sub edx, esi
mov dword [rsp + 0x60], edx
mov eax, dword [rbx]
mov dword [rsp + 0x68], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x74], eax
dec eax
mov dword [rsp + 0x6c], eax
mov edx, dword [rsp + 0x44]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetBkColor]
xor eax, eax
mov r9d, 2
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, r15d
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, 8
mov rbx, rax
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x58]
test r14d, r14d
je 0x14018e63a
mov ecx, dword [rsp + 0x64]
inc ecx
mov dword [rsp + 0x20], ecx
jmp 0x14018e645
mov eax, dword [rsp + 0x64]
inc r9d
mov dword [rsp + 0x20], eax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_Rectangle]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rax
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp dword [0x1403d7988], 0
mov r15d, eax
je 0x14018e8de
lea edx, [rax + 2]
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x14018e8da
lea r8d, [r15 + 1]
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [rsp + 0x40]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.GDI32.dll_SetTextColor]
xor edx, edx
lea r8d, [rdx + 0x3c]
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x44], eax
call sub.MSVCR100.dll_memset
mov ecx, dword [rbp - 0x71]
mov eax, 3
sub eax, esi
cmp esi, 0x14
mov byte [rbp - 0x6a], 0
mov dword [rsp + 0x78], eax
mov eax, 0x2bc
mov word [rbp - 0x68], shutdown
cmovae ecx, eax
mov dword [rbp - 0x71], ecx
lea rcx, [rsp + 0x78]
test r14d, r14d
je 0x14018e7f3
mov eax, dword [str.Arial]
mov byte [rbp - 0x66], 0x24
mov dword [rbp - 0x79], Ordinal_906
mov dword [rbp - 0x65], eax
movzx eax, word [0x1402f168c]
mov dword [rbp - 0x75], Ordinal_906
mov word [rbp - 0x61], ax
call qword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
lea r9, [rsp + 0x48]
mov r8d, r15d
mov rdx, r12
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov ebx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x58]
mov eax, ebx
sub eax, dword [rsp + 0x48]
sub eax, dword [rsp + 0x5c]
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, dword [rsp + 0x60]
sub eax, dword [rsp + 0x4c]
sub eax, ecx
cdq
sub eax, edx
lea rdx, [rbp - 0x41]
sar eax, 1
lea r14d, [rax + rcx - 1]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_GetTextMetricsA]
movzx r11d, byte [rbp - 0xe]
test r11b, 2
jne 0x14018e7b0
test r11b, 4
je 0x14018e7eb
mov r8d, dword [rsp + 0x64]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
cmp ebx, r8d
mov dword [rsp + 0x30], r15d
mov r9d, 4
mov edx, r14d
mov rcx, rdi
cmovl r8d, ebx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_ExtTextOutA]
mov rdx, rsi
jmp 0x14018e88a
mov byte [rbp - 0x66], 0x20
call qword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
lea r9, [rsp + 0x48]
mov r8d, r15d
mov rdx, r12
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov r10d, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], r15d
sub eax, dword [rsp + 0x48]
mov qword [rsp + 0x28], r12
mov r9d, 4
sub eax, r10d
cdq
sub eax, edx
sar eax, 1
lea r8d, [r10 + rax]
mov eax, dword [rsp + 0x64]
sub eax, dword [rsp + 0x4c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cmp r8d, r10d
lea rcx, [rsp + 0x58]
cmovg r10d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov edx, r10d
mov r8d, eax
call qword [sym.imp.GDI32.dll_ExtTextOutA]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rax
call qword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [rsp + 0x44]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetBkMode]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r12d, dword [rbp + 0x6f]
cmp dword [rbp + 0x67], 0
je 0x14018e8f2
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call fcn.14018d960
test r12d, r12d
je 0x14018e909
xor r9d, r9d
mov rdx, r13
mov rcx, rdi
lea r8d, [r9 + 1]
call fcn.14018dec0
cmp dword [rbp + 0x77], 0
je 0x14018e920
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call fcn.14018dec0
mov eax, 1
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1402912a0
mov rbx, qword [rsp + 0x158]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret