Function at 0x1800fd620
Capabilities:
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0x110
mov rax, qword [0x180157688]
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x60], 0x57
movzx eax, word [0x180156e9c]
test eax, eax
je 0x1800fd9f6
mov eax, dword [0x180156e94]
and eax, 1
cmp eax, 1
jne 0x1800fd9f6
mov eax, dword [0x180156e94]
and eax, 0x10
cmp eax, 0x10
je 0x1800fd67b
xor eax, eax
jmp 0x1800fda02
mov dword [rsp + 0xb0], 0
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0xa8], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 1
cmp qword [0x1801572b8], 0
je 0x1800fd6e1
xor eax, eax
jmp 0x1800fda02
xor eax, eax
lea rcx, [0x1801572d0]
xchg dword [rcx], eax
xor eax, eax
lea rcx, [0x1801572d4]
xchg dword [rcx], eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1801572b8], rax
cmp qword [0x1801572b8], 0
jne 0x1800fd728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
jmp 0x1800fda02
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
je 0x1800fd790
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
jmp 0x1800fda02
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0xc8]
call sub.msvcrt.dll_memset
mov dword [rsp + 0xc8], 0x10000000
mov dword [rsp + 0xcc], 2
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0xe4], 0
mov dword [rsp + 0xe8], 1
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xf0], rax
lea r9, [rsp + 0xf8]
xor r8d, r8d
lea rdx, [rsp + 0xc8]
mov ecx, 1
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x1800fd8d1
mov edx, 1
lea rcx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
mov r8, qword [rsp + 0xf8]
mov edx, 1
lea rcx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1800fd8c7
mov dword [rsp + 0xb0], 0x18
lea rax, [rsp + 0x78]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xc0], 0
lea r9, str.Global225BF06D_B46B_4164_B348_46976C7E2F76
mov r8d, 1
xor edx, edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1801572c0], rax
cmp qword [0x1801572c0], 0
jne 0x1800fd8c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp qword [0x1801572b8], 0
je 0x1800fd8c5
mov rcx, qword [0x1801572b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1801572b8], 0
jmp 0x1800fd8d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp qword [rsp + 0xa8], 0
je 0x1800fd8ea
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rsp + 0xf8], 0
je 0x1800fd903
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x60], 0
je 0x1800fd913
mov eax, dword [rsp + 0x60]
jmp 0x1800fda02
mov edx, 0xffffffff
mov rcx, qword [0x1801572b8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
jne 0x1800fd9ea
cmp qword [0x1801572b0], 0
je 0x1800fd95b
mov rcx, qword [0x1801572b0]
call fcn.1800fa610
mov qword [0x1801572b0], 0
lea r8, [0x1801572b0]
mov edx, 0x400c
lea rcx, [0x180156e9c]
call fcn.1800f9f90
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1800fd9db
cmp dword [rsp + 0x60], 2
jne 0x1800fd9db
lea r8, [0x1801572b0]
mov edx, 0x4104
lea rcx, [0x180156e9c]
call fcn.1800f9f90
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x1800fd9db
mov rcx, qword [0x1801572b0]
call fcn.1800fa610
mov qword [0x1801572b0], 0
lea r8, [0x1801572b0]
mov edx, 0x400c
lea rcx, [0x180156e9c]
call fcn.1800f9f90
mov dword [rsp + 0x60], eax
mov rcx, qword [0x1801572b8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1800fd9f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
jmp 0x1800fd9fe
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x100]
call fcn.180124250
add rsp, 0x110
pop rdi
ret