Function at 0x140055610
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 - 0x37]
sub rsp, 0xc0
mov rax, qword [0x14012c080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
mov dword [rbp + 7], 1
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
xor r8d, r8d
lea rdx, [rbp + 7]
lea rcx, [rbp - 1]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
mov ecx, Ordinal_79
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r14d, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_79
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
mov ecx, Ordinal_79
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
mov ecx, Ordinal_79
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r13, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rbp - 0x39], rax
mov r8d, esi
mov edx, r14d
mov rcx, r13
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
mov rdx, rax
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], esi
mov r9d, r14d
xor r8d, r8d
xor edx, edx
mov rsi, qword [rbp - 0x39]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_BitBlt]
mov ecx, Ordinal_26
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov r14, rax
test rax, rax
je 0x140055a31
xor ebx, ebx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [r14], rax
mov qword [rbp - 0x29], rbx
lea r8, [rbp - 0x29]
xor edx, edx
mov rcx, r12
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [r14 + 0x10], eax
mov rax, qword [rbp - 0x29]
mov qword [r14 + 8], rax
mov dword [rbp - 0x29], ebx
mov dword [rbp - 0x31], ebx
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x29]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [rbp - 0x31]
test eax, eax
je 0x14005580b
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14005580b
mov r8, rax
mov edx, dword [rbp - 0x31]
mov ecx, dword [rbp - 0x29]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov r9d, dword [rbp - 0x29]
test r9d, r9d
je 0x140055802
lea r10, str.image_png
mov r11d, 0xa
mov eax, ebx
imul r8, rax, 0x68
mov rdx, qword [r8 + rdi + 0x40]
xor eax, eax
movzx ecx, word [rdx + rax*2]
cmp cx, word [r10 + rax*2]
jne 0x1400557fb
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r10 + rax*2 + 2]
jne 0x1400557fb
add rax, 2
cmp rax, r11
jne 0x1400557b0
movups xmm0, xmmword [r8 + rdi]
movups xmmword [rbp + 0x1f], xmm0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp ebx, 0xffffffff
je 0x14005580b
cmp qword [r15 + 0x18], 0xf
jbe 0x140055840
mov rsi, qword [r15]
mov rdi, rsi
add rsi, qword [r15 + 0x10]
jmp 0x14005584a
inc ebx
cmp ebx, r9d
jb 0x1400557a3
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, str.Failed_to_get_PNG_encoder_CLSID.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140069220
lea rdx, [0x1400693f0]
mov rcx, rax
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 rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
jmp 0x140055a54
mov rsi, qword [r15 + 0x10]
add rsi, r15
mov rdi, r15
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov ebx, 7
mov qword [rbp - 9], rbx
cmp rdi, rsi
jne 0x14005586e
xor eax, eax
mov qword [rbp - 0x11], rax
mov word [rbp - 0x21], ax
jmp 0x140055981
sub rsi, rdi
xor r9d, r9d
mov qword [rbp - 0x11], r9
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
ja 0x140055aae
cmp rsi, rbx
jbe 0x14005593c
mov rbx, rsi
or rbx, 7
cmp rbx, rax
jbe 0x1400558f4
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x14005592a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140055aa8
mov rcx, rax
call fcn.1400db414
mov rcx, rax
test rax, rax
je 0x140055a12
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
xor r9d, r9d
mov qword [rbp - 0x21], rax
mov qword [rbp - 9], rbx
jmp 0x140055940
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140055aa8
add rcx, rcx
jne 0x1400558b1
mov rax, r9
mov qword [rbp - 0x21], rax
mov qword [rbp - 9], rbx
jmp 0x140055940
call fcn.1400db414
xor r9d, r9d
mov qword [rbp - 0x21], rax
mov qword [rbp - 9], rbx
jmp 0x140055940
mov rax, qword [rbp - 0x21]
lea r8, [rbp - 0x21]
cmp rbx, 7
cmova r8, rax
mov rcx, r8
mov rdx, rsi
test rsi, rsi
je 0x140055974
nop word [rax + rax]
movsx eax, byte [rdi]
mov word [rcx], ax
lea rcx, [rcx + 2]
lea rdi, [rdi + 1]
sub rdx, 1
jne 0x140055960
mov qword [rbp - 0x11], rsi
mov word [r8 + rsi*2], r9w
mov rbx, qword [rbp - 9]
lea rdx, [rbp - 0x21]
cmp rbx, 7
cmova rdx, qword [rbp - 0x21]
xor r9d, r9d
lea r8, [rbp + 0x1f]
mov rcx, qword [r14 + 8]
call qword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
je 0x1400559b7
mov dword [r14 + 0x10], eax
lea rdx, str.Failed_to_save_screenshot.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x1400559c5
lea rdx, str.Screenshot_saved_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140069220
lea rdx, [0x1400693f0]
mov rcx, rax
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]
nop
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x140055a1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055a19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055a19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400db0f4
mov rsi, qword [rbp - 0x39]
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
jmp 0x140055a54
lea rdx, str.Failed_to_create_GDI_Bitmap_from_HBITMAP.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140069220
lea rdx, [0x1400693f0]
mov rcx, rax
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, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 1]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400dace0
lea r11, [rsp + 0xc0]
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
call fcn.140051f00
int3
call fcn.140051fa0
int3