Function at 0x140058640
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
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 esi, 1
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 + 0x148], ebx
mov dword [rbp + 0x14c], edi
lea r8d, [rsi + 0xf]
mov rdx, qword [rbp + 0x148]
lea rcx, [rbp - 0x30]
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 - 0x20]
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, [0x140131dd8]
lea rcx, [rbp + 0x90]
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 + 0x90]
call qword [sym.imp.opencv_world490.dll_public:_bool___cdecl_cv::Mat::empty_void_const___ptr64]
test al, al
jne 0x140058787
lea rcx, [rbp - 0x30]
call qword [sym.imp.opencv_world490.dll_public:_bool___cdecl_cv::Mat::empty_void_const___ptr64]
test al, al
je 0x1400587a5
xor r9d, r9d
lea r8, [0x140110b18]
lea rdx, [0x140112170]
mov rcx, qword [0x140131b08]
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rbp + 0x30]
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 - 0x60], rbx
mov dword [rbp - 0x70], 0x2010000
lea rcx, [rbp + 0x30]
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x58], 0x1010000
lea rcx, [rbp + 0x90]
mov qword [rbp - 0x50], rcx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x50], 0x1010000
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x58]
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 + 0x150], rbx
mov qword [rbp + 0x140], 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 + 0x30]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x150]
lea r8, [rbp + 0x158]
lea rdx, [rbp - 0x40]
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 + 0x158]
comisd xmm0, xmmword [0x14011c448]
jbe 0x140058b83
mov edx, dword [rbp + 0x144]
add edx, 3
mov ecx, dword [rbp + 0x140]
add ecx, 3
call qword [sym.imp.USER32.dll_SetCursorPos]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
lea rcx, [rbp + 0x148]
call fcn.1400415e0
movabs rdi, 0x7ffffffffa0a1eff
movabs r14, 0x7fffffffffffffff
mov r15d, 0xff
mov rax, qword [rbp + 0x148]
cmp rax, rdi
je 0x140058921
mov ecx, esi
cmovl ecx, r15d
test cl, cl
jns 0x140058921
add rax, 0x5f5e100
mov qword [rbp + 0x148], rax
jmp 0x140058928
mov qword [rbp + 0x148], r14
lea rcx, [rbp + 0x148]
call fcn.14006fdc0
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
lea rcx, [rbp + 0x148]
call fcn.1400415e0
mov rax, qword [rbp + 0x148]
cmp rax, rdi
je 0x14005897b
mov ecx, esi
cmovl ecx, r15d
test cl, cl
jns 0x14005897b
add rax, 0x5f5e100
mov qword [rbp + 0x148], rax
jmp 0x140058982
mov qword [rbp + 0x148], r14
lea rcx, [rbp + 0x148]
call fcn.14006fdc0
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
lea rcx, [rbp + 0x148]
call fcn.1400415e0
mov rax, qword [rbp + 0x148]
cmp rax, rdi
je 0x1400589d5
mov ecx, esi
cmovl ecx, r15d
test cl, cl
jns 0x1400589d5
add rax, 0x5f5e100
mov qword [rbp + 0x148], rax
jmp 0x1400589dc
mov qword [rbp + 0x148], r14
lea rcx, [rbp + 0x148]
call fcn.14006fdc0
cmp byte [0x140131b47], 0
je 0x140058a00
lea rdx, [0x1401121c8]
mov r8d, reloc.WS2_32.dll_select
jmp 0x140058a0d
lea rdx, [0x1401121e0]
mov r8d, reloc.WLDAP32.dll_Ordinal_33
lea rcx, [0x140130860]
call fcn.14006c8d0
lea rcx, [rbp + 0x148]
call fcn.1400415e0
movabs rdx, 0x7ffffffc0ab895ff
mov rax, qword [rbp + 0x148]
cmp rax, rdx
je 0x140058a5b
mov ecx, esi
cmovl ecx, r15d
test cl, cl
jns 0x140058a5b
movabs rcx, 0x3f5476a00
add rcx, rax
mov qword [rbp + 0x148], rcx
jmp 0x140058a62
mov qword [rbp + 0x148], r14
lea rcx, [rbp + 0x148]
call fcn.14006fdc0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, reloc.WLDAP32.dll_Ordinal_27
call qword [sym.imp.USER32.dll_keybd_event]
lea rcx, [rbp + 0x148]
call fcn.1400415e0
mov rax, qword [rbp + 0x148]
cmp rax, rdi
je 0x140058aaf
mov ecx, esi
cmovl ecx, r15d
test cl, cl
jns 0x140058aaf
add rax, 0x5f5e100
mov qword [rbp + 0x148], rax
jmp 0x140058ab6
mov qword [rbp + 0x148], r14
lea rcx, [rbp + 0x148]
call fcn.14006fdc0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov cl, reloc.WLDAP32.dll_Ordinal_27
call qword [sym.imp.USER32.dll_keybd_event]
lea rcx, [rbp + 0x148]
call fcn.1400415e0
movabs rcx, 0x7fffffffe2329aff
mov rax, qword [rbp + 0x148]
cmp rax, rcx
je 0x140058b0d
cmovl esi, r15d
test sil, sil
jns 0x140058b0d
add rax, 0x1dcd6500
mov qword [rbp + 0x148], rax
jmp 0x140058b14
mov qword [rbp + 0x148], r14
lea rcx, [rbp + 0x148]
call fcn.14006fdc0
call fcn.140058450
mov eax, dword [reloc.WS2_32.dll_accept]
cmp eax, 1
jne 0x140058b48
mov edx, dword [0x140131a20]
mov ecx, dword [0x140131a38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [reloc.WS2_32.dll_accept]
cmp eax, 2
jne 0x140058b65
mov edx, dword [0x140131af4]
mov ecx, dword [0x140131ab8]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [reloc.WS2_32.dll_accept]
cmp eax, 3
jne 0x140058b7c
mov edx, dword [0x140131b34]
mov ecx, dword [0x140131b00]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov byte [0x140131b4d], 1
lea rcx, [rbp + 0x30]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x90]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.opencv_world490.dll_public:_void___cdecl_cv::Mat::destructor_void____ptr64]
add rsp, 0x1f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret