Function at 0x140001dd0
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 - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140033080]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov ecx, 0x1770
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r12d, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
mov r8d, r12d
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 r13, rax
mov dword [rsp + 0x40], 0xcc0020
xor edi, edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r12d
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.GDI32.dll_BitBlt]
mov dword [rbp - 0x68], 0x28
mov dword [rbp - 0x64], ebx
mov eax, r12d
neg eax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x5c], 0x100001
mov qword [rbp - 0x54], rdi
mov qword [rbp - 0x4c], rdi
mov dword [rbp - 0x44], edi
mov eax, 0x4d42
mov word [rbp - 0x78], ax
mov edi, r12d
imul edi, ebx
lea eax, [rdi*2 + 0x36]
mov dword [rbp - 0x76], eax
xor eax, eax
mov dword [rbp - 0x72], eax
mov dword [rbp - 0x6e], 0x36
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call fcn.140008b00
mov r8d, 0x20
lea rdx, str.screenshot.bmp
lea rcx, [rbp - 0x40]
call fcn.140003780
nop
cmp qword [rbp + 0x48], 0
je 0x140001fd0
mov r8d, 0xe
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x40]
call fcn.140003aa0
mov r8d, 0x28
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x40]
call fcn.140003aa0
lea eax, [rdi + rdi]
movsxd rbx, eax
mov rcx, rbx
call fcn.1400065e4
mov rdi, rax
mov dword [rsp + 0x30], 0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, r12d
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDIBits]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.140003aa0
mov rcx, rdi
call fcn.1400065a0
lea rcx, [rbp - 0x38]
call fcn.140004260
test rax, rax
jne 0x140001ffc
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 8], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x30]
and eax, 0x17
mov dword [rbp + rcx - 0x30], eax
and eax, dword [rbp + rcx - 0x2c]
je 0x140001ffc
test al, 4
je 0x1400020bd
lea rbx, str.ios_base::badbit_set
jmp 0x1400020d1
call fcn.140004a40
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400048b0
movzx edx, al
mov rcx, rbx
call fcn.1400053f0
mov rcx, rbx
call fcn.1400046a0
mov rdx, r13
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]
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x38]
call fcn.1400034c0
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x44], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0x68]
call fcn.140005cf8
nop
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140006580
lea r11, [rsp + 0x1e0]
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
test dl, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.1400013b0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140001c70
lea rdx, [0x140031438]
lea rcx, [rsp + 0x60]
call fcn.140008364
int3