Function at 0x1401e1ac0
Capabilities:
Capture screenshot

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x57]
sub rsp, 0x100
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, rcx
mov rcx, qword [rcx + 8]
xor r14d, r14d
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], rcx
lea rdx, [rbp - 0x31]
call qword [sym.imp.USER32.dll_BeginPaint]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
lea rdx, [rbp - 0x69]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetClientRect]
cmp qword [rdi + 0x68], r14
jne 0x1401e1b3e
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rdi + 0x68], rax
cmp qword [rdi + 0x60], 0
jne 0x1401e1b61
mov r8d, dword [rbp - 0x5d]
sub r8d, dword [rbp - 0x65]
mov edx, dword [rbp - 0x61]
sub edx, dword [rbp - 0x69]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rdi + 0x60], rax
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.GDI32.dll_SelectObject]
mov r13, r14
mov rdx, qword [rdi + 0x90]
test rdx, rdx
je 0x1401e1b8e
mov rdx, qword [rdx]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.GDI32.dll_SelectObject]
mov r13, rax
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], r14
lea rdx, [rbp - 0x59]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
lea rdx, [rbp - 0x59]
mov rcx, rax
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1401e1bcf
lea rdx, [rbp - 0x51]
mov rcx, rbx
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov qword [rbp - 0x79], rax
mov edx, dword [rbp - 0x4d]
mov ecx, dword [rbp - 0x55]
sub edx, ecx
mov r9d, dword [rbp - 0x51]
mov eax, dword [rbp - 0x59]
sub r9d, eax
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.GDI32.dll_BitBlt]
test rbx, rbx
je 0x1401e1c31
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
mov edx, 1
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.GDI32.dll_SetBkMode]
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rdx, qword [rdi + 0x58]
lea rcx, [rdx - 0x18]
lea r12, [rbx - 0x18]
or esi, 0xffffffff
cmp rcx, r12
je 0x1401e1ccc
cmp dword [r12 + 0x10], 0
jl 0x1401e1cb9
mov rax, qword [r12]
cmp qword [rcx], rax
jne 0x1401e1cb9
call fcn.1400026b0
mov rbx, rax
mov ecx, esi
lock xadd dword [r12 + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1401e1cae
mov rcx, qword [r12]
mov r8, qword [rcx]
mov rdx, r12
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
add rbx, 0x18
mov qword [rsp + 0x50], rbx
jmp 0x1401e1ccc
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140002560
mov rbx, qword [rsp + 0x50]
mov dword [rsp + 0x20], 0x10
lea r9, [rbp - 0x69]
mov r8d, esi
mov rdx, rbx
mov rcx, qword [rdi + 0x68]
call fcn.1401e5730
cmp eax, 0xffffffff
jne 0x1401e1cf2
mov byte [rdi + 0x50], 1
jmp 0x1401e1cf6
mov byte [rdi + 0x50], 0
cmp qword [rdi + 0x90], 0
je 0x1401e1d0d
mov rdx, r13
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rax, qword [rdi + 0x68]
mov ecx, dword [rbp - 0x5d]
sub ecx, dword [rbp - 0x65]
mov r9d, dword [rbp - 0x61]
sub r9d, dword [rbp - 0x69]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.GDI32.dll_BitBlt]
cmp qword [rdi + 0x48], 0
je 0x1401e1d56
cmp byte [rdi + 0x51], 0
je 0x1401e1d67
cmp byte [rdi + 0x50], 0
je 0x1401e1d6d
mov rdx, rbx
mov rcx, rdi
call fcn.1401e16e0
cmp byte [rdi + 0x50], 0
jne 0x1401e1d88
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x1401e1d88
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1401e1da2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rdx, [rbp - 0x31]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.USER32.dll_EndPaint]
mov eax, 1
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140250fd0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret