Function at 0x140001440
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3f], rax
lea r8, [rbp - 0x19]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [rbp - 1], 1
xor r12d, r12d
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], r12
xor r8d, r8d
lea rdx, [rbp - 1]
lea rcx, [rbp - 9]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
lea ecx, [r12 + 1]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
mov r8d, edi
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.GDI32.dll_BitBlt]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rax
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x21], r12
lea r8, [rbp - 0x21]
xor edx, edx
mov rcx, r15
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [rbp + 0x27], eax
mov rdi, qword [rbp - 0x21]
mov qword [rbp + 0x1f], rdi
mov dword [rbp - 0x11], r12d
mov dword [rbp - 0x29], r12d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x11]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [rbp - 0x29]
test eax, eax
je 0x1400015fc
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400015fc
mov r8, rax
mov edx, dword [rbp - 0x29]
mov ecx, dword [rbp - 0x11]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov r8d, r12d
mov r10d, dword [rbp - 0x11]
test r10d, r10d
je 0x1400015f3
lea r11, str.image_png
nop word [rax + rax]
mov eax, r8d
imul r9, rax, 0x68
mov rdx, qword [r9 + rbx + 0x40]
mov rax, r12
nop
movzx ecx, word [rdx + rax*2]
cmp cx, word [r11 + rax*2]
jne 0x140001660
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r11 + rax*2 + 2]
jne 0x140001660
add rax, 2
cmp rax, 0xa
jne 0x1400015c0
movups xmm0, xmmword [r9 + rbx]
movups xmmword [rbp + 0x2f], xmm0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x49]
call fcn.1400012e0
cmp qword [rax + 0x18], 7
jbe 0x14000160f
mov rax, qword [rax]
xor r9d, r9d
lea r8, [rbp + 0x2f]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140001673
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000166e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000166e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
inc r8d
cmp r8d, r10d
jb 0x1400015b0
jmp 0x1400015f3
call fcn.14000230c
xor r9d, r9d
lea r8, [rbp + 0x2f]
mov rdx, qword [rbp - 0x19]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov rcx, qword [rbp - 9]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400022b0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret