Function at 0x211111d0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xb0]
xor ebp, ebp
cmp eax, ebp
push edi
je 0x211111f3
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x211111fe
call sym.mss32.dll__AIL_HWND_0
mov dword [esi + 0xb0], eax
cmp dword [0x2114e87c], ebp
je 0x21111221
mov ecx, dword [esi + 0x100]
xor eax, eax
cmp ecx, ebp
sete al
mov dword [esp + 0x14], 4
mov dword [esp + 0x1c], eax
jmp 0x2111122d
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea edi, [esi + 0xac]
lea ecx, [esi + 0xa0]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
mov eax, dword [edi]
cmp eax, ebp
je 0x21111255
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [edi], ebp
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, ebp
je 0x2111126b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x10]
mov dword [edx], ebp
mov eax, dword [0x2114e89c]
cmp eax, ebp
je 0x21111285
mov eax, dword [0x2114fa38]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x2114e89c]
cmp eax, ebp
mov edi, dword [0x2114e884]
je 0x211112b4
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x211112a6
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x21111298
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x2114e89c]
cmp edi, ebp
jne 0x21111306
cmp eax, ebp
je 0x211112c9
mov ecx, dword [0x2114fa38]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x9c]
push ebp
push edx
push eax
call dword [0x2114fb04]
test eax, eax
mov eax, dword [0x2114e89c]
jl 0x211115b2
cmp eax, ebp
je 0x21111357
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x2111134e
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x211112f6
jmp 0x2111134e
cmp eax, ebp
je 0x21111317
mov ecx, dword [0x2114fa38]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x9c]
push ebp
push edx
push eax
call edi
test eax, eax
mov eax, dword [0x2114e89c]
jl 0x211115ed
cmp eax, ebp
je 0x21111357
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x2111134e
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x21111340
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov ecx, 0x18
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
lea ecx, [esp + 0x48]
push ecx
mov dword [esi + 0xa8], ebp
mov dword [esp + 0x4c], 0x60
mov edx, dword [eax]
push eax
call dword [edx + 0x10]
test eax, eax
jne 0x21111397
mov edx, dword [esp + 0x4c]
shr edx, 5
and edx, 1
mov dword [esi + 0xa8], edx
cmp dword [esi + 0xa8], ebp
mov edi, dword [esp + 0x14]
je 0x211113b1
cmp edi, 4
jne 0x211113b1
mov edi, 2
mov dword [esp + 0x14], edi
cmp dword [0x2114e89c], ebp
je 0x211113c5
mov eax, dword [0x2114fa38]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov ecx, dword [esi + 0xb0]
mov edx, dword [eax]
push edi
push ecx
push eax
call dword [edx + 0x18]
test eax, eax
jl 0x21111628
cmp dword [0x2114e89c], ebp
je 0x21111409
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x21111400
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x211113f2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esi + 0xa4], edi
cmp dword [0x2114e880], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x24], 1
je 0x21111445
mov dword [esp + 0x24], 0x11
cmp dword [0x2114e89c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
je 0x21111461
mov eax, dword [0x2114fa38]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov ecx, dword [eax]
push ebp
push edx
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x21111673
cmp dword [0x2114e89c], ebp
je 0x211114a8
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x2111149f
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x21111491
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x1c], ebp
je 0x21111521
xor eax, eax
mov ax, word [esi + 0x98]
lea edi, [esi + 0x8c]
mov word [edi], 1
imul eax, dword [esi + 0x90]
mov dword [esi + 0x94], eax
cmp dword [0x2114e89c], ebp
je 0x211114e4
mov ecx, dword [0x2114fa38]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x38]
test eax, eax
jl 0x211116ba
cmp dword [0x2114e89c], ebp
je 0x21111521
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x21111518
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x2111150a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [eax]
push 0
push 0x12
lea edx, [esp + 0x3c]
push edx
push eax
call dword [ecx + 0x14]
mov ax, word [esp + 0x36]
cmp ax, word [esi + 0x8e]
mov ecx, dword [esi + 0x100]
mov edi, dword [esp + 0x42]
mov ebp, dword [esp + 0x38]
jne 0x21111583
cmp ebp, dword [esi + 0x90]
jne 0x21111583
mov dx, word [esp + 0x40]
cmp dx, word [esi + 0x98]
jne 0x21111583
cmp di, word [esi + 0x9a]
jne 0x21111583
mov dx, word [esp + 0x34]
cmp dx, word [esi + 0x8c]
je 0x21111705
test ecx, ecx
jne 0x21111705
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x21111705
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], 2
xor ebp, ebp
jmp 0x21111247
cmp eax, ebp
je 0x211115d6
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x211115cd
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x211115bf
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.DirectSoundCreate___failed.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret
cmp eax, ebp
je 0x21111611
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x21111608
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x211115fa
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.DirectSoundCreate___custom_handler_failed.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [0x2114e89c], ebp
je 0x2111165c
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x21111653
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x21111645
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.SetCooperativeLevel___failed.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret
mov eax, dword [edi]
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [0x2114e89c], ebp
je 0x211116a3
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x2111169a
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x2111168c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.CreateSoundBuffer___failed_on_primary_buffer.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [0x2114e89c], ebp
je 0x211116ee
mov eax, dword [0x2114fa38]
cmp eax, ebp
jne 0x211116e5
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2114fa38], eax
je 0x211116d7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.SetFormat___failed_on_primary_buffer.
call sym.mss32.dll__AIL_set_error_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret
xor edx, edx
cmp di, 0x10
sete dl
xor ecx, ecx
mov word [esi + 0x8e], ax
mov dword [esi + 0x90], ebp
mov word [esi + 0x9a], di
mov word [esi + 0x8c], 1
inc edx
cmp ax, 2
sete cl
mov eax, edx
inc ecx
imul eax, ecx
mov word [esi + 0x98], ax
and eax, 0xffff
imul eax, ebp
mov dword [esi + 0x94], eax
cmp dword [esp + 0x14], 4
jne 0x2111176a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, edi
and edx, 0xffff
call fcn.211117d0
mov eax, dword [0x2114e89c]
test eax, eax
je 0x21111780
mov ecx, dword [0x2114fa38]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [eax]
push 1
push 0
push 0
push eax
call dword [ecx + 0x30]
mov eax, dword [0x2114e89c]
test eax, eax
je 0x211117be
mov eax, dword [0x2114fa38]
test eax, eax
jne 0x211117b5
push 0
push 0
push 0
call ebx
test eax, eax
mov dword [0x2114fa38], eax
je 0x211117a4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x98
ret