Function at 0x140087f40
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 - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400fec00]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r13, rcx
mov qword [rbp - 0x70], rcx
mov dword [rsp + 0x50], 0
mov ecx, 0x4c
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r12d, eax
mov ecx, 0x4d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r14d, eax
mov ecx, 0x4e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r15d, eax
mov ecx, 0x4f
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov qword [rsp + 0x58], rax
mov edx, 8
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
mov edx, 0xa
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x60], rax
mov r8d, ebx
mov edx, edi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rbx, rax
mov qword [rsp + 0x70], rax
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x40], 0x40cc0020
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], esi
mov r9d, r15d
xor r8d, r8d
xor edx, edx
mov r14, qword [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.GDI32.dll_BitBlt]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
xor r12d, r12d
mov qword [rbp + 0x20], r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rsi, rax
test rax, rax
jne 0x140088153
mov rdx, qword [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], r12
mov qword [r13 + 0x18], send
mov byte [r13], sil
mov dword [rsp + 0x50], 1
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140088120
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008810f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400884f0
call fcn.1400b3f70
xorps xmm0, xmm0
mov qword [rbp + 0x20], r12
movdqu xmmword [rbp + 0x10], xmm0
mov rax, r13
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400b3f50
lea r11, [rsp + 0x2a0]
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
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
lea rax, vtable.ATL::CImage.0
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], r12
mov word [rbp + 0x58], 0
mov qword [rbp + 0x5c], 0xffffffffffffffff
mov qword [rbp + 0x68], r12
mov dword [rbp + 0x70], r12d
mov qword [rbp + 0x78], r12
call fcn.1400805c0
mov rbx, rax
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rbx + 0x30]
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdi, qword [rsp + 0x70]
mov qword [rbp + 0x38], rdi
lea r8, [rbp - 0x60]
mov edx, 0x68
mov rcx, rdi
call qword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x68
jne 0x14008823c
mov byte [rbp + 0x58], 1
mov ecx, dword [rbp - 0x3c]
mov dword [rbp + 0x48], ecx
mov r8d, dword [rbp - 0x38]
mov r9d, r8d
neg r9d
cmovs r9d, r8d
mov dword [rbp + 0x4c], r9d
movzx eax, word [rbp - 0x32]
mov dword [rbp + 0x54], eax
imul eax, ecx
add eax, 0x1f
cdq
and edx, 0x1f
add edx, eax
sar edx, 5
shl edx, 2
mov dword [rbp + 0x50], edx
mov r10, qword [rbp - 0x48]
mov qword [rbp + 0x40], r10
test r8d, r8d
jle 0x14008825b
lea eax, [r9 - 1]
imul eax, edx
movsxd rcx, eax
add rcx, r10
mov qword [rbp + 0x40], rcx
neg edx
mov dword [rbp + 0x50], edx
jmp 0x14008825b
mov byte [rbp + 0x58], 0
mov eax, dword [rbp - 0x5c]
mov dword [rbp + 0x48], eax
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0x4c], eax
movzx eax, word [rbp - 0x4e]
mov dword [rbp + 0x54], eax
mov dword [rbp + 0x50], r12d
mov qword [rbp + 0x40], r12
mov dword [rbp + 0x5c], 0xffffffff
mov byte [rbp + 0x59], 0
mov rdx, rsi
lea rcx, [rbp + 0x30]
call fcn.140080750
lea rdx, [rbp + 0x80]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_IStream_Size]
mov r15d, dword [rbp + 0x80]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_IStream_Reset]
mov r8d, r15d
mov r9, qword [rbp + 0x18]
mov rcx, r9
mov rdx, qword [rbp + 0x10]
sub rcx, rdx
cmp r15, rcx
jae 0x1400882b2
lea rax, [r15 + rdx]
mov qword [rbp + 0x18], rax
jmp 0x1400882e7
jbe 0x1400882e7
mov rax, qword [rbp + 0x20]
sub rax, rdx
cmp r8, rax
jbe 0x1400882ce
mov rdx, r8
lea rcx, [rbp + 0x10]
call fcn.140093510
jmp 0x1400882e3
sub r8, rcx
lea rbx, [r9 + r8]
xor edx, edx
mov rcx, r9
call fcn.1400c1030
mov qword [rbp + 0x18], rbx
mov rdx, qword [rbp + 0x10]
mov r8d, r15d
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_IStream_Read]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x90]
call fcn.1400c1030
lea rcx, [rbp + 0x90]
call fcn.14003de70
nop
mov r8, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
sub r8, rdx
lea rcx, [rbp + 0xa0]
call fcn.140063520
mov rdx, qword [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
nop
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], r12
mov qword [r13 + 0x18], send
mov byte [r13], 0
mov ebx, 4
mov dword [rsp + 0x50], ebx
movups xmmword [rsp + 0x78], xmm0
mov rcx, qword [rbp + 0x118]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400883c5
mov rax, qword [rbp + 0xe8]
mov r8, qword [rax]
test r8, r8
je 0x1400883c5
mov rax, qword [rbp + 0xc8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x110]
cmovb r8, qword [rbp + 0x110]
sub r8, rdx
jmp 0x1400883fd
test bl, cl
jne 0x1400883f4
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400883f4
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xf8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1400883fd
mov r8, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x14008840a
mov rcx, r13
call fcn.1400412f0
and ebx, 0xfffffffb
mov dword [rsp + 0x50], ebx
or ebx, 2
mov dword [rsp + 0x50], ebx
and ebx, 0xfffffffd
mov dword [rsp + 0x50], ebx
or ebx, 1
mov dword [rsp + 0x50], ebx
lea rcx, [rbp + 0x90]
call fcn.14003cb00
nop
lea rax, vtable.ATL::CImage.0
mov qword [rbp + 0x30], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14008846b
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x5c], 0xffffffffffffffff
mov word [rbp + 0x58], 0
call qword [sym.imp.GDI32.dll_DeleteObject]
call fcn.1400805c0
mov rbx, rax
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rbx + 0x30], 1
jne 0x1400884a8
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14008849b
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov qword [rbx], r12
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140088120
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008810f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008810f
call fcn.140097c38
int3