Function at 0x1000b760
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], ecx
cmp dword [eax + 0x10], ecx
jbe 0x1000babb
push ebx
push esi
mov eax, dword [eax + 0x14]
lea edx, [edi + 0x90]
push edx
xor esi, esi
mov ebx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x1000b7f7
mov ecx, dword [ebp - 0xc]
nop dword [eax]
cmp dword [eax], ebx
jne 0x1000b7c9
cmp dword [eax + 4], ecx
je 0x1000b7f5
mov eax, dword [eax + 8]
test eax, eax
jne 0x1000b7c0
lea eax, [edi + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov eax, edx
mov edx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edx + 0x10]
jae 0x1000b814
mov eax, edx
jmp 0x1000b790
mov esi, eax
lea eax, [edi + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test esi, esi
je 0x1000b7dd
mov edx, dword [esi + 0x1c]
mov dword [ebp - 8], edx
test edx, edx
jne 0x1000b824
jmp 0x1000b7e0
xor esi, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x1000bab9
cmp byte [0x100eaaac], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x1000b8c2
call fcn.10003b60
mov ecx, eax
mov dword [ebp - 0xc], eax
sub ecx, dword [0x100eb370]
mov eax, edx
mov dword [ebp - 0x14], edx
sbb eax, dword [0x100eb374]
mov byte [ebp - 1], 1
cmp eax, 1
jb 0x1000b898
ja 0x1000b865
cmp ecx, 0x2a05f200
jbe 0x1000b898
push 0x100eabb8
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
setne byte [ebp - 1]
test eax, eax
je 0x1000b888
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov dword [0x100eb370], eax
mov eax, dword [ebp - 0x14]
mov dword [0x100eb374], eax
push 0
push dword [0x100ea98c]
call ebx
test eax, eax
je 0x1000b8ac
cmp byte [ebp - 1], 0
jne 0x1000b8b5
push edi
call fcn.1000ce70
add esp, 4
cmp byte [0x100eaaac], 0
jne 0x1000b94e
push 0
push dword [0x100ea988]
call ebx
test eax, eax
jne 0x1000b941
push 0x100eabb8
push eax
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
setne bl
test eax, eax
je 0x1000b8f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1000b941
mov eax, dword [0x100ea984]
test eax, eax
je 0x1000b903
cmp eax, 0xffffffff
jne 0x1000b908
call fcn.100038e0
cmp dword [esi + 0x10], 0
je 0x1000b941
cmp dword [esi + 0x14], 0
je 0x1000b941
push esi
push dword [ebp - 8]
push edi
call fcn.1000d010
add esp, 0xc
test al, al
jne 0x1000b941
push edi
call fcn.1000ce70
push str.vk_capture
push str._s:_vk_shtex_init_failed
mov byte [edi + 0x14], 0
call fcn.10003740
add esp, 0xc
cmp byte [0x100eaaac], 0
je 0x1000b9f5
mov eax, dword [0x100ea980]
mov ecx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x38]
mov eax, ebx
or eax, ecx
mov dword [ebp - 0xc], ecx
je 0x1000b9c6
call fcn.10003b60
mov ecx, eax
sub eax, dword [0x100eb368]
mov dword [ebp - 0x14], eax
mov eax, edx
sbb eax, dword [0x100eb36c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
jb 0x1000b9f5
ja 0x1000b98c
cmp dword [ebp - 0x14], ebx
jb 0x1000b9f5
mov edi, ebx
shld eax, edi, 1
add edi, edi
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 8], eax
jb 0x1000b9a9
ja 0x1000b9ba
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x28]
ja 0x1000b9ba
mov ecx, dword [0x100eb368]
mov edx, dword [0x100eb36c]
add ecx, ebx
adc edx, dword [ebp - 0xc]
mov dword [0x100eb368], ecx
mov dword [0x100eb36c], edx
cmp esi, dword [edi + 0x94]
je 0x1000b9de
push edi
call fcn.1000ce70
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x18]
lea eax, [edi + 0x18]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push esi
push eax
push edi
call fcn.1000c7c0
add esp, 0x18
lea eax, [edi + 0x9c]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ecx, dword [edi + 0x98]
test ecx, ecx
je 0x1000ba26
mov eax, dword [ebp - 0x20]
cdq
cmp dword [ecx], eax
jne 0x1000ba1b
cmp dword [ecx + 4], edx
je 0x1000ba24
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x1000ba12
jmp 0x1000ba26
mov ebx, ecx
lea eax, [edi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, dword [esi + 0x3c]
mov eax, dword [ebx + 0x20]
cmp eax, esi
jae 0x1000ba56
test eax, eax
je 0x1000ba4b
push ebx
push edi
call fcn.1000cd70
add esp, 8
push esi
push ebx
push edi
call fcn.1000cc40
add esp, 0xc
mov eax, dword [ebx + 0x1c]
xor edx, edx
mov edi, eax
inc eax
div dword [ebx + 0x20]
shl edi, 5
add edi, dword [ebx + 0x18]
mov dword [ebx + 0x1c], edx
mov ebx, dword [ebp - 0x1c]
cmp byte [edi + 0x18], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
je 0x1000baaa
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push eax
mov eax, dword [ebx + 0x80]
push 1
push esi
call eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx + 0x84]
push 1
push esi
call eax
mov byte [edi + 0x18], 0
mov eax, dword [ebx + 0x50]
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebx + 0x10]
call eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret