Function at 0x1000d300
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2560
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100c7034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], eax
xor edx, edx
push 0xffffffffffffffff
lea edi, [eax + 0x20]
mov dword [ecx + 0x14], 7
push edx
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], dx
call fcn.10001750
lea ecx, [ebp - 0x2c]
call fcn.10008d60
add esp, 0x18
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
lea ebx, [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
cmp edx, 0x10
mov eax, dword [ebp - 0x1c]
cmovae ecx, esi
cmovae ebx, esi
add eax, ecx
cmp edx, 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, esi
cmp ecx, eax
je 0x1000d3a6
push dword [sym.imp.MSVCR120.dll_tolower]
mov edx, ecx
lea ecx, [ebp - 0x4c]
push ebx
push eax
call fcn.1000b320
add esp, 0xc
push 1
push 0xffffffffffffffff
push 0x100b8714
lea ecx, [ebp - 0x2c]
call fcn.10009610
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp eax, 0xffffffff
je 0x1000d44f
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100090f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
mov eax, 4
mov esi, dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
cmp esi, eax
cmovb eax, esi
push eax
push str..exe
push ecx
call fcn.10007850
add esp, 0xc
test eax, eax
jne 0x1000d418
cmp esi, 4
jae 0x1000d40e
or eax, 0xffffffff
jmp 0x1000d416
xor eax, eax
cmp esi, 4
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x1000d43c
cmp dword [ebp - 0x30], 0x10
jb 0x1000d5eb
mov eax, dword [ebp - 0x44]
push eax
call ebx
add esp, 4
jmp 0x1000d5eb
mov byte [ebp - 4], 0
cmp dword [ebp - 0x30], 0x10
jb 0x1000d44f
mov eax, dword [ebp - 0x44]
push eax
call ebx
add esp, 4
push 1
push 0xffffffffffffffff
push 0x100b8720
mov ecx, edi
call fcn.100096a0
cmp eax, 0xffffffff
je 0x1000d4ae
push eax
push 0
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.10007d10
mov esi, eax
cmp edi, esi
je 0x1000d4a0
cmp dword [edi + 0x14], 8
jb 0x1000d485
push dword [edi]
call ebx
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
push esi
mov word [edi], ax
call fcn.10004740
cmp dword [ebp - 0x30], 8
jb 0x1000d4ae
push dword [ebp - 0x44]
call ebx
add esp, 4
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
push ecx
mov edi, dword [eax + 0xc]
lea ecx, [eax + 0xc]
call fcn.1000aa90
mov esi, eax
mov eax, dword [ebp - 0x48]
cmp esi, dword [eax + 0xc]
je 0x1000d4f3
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x1000d4d8
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push 0
call fcn.100078c0
test eax, eax
js 0x1000d4f0
mov dword [ebp - 0x4c], esi
jmp 0x1000d4f9
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
cmp dword [eax], edi
jne 0x1000d5eb
sub esp, 0x18
mov ecx, esp
push 0x100b8724
call fcn.10002110
lea ecx, [ebp - 0x50]
call fcn.10011e70
add esp, 0x18
mov esi, dword [eax]
lea ecx, [esi + 0x1c]
call fcn.100a4680
test al, al
je 0x1000d537
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x4c]
or edi, 0xffffffff
test esi, esi
je 0x1000d564
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x1000d564
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x1000d564
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x48]
push dword [ebp - 0x54]
lea ecx, [ecx + 4]
call fcn.10013d20
sub esp, 0x18
mov ecx, esp
push 0x100b873c
call fcn.10002110
lea ecx, [ebp - 0x58]
call fcn.10011e70
add esp, 0x18
mov esi, dword [eax]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x1000d599
mov eax, dword [eax]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x1000d5c2
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x1000d5c2
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x1000d5eb
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x1000d5eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x1000d5eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x18], 0x10
jb 0x1000d5f9
push dword [ebp - 0x2c]
call ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b010b
mov esp, ebp
pop ebp
ret 4