Function at 0x1400be970
Capabilities:
Capture screenshot

Disassembly:
push rdi
sub rsp, 0x1a0
mov rax, qword [0x14036f200]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x78], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x78]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x7c], eax
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [rsp + 0x7c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x80]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x84], eax
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [rsp + 0x84]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x60], rax
mov r8d, dword [reloc.WS2_32.dll_ioctlsocket]
mov edx, dword [reloc.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x40], 0xcc0020
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x20], eax
mov r9d, dword [reloc.WS2_32.dll_ioctlsocket]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_BitBlt]
mov dword [rsp + 0x160], 0
lea rax, [rsp + 0x164]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x160], 0x28
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x164], eax
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
neg eax
mov dword [rsp + 0x168], eax
mov eax, 1
mov word [rsp + 0x16c], ax
mov eax, 0x20
mov word [rsp + 0x16e], ax
mov dword [rsp + 0x170], 0
lea rax, [rsp + 0x148]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x58]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x140], rax
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
imul eax, dword [reloc.WS2_32.dll_ioctlsocket]
cdqe
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x148]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rax], 0
mov rax, qword [rsp + 0x98]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x98]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x148]
call fcn.1400aa190
nop
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x160]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
lea rax, [rsp + 0x148]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
jmp 0x1400bed24
mov rax, qword [rsp + 0x70]
add rax, 4
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x128]
cmp qword [rsp + 0x70], rax
je 0x1400bee78
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax + 2]
mov rcx, qword [rsp + 0xa8]
movzx ecx, byte [rcx + 1]
shl ecx, 8
or eax, ecx
mov rcx, qword [rsp + 0xa8]
movzx ecx, byte [rcx]
shl ecx, 0x10
or eax, ecx
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x54], 0
jmp 0x1400bed89
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 3
jge 0x1400bee73
movsxd rax, dword [rsp + 0x54]
lea rcx, [0x14036e300]
mov eax, dword [rcx + rax*4]
shr eax, 0x10
mov eax, eax
and rax, 0xff
movsxd rcx, dword [rsp + 0x54]
lea rdx, [0x14036e300]
movzx ecx, word [rdx + rcx*4]
sar ecx, 8
movsxd rcx, ecx
and rcx, 0xff
movsxd rdx, dword [rsp + 0x54]
lea rdi, [0x14036e300]
mov edx, dword [rdi + rdx*4]
and rdx, 0xff
mov edi, dword [rsp + 0x5c]
shr edi, 0x10
mov edi, edi
and rdi, 0xff
movzx r8d, word [rsp + 0x5c]
sar r8d, 8
movsxd r8, r8d
and r8, 0xff
mov qword [rsp + 0x130], r8
mov r9d, dword [rsp + 0x5c]
and r9, 0xff
mov qword [rsp + 0x138], r9
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], cl
movzx r9d, dl
movzx r8d, dil
mov rax, qword [rsp + 0x130]
movzx edx, al
mov rax, qword [rsp + 0x138]
movzx ecx, al
call fcn.1400beeb0
cmp eax, dword [0x14036e22c]
jg 0x1400bee6e
mov byte [rsp + 0x50], 1
lea rcx, [rsp + 0x148]
call fcn.14008a300
nop
movzx eax, byte [rsp + 0x50]
jmp 0x1400bee90
jmp 0x1400bed7f
jmp 0x1400bed16
mov byte [rsp + 0x51], 0
lea rcx, [rsp + 0x148]
call fcn.14008a300
nop
movzx eax, byte [rsp + 0x51]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401686c0
add rsp, 0x1a0
pop rdi
ret