Function at 0x140003570
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rdx
mov ebx, ecx
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
lea r8d, [r14 + 0x24]
lea rdx, str.3C4AE6A6_0772_40EE_A4D7_A0711230B7F4
lea rcx, [rsp + 0x38]
call fcn.140001d00
nop
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
lea edx, [r14 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x1400039b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400039b6
lea rcx, str.App_mutex_created_successfully
call fcn.1400024a0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140003658
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003653
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003653
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004d9c
mov byte [rsp + 0x20], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140002070
cmp byte [rsp + 0x20], 0
je 0x140003685
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
call fcn.1400022d0
cmp ebx, 1
jg 0x1400036c1
lea rcx, str.No_desktop_name_specified__exit.
call fcn.140002470
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140004d40
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_utf16_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rbp - 0x80], rax
mov cl, 1
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r14w
mov word [rbp - 0x18], 0
mov byte [rbp - 0x16], 0
mov ecx, 0x40
call fcn.140004d60
mov rbx, rax
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::constructor_unsigned_long_long_unsigned___int64_____ptr64]
lea rax, vtable.std::codecvt_utf8_utf16_wchar_t__1114111__0_.0
mov qword [rbx], rax
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x78], rbx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Locimp::_New_Locimp_class_std::locale::_Locimp_const____ptr64_]
mov rdi, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::locale::id_std::codecvt_wchar_t__char__struct__Mbstatet_::id]
call qword [sym.imp.MSVCP140.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::locale::id::operator_unsigned_long_long_unsigned___int64__void____ptr64]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_private:_void___cdecl_std::locale::_Locimp::_Addfac_class_std::locale::facet____ptr64__unsigned_long_long_unsigned___int64_____ptr64]
mov dword [rdi + 0x20], r14d
lea rcx, [rdi + 0x28]
lea rdx, [0x140006c34]
call qword [sym.imp.MSVCP140.dll_public:_class_std::_Yarn_char_____ptr64___cdecl_std::_Yarn_char_::operator_char_const____ptr64____ptr64]
mov rcx, qword [rbp - 0x68]
cmp rcx, rdi
je 0x1400037cc
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400037bf
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov qword [rbp - 0x68], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test rax, rax
je 0x1400037e8
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov qword [rbp - 0x10], r14
mov rdx, qword [rsi + 8]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140003810
lea rcx, [rsp + 0x38]
call fcn.140004530
nop
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
add r9, r8
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.140004110
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14000388d
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003888
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003888
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004d9c
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rcx, str.Specified_desktop__s_from_DVR
call fcn.1400024a0
mov ecx, 0xe8
call fcn.140004d60
mov rbx, rax
mov qword [rsp + 0x28], rax
xor edx, edx
mov r8d, 0xe8
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbx + 0xa8], r14
mov qword [rbx + 0xb0], r14
mov qword [rbx + 0xb8], r14
mov qword [rbx + 0xc0], r14
mov dword [rbx + 0xc8], 0x10
mov word [rbx + 0xe0], 0
mov dword [rsp + 0x28], r14d
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400013c0
test al, al
je 0x14000393f
lea rcx, str.DXGI_initilazation_succeed__start_capture_desktop.
call fcn.1400024a0
mov rcx, rbx
call fcn.140001980
jmp 0x140003935
mov edx, 0xe8
mov rcx, rbx
call fcn.140004d9c
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140003992
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000398d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000398d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004d9c
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r14w
lea rcx, [rbp - 0x80]
call fcn.140003f40
xor eax, eax
jmp 0x14000369d
lea rcx, str.App_mutex_creating_failed__exit.
call fcn.140002470
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3