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

Disassembly:
sub rsp, 0x98
lea r8, str.8EC66AE4_CA8A_4B48_A209_40F603693833
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [0x140064110], rax
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018c44
jmp 0x140018eb3
mov r8d, 0x104
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140018c65
jmp 0x140018eb3
lea rdx, [0x140037ccc]
mov rcx, qword [rsp + 0x20]
call fcn.14001d090
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140018c88
jmp 0x140018f42
mov rax, qword [rsp + 0x78]
add rax, 2
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x38], 0
lea r8, str.63E360A8_EB4D_43E3_B667_86ED5FCC9C5B
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140018cca
jmp 0x140018eb3
call fcn.140011320
test eax, eax
jne 0x140018cdd
jmp 0x140018eb3
call fcn.14000e050
test eax, eax
jne 0x140018cf0
jmp 0x140018eb3
call fcn.14001d490
test eax, eax
jne 0x140018d03
jmp 0x140018eb3
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x28], 0
call fcn.1400053f0
cmp eax, 1
jne 0x140018d4c
lea r8, str.15E27327_0251_4FC0_927D_8AAA45100E6B
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140018d44
jmp 0x140018f42
mov dword [rsp + 0x28], 1
lea rcx, str.15E27327_0251_4FC0_927D_8AAA45100E6B
call fcn.140019500
mov dword [rsp + 0x30], 0
call fcn.140005510
cmp eax, 1
jne 0x140018d98
lea r8, str.6AAC6D2F_28F9_47D4_A07B_F369210359A7
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140018d90
jmp 0x140018f42
mov dword [rsp + 0x30], 1
lea rcx, str.6AAC6D2F_28F9_47D4_A07B_F369210359A7
call fcn.140019500
mov dword [rsp + 0x70], 0
call fcn.140005630
cmp eax, 1
jne 0x140018de4
lea r8, str.4B85BE30_76C9_4955_9566_BF5E65CDBB9B
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140018ddc
jmp 0x140018f42
mov dword [rsp + 0x70], 1
lea rcx, str.4B85BE30_76C9_4955_9566_BF5E65CDBB9B
call fcn.140019500
cmp dword [0x14005d8c4], 1
jne 0x140018e2d
cmp dword [0x14005d1c8], 0
jne 0x140018e2d
cmp dword [rsp + 0x28], 0
jne 0x140018e17
cmp dword [rsp + 0x30], 0
jne 0x140018e17
cmp dword [rsp + 0x70], 0
je 0x140018e2d
call fcn.14000c9b0
test eax, eax
jne 0x140018e2d
mov ecx, 0x3e8
call qword [0x140063508]
jmp 0x140018e17
cmp dword [0x14005d8c4], 1
jne 0x140018e4c
mov edx, 0xffffffff
mov rcx, qword [0x140063108]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140018eb3
cmp dword [0x14005d1c8], 0
je 0x140018e62
mov dword [rsp + 0x80], 1
jmp 0x140018e6d
mov dword [rsp + 0x80], 2
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x2c], eax
mov rax, qword [0x140063108]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [0x140063108]
call qword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.140011390
test eax, eax
jne 0x140018ec4
xor ecx, ecx
call qword [0x140063440]
call fcn.14001d760
cmp qword [0x140063108], 0
je 0x140018ee0
mov rcx, qword [0x140063108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x140018ef3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
mov qword [0x140063108], 0
cmp qword [0x140064110], 0
je 0x140018f1e
mov rcx, qword [0x140064110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x20], 0
je 0x140018f31
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x14005d1c8], 0
jne 0x140018f42
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x98
ret