Function at 0x411700
Capabilities:
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0x110
mov rax, qword [0x00423d58]
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x60], 0x57
movzx eax, word [0x0042080c]
test eax, eax
je 0x411ad6
mov eax, dword [0x00420804]
and eax, 1
cmp eax, 1
jne 0x411ad6
mov eax, dword [0x00420804]
and eax, 0x10
cmp eax, 0x10
je 0x41175b
xor eax, eax
jmp 0x411ae2
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 [0x00420c28], 0
je 0x4117c1
xor eax, eax
jmp 0x411ae2
xor eax, eax
lea rcx, [0x00420c40]
xchg dword [rcx], eax
xor eax, eax
lea rcx, [0x00420c44]
xchg dword [rcx], eax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x00420c28], rax
cmp qword [0x00420c28], 0
jne 0x411808
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
jmp 0x411ae2
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 0x411870
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
jmp 0x411ae2
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 0x4119b1
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 0x4119a7
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 [0x00420c30], rax
cmp qword [0x00420c30], 0
jne 0x4119a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp qword [0x00420c28], 0
je 0x4119a5
mov rcx, qword [0x00420c28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x00420c28], 0
jmp 0x4119b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp qword [rsp + 0xa8], 0
je 0x4119ca
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rsp + 0xf8], 0
je 0x4119e3
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x60], 0
je 0x4119f3
mov eax, dword [rsp + 0x60]
jmp 0x411ae2
mov edx, 0xffffffff
mov rcx, qword [0x00420c28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
jne 0x411aca
cmp qword [0x00420c20], 0
je 0x411a3b
mov rcx, qword [0x00420c20]
call fcn.0040e410
mov qword [0x00420c20], 0
lea r8, [0x00420c20]
mov edx, 0x400c
lea rcx, [0x0042080c]
call fcn.0040dd90
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x411abb
cmp dword [rsp + 0x60], 2
jne 0x411abb
lea r8, [0x00420c20]
mov edx, 0x4104
lea rcx, [0x0042080c]
call fcn.0040dd90
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x411abb
mov rcx, qword [0x00420c20]
call fcn.0040e410
mov qword [0x00420c20], 0
lea r8, [0x00420c20]
mov edx, 0x400c
lea rcx, [0x0042080c]
call fcn.0040dd90
mov dword [rsp + 0x60], eax
mov rcx, qword [0x00420c28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x411ad4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
jmp 0x411ade
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x100]
call fcn.00418760
add rsp, 0x110
pop rdi
ret