Function at 0x1400037f0
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140035190]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor eax, eax
mov dword [rbp - 0x11], 1
mov r12, rdx
mov qword [rbp - 9], rax
mov r13, rcx
mov qword [rbp - 1], rax
lea rdx, [rbp - 0x11]
xor r8d, r8d
lea rcx, [rbp - 0x29]
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 0x140003b55
test rax, rax
je 0x140003b55
mov qword [rsp + 0x110], rbx
xor ecx, ecx
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xc0], r15
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, ebx
mov rcx, rsi
mov r8d, eax
mov edi, eax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
test rax, rax
jne 0x1400038e5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed
call fcn.140008fb0
mov rcx, rax
lea rdx, [0x140009180]
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 0x140003a6b
mov rdx, r15
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, ebx
mov qword [rbp - 0x49], rax
xor r8d, r8d
xor eax, eax
xor edx, edx
mov dword [rsp + 0x38], eax
mov rcx, r14
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
call qword [sym.imp.GDI32.dll_BitBlt]
xor ebx, ebx
lea r8, [rbp - 0x39]
xor ecx, ecx
mov qword [rbp - 0x39], rbx
lea edx, [rbx + 1]
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 0x1400039c8
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400039c8
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 0x1400039bf
lea r10, str.image_jpeg
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 0x1400039b8
add rax, 2
cmp rax, 0xb
je 0x140003a9f
movzx ecx, word [rdx + rax*2]
cmp cx, word [r10 + rax*2]
je 0x140003992
inc ebx
cmp ebx, r9d
jb 0x140003980
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
call fcn.140008fb0
mov rcx, rax
lea rdx, [0x140009180]
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 qword [r13], rax
test rax, rax
jne 0x140003af3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error
call fcn.140008fb0
mov rcx, rax
lea rdx, [0x140009180]
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]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov rdi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x110]
mov r15, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140021cb0
add rsp, 0xd0
pop r14
pop r13
pop r12
pop rsi
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 0x1400039c8
xor eax, eax
lea r8, [rbp - 0x31]
xor edx, edx
mov qword [rbp - 0x31], rax
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 0x1400039eb
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 + 0x10]
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 0x140003a61
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed
call fcn.140008fb0
mov rcx, rax
lea rdx, [0x140009180]
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 0x140003a83
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140003a83