Function at 0x4057c0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x004a6080]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r13, rcx
mov r15, qword [0x004a7640]
lea rdx, [rbp + 0x70]
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowRect]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r8d, eax
mov r10d, dword [rbp + 0x70]
mov eax, r10d
mov r12d, dword [rbp + 0x78]
sub eax, r12d
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov r9d, dword [rbp + 0x74]
mov eax, r9d
mov r14d, dword [rbp + 0x7c]
sub eax, r14d
add eax, r8d
cdq
sub eax, edx
sar eax, 1
add r10d, ecx
mov dword [rbp + 0x70], r10d
add r12d, ecx
mov dword [rbp + 0x78], r12d
add r9d, eax
mov dword [rbp + 0x74], r9d
add r14d, eax
mov dword [rbp + 0x7c], r14d
sub r12d, r10d
sub r14d, r9d
mov rcx, r15
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
mov r8d, r14d
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rbx, rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
xor ecx, ecx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r14d
mov r9d, r12d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_BitBlt]
mov dword [rbp + 0xf0], Ordinal_41
mov dword [rbp + 0xf4], r12d
mov eax, r14d
neg eax
mov dword [rbp + 0xf8], eax
mov qword [rbp + 0xfc], 0x180001
xor eax, eax
mov qword [rbp + 0x104], rax
mov qword [rbp + 0x10c], rax
mov dword [rbp + 0x114], eax
mov eax, r14d
imul eax, r12d
lea eax, [rax + rax*2]
movsxd rcx, eax
call fcn.004811b4
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov dword [rsp + 0x30], ecx
lea rcx, [rbp + 0xf0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x20], rdi
mov r8d, r12d
mov edx, r14d
lea rcx, [rbp + 0x120]
call fcn.00402930
nop
xor esi, esi
mov qword [rbp - 0x30], rsi
mov dword [rbp - 0x40], 0x2010000
lea rax, [rbp + 0x120]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x28], 0x1010000
lea rax, [rbp + 0x120]
mov qword [rbp - 0x20], rax
xor r9d, r9d
lea r8d, [rsi + 6]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call qword [sym.imp.opencv_world420.dll_void___cdecl_cv::cvtColor_class_cv::_InputArray_const____ptr64__class_cv::_OutputArray_const____ptr64__int__int_]
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movdqa xmm0, xmmword [0x00496250]
movdqa xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xa0], xmm1
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
movdqa xmmword [rbp + 0xc0], xmm1
lea rax, [rbp + 0x98]
mov qword [rbp + 0xd0], rax
lea rax, [rbp + 0xe0]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], rsi
mov qword [rbp + 0xe8], rsi
call qword [sym.imp.opencv_world420.dll_class_cv::_InputOutputArray_const____ptr64___cdecl_cv::noArray_void_]
mov qword [rbp], rsi
mov dword [rbp - 0x10], 0x2010000
lea rcx, [rbp + 0x90]
mov qword [rbp - 8], rcx
mov qword [rbp + 0x18], rsi
mov dword [rbp + 8], 0x1010000
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x30], rsi
mov dword [rbp + 0x20], 0x1010000
lea rcx, [rbp + 0x120]
mov qword [rbp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 5]
lea r8, [rbp - 0x10]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x20]
call qword [sym.imp.opencv_world420.dll_void___cdecl_cv::matchTemplate_class_cv::_InputArray_const____ptr64__class_cv::_InputArray_const____ptr64__class_cv::_OutputArray_const____ptr64__int__class_cv::_InputArray_const____ptr64_]
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x68], rsi
movdqa xmm0, xmmword [0x00496250]
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmmword [rbp - 0x70], xmm1
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
mov qword [rbp + 0x48], rsi
mov dword [rbp + 0x38], 0x1010000
lea rax, [rsp + 0x60]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x60], rsi
mov dword [rbp + 0x50], 0x1010000
lea rax, [rbp + 0x90]
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x80]
lea r8, [rbp + 0x180]
lea rdx, [rbp + 0x188]
lea rcx, [rbp + 0x50]
call qword [sym.imp.opencv_world420.dll_void___cdecl_cv::minMaxLoc_class_cv::_InputArray_const____ptr64__double____ptr64__double____ptr64__class_cv::Point__int_____ptr64__class_cv::Point__int_____ptr64__class_cv::_InputArray_const____ptr64_]
nop
lea ebx, [rsi - 1]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x405b8d
mov eax, ebx
lock xadd dword [rcx + 0x14], eax
cmp eax, 1
jne 0x405b8d
lea rcx, [rsp + 0x60]
call qword [sym.imp.opencv_world420.dll_public:_void___cdecl_cv::Mat::deallocate_void____ptr64]
mov qword [rbp - 0x68], rsi
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x80], rsi
mov qword [rsp + 0x78], rsi
mov ecx, esi
cmp dword [rsp + 0x64], esi
jle 0x405bc3
mov rdx, rsi
nop
mov rax, qword [rbp - 0x60]
mov dword [rax + rdx], esi
inc ecx
lea rdx, [rdx + 4]
cmp ecx, dword [rsp + 0x64]
jl 0x405bb0
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x58]
cmp rcx, rax
je 0x405bd7
call qword [sym.imp.opencv_world420.dll_void___cdecl_cv::fastFree_void____ptr64_]
nop
mov edx, dword [r13 + 8]
mov r9d, dword [rbp + 0x6c]
add edx, r9d
mov ecx, dword [r13 + 0xc]
mov r10d, dword [rbp + 0x68]
add ecx, r10d
mov r11d, r10d
cmp ecx, r10d
cmovl r11d, ecx
mov r8d, r9d
cmp edx, r9d
cmovl r8d, edx
cmp r10d, ecx
cmovl r10d, ecx
sub r10d, r11d
cmp r9d, edx
cmovl r9d, edx
sub r9d, r8d
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
lea ecx, [r8 + rax]
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
add eax, r11d
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], ecx
mov rcx, rdi
call fcn.00480f20
nop
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x405c62
mov eax, ebx
lock xadd dword [rcx + 0x14], eax
cmp eax, 1
jne 0x405c62
lea rcx, [rbp + 0x90]
call qword [sym.imp.opencv_world420.dll_public:_void___cdecl_cv::Mat::deallocate_void____ptr64]
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0xa8], rsi
mov ecx, esi
cmp dword [rbp + 0x94], esi
jle 0x405cb8
mov rdx, rsi
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbp + 0xd0]
mov dword [rax + rdx], esi
inc ecx
lea rdx, [rdx + 4]
cmp ecx, dword [rbp + 0x94]
jl 0x405ca0
lea rax, [rbp + 0xe0]
mov rcx, qword [rbp + 0xd8]
cmp rcx, rax
je 0x405cd2
call qword [sym.imp.opencv_world420.dll_void___cdecl_cv::fastFree_void____ptr64_]
nop
mov rax, qword [rbp + 0x158]
test rax, rax
je 0x405cf5
lock xadd dword [rax + 0x14], ebx
cmp ebx, 1
jne 0x405cf5
lea rcx, [rbp + 0x120]
call qword [sym.imp.opencv_world420.dll_public:_void___cdecl_cv::Mat::deallocate_void____ptr64]
mov qword [rbp + 0x158], rsi
mov qword [rbp + 0x130], rsi
mov qword [rbp + 0x148], rsi
mov qword [rbp + 0x140], rsi
mov qword [rbp + 0x138], rsi
mov eax, esi
cmp dword [rbp + 0x124], esi
jle 0x405d48
mov rdx, rsi
nop word [rax + rax]
mov rcx, qword [rbp + 0x160]
mov dword [rcx + rdx], esi
inc eax
lea rdx, [rdx + 4]
cmp eax, dword [rbp + 0x124]
jl 0x405d30
lea rax, [rbp + 0x170]
mov rcx, qword [rbp + 0x168]
cmp rcx, rax
je 0x405d62
call qword [sym.imp.opencv_world420.dll_void___cdecl_cv::fastFree_void____ptr64_]
nop
mov rax, qword [rsp + 0x50]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.00480f00
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret