Function at 0x14000ff50
Capabilities:
Capture screenshot

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140209bc0]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x118]
call fcn.14002ae40
xor r8d, r8d
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0xf8]
call sub.gdiplus.dll_GdiplusStartup
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x5c], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x68], rax
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x5c]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x1400100a3
lea rdx, str.Error_copying_screen_contents.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003320
mov qword [rsp + 0xb0], rax
lea rdx, [0x140004e50]
mov rcx, qword [rsp + 0xb0]
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, qword [rsp + 0x88]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x1400103fc
mov edx, 0x18
lea rcx, [rsp + 0xe0]
call fcn.140007060
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xe0]
call fcn.14002ace0
nop
lea rcx, [rsp + 0xe0]
call fcn.1400324f0
test eax, eax
je 0x14001015b
lea rdx, str.Error_creating_GDI_Bitmap.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003320
mov qword [rsp + 0xb8], rax
lea rdx, [0x140004e50]
mov rcx, qword [rsp + 0xb8]
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, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
lea rcx, [rsp + 0xe0]
call fcn.14002e040
jmp 0x1400103fc
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r9b, 0x52
mov r8b, 0xb7
mov dl, 0x36
lea rcx, [rsp + 0xdc]
call fcn.14002ade0
mov r9b, 0xb
mov r8b, 0x3d
mov dl, 0x14
lea rcx, [rsp + 0xd8]
call fcn.14002ade0
mov dword [rsp + 0x58], 0
mov edx, 0x18
lea rcx, [rsp + 0x100]
call fcn.140007060
lea rcx, [rsp + 0x100]
call fcn.14002a8c0
nop
lea rcx, [rsp + 0xe0]
call fcn.1400325a0
xor edx, edx
div dword [0x14020bcec]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x50], 0
jmp 0x140010213
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [0x14020bcec]
cmp dword [rsp + 0x50], eax
jge 0x1400102f3
mov eax, dword [rsp + 0x50]
imul eax, dword [rsp + 0x78]
mov dword [rsp + 0x80], eax
mov eax, dword [0x14020bcec]
dec eax
cmp dword [rsp + 0x50], eax
jne 0x140010254
lea rcx, [rsp + 0xe0]
call fcn.1400325a0
mov dword [rsp + 0x7c], eax
jmp 0x140010267
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x80]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0xdc]
mov dword [rsp + 0x98], eax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xc8]
call fcn.1400287f0
mov rcx, rax
call fcn.140004920
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x80]
mov r8d, dword [rsp + 0x94]
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0xc0]
call fcn.14000fe00
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
jmp 0x140010209
lea rcx, [rsp + 0xe0]
call fcn.1400325a0
mov dword [rsp + 0x9c], eax
lea rcx, [rsp + 0xe0]
call fcn.140032490
mov ecx, dword [rsp + 0x9c]
imul ecx, eax
mov eax, ecx
mov eax, eax
cvtsi2ss xmm0, rax
mulss xmm0, dword [0x1401a9fe0]
cvttss2si eax, xmm0
cmp dword [rsp + 0x58], eax
jle 0x1400103e1
cvtsi2sd xmm0, dword [rsp + 0x5c]
mulsd xmm0, qword [0x1401aa028]
cvttsd2si eax, xmm0
mov dword [rsp + 0x84], eax
cvtsi2sd xmm0, dword [rsp + 0x60]
mulsd xmm0, qword [0x1401aa028]
cvttsd2si eax, xmm0
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x54], 0
jmp 0x140010384
mov eax, dword [rsp + 0x54]
add eax, 0x14
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x54], eax
jge 0x1400103e1
mov edx, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x84]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x54]
mov edx, dword [rsp + 0x84]
mov ecx, 6
call qword [sym.imp.USER32.dll_mouse_event]
mov edx, 0x64
lea rcx, [rsp + 0xd0]
call fcn.140031920
mov rcx, rax
call fcn.140028850
jmp 0x140010379
lea rcx, [rsp + 0x100]
call fcn.14002e000
nop
lea rcx, [rsp + 0xe0]
call fcn.14002e040
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14013a580
add rsp, 0x148
ret