Function at 0x140058fd0
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x188]
sub rsp, 0x288
movaps xmmword [rsp + 0x270], xmm6
cmp byte [0x140131a5e], 0
je 0x140059582
mov esi, 1
movsd xmm6, qword [0x14011c440]
movabs r14, 0x7fffffffa697d0ff
movabs rbx, 0x7fffffffffffffff
mov edi, 0xff
lea rcx, [rbp - 0x70]
call fcn.1400415e0
mov rax, qword [rbp - 0x70]
cmp rax, r14
je 0x140059051
mov ecx, esi
cmovl ecx, edi
test cl, cl
jns 0x140059051
add rax, 0x59682f00
mov qword [rbp + 0x1d0], rax
jmp 0x140059058
mov qword [rbp + 0x1d0], rbx
lea rcx, [rbp + 0x1d0]
call fcn.14006fdc0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r15, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, esi
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
mov r8d, edi
mov edx, ebx
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov r13, rax
mov dword [rsp + 0x40], 0xcc0020
xor eax, eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], edi
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.GDI32.dll_BitBlt]
mov dword [rsp + 0x68], Ordinal_46
mov dword [rsp + 0x6c], ebx
mov ecx, edi
neg ecx
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x74], 0x180001
xor eax, eax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov dword [rbp - 0x74], eax
mov dword [rbp + 0x1d8], ebx
mov dword [rbp + 0x1dc], edi
lea r8d, [rax + 0x10]
mov rdx, qword [rbp + 0x1d8]
lea rcx, [rbp - 0x10]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::constructor_class_cv::Size__int___int____ptr64]
nop
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
mov r8d, esi
lea rdx, [0x140131b88]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.opencv_world490.dll_class_cv::Mat___cdecl_cv::imread_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__int_]
nop
lea rcx, [rbp + 0xb0]
call qword [sym.imp.opencv_world490.dll_public:_bool___cdecl_cv::Mat::empty_void_const___ptr64]
test al, al
jne 0x14005918a
lea rcx, [rbp - 0x10]
call qword [sym.imp.opencv_world490.dll_public:_bool___cdecl_cv::Mat::empty_void_const___ptr64]
test al, al
je 0x1400591a8
xor r9d, r9d
lea r8, [0x140110b18]
lea rdx, [0x140112280]
mov rcx, qword [0x140131b08]
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rbp + 0x50]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::constructor_void____ptr64]
nop
call qword [sym.imp.opencv_world490.dll_class_cv::_InputOutputArray_const____ptr64___cdecl_cv::noArray_void_]
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x50], 0x2010000
lea rcx, [rbp + 0x50]
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x28], rbx
mov dword [rbp - 0x38], 0x1010000
lea rcx, [rbp + 0xb0]
mov qword [rbp - 0x30], rcx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x50], 0x1010000
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x50]
call qword [sym.imp.opencv_world490.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 + 0x1e8], rbx
mov qword [rbp + 0x1e0], rbx
call qword [sym.imp.opencv_world490.dll_class_cv::_InputOutputArray_const____ptr64___cdecl_cv::noArray_void_]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x50], 0x1010000
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1e8]
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.opencv_world490.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_]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
movsd xmm0, qword [rbp - 0x68]
comisd xmm0, xmm6
jbe 0x140059553
lea rcx, [rbp + 0x110]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::constructor_void____ptr64]
nop
mov rdx, rax
lea rcx, [0x140131d40]
call qword [sym.imp.opencv_world490.dll_public:_class_cv::Mat____ptr64___cdecl_cv::Mat::operator_class_cv::Mat____ptr64____ptr64]
nop
lea rcx, [rbp + 0x110]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
mov byte [0x140131a3e], 0
mov byte [0x140131ae6], 0
mov dword [0x140131b60], ebx
cmp byte [0x140131b47], 0
je 0x1400592f9
lea rdx, [0x1401122d0]
mov r8d, Ordinal_41
jmp 0x140059306
lea rdx, [0x1401122f8]
mov r8d, Ordinal_60
lea rcx, [0x140130860]
call fcn.14006c8d0
cmp byte [0x140131a5e], 0
je 0x14005949a
movabs r14, 0x7fffffff88ca6bff
nop dword [rax]
lea rcx, [rbp - 0x60]
call fcn.1400415e0
mov rax, qword [rbp - 0x60]
mov edi, 0xff
cmp rax, r14
je 0x140059369
mov ecx, esi
cmovl ecx, edi
test cl, cl
jns 0x140059369
add rax, 0x77359400
mov qword [rbp + 0x1d0], rax
movabs rbx, 0x7fffffffffffffff
jmp 0x14005937a
movabs rbx, 0x7fffffffffffffff
mov qword [rbp + 0x1d0], rbx
lea rcx, [rbp + 0x1d0]
call fcn.14006fdc0
call fcn.140058bc0
cmp byte [0x140131a5e], 0
je 0x14005949a
lea rcx, [rbp - 0x58]
call fcn.1400415e0
mov rax, qword [rbp - 0x58]
movabs rdx, 0x7fffffff4d2fa1ff
cmp rax, rdx
je 0x1400593ce
mov ecx, esi
cmovl ecx, edi
test cl, cl
jns 0x1400593ce
mov ecx, 0xb2d05e00
add rcx, rax
mov qword [rbp + 0x1d0], rcx
jmp 0x1400593d5
mov qword [rbp + 0x1d0], rbx
lea rcx, [rbp + 0x1d0]
call fcn.14006fdc0
call fcn.140058bc0
cmp byte [0x140131a5e], 0
je 0x14005949a
call fcn.140057b80
cmp byte [0x140131a5e], 0
je 0x14005949a
call fcn.140057fe0
cmp byte [0x140131a5e], 0
je 0x14005949a
call fcn.140058640
cmp byte [0x140131a5e], 0
je 0x14005949a
cmp byte [0x140131b4d], 1
jne 0x140059330
mov byte [0x140131b4d], 0
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140059449
mov byte [0x140131a3e], 1
cmp byte [0x140131b45], 0
je 0x14005954f
mov dword [0x140131b10], 0
lea rcx, [rbp + 0x1d0]
call fcn.1400415e0
movabs rdx, 0x7fffffffc46535ff
mov rax, qword [rbp + 0x1d0]
cmp rax, rdx
je 0x1400594cf
mov ecx, esi
cmovl ecx, edi
test cl, cl
jns 0x1400594cf
add rax, 0x3b9aca00
mov qword [rbp + 0x1d0], rax
jmp 0x1400594d6
lea rcx, [rbp + 0x50]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
nop
lea rcx, [rbp + 0xb0]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
cmp byte [0x140131a5e], 0
je 0x140059582
jmp 0x14005900e
mov qword [rbp + 0x1d0], rbx
lea rcx, [rbp + 0x1d0]
call fcn.14006fdc0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, Ordinal_79
call qword [sym.imp.USER32.dll_keybd_event]
lea rcx, [rbp + 0x1d0]
call fcn.1400415e0
movabs rcx, 0x7ffffffffa0a1eff
mov rax, qword [rbp + 0x1d0]
cmp rax, rcx
je 0x14005952b
cmovl esi, edi
test sil, sil
jns 0x14005952b
add rax, 0x5f5e100
mov qword [rbp + 0x1d0], rax
jmp 0x140059532
mov qword [rbp + 0x1d0], rbx
lea rcx, [rbp + 0x1d0]
call fcn.14006fdc0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, Ordinal_79
call qword [sym.imp.USER32.dll_keybd_event]
mov bl, 1
jmp 0x14005955c
mov byte [0x140131b4d], 0
xor bl, bl
lea rcx, [rbp + 0x50]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
nop
lea rcx, [rbp + 0xb0]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
movzx eax, bl
movaps xmm6, xmmword [rsp + 0x270]
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret