Function at 0x140046a00
Capabilities:
Capture screenshot

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x14012a050]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp qword [0x14012dda0], 0
jne 0x140046a68
lea rcx, str.dwmapi.dll
call fcn.1400462c0
mov qword [0x14012dda0], rax
test rax, rax
je 0x140046a5f
lea rdx, str.DwmGetWindowAttribute
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
jmp 0x140046a61
xor eax, eax
mov qword [0x14012dda8], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
test rax, rax
je 0x140046cac
mov r14, rax
mov rax, qword [0x14012dda8]
test rax, rax
je 0x140046ac6
lea r8, [rsp + 0x80]
mov rcx, rdi
mov edx, 9
mov r9d, 0x10
call rax
test eax, eax
js 0x140046ac6
mov ebx, dword [rsp + 0x80]
mov esi, dword [rsp + 0x84]
mov edi, dword [rsp + 0x88]
sub edi, ebx
mov ebp, dword [rsp + 0x8c]
sub ebp, esi
jmp 0x140046b00
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov rcx, r14
mov edx, 7
call qword [sym.imp.GDI32.dll_GetCurrentObject]
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0x20
call qword [sym.imp.GDI32.dll_GetObjectA]
mov edi, dword [rsp + 0x64]
mov ebp, dword [rsp + 0x68]
xor ebx, ebx
xor esi, esi
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
test rax, rax
je 0x140046cd2
mov r12, rax
mov rcx, r14
mov edx, edi
mov r8d, ebp
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test rax, rax
je 0x140046d03
mov r15, rax
mov rcx, r12
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
test rax, rax
je 0x140046d31
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x40], 0xcc0020
mov rcx, r12
xor edx, edx
xor r8d, r8d
mov r9d, edi
call qword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x140046d47
mov rsi, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0xa4], xmm0
mov qword [rsp + 0xb4], 0
mov dword [rsp + 0x90], 0x28
mov dword [rsp + 0x94], edi
mov dword [rsp + 0x98], ebp
mov qword [rsp + 0x9c], 0x200001
movsxd rax, edi
movsxd r13, ebp
imul r13, rax
shl r13, 2
xor ebx, ebx
mov edx, 1
mov rcx, r13
xor r8d, r8d
call fcn.1400434f0
mov rdi, rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x30], 0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x140046c27
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.GetDIBits__get_data_:__s
mov rdx, rax
call fcn.140042890
mov rbx, rax
lea rdx, [0x14010d852]
mov rcx, rsi
call fcn.1400cdab8
test rax, rax
je 0x140046d6a
mov rbp, rax
mov word [rsp + 0x50], 0x4d42
lea eax, [r13 + 0x36]
mov dword [rsp + 0x52], eax
mov dword [rsp + 0x5a], 0x36
lea rcx, [rsp + 0x50]
mov edx, 1
mov r8d, 0xe
mov r9, rbp
call fcn.1400cded4
lea rcx, [rsp + 0x90]
mov edx, 1
mov r8d, 0x28
mov r9, rbp
call fcn.1400cded4
mov edx, 1
mov rcx, rdi
mov r8, r13
mov r9, rbp
call fcn.1400cded4
mov rcx, rbp
call fcn.1400cd2b8
jmp 0x140046d7c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.GetDC_window_:__s
mov rdx, rax
call fcn.140042890
mov rbx, rax
xor edi, edi
jmp 0x140046d99
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.CreateCompatibleDC_desktop_window_dc_:__s
mov rdx, rax
call fcn.140042890
mov rbx, rax
xor edi, edi
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140046d99
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.CreateCompatibleBitmap:__s
mov rdx, rax
call fcn.140042890
mov rbx, rax
xor edi, edi
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140046d90
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.SelectObject:__s
jmp 0x140046d5b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140047ad0
lea rcx, str.BitBlt:__s
mov rdx, rax
call fcn.140042890
mov rbx, rax
xor edi, edi
jmp 0x140046d7c
lea rcx, str._s:_unable_to_open_file
mov rdx, rsi
call fcn.140042890
mov rbx, rax
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rdi
call fcn.140043590
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400ba340
mov rax, rbx
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret