Function at 0x180046460
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2d8
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov dword [rsp + 0x298], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x280]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x2a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0
mov edx, 1
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1800465e5
mov rax, qword [rsp + 0x2f0]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x1800465da
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax + 0x418]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rdx, [0x1800d5f08]
lea rcx, [rsp + 0x1b0]
call fcn.180002a40
nop
mov r9d, dword [rsp + 0x50]
lea r8, [0x1800d5ec8]
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x220]
call fcn.180056040
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov r8, qword [rsp + 0xc8]
mov edx, 4
mov rcx, qword [rsp + 0x70]
call fcn.180059b40
nop
lea rcx, [rsp + 0x220]
call fcn.1800029a0
nop
lea rcx, [rsp + 0x1b0]
call fcn.1800029a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180046aa4
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180046707
mov rax, qword [rsp + 0x2f0]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x1800466fc
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax + 0x418]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rdx, [0x1800d5f60]
lea rcx, [rsp + 0x1d0]
call fcn.180002a40
nop
mov r9d, dword [rsp + 0x54]
lea r8, [0x1800d5f28]
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x240]
call fcn.180056040
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov r8, qword [rsp + 0xe8]
mov edx, 4
mov rcx, qword [rsp + 0x78]
call fcn.180059b40
nop
lea rcx, [rsp + 0x240]
call fcn.1800029a0
nop
lea rcx, [rsp + 0x1d0]
call fcn.1800029a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180046aa4
mov dword [rsp + 0x280], 0x18
mov dword [rsp + 0x290], 1
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x288], rax
lea r8, str.GlobalA484F134_E72F_46EE_AA3F_C94A362B80BC
xor edx, edx
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180046858
mov rax, qword [rsp + 0x2f0]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x18004684d
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax + 0x418]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
lea rdx, [0x1800d5ff8]
lea rcx, [rsp + 0x1f0]
call fcn.180002a40
nop
mov r9d, dword [rsp + 0x58]
lea r8, [0x1800d5fe0]
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x260]
call fcn.180056040
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov r8, qword [rsp + 0x108]
mov edx, 4
mov rcx, qword [rsp + 0x80]
call fcn.180059b40
nop
lea rcx, [rsp + 0x260]
call fcn.1800029a0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1800029a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180046aa4
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x2f8]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x2f0]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x180046a9d
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax + 0x418]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x210]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
lea rcx, [0x1800d6088]
mov qword [rax], rcx
xor eax, eax
test eax, eax
je 0x18004694b
lea rax, [0x1800d6088]
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x40]
cmp byte [rax + rcx], 0
jne 0x180046927
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
jmp 0x180046993
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x60], rax
lea rax, [0x1800d6088]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
cmp word [rax + rcx*2], 0
jne 0x180046970
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 8], rcx
lea rax, [rsp + 0x158]
mov rdi, rax
mov rsi, qword [rsp + 0x90]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x170]
lea rcx, [rsp + 0x158]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x298]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0xa0], rax
lea rax, str.EppLibClass::EppOpenAndAcquireInstallMutex
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x180]
lea rcx, [rsp + 0x170]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x190]
lea rcx, [rsp + 0x180]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1a0]
lea rcx, [rsp + 0x190]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xa0]
lea r8, [rsp + 0x1a0]
mov edx, 2
mov rcx, qword [rsp + 0x68]
call fcn.180058bb0
mov eax, dword [rsp + 0x298]
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x2d8
pop rdi
pop rsi
ret