Function at 0x140046120
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 [0x140127050]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp qword [0x14012ada0], 0
jne 0x140046188
lea rcx, str.dwmapi.dll
call fcn.1400459f0
mov qword [0x14012ada0], rax
test rax, rax
je 0x14004617f
lea rdx, str.DwmGetWindowAttribute
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140046181
xor eax, eax
mov qword [0x14012ada8], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
test rax, rax
je 0x1400463cc
mov r14, rax
mov rax, qword [0x14012ada8]
test rax, rax
je 0x1400461e6
lea r8, [rsp + 0x80]
mov rcx, rdi
mov edx, 9
mov r9d, 0x10
call rax
test eax, eax
js 0x1400461e6
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 0x140046220
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 0x1400463f2
mov r12, rax
mov rcx, r14
mov edx, edi
mov r8d, ebp
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test rax, rax
je 0x140046423
mov r15, rax
mov rcx, r12
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
test rax, rax
je 0x140046451
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 0x140046467
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.140042c20
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 0x140046347
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.GetDIBits__get_data_:__s
mov rdx, rax
call fcn.140041fc0
mov rbx, rax
lea rdx, [0x14010b762]
mov rcx, rsi
call fcn.1400cba78
test rax, rax
je 0x14004648a
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.1400cbe94
lea rcx, [rsp + 0x90]
mov edx, 1
mov r8d, 0x28
mov r9, rbp
call fcn.1400cbe94
mov edx, 1
mov rcx, rdi
mov r8, r13
mov r9, rbp
call fcn.1400cbe94
mov rcx, rbp
call fcn.1400cb278
jmp 0x14004649c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.GetDC_window_:__s
mov rdx, rax
call fcn.140041fc0
mov rbx, rax
xor edi, edi
jmp 0x1400464b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.CreateCompatibleDC_desktop_window_dc_:__s
mov rdx, rax
call fcn.140041fc0
mov rbx, rax
xor edi, edi
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x1400464b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.CreateCompatibleBitmap:__s
mov rdx, rax
call fcn.140041fc0
mov rbx, rax
xor edi, edi
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x1400464b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.SelectObject:__s
jmp 0x14004647b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.BitBlt:__s
mov rdx, rax
call fcn.140041fc0
mov rbx, rax
xor edi, edi
jmp 0x14004649c
lea rcx, str._s:_unable_to_open_file
mov rdx, rsi
call fcn.140041fc0
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.140042cc0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b8300
mov rax, rbx
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret