Function at 0x1400030d0
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x2f]
sub rsp, 0xc8
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, rdx
mov dword [rbp - 0x11], 1
mov r13, rcx
lea rdx, [rbp - 0x11]
xor ebx, ebx
lea rcx, [rbp - 0x29]
xor r8d, r8d
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
test rsi, rsi
je 0x140003410
test rax, rax
je 0x140003410
mov edx, 0x640
mov qword [rsp + 0xc0], r15
mov r8d, 0x3e8
mov rcx, rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
test rax, rax
jne 0x1400031a5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_compatible_bitmap
call fcn.140005020
mov rcx, rax
lea rdx, [0x1400051f0]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140003333
mov rdx, r15
mov qword [rsp + 0x110], rdi
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, 0x640
mov dword [rsp + 0x38], ebx
xor r8d, r8d
mov dword [rsp + 0x30], ebx
xor edx, edx
mov qword [rsp + 0x28], rsi
mov rcx, r14
mov dword [rsp + 0x20], 0x3e8
mov qword [rbp - 0x49], rax
call qword [sym.imp.GDI32.dll_BitBlt]
lea r8, [rbp - 0x39]
mov qword [rbp - 0x39], rbx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea rdx, [rbp - 0x41]
mov dword [rbp - 0x31], ebx
lea rcx, [rbp - 0x31]
mov dword [rbp - 0x41], ebx
call qword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [rbp - 0x41]
test eax, eax
je 0x140003298
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140003298
mov edx, dword [rbp - 0x41]
mov r8, rax
mov ecx, dword [rbp - 0x31]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov r9d, dword [rbp - 0x31]
test r9d, r9d
je 0x14000328f
lea r10, str.image_jpeg
nop dword [rax]
mov eax, ebx
imul r8, rax, 0x68
mov rax, 0xffffffffffffffff
mov rdx, qword [r8 + rdi + 0x40]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r10 + rax*2 + 2]
jne 0x140003288
add rax, 2
cmp rax, 0xb
je 0x140003358
movzx ecx, word [rdx + rax*2]
cmp cx, word [r10 + rax*2]
je 0x140003262
inc ebx
cmp ebx, r9d
jb 0x140003250
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_JPEG_encoder
call fcn.140005020
mov rcx, rax
lea rdx, [0x1400051f0]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp - 0x39]
lea r9, [rbp - 0x19]
xor ebx, ebx
mov edx, ebx
mov rax, qword [rcx]
lea r8d, [rbx + 2]
call qword [rax + 0x28]
mov eax, dword [rbp - 0x19]
xor r9d, r9d
mov rcx, qword [rbp - 0x39]
xor r8d, r8d
mov dword [r12], eax
mov edx, ebx
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edx, dword [r12]
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, qword [rsp + 0x110]
mov qword [r13], rax
test rax, rax
jne 0x1400033ae
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error:_Failed_to_allocate_memory_for_image_data._n
call fcn.140005020
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov r15, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140005ff0
add rsp, 0xc8
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
movups xmm0, xmmword [r8 + rdi]
mov rcx, rdi
movups xmmword [rbp + 7], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp ebx, 0xffffffff
je 0x140003298
lea r8, [rbp - 0x31]
mov qword [rbp - 0x31], 0
xor edx, edx
mov rcx, r15
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov rdx, qword [rbp - 0x39]
lea r8, [rbp + 7]
mov rcx, qword [rbp - 0x31]
xor r9d, r9d
call qword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x1400032bb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rbp - 0x39]
lea r9, [rbp - 0x21]
mov r8d, dword [r12]
mov rdx, rax
mov r10, qword [rcx]
call qword [r10 + 0x18]
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rdx, qword [rbp - 0x49]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140003329
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_device_context
call fcn.140005020
mov rcx, rax
lea rdx, [0x1400051f0]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
test rsi, rsi
je 0x14000333b
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x14000333b