Function at 0x140001580
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x2f]
sub rsp, 0xb8
mov rax, qword [0x14003e278]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r13, rcx
mov qword [rbp - 0x39], rdx
xor edi, edi
xor ecx, ecx
mov r14d, edi
mov esi, edi
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
test rax, rax
jne 0x1400015da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_to_get_display_device_context:__d_n
call fcn.140001870
jmp 0x14000178c
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
jne 0x140001604
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_to_copy_display_device_context:__d_n
call fcn.140001870
jmp 0x14000178c
mov qword [rsp + 0x100], r12
mov edx, 8
mov rcx, rbx
mov qword [rsp + 0xb0], r15
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, 0xa
mov rcx, rbx
mov r15d, eax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, r15d
mov rcx, rbx
mov r8d, eax
mov r12d, eax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r14, rax
test rax, rax
jne 0x140001666
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_to_get_display_screen_hbmitmap:__d_n
call fcn.140001870
jmp 0x14000177c
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, r15d
mov dword [rsp + 0x38], edi
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
mov qword [rsp + 0x28], rbx
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x1400016ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.failed_to_copy_display_screen_hbmitmap:__d_n
call fcn.140001870
jmp 0x14000177c
lea r8, [rbp - 0x29]
mov edx, 0x20
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [rbp - 0x21]
xor r8d, r8d
mov rdx, qword [rbp - 0x39]
mov eax, ecx
imul eax, dword [rbp - 0x1d]
mov dword [rbp - 1], ecx
mov qword [rbp + 3], 0x200001
mov qword [rbp + 0x13], rdi
mov dword [rbp - 9], 0x28
add eax, 0x36
mov qword [rbp + 0xb], rdi
mov dword [rdx], eax
mov edx, 0x4d42
mov rcx, qword [r13]
mov dword [rbp - 0x37], eax
mov eax, dword [rbp - 0x25]
mov dword [rbp - 5], eax
mov dword [rbp + 0x1b], edi
mov word [rbp - 0x39], dx
mov rdx, r14
movsd xmm0, qword [rbp - 0x39]
movsd qword [rcx], xmm0
mov dword [rbp - 0x2f], 0x36
mov eax, dword [rbp - 0x31]
mov dword [rcx + 8], eax
movzx eax, word [rbp - 0x2d]
mov word [rcx + 0xc], ax
lea rcx, [rbp - 9]
mov rax, qword [r13]
movups xmm0, xmmword [rbp - 9]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rcx
mov rcx, rbx
movups xmmword [rax + 0xe], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rax + 0x1e], xmm1
movsd xmm0, qword [rbp + 0x17]
movsd qword [rax + 0x2e], xmm0
mov rax, qword [r13]
mov r9d, dword [rbp - 0x21]
add rax, 0x36
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_GetDIBits]
mov edi, eax
mov r12, qword [rsp + 0x100]
mov r15, qword [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov eax, edi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140001a50
add rsp, 0xb8
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret