Function at 0x180021970
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rsi
push rdi
push r13
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x180050b58]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, rcx
mov rcx, qword [rcx + 8]
lea rdx, [rbp - 0x60]
xor edi, edi
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x70], rdi
call qword [sym.imp.USER32.dll_BeginPaint]
mov rdx, qword [0x180051170]
mov rcx, qword [r13 + 8]
mov qword [rbp - 0x70], rax
call qword [sym.imp.USER32.dll_GetPropW]
cmp eax, 2
jne 0x1800219d8
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x60]
call qword [sym.imp.USER32.dll_EndPaint]
jmp 0x180021c69
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0x58]
mov qword [rsp + 0x140], r12
mov dword [rsp + 0x60], edi
call fcn.1800257c0
cmp qword [rax], rdi
je 0x180021c53
mov rcx, qword [r13 + 8]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x138], rbx
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, dword [rsp + 0x7c]
mov edx, dword [rsp + 0x78]
sub r8d, dword [rsp + 0x74]
sub edx, dword [rsp + 0x70]
mov rcx, qword [rbp - 0x70]
mov qword [rsp + 0x50], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [r13 + 8]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0x20
je 0x180021b32
mov rcx, qword [r13 + 8]
mov qword [rsp + 0x148], r14
mov qword [rsp + 0x100], r15
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
mov r15, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, qword [r13 + 8]
lea rdx, [rbp - 0x80]
mov r14, rax
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [r13 + 8]
call qword [sym.imp.USER32.dll_GetParent]
lea rdx, [rbp - 0x80]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x180021ad9
lea rdx, [rbp - 0x78]
mov rcx, rdi
call qword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [rbp - 0x7c]
mov eax, dword [rbp - 0x80]
mov edx, dword [rbp - 0x74]
mov r9d, dword [rbp - 0x78]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], ecx
sub edx, ecx
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], edx
sub r9d, eax
xor edx, edx
xor r8d, r8d
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r15, qword [rsp + 0x100]
mov r14, qword [rsp + 0x148]
xor edi, edi
mov rax, qword [0x1800509f0]
lea rcx, [0x1800509f0]
call qword [rax + 0x18]
lea rdx, [rsp + 0x58]
lea rcx, [r13 + 8]
add rax, 0x18
mov qword [rsp + 0x58], rax
call fcn.180020290
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, qword [r13 + 8]
jne 0x180021b91
lea rdx, [rsp + 0x68]
lea rcx, [r13 + 0x58]
mov dword [rsp + 0x68], 1
call fcn.1800257c0
cmp qword [rax], 0
je 0x180021b91
mov dword [rsp + 0x64], 1
lea rdx, [rsp + 0x64]
jmp 0x180021b9a
mov dword [rsp + 0x6c], edi
lea rdx, [rsp + 0x6c]
lea rcx, [r13 + 0x58]
call fcn.1800257c0
mov r9d, dword [r13 + 0x78]
lea rdx, [rsp + 0x58]
mov rcx, qword [rax]
mov byte [rsp + 0x28], 0x64
mov qword [rsp + 0x20], rdx
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [rax + 0x30]
mov ecx, dword [rsp + 0x7c]
mov rax, qword [rsp + 0x50]
sub ecx, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x78]
mov dword [rsp + 0x40], 0xcc0020
sub r9d, dword [rsp + 0x70]
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp - 0x70]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180021c28
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test rbx, rbx
je 0x180021c36
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x138]
test rcx, rcx
je 0x180021c53
mov qword [rsp + 0x50], rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x60]
call qword [sym.imp.USER32.dll_EndPaint]
mov r12, qword [rsp + 0x140]
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18002f870
add rsp, 0x108
pop r13
pop rdi
pop rsi
pop rbp
ret