Function at 0x1400a41e0
Capabilities:
Capture screenshot

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, rdx
mov r12b, 1
mov dword [rsp + 0x78], 1
xor r15d, r15d
mov qword [r11 - 0x58], r15
mov qword [r11 - 0x50], r15
mov qword [r11 - 0x70], r15
mov qword [r11 - 0x78], r15
xor r8d, r8d
lea rdx, [r11 - 0x60]
lea rcx, [r11 - 0x68]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
lea r8, [rsp + 0x68]
lea edx, [r15 + 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
lea ecx, [r15 + 1]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdi, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r8d, ebx
mov edx, esi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r13, rax
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [r15 + 0x18]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov r15, rax
xor esi, esi
test rax, rax
je 0x1400a4314
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [r15], rax
mov qword [rsp + 0x58], rsi
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, r13
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [r15 + 0x10], eax
mov rax, qword [rsp + 0x58]
mov qword [r15 + 8], rax
jmp 0x1400a4317
mov r15, rsi
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x50], esi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400a44a3
mov ecx, eax
call fcn.1402af77c
mov rdi, rax
test rax, rax
je 0x1400a44a3
mov r8, rax
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov ebx, esi
mov r9d, dword [rsp + 0x58]
test r9d, r9d
je 0x1400a449b
lea r10, str.image_png
nop word [rax + rax]
mov eax, ebx
imul r8, rax, 0x68
mov rdx, qword [r8 + rdi + 0x40]
mov rax, rsi
nop
movzx ecx, word [rdx + rax*2]
cmp cx, word [r10 + rax*2]
jne 0x1400a4490
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r10 + rax*2 + 2]
jne 0x1400a4490
add rax, 2
cmp rax, 0xa
jne 0x1400a4390
movups xmm0, xmmword [r8 + rdi]
movups xmmword [rsp + 0x90], xmm0
mov rcx, rdi
call fcn.1402a92e4
cmp ebx, 0xffffffff
je 0x1400a44a3
xor r9d, r9d
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [r15 + 8]
call qword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
test eax, eax
je 0x1400a43ff
mov dword [r15 + 0x10], eax
jmp 0x1400a44a3
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_GetHGlobalFromStream]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rdi, rax
mov rsi, qword [r14 + 8]
mov rdx, qword [r14]
mov rcx, rsi
sub rcx, rdx
cmp rax, rcx
jae 0x1400a4434
add rax, rdx
jmp 0x1400a4466
jbe 0x1400a446a
mov rax, qword [r14 + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x1400a444f
mov rdx, rdi
mov rcx, r14
call fcn.1400a4b80
jmp 0x1400a446a
mov rbx, rdi
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.14029e460
lea rax, [rsi + rbx]
mov qword [r14 + 8], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rdi
mov rdx, rax
mov rcx, qword [r14]
call fcn.14029ddb0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400a44a6
inc ebx
cmp ebx, r9d
jb 0x1400a4380
mov rcx, rdi
call fcn.1402a92e4
xor r12b, r12b
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test r15, r15
je 0x1400a44c4
mov r8, qword [r15]
mov edx, 1
mov rcx, r15
call qword [r8]
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
movzx eax, r12b
jmp 0x1400a44e0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400adbc0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret