Function at 0x140001340
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.DISPLAY
call qword [sym.imp.GDI32.dll_CreateDCA]
mov r15, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r12, rax
mov edi, 8
mov edx, edi
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
lea edx, [rdi + 2]
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov r14d, eax
mov r8d, eax
mov edx, ebx
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rsi, rax
test rax, rax
je 0x140001771
mov rdx, rax
mov rcx, r12
call qword [sym.imp.GDI32.dll_SelectObject]
test rax, rax
je 0x140001771
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], ebx
xor r13d, r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r14d
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
je 0x140001771
lea r8, [rbp - 0x70]
lea edx, [rdi + 0x18]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x140001771
movzx eax, word [rbp - 0x60]
movzx ecx, word [rbp - 0x5e]
imul ecx, eax
mov eax, 1
cmp cx, ax
jne 0x14000145e
mov edi, eax
jmp 0x140001488
cmp cx, 4
ja 0x14000146b
mov edi, 4
jmp 0x140001488
cmp cx, di
jbe 0x140001488
cmp cx, 0x10
ja 0x14000147d
mov edi, 0x10
jmp 0x140001488
cmp cx, 0x18
jbe 0x1400014a4
mov edi, 0x20
mov ecx, edi
shl eax, cl
movsxd rdx, eax
lea rdx, [rdx*4 + 0x28]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1400014b7
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, 0x18
mov rbx, rax
mov dword [rax], 0x28
mov eax, dword [rbp - 0x6c]
mov dword [rbx + 4], eax
mov ecx, dword [rbp - 0x6c]
mov eax, dword [rbp - 0x68]
mov dword [rbx + 8], eax
mov r8d, dword [rbp - 0x68]
movzx eax, word [rbp - 0x60]
mov word [rbx + 0xc], ax
movzx eax, word [rbp - 0x5e]
mov word [rbx + 0xe], ax
mov dword [rbx + 0x10], r13d
lea eax, [rcx + 7]
cdq
and edx, 7
add edx, eax
sar edx, 3
imul edx, r8d
imul edx, edi
mov dword [rbx + 0x14], edx
mov dword [rbx + 0x24], r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
movzx r9d, word [rbx + 8]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x140001541
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140001771
mov eax, 0x4d42
mov word [rsp + 0x60], ax
mov eax, dword [rbx + 0x20]
lea edx, [rax*4]
mov r13d, dword [rbx + 0x14]
lea r8d, [rdx + r13]
lea eax, [r8 + 0xe]
add eax, dword [rbx]
mov dword [rsp + 0x62], eax
xor eax, eax
mov dword [rsp + 0x66], eax
lea eax, [rdx + 0xe]
add eax, dword [rbx]
mov dword [rsp + 0x6a], eax
lea eax, [r8 + 0x36]
mov esi, eax
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x1400015cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea rax, [rdi + 0xe]
lea r8, [rsi - 0xe]
mov rcx, rax
cmp r8, 0x28
jb 0x14000162a
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rbx + 0x20]
movsd qword [rax + 0x20], xmm0
jmp 0x140001643
cmp rsi, 0xe
jb 0x1400015ed
movsd xmm0, qword [rsp + 0x60]
movsd qword [rax], xmm0
mov eax, dword [rsp + 0x68]
mov dword [rdi + 8], eax
movzx eax, word [rsp + 0x6c]
mov word [rdi + 0xc], ax
jmp 0x14000160c
mov r8, rsi
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea r8, [rsi - 0xe]
lea rax, [rdi + 0xe]
mov rcx, rax
test rax, rax
jne 0x1400015ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x14000163d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov r9, r13
lea rdx, [rsi - 0x36]
lea rcx, [rdi + 0x36]
mov r8, r14
call fcn.140001010
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], al
lea r8d, [rax + 0xa]
lea rcx, [rsp + 0x70]
call fcn.140002950
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140002760
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], r8d
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x48]
call fcn.1400026b0
test rax, rax
jne 0x140001728
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x50]
call fcn.1400017b0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140001771
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000176c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000176c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e0c
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140002db0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret