Function at 0x10015430
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042f59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
cmp dword [0x10059218], 7
mov eax, 0x10059204
push ebx
cmova eax, dword [0x10059204]
push esi
push edi
mov dword [ebp - 0x10], esp
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x10015688
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10015688
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1388
mov dword [ebp - 0x18], 0
call fcn.10009c00
mov dword [ebp - 4], 0
call fcn.1001d890
test al, al
je 0x100156cb
nop word [eax + eax]
push 0x264
mov dword [ebp - 4], 2
call fcn.10024bba
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1001e930
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x10
mov byte [ebp - 4], 4
call fcn.10024bba
add esp, 4
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_class_S_C_.0
mov dword [eax + 0xc], esi
mov dword [0x10059234], esi
mov esi, dword [0x10059238]
mov dword [0x10059238], eax
test esi, esi
je 0x10015542
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10015542
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10015542
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x3e8
mov dword [ebp - 0x20], 0
call fcn.10009c00
nop dword [eax + eax]
mov byte [ebp - 4], 5
mov esi, dword [0x10059234]
cmp byte [esi + 0x261], 0
jne 0x1001563b
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
call fcn.10009f90
mov esi, dword [0x100591d0]
test esi, esi
je 0x100155ac
mov ecx, esi
call fcn.1001f150
push 0x264
push esi
call fcn.10024bea
add esp, 8
push 0x264
mov dword [0x100591d0], 0
call fcn.10024bba
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.1001e930
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x10
mov byte [ebp - 4], 7
call fcn.10024bba
mov byte [ebp - 4], 5
add esp, 4
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_class_S_C_.0
mov dword [eax + 0xc], esi
mov edi, dword [0x10059238]
mov dword [0x10059234], esi
mov dword [0x10059238], eax
test edi, edi
je 0x1001563b
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x10015635
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x10015635
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [0x10059234]
mov al, byte [esi + 0x262]
cmp al, 1
je 0x1001567a
cmp byte [esi + 0x263], 1
je 0x10015676
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 0
call fcn.10009f90
jmp 0x10015560
cmp al, 1
jne 0x1001567f
call fcn.1001bc40
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1004e0a4
lea ecx, [ebp - 0x40]
call fcn.1000aa80
push 0x100546a0
lea eax, [ebp - 0x40]
push eax
call fcn.100262e0
int3