Function at 0x140091590
Capabilities:
Check mutex on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov qword [rsp + 0x1a0], 0xfffffffffffffffe
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rax], 0
mov rax, qword [rsp + 0x230]
add rax, 8
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rax], 0xffffffffffffffff
mov rax, qword [rsp + 0x230]
add rax, 0x10
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rax], 0xffffffffffffffff
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400ed984
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14009166f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x118]
call fcn.140096364
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xd0], rax
jmp 0x14009167b
mov qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
xor eax, eax
test eax, eax
je 0x1400916cb
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x128], rax
mov eax, dword [rsp + 0x128]
shr eax, 2
mov dword [rsp + 0x24], eax
jmp 0x140091718
xor eax, eax
cmp eax, 1
je 0x140091718
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
shr rax, 0x20
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
xor edx, edx
mov eax, dword [rsp + 0x28]
mov ecx, 4
div ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
bts eax, 0x1e
mov dword [rsp + 0x24], eax
mov byte [rsp + 0x21], 0
mov qword [rsp + 0x130], 0
lea rax, [rsp + 0x130]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x1f0]
call fcn.140010b30
nop
lea rcx, [rsp + 0x1d0]
call fcn.140010b30
nop
lea rcx, [rsp + 0x1f0]
call fcn.14009123c
lea rdx, str.bipc_gmap_sem_lock_
lea rcx, [rsp + 0x1d0]
call fcn.140010a44
mov r9, qword [0x14036b228]
xor r8d, r8d
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x1d0]
call fcn.14000d430
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x18], 0x10
jb 0x1400917e9
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
jmp 0x1400917f9
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x14009188b
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x148], rax
xor eax, eax
mov r8, qword [rsp + 0x140]
mov edx, eax
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
je 0x140091877
mov dword [rsp + 0x2c], 1
jmp 0x14009187f
mov dword [rsp + 0x2c], 0
mov al, byte [rsp + 0x2c]
mov byte [rsp + 0x20], al
jmp 0x140091890
mov byte [rsp + 0x20], 0
lea rdx, str.bipc_gmap_sem_count_
lea rcx, [rsp + 0x1d0]
call fcn.140010a44
mov r9, qword [0x14036b228]
xor r8d, r8d
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x1d0]
call fcn.14000d430
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0xe0], rax
mov byte [rsp + 0xe8], 0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax]
call fcn.1400913b0
mov byte [rsp + 0xe8], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140091a51
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
cmp qword [rax + 0x18], 0x10
jb 0x140091964
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
jmp 0x140091974
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x230]
add rax, 0x10
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0xffffffffffffffff
jne 0x140091a39
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x168], rax
mov r9, qword [rsp + 0x160]
mov r8d, 0x7fffffff
xor edx, edx
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov rcx, qword [rsp + 0xa8]
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400919fd
mov dword [rsp + 0x30], 1
jmp 0x140091a05
mov dword [rsp + 0x30], 0
mov al, byte [rsp + 0x30]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0xffffffffffffffff
je 0x140091a25
mov dword [rsp + 0x34], 1
jmp 0x140091a2d
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
mov byte [rsp + 0x22], al
jmp 0x140091a3e
mov byte [rsp + 0x22], 0
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140091a51
mov dword [rsp + 0x38], 1
jmp 0x140091a59
mov dword [rsp + 0x38], 0
mov al, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
lea rdx, str.bipc_gmap_sem_map_
lea rcx, [rsp + 0x1d0]
call fcn.140010a44
mov r9, qword [0x14036b228]
xor r8d, r8d
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x1d0]
call fcn.14000d430
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140091bd7
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x18], 0x10
jb 0x140091af5
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
jmp 0x140091b05
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x230]
add rax, 8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0xffffffffffffffff
jne 0x140091bbf
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x180], rax
mov r9, qword [rsp + 0x178]
mov r8d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140091b86
mov dword [rsp + 0x3c], 1
jmp 0x140091b8e
mov dword [rsp + 0x3c], 0
mov al, byte [rsp + 0x3c]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0xffffffffffffffff
je 0x140091bab
mov dword [rsp + 0x40], 1
jmp 0x140091bb3
mov dword [rsp + 0x40], 0
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x23], al
jmp 0x140091bc4
mov byte [rsp + 0x23], 0
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x140091bd7
mov dword [rsp + 0x44], 1
jmp 0x140091bdf
mov dword [rsp + 0x44], 0
mov al, byte [rsp + 0x44]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140091c7f
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140091c5a
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0x50]
call fcn.140095270
mov eax, 1
and eax, 1
test eax, eax
je 0x140091c4b
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, qword [rsp + 0x50]
call fcn.1402868d8
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd8], rax
jmp 0x140091c66
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0x60], 0
lea rdx, [0x1403c1a60]
lea rcx, [rsp + 0x60]
call fcn.14028d944
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140091cfa
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140091cee
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0x58]
call fcn.140095270
mov eax, 1
and eax, 1
test eax, eax
je 0x140091cdf
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, qword [rsp + 0x58]
call fcn.1402868d8
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xc8], rax
jmp 0x140091cfa
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x198], rax
lea r8, [rsp + 0xf0]
mov edx, 1
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rsp + 0xe0]
call fcn.140094790
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1d0]
call fcn.14001196c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1f0]
call fcn.14001196c
nop
mov rax, qword [rsp + 0x230]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140286010
add rsp, 0x228
ret