Function at 0x140005860
Capabilities:
Capture screenshot
Write file on windows

Disassembly:
push rbp
push rdi
push r13
push r14
sub rsp, 0x98
mov rax, qword [0x1406e22c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r13d, 1
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebp, eax
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
jne 0x1400058d4
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_the_screen_DC
call fcn.140019a90
lea rdx, [0x140019ed0]
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]
jmp 0x140005b66
mov rcx, rdi
mov qword [rsp + 0xc8], rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
jne 0x140005920
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_a_memory_DC
call fcn.140019a90
lea rdx, [0x140019ed0]
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 rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140005b5e
mov r8d, ebp
mov qword [rsp + 0x90], r15
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
test rax, rax
jne 0x14000597b
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_a_compatible_bitmap
call fcn.140019a90
lea rdx, [0x140019ed0]
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, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140005b56
mov qword [rsp + 0xc0], rbx
mov rdx, r15
mov rcx, rsi
mov qword [rsp + 0xd0], r12
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
xor ebx, ebx
mov dword [rsp + 0x38], ebx
mov r9d, r14d
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], ebp
mov r12, rax
call qword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x1400059ed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.BitBlt_failed
call fcn.140019a90
lea rdx, [0x140019ed0]
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 rdx, r12
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov eax, ebp
mov dword [rsp + 0x84], ebx
neg eax
mov dword [rsp + 0x60], Ordinal_46
mov dword [rsp + 0x68], eax
xorps xmm0, xmm0
mov eax, ebp
mov dword [rsp + 0x64], r14d
imul eax, r14d
movdqu xmmword [rsp + 0x74], xmm0
mov qword [rsp + 0x6c], 0x180001
lea eax, [rax + rax*2]
movsxd rcx, eax
call fcn.140297c14
mov r12, rax
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x60]
mov r9d, ebp
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], r12
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x140005a77
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.GetDIBits_failed
jmp 0x140005b0c
lea rax, [rsp + 0x50]
mov r9d, ebp
lea edx, [r14 + r14*2]
mov qword [rsp + 0x28], rax
mov r8d, r14d
mov rcx, r12
call fcn.140004f50
mov rbp, rax
test rax, rax
je 0x140005aef
lea r8, [0x140502198]
lea rdx, str.danger.png
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x140005abf
mov qword [rsp + 0x58], rbx
jmp 0x140005ac4
mov rbx, qword [rsp + 0x58]
mov rcx, rbp
test rbx, rbx
je 0x140005ae9
movsxd r8, dword [rsp + 0x50]
mov r9, rbx
mov rdx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbp
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::cout]
lea rdx, str.Screenshot_captured_and_saved_as
call fcn.140019a90
mov rcx, rax
lea rdx, str.danger.png
call fcn.140019a90
lea rdx, [0x140019ed0]
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 fcn.140297720
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r12, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140297700
add rsp, 0x98
pop r14
pop r13
pop rdi
pop rbp
ret