Function at 0x1400021f0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r15, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
mov qword [rsp + 0x58], rax
lea edx, [r12 + 8]
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
lea edx, [r12 + 0xa]
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
mov r8d, eax
mov edx, ebx
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0x50], 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], r15
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
movdqu xmmword [rbp - 0x74], xmm0
mov qword [rbp - 0x64], r12
mov dword [rsp + 0x78], 0x28
mov dword [rsp + 0x7c], ebx
mov dword [rbp - 0x80], edi
mov qword [rbp - 0x7c], 0x180001
lea eax, [rbx + rbx*2]
lea eax, [rax*8 + 0x1f]
cdq
and edx, 0x1f
lea ebx, [rdx + rax]
sar ebx, 5
imul ebx, edi
shl ebx, 2
mov r12d, ebx
mov edx, ebx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r13, rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, edi
xor r8d, r8d
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetDIBits]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140006750]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rax, [rbp - 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x48], rax
mov byte [rbp + 0x34], 0
mov byte [rbp + 0x29], 0
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor ecx, ecx
mov qword [rbp + 0x38], rcx
mov rax, qword [0x14000ab10]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], rcx
lea r8d, [rcx + 0x22]
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.1400037a0
test rax, rax
jne 0x140002426
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov eax, 0x4d42
mov word [rsp + 0x68], ax
lea eax, [rbx + 0x36]
mov dword [rsp + 0x6a], eax
xor esi, esi
mov dword [rsp + 0x6e], esi
mov dword [rsp + 0x72], 0x36
lea r8d, [rsi + 0xe]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea r8d, [rsi + 0x28]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov r8, r12
mov rdx, r13
lea rcx, [rbp - 0x50]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x48]
cmp qword [rbp + 0x38], rsi
je 0x1400024d0
lea rbx, [rbp - 0x48]
call fcn.1400036b0
test al, al
cmove rbx, rsi
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, rsi
mov byte [rbp + 0x34], sil
mov byte [rbp + 0x29], sil
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], rsi
mov rax, qword [0x14000ab10]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], rsi
test rbx, rbx
jne 0x14000250d
jmp 0x1400024f1
mov byte [rbp + 0x34], sil
mov byte [rbp + 0x29], sil
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], rsi
mov rax, qword [0x14000ab10]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], rsi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.1400033e0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140004990
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret