Function at 0x140047400
Capabilities:
Capture screenshot
Check for time delay via queryperformancecounter

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x688]
sub rsp, 0x760
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rbp + 0x620], rax
xor r13d, r13d
mov dword [rsp + 0x54], r13d
mov dword [rsp + 0x50], r13d
mov ebx, r13d
xorps xmm0, xmm0
movups xmmword [rbp + 0x5c0], xmm0
movups xmmword [rbp + 0x5d0], xmm0
movups xmmword [rbp + 0x5e0], xmm0
movups xmmword [rbp + 0x5f0], xmm0
movups xmmword [rbp + 0x600], xmm0
movups xmmword [rbp + 0x610], xmm0
xorps xmm6, xmm6
movsd qword [rbp + 0xd8], xmm6
movups xmmword [rbp + 0xe8], xmm6
movsd qword [rbp + 0xe0], xmm6
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [0x140068c24]
mov edx, dword [0x140068bf8]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::constructor_int__int__int__class_cv::Scalar__double__const____ptr64____ptr64]
nop
mov qword [rbp + 0x88], r13
mov dword [rbp + 0x78], 0x3010000
lea rax, [rbp + 0x5c0]
mov qword [rbp + 0x80], rax
movsd xmm7, qword [0x14005d100]
movsd qword [rbp + 0xf8], xmm7
movups xmmword [rbp + 0x108], xmm6
movsd qword [rbp + 0x100], xmm6
mov eax, dword [0x140068bf8]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [0x140068c24]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp + 0x460], eax
mov dword [rbp + 0x464], ecx
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rbp + 0xf8]
mov r8d, eax
mov rdx, qword [rbp + 0x460]
lea rcx, [rbp + 0x78]
call qword [sym.imp.opencv_imgproc4.dll_void___cdecl_cv::circle_class_cv::_InputOutputArray_const____ptr64__class_cv::Point__int___int__class_cv::Scalar__double__const____ptr64__int__int__int_]
xorps xmm0, xmm0
movups xmmword [rbp + 0x560], xmm0
movups xmmword [rbp + 0x570], xmm0
movups xmmword [rbp + 0x580], xmm0
movups xmmword [rbp + 0x590], xmm0
movups xmmword [rbp + 0x5a0], xmm0
movups xmmword [rbp + 0x5b0], xmm0
lea rcx, [rbp + 0x560]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::constructor_void____ptr64]
nop
mov rcx, qword [0x1400680d8]
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
sub rax, rcx
cmp rax, 4
jb 0x140047ebc
lea rax, [0x1400680c8]
cmp qword [0x1400680e0], 0xf
cmova rax, qword [0x1400680c8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 4
lea r9, str.bin_
lea rcx, [rbp + 0x148]
call fcn.140050670
nop
lea r8d, [r13 + 4]
lea rdx, str..bin
lea rcx, [rbp + 0x148]
call fcn.14004eb40
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], r13b
lea r8, [rbp + 0x560]
lea rdx, [rsp + 0x70]
call fcn.140041c20
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140047685
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047680
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047680
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052e10
movdqa xmm0, xmmword [0x14005d250]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp + 0x160]
cmp rdx, 0xf
jbe 0x1400476db
inc rdx
mov rcx, qword [rbp + 0x148]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400476d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400476d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052e10
mov qword [rbp + 0xa0], r13
mov dword [rbp + 0x90], 0x2010000
lea rax, [rbp + 0x560]
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xb8], r13
mov dword [rbp + 0xa8], 0x1010000
lea rax, [rbp + 0x560]
mov qword [rbp + 0xb0], rax
xor r9d, r9d
lea r8d, [r9 + 6]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xa8]
call qword [sym.imp.opencv_imgproc4.dll_void___cdecl_cv::cvtColor_class_cv::_InputArray_const____ptr64__class_cv::_OutputArray_const____ptr64__int__int_]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r14, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r15, rax
mov r8d, dword [0x140068bf8]
mov edx, dword [0x140068c24]
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
mov rdx, rax
mov rcx, r15
call qword [sym.imp.GDI32.dll_SelectObject]
xor sil, sil
movsd xmm8, qword [0x14005d0d0]
nop dword [rax]
movzx eax, byte [0x140068cf4]
test al, al
jne 0x140047df3
movzx eax, byte [0x140068be4]
test al, al
jne 0x140047e44
movzx eax, byte [0x140068be5]
test al, al
je 0x1400477b8
lea rcx, [rbp + 0x138]
call fcn.1400401d0
mov rbx, qword [rax]
mov dword [rsp + 0x40], 0xcc0020
mov eax, dword [0x140068c34]
mov dword [rsp + 0x38], eax
mov eax, dword [0x140068bfc]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r14
mov eax, dword [0x140068bf8]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x140068c24]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.GDI32.dll_BitBlt]
xorps xmm0, xmm0
movups xmmword [rbp + 0x470], xmm0
movups xmmword [rbp + 0x480], xmm0
movups xmmword [rbp + 0x490], xmm0
movups xmmword [rbp + 0x4a0], xmm0
movups xmmword [rbp + 0x4b0], xmm0
movups xmmword [rbp + 0x4c0], xmm0
mov r9d, 0x18
mov r8d, dword [0x140068c24]
mov edx, dword [0x140068bf8]
lea rcx, [rbp + 0x470]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::constructor_int__int__int____ptr64]
nop
mov edx, dword [0x140068bf8]
imul edx, dword [0x140068c24]
shl edx, 2
mov r8, qword [rbp + 0x480]
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetBitmapBits]
mov qword [rbp + 0x70], r13
mov dword [rbp + 0x60], 0x2010000
lea rax, [rbp + 0x470]
mov qword [rbp + 0x68], rax
mov qword [rbp - 8], r13
mov dword [rbp - 0x18], 0x1010000
lea rax, [rbp + 0x470]
mov qword [rbp - 0x10], rax
xor r9d, r9d
lea r8d, [r9 + 6]
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x18]
call qword [sym.imp.opencv_imgproc4.dll_void___cdecl_cv::cvtColor_class_cv::_InputArray_const____ptr64__class_cv::_OutputArray_const____ptr64__int__int_]
test sil, sil
jne 0x140047a04
movzx eax, byte [0x140068be3]
test al, al
jne 0x140047a04
xorps xmm0, xmm0
movups xmmword [rbp + 0x500], xmm0
movups xmmword [rbp + 0x510], xmm0
movups xmmword [rbp + 0x520], xmm0
movups xmmword [rbp + 0x530], xmm0
movups xmmword [rbp + 0x540], xmm0
movups xmmword [rbp + 0x550], xmm0
lea rcx, [rbp + 0x500]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::constructor_void____ptr64]
nop
mov qword [rbp + 0x10], r13
mov dword [rbp], 0x2010000
lea rax, [rbp + 0x500]
mov qword [rbp + 8], rax
mov qword [rbp + 0x28], r13
mov dword [rbp + 0x18], 0x1010000
lea rax, [rbp + 0x560]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x40], r13
mov dword [rbp + 0x30], 0x1010000
lea rax, [rbp + 0x470]
mov qword [rbp + 0x38], rax
call qword [sym.imp.opencv_core4.dll_class_cv::_InputOutputArray_const____ptr64___cdecl_cv::noArray_void_]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rbp]
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x30]
call qword [sym.imp.opencv_imgproc4.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 + 0x460], r13
mov qword [rbp + 0xd0], r13
mov dword [rbp + 0xc0], 0x1010000
lea rax, [rbp + 0x500]
mov qword [rbp + 0xc8], rax
call qword [sym.imp.opencv_core4.dll_class_cv::_InputOutputArray_const____ptr64___cdecl_cv::noArray_void_]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x460]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xc0]
call qword [sym.imp.opencv_core4.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_]
movsxd rcx, dword [rbp + 0x464]
mov rax, qword [rbp + 0x548]
imul rcx, qword [rax]
movsxd rdx, dword [rbp + 0x460]
add rcx, qword [rbp + 0x510]
movss xmm0, dword [rcx + rdx*4]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm8
jbe 0x1400479ee
mov eax, 1
xchg byte [0x140068be7], al
mov sil, 1
lea rcx, [rbp + 0x500]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
mov edi, dword [rsp + 0x50]
jmp 0x140047b02
lea rdx, [rbp + 0x5c0]
lea rcx, [rbp + 0x300]
call qword [sym.imp.opencv_core4.dll_class_cv::MatExpr___cdecl_cv::operator_class_cv::Mat_const____ptr64_]
nop
mov rdx, rax
lea rcx, [rbp + 0x168]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::_InputArray::constructor_class_cv::MatExpr_const____ptr64____ptr64]
movsd qword [rbp + 0x118], xmm6
movups xmmword [rbp + 0x128], xmm6
movsd qword [rbp + 0x120], xmm6
mov dword [rbp + 0x48], 0xc1020006
lea rax, [rbp + 0x118]
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x58], 1
mov dword [rbp + 0x5c], 4
lea r8, [rbp + 0x168]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x470]
call qword [sym.imp.opencv_core4.dll_public:_class_cv::Mat____ptr64___cdecl_cv::Mat::setTo_class_cv::_InputArray_const____ptr64__class_cv::_InputArray_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
lea rcx, [rbp + 0x370]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
lea rcx, [rbp + 0x310]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
movaps xmm2, xmm7
lea rdx, [rbp + 0x470]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.opencv_core4.dll_class_cv::MatExpr___cdecl_cv::operator_class_cv::Mat_const____ptr64__double_]
nop
mov rdx, rax
lea rcx, [rbp + 0x180]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::_InputArray::constructor_class_cv::MatExpr_const____ptr64____ptr64]
lea rcx, [rbp + 0x180]
call qword [sym.imp.opencv_core4.dll_int___cdecl_cv::countNonZero_class_cv::_InputArray_const____ptr64_]
mov edi, eax
mov dword [rsp + 0x50], eax
lea rcx, [rbp + 0x270]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
lea rcx, [rbp + 0x210]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
mov edx, dword [rsp + 0x54]
mov ecx, edx
sub ecx, dword [0x1400680bc]
cmp edi, ecx
jge 0x140047cec
cmp edi, dword [0x140068d00]
jle 0x140047cec
mov eax, dword [0x140068ca4]
cmp edi, eax
jge 0x140047cec
cmp edx, eax
jge 0x140047cec
movsxd rdi, dword [0x140068c04]
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop dword [rax]
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 0x4d0]
sub rax, qword [rbp + 0x4d8]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp + 0x4e0]
cmp rax, rdi
jl 0x140047b60
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x43
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, 0x43
call qword [sym.imp.USER32.dll_keybd_event]
movzx eax, byte [0x140068be5]
test al, al
je 0x140047c82
lea rcx, [rbp + 0x140]
call fcn.1400401d0
mov rcx, qword [rax]
sub rcx, rbx
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp - 0x60], rdx
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov r8d, 0x10
lea rdx, str.Default_mode___
lea rcx, [rbp - 0x38]
call fcn.14004ff50
nop
lea rax, [0x1400680bc]
mov qword [rsp + 0x28], rax
lea rax, [0x140068c04]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x54]
lea rcx, [rbp - 0x38]
call fcn.1400415a0
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140047c82
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047c7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047e3d
call fcn.140052e10
lea rcx, [rbp + 0x4f0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp + 0x4f8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop dword [rax]
lea rcx, [rbp + 0x4e8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp + 0x4e8]
sub rax, qword [rbp + 0x4f8]
imul rax, rax, 0x3e8
cqo
idiv qword [rbp + 0x4f0]
cmp rax, 0x190
jl 0x140047ca0
mov eax, r13d
xchg byte [0x140068be7], al
xor sil, sil
mov edi, r13d
mov dword [rsp + 0x50], r13d
jmp 0x140047dd3
cmp edi, dword [0x140068c00]
jle 0x140047dd3
cmp edi, dword [0x140068cec]
jge 0x140047dd3
movzx eax, byte [0x140068be5]
test al, al
je 0x140047db8
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x60], r13d
mov qword [rbp - 0x70], r13
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x58], r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
mov r8d, 0x1c
lea rdx, str.Default_mode____Wiggle_mode
lea rcx, [rbp - 0x58]
call fcn.14004ff50
nop
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x64]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x58]
call fcn.1400415a0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140047db8
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047db3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047e3d
call fcn.140052e10
mov eax, 1
xchg byte [0x140068be7], al
xor sil, sil
mov edi, r13d
mov dword [rsp + 0x50], r13d
call fcn.140046cb0
mov dword [rsp + 0x54], edi
lea rcx, [rbp + 0x470]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
movabs rdi, 0x7fffffffffffffff
jmp 0x140047780
lea rcx, [rbp - 0x68]
call fcn.1400401d0
mov rax, qword [rbp - 0x68]
movabs rcx, 0x7ffffffffd050f7f
cmp rax, rcx
jge 0x140047e29
add rax, 0x2faf080
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
call fcn.140050970
jmp 0x140047780
mov qword [rsp + 0x68], rdi
lea rcx, [rsp + 0x68]
call fcn.140050970
jmp 0x140047780
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
lea rcx, [rbp + 0x560]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.opencv_core4.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.140052b90
lea r11, [rsp + 0x760]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14003ffa0
nop
int3