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

Disassembly:
push rbp
push rdi
push r13
push r14
sub rsp, 0x98
mov rax, qword [0x1406b92c0]
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 0x140005284
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.1400160a0
lea rdx, [0x1400166a0]
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 0x140005516
mov rcx, rdi
mov qword [rsp + 0xc8], rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
jne 0x1400052d0
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.1400160a0
lea rdx, [0x1400166a0]
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 0x14000550e
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 0x14000532b
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.1400160a0
lea rdx, [0x1400166a0]
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 0x140005506
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 0x14000539d
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.1400160a0
lea rdx, [0x1400166a0]
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.14028fc64
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 0x140005427
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 0x1400054bc
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.140004900
mov rbp, rax
test rax, rax
je 0x14000549f
lea r8, [0x1404f9128]
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 0x14000546f
mov qword [rsp + 0x58], rbx
jmp 0x140005474
mov rbx, qword [rsp + 0x58]
mov rcx, rbp
test rbx, rbx
je 0x140005499
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.1400160a0
mov rcx, rax
lea rdx, str.danger.png
call fcn.1400160a0
lea rdx, [0x1400166a0]
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.14028f770
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.14028f750
add rsp, 0x98
pop r14
pop r13
pop rdi
pop rbp
ret