Function at 0x180053860
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x180146748]
xor rax, rsp
mov qword [rbp + 0x1f], rax
cmp dword [rcx + 0x54], 0
mov rbx, rcx
je 0x18005388d
mov rdi, qword [rcx + 0x60]
jmp 0x180053891
mov rdi, qword [rcx + 0x58]
test rdi, rdi
je 0x180053af8
mov qword [rsp + 0x108], rsi
mov qword [rsp + 0x110], r12
mov qword [rsp + 0x118], r13
mov r13, qword [rcx + 8]
mov qword [rsp + 0xd8], r14
mov rcx, r13
mov qword [rsp + 0xd0], r15
movaps xmmword [rsp + 0xc0], xmm6
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, qword [rbx + 8]
lea rdx, [rbp + 0xf]
xorps xmm0, xmm0
mov r14, rax
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
movups xmm6, xmmword [rbp + 0xf]
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
movdqa xmm0, xmm6
movdqa xmm1, xmm6
psrldq xmm0, 0xc
mov rsi, rax
movd ecx, xmm0
movdqa xmm0, xmm6
movd eax, xmm6
psrldq xmm1, 4
movd r15d, xmm1
psrldq xmm0, 8
movd edx, xmm0
sub ecx, r15d
mov dword [rbp - 0x31], r15d
mov dword [rbp - 0x2d], ecx
mov r8d, ecx
sub edx, eax
mov dword [rbp - 0x35], eax
mov rcx, r14
mov dword [rbp - 0x29], edx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, rsi
mov r12, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [rbp - 0x35]
mov r8d, r15d
neg r8d
mov qword [rbp - 9], rax
neg edx
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetViewportOrgEx]
xor r15d, r15d
lea rdx, [rbp - 0x41]
mov rcx, rsi
mov qword [rbp - 0x41], r15
call sub.gdiplus.dll_GdipCreateFromHDC
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x39]
mov dword [rbp + 7], eax
mov rax, qword [rbp - 0x41]
mov qword [rbp - 1], rax
mov dword [rbp - 0x39], r15d
call sub.gdiplus.dll_GdipGetImageHeight
movaps xmm6, xmmword [rsp + 0xc0]
test eax, eax
je 0x1800539b2
mov dword [rdi + 0x10], eax
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x41]
mov r15d, dword [rbp - 0x39]
mov dword [rbp - 0x41], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x1800539d1
mov dword [rdi + 0x10], eax
mov eax, dword [rbx + 0x68]
lea r9, [rbp - 0x19]
sub r15d, dword [rbx + 0x74]
lea r8, [rbp + 0xf]
mov dword [rbp - 0x19], eax
lea rdx, [rbp - 1]
mov eax, dword [rbx + 0x6c]
mov rcx, rdi
mov dword [rbp - 0x15], eax
mov eax, dword [rbp - 0x41]
sub eax, dword [rbx + 0x70]
mov dword [rbp - 0xd], r15d
xor r15d, r15d
mov dword [rbp - 0x11], eax
mov dword [rsp + 0x20], r15d
call fcn.1800540e0
mov rcx, qword [rbp - 1]
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [rbp + 0x17]
lea r9, [rbp - 0x41]
sub eax, dword [rbp + 0xf]
xor r8d, r8d
mov rcx, qword [rbx + 8]
mov rdx, r14
mov dword [rbp - 0x41], eax
mov eax, dword [rbp + 0x1b]
sub eax, dword [rbp + 0x13]
mov dword [rsp + 0x40], 2
mov dword [rbp - 0x3d], eax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x21]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov qword [rbp - 0x21], r15
mov dword [rbp - 0x49], 0x1ff0000
call qword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov eax, dword [rbp - 0x35]
mov edx, eax
mov r8d, dword [rbp - 0x31]
mov ecx, dword [rbp - 0x2d]
mov r9d, dword [rbp - 0x29]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], ecx
mov rcx, r14
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, qword [rbp - 9]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r15, qword [rsp + 0xd0]
test r12, r12
je 0x180053abe
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r12, qword [rsp + 0x110]
test rsi, rsi
je 0x180053ad4
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r14, qword [rsp + 0xd8]
mov r13, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x108]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18008c720
add rsp, 0xe0
pop rdi
pop rbx
pop rbp
ret