Function at 0x2112e4a0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esi + 0x1910]
sub esp, 0xa0
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push edi
je 0x2112e4c0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x2112e4cb
call sym.mss32.dll__AIL_HWND_0
mov dword [esi + 0x1910], eax
cmp dword [0x211656f0], ebp
je 0x2112e4ec
xor eax, eax
cmp dword [esi + 0x1990], ebp
mov dword [esp + 0x10], 4
sete al
mov dword [esp + 0x1c], eax
jmp 0x2112e505
xor ecx, ecx
cmp word [esi + 0x1924], 0xfffe
mov dword [esp + 0x1c], ebp
sete cl
add ecx, 1
mov dword [esp + 0x10], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea edx, [esi + 0x1900]
lea edi, [esi + 0x190c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
nop
mov eax, dword [edi]
cmp eax, ebp
je 0x2112e530
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], ebp
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, ebp
je 0x2112e548
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov dword [eax], ebp
mov eax, dword [0x21165710]
cmp eax, ebp
je 0x2112e563
mov ecx, dword [0x2118b20c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x21165710]
cmp eax, ebp
mov edi, dword [0x211656f8]
je 0x2112e592
mov eax, dword [0x2118b20c]
cmp eax, ebp
jne 0x2112e584
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2118b20c], eax
je 0x2112e576
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x21165710]
cmp edi, ebp
jne 0x2112e5ec
cmp eax, ebp
je 0x2112e5a7
mov edx, dword [0x2118b20c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x18fc]
push ebp
push edi
push eax
call dword [0x2118b3b4]
test eax, eax
jl 0x2112e8c1
cmp dword [0x21165710], ebp
je 0x2112e640
mov eax, dword [0x2118b20c]
cmp eax, ebp
jne 0x2112e5e1
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2118b20c], eax
je 0x2112e5d3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x2112e640
cmp eax, ebp
je 0x2112e5fd
mov ecx, dword [0x2118b20c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x18fc]
push ebp
push edx
push eax
call edi
test eax, eax
jl 0x2112e8dc
cmp dword [0x21165710], ebp
je 0x2112e63c
mov eax, dword [0x2118b20c]
cmp eax, ebp
jne 0x2112e633
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2118b20c], eax
je 0x2112e625
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x14]
push 0x60
lea ecx, [esp + 0x4c]
push ebp
push ecx
mov dword [esi + 0x1908], ebp
call fcn.21136810
mov eax, dword [edi]
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0x60
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ecx
push eax
call edx
test eax, eax
jne 0x2112e681
mov eax, dword [esp + 0x4c]
shr eax, 5
and eax, 1
mov dword [esi + 0x1908], eax
cmp dword [esi + 0x1908], ebp
je 0x2112e698
cmp dword [esp + 0x10], 4
jne 0x2112e698
mov dword [esp + 0x10], 2
cmp dword [0x21165710], ebp
je 0x2112e6ad
mov ecx, dword [0x2118b20c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
mov ecx, dword [esi + 0x1910]
push ecx
push eax
call edx
test eax, eax
jl 0x2112e8f7
cmp dword [0x21165710], ebp
je 0x2112e6f7
mov eax, dword [0x2118b20c]
cmp eax, ebp
jne 0x2112e6ee
lea esp, [esp]
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2118b20c], eax
je 0x2112e6e0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1904], eax
xor eax, eax
cmp dword [0x211656f4], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x24], 1
je 0x2112e737
mov dword [esp + 0x24], 0x11
cmp dword [0x21165710], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
je 0x2112e754
mov ecx, dword [0x2118b20c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ebp
push ecx
lea ecx, [esp + 0x28]
push ecx
push eax
call edx
test eax, eax
jl 0x2112e91c
cmp dword [0x21165710], ebp
je 0x2112e799
mov eax, dword [0x2118b20c]
cmp eax, ebp
jne 0x2112e790
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2118b20c], eax
je 0x2112e782
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x1c], ebp
je 0x2112e81d
cmp word [esi + 0x1924], 0xfffe
lea edi, [esi + 0x1924]
je 0x2112e7b5
mov word [edi], 1
movzx eax, word [esi + 0x1930]
imul eax, dword [esi + 0x1928]
mov dword [esi + 0x192c], eax
cmp dword [0x21165710], ebp
je 0x2112e7de
mov ecx, dword [0x2118b20c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push edi
push eax
call edx
test eax, eax
jl 0x2112e941
cmp dword [0x21165710], ebp
je 0x2112e81d
mov eax, dword [0x2118b20c]
cmp eax, ebp
jne 0x2112e814
push ebp
push ebp
push ebp
call ebx
cmp eax, ebp
mov dword [0x2118b20c], eax
je 0x2112e806
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp word [esi + 0x1924], 0xfffe
je 0x2112e9bb
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [eax]
push ebp
push 0x12
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ax, word [esp + 0x36]
cmp ax, word [esi + 0x1926]
mov ecx, dword [esi + 0x1990]
mov dx, word [esp + 0x42]
mov edi, dword [esp + 0x38]
jne 0x2112e896
cmp edi, dword [esi + 0x1928]
jne 0x2112e896
mov bx, word [esp + 0x40]
cmp bx, word [esi + 0x1930]
jne 0x2112e890
cmp dx, word [esi + 0x1932]
jne 0x2112e890
mov bx, word [esp + 0x34]
cmp bx, word [esi + 0x1924]
je 0x2112e96a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp ecx, ebp
jne 0x2112e96a
cmp dword [esp + 0x1c], ebp
jne 0x2112e96a
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 2
jmp 0x2112e520
call fcn.21101090
push str.DirectSoundCreate___failed.
call sym.mss32.dll__AIL_set_error_4
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0xa0
ret
call fcn.21101090
push str.DirectSoundCreate___custom_handler_failed.
call sym.mss32.dll__AIL_set_error_4
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0xa0
ret
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call fcn.21101090
push str.SetCooperativeLevel___failed.
call sym.mss32.dll__AIL_set_error_4
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0xa0
ret
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call fcn.21101090
push str.CreateSoundBuffer___failed_on_primary_buffer.
call sym.mss32.dll__AIL_set_error_4
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0xa0
ret
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call fcn.21101090
push str.SetFormat___failed_on_primary_buffer.
call sym.mss32.dll__AIL_set_error_4
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0xa0
ret
xor ecx, ecx
cmp dx, 0x10
sete cl
mov word [esi + 0x1932], dx
xor edx, edx
mov word [esi + 0x1926], ax
mov dword [esi + 0x1928], edi
mov word [esi + 0x1924], 1
add cx, 1
cmp ax, 2
sete dl
mov ax, cx
add dx, 1
imul ax, dx
mov word [esi + 0x1930], ax
movzx eax, ax
imul eax, edi
mov dword [esi + 0x192c], eax
cmp dword [esp + 0x10], 4
jne 0x2112e9d4
mov ecx, dword [esp + 0x18]
movzx eax, word [esi + 0x1932]
mov edi, dword [ecx]
call fcn.2112e290
cmp dword [0x21165710], ebp
je 0x2112e9e9
mov edx, dword [0x2118b20c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push 1
push ebp
push ebp
push eax
call edx
call fcn.21101090
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa0
ret