Function at 0x140001070
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], rsi
mov qword [rcx + 0x30], rsi
mov qword [rcx + 0x38], rsi
mov qword [rcx + 0x40], rsi
mov qword [rcx + 0x48], rsi
mov qword [rcx + 0x50], rsi
mov qword [rcx + 0x58], rsi
mov qword [rcx + 0x60], rsi
mov byte [rcx + 0x68], sil
mov ecx, 0xc800014
call fcn.14007c578
mov ecx, 0xc800014
mov qword [rdi + 0x30], rax
call fcn.14007c578
mov qword [rdi + 0x60], rax
cmp qword [rdi + 0x30], rsi
je 0x1400012ed
test rax, rax
je 0x1400012ed
lea rax, str.ShareMemory_ThreadImg
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x28], rax
lea rcx, [rsi - 1]
xor r9d, r9d
mov dword [rsp + 0x20], 0xc800214
xor edx, edx
mov qword [rsp + 0x48], rbp
lea r8d, [rsi + 4]
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi + 8], rax
lea ebp, [rsi + 1]
test rax, rax
je 0x140001204
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x28], rax
test rax, rax
je 0x140001204
lea r8, str.Mutex_ThreadImg
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi], rax
test rax, rax
je 0x140001204
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400011c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov ebx, eax
call fcn.140001be0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001da0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movzx ecx, bpl
mov rax, rdi
mov byte [rdi + 0x68], cl
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r9, str.DRWUIWriteOver_ThreadImg
xor r8d, r8d
mov edx, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140001204
lea r9, str.DRWRAWReadOver_ThreadImg
xor r8d, r8d
mov edx, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
movzx ebx, bl
mov qword [rdi + 0x18], rax
cmovne ebx, ebp
movzx ecx, bpl
test bl, bl
je 0x1400012d2
xor r9d, r9d
lea rax, str.ShareMemory_ClickFile
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xc800214
lea r8d, [r9 + 4]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi + 0x40], rax
movzx ecx, bpl
test rax, rax
je 0x1400012d2
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x58], rax
movzx ecx, bpl
test rax, rax
je 0x1400012d2
lea r8, str.Mutex_ClickFile
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi + 0x38], rax
movzx ecx, bpl
test rax, rax
je 0x1400012d2
lea r9, str.DRWUIWriteOver_ClickFile
xor r8d, r8d
mov edx, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x48], rax
movzx ecx, bpl
test rax, rax
je 0x1400012d2
lea r9, str.DRWRAWReadOver_ClickFile
xor r8d, r8d
mov edx, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
movzx ecx, bpl
mov qword [rdi + 0x50], rax
test rax, rax
movzx ecx, cl
cmovne ecx, esi
mov byte [rdi + 0x68], cl
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov byte [rdi + 0x68], 1
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret