Function at 0x140016310
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0xf0
mov rbp, rcx
mov qword [0x1400f0180], rcx
xor r13d, r13d
xor ecx, ecx
mov r12, rdx
mov qword [0x1400f01b0], r8
mov qword [0x1400f01a8], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [rsp + 0x110]
mov dword [rsp + 0x110], 8
mov dword [rsp + 0x114], LoadRegTypeLib
mov rsi, rax
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, 0xc4
call fcn.140001bf0
lea r8, [rsp + 0x70]
mov rcx, rsi
mov rdx, rax
call qword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x140016437
lea rax, [0x14000f300]
lea edx, [r13 + 0x64]
mov rcx, rsi
mov dword [rsp + 0x70], 0x50
mov dword [rsp + 0x74], 3
mov dword [rsp + 0x80], r13d
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x84], r13d
mov qword [rsp + 0x88], rsi
call qword [sym.imp.USER32.dll_LoadIconA]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [r13 + 0xf]
mov qword [rsp + 0x98], rax
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov ecx, 0xc4
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], r13
call fcn.140001bf0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xb0], rax
call qword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x140016677
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x120], rdi
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x6c]
mov ecx, 0xc4
add eax, 0xffffff83
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [rsp + 0x68]
add eax, 0xfffffe70
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
call fcn.140001bf0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], 0x7d
mov dword [rsp + 0x30], 0x190
mov rdx, rax
mov r9d, 0x80c80000
mov r8, r12
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x1400f0178], rax
test rax, rax
je 0x140016667
mov rcx, rax
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [0x1400f0178]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400f0178]
call qword [sym.imp.USER32.dll_UpdateWindow]
lea rcx, [rsp + 0xc0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor dil, dil
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140016664
nop word [rax + rax]
cmp dword [rsp + 0xc8], 0x100
jne 0x14001662a
mov rax, qword [rsp + 0xd0]
cmp rax, 0x1b
jne 0x14001656d
mov rcx, qword [0x1400f0178]
lea edx, [rax - 0x19]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageA]
xor dil, dil
jmp 0x14001662a
cmp rax, 0xd
jne 0x1400165d9
mov rcx, qword [0x1400f0188]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov rcx, qword [0x1400f01a8]
lea ebx, [rax + 1]
test rcx, rcx
je 0x14001659b
call fcn.14008396c
mov qword [0x1400f01a8], r13
movsxd rcx, ebx
call fcn.1400817c0
mov rcx, qword [0x1400f0188]
mov r8d, ebx
mov rdx, rax
mov qword [0x1400f01a8], rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [0x1400f0178]
xor r9d, r9d
lea edx, [r9 + 2]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageA]
mov dil, 1
jmp 0x14001662a
cmp rax, 9
jne 0x14001662a
call qword [sym.imp.USER32.dll_GetFocus]
mov rbx, rax
cmp rax, qword [0x1400f0188]
jne 0x1400165fe
mov rcx, qword [0x1400f0190]
call qword [sym.imp.USER32.dll_SetFocus]
cmp rbx, qword [0x1400f0190]
jne 0x140016614
mov rcx, qword [0x1400f0198]
call qword [sym.imp.USER32.dll_SetFocus]
cmp rbx, qword [0x1400f0198]
jne 0x14001662a
mov rcx, qword [0x1400f0188]
call qword [sym.imp.USER32.dll_SetFocus]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_DispatchMessageA]
lea rcx, [rsp + 0xc0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140016530
mov al, dil
mov rbx, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x120]
mov rbp, qword [rsp + 0x128]
add rsp, 0xf0
pop r13
pop r12
pop rsi
ret