Function at 0x1000a620
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ecx + 0x10], ebx
jbe 0x1000a876
mov edx, dword [ebp + 8]
add edx, 0xa8
mov dword [ebp - 0x14], edx
push edi
mov eax, dword [ecx + 0x14]
push dword [eax + esi*8 + 4]
push dword [eax + esi*8]
push edx
call fcn.1000a200
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000a665
mov ebx, dword [edi + 0x1c]
test ebx, ebx
jne 0x1000a681
mov ecx, dword [ebp + 0x10]
inc esi
mov eax, ebx
cmp esi, dword [ecx + 0x10]
jae 0x1000a675
mov edx, dword [ebp - 0x14]
jmp 0x1000a645
xor edi, edi
mov ebx, eax
test eax, eax
je 0x1000a875
cmp byte [0x10033b44], 0
je 0x1000a71c
call fcn.100022e0
mov dword [ebp - 0x14], eax
mov ecx, edx
sub eax, dword [0x10034018]
mov dword [ebp - 0x10], ecx
sbb ecx, dword [0x1003401c]
mov byte [ebp - 1], 1
cmp ecx, 1
jb 0x1000a6ec
ja 0x1000a6b9
cmp eax, 0x2a05f200
jbe 0x1000a6ec
push 0x10033b48
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
setne byte [ebp - 1]
test eax, eax
je 0x1000a6dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [0x10034018], eax
mov eax, dword [ebp - 0x10]
mov dword [0x1003401c], eax
push 0
push dword [0x10033924]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000a704
cmp byte [ebp - 1], 0
jne 0x1000a70f
push dword [ebp + 8]
call fcn.1000bc70
add esp, 4
cmp byte [0x10033b44], 0
jne 0x1000a7b6
push 0
push dword [0x10033920]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000a7b6
push 0x10033b48
push eax
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
je 0x1000a759
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebp - 1]
test cl, cl
je 0x1000a7b6
mov eax, dword [0x1003391c]
test eax, eax
je 0x1000a76b
cmp eax, 0xffffffff
jne 0x1000a770
call fcn.100020b0
cmp dword [edi + 0x10], 0
mov ecx, esi
mov eax, edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
je 0x1000a7b6
cmp dword [edi + 0x14], 0
je 0x1000a7b6
push eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.1000be10
add esp, 0xc
test al, al
jne 0x1000a7b9
push ebx
call fcn.1000bc70
push str.vk_capture
push str._s:_vk_shtex_init_failed
mov byte [ebx + 0x14], 0
call fcn.10001f10
add esp, 0xc
jmp 0x1000a7b9
mov ebx, dword [ebp + 8]
cmp byte [0x10033b44], 0
je 0x1000a875
mov eax, dword [0x10033918]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov eax, ecx
or eax, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
je 0x1000a848
call fcn.100022e0
mov ecx, eax
sub eax, dword [0x10034010]
mov dword [ebp - 0x14], eax
mov eax, edx
sbb eax, dword [0x10034014]
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x10]
jb 0x1000a875
mov eax, dword [ebp - 0xc]
ja 0x1000a807
cmp dword [ebp - 0x14], eax
jb 0x1000a875
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 0x10]
shld eax, ebx, 1
add ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x18], eax
jb 0x1000a82a
ja 0x1000a83c
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
ja 0x1000a83c
mov ecx, dword [0x10034010]
add ecx, dword [ebp - 0xc]
mov edx, dword [0x10034014]
adc edx, dword [ebp - 0x10]
mov dword [0x10034010], ecx
mov dword [0x10034014], edx
cmp edi, dword [ebx + 0xb0]
je 0x1000a860
push ebx
call fcn.1000bc70
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
lea eax, [ebx + 0x18]
push dword [ebp + 0xc]
push esi
push edi
push eax
push ebx
call fcn.1000b590
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret