Function at 0x2112a090
Capabilities:
Check mutex on windows
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x24b4
call fcn.2113f4e0
push ebx
push ebp
mov ebp, dword [esp + 0x24d0]
xor ebx, ebx
cmp dword [esp + 0x24d4], ebx
push esi
mov esi, dword [esp + 0x24d0]
push edi
mov dword [esp + 0x24], ebx
je 0x2112a700
cmp dword [esp + 0x24c8], ebx
je 0x2112a700
cmp ebp, ebx
je 0x2112a700
mov edi, esi
and edi, 2
mov eax, ebx
setne al
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.MSS_mixer_services
mov dword [esp + 0x54], ebx
mov dword [esp + 0x24], ebx
add eax, 1
mov dword [esp + 0x48], eax
call sym.mss32.dll__RIB_enumerate_providers_12
lea eax, [esp + 0x5c]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x64]
push 4
lea edx, [esp + 0x60]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], edx
push str.MSS_mixer_services
lea edx, [esp + 0x70]
push ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], str.MIXER_merge
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], str.MIXER_flush
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], str.MIXER_copy
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], str.MIXER_adpcm_decode
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], ebx
call sym.mss32.dll_RIB_request_interface
xor ecx, ecx
cmp ebp, ebx
jle 0x2112a20c
mov edx, dword [esp + 0x24dc]
mov ebp, dword [0x211656dc]
add edx, 0x14
mov ebx, dword [edx - 8]
xor eax, eax
test edi, edi
je 0x2112a1be
mov eax, 1
cmp dword [edx], 2
jne 0x2112a1c6
or eax, 8
cmp dword [edx - 4], 8
je 0x2112a1cf
or eax, 2
test al, 8
je 0x2112a1da
test al, 1
jne 0x2112a1da
or eax, 0x40
cmp ebx, dword [esp + 0x24d0]
je 0x2112a1e6
or eax, 0x20
test ebp, ebp
je 0x2112a1f6
cmp ebx, dword [esp + 0x24d0]
je 0x2112a1f6
or eax, 4
mov dword [esp + ecx*4 + 0xc0], eax
add ecx, 1
add edx, 0x78
cmp ecx, dword [esp + 0x24d8]
jl 0x2112a1b0
mov edx, esi
and dl, 1
neg dl
sbb edx, edx
neg edx
add edx, 1
imul edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x24d8]
xor edi, edi
test edx, edx
mov ebx, 0x11
jle 0x2112a2ba
mov eax, dword [esp + 0x24d0]
fild dword [esp + 0x24d0]
test eax, eax
jge 0x2112a251
fadd qword [0x21158410]
mov eax, dword [esp + 0x24dc]
add eax, 0x10
mov esi, 2
cmp dword [eax - 0x10], ebx
mov ecx, dword [eax - 8]
mov dword [esp + 0x14], ecx
jne 0x2112a272
shl dword [esp + 0x14], 1
jmp 0x2112a27b
cmp dword [eax], 8
je 0x2112a27b
sar dword [esp + 0x14], 1
cmp dword [eax + 4], esi
jne 0x2112a284
sar dword [esp + 0x14], 1
fild dword [esp + 0x14]
mov ecx, dword [eax - 4]
test ecx, ecx
fmul st(1)
fild dword [eax - 4]
jge 0x2112a29a
fadd qword [0x21158410]
fdivp st(1)
fistp qword [esp + 0xa8]
mov ecx, dword [esp + 0xa8]
cmp ecx, edi
jle 0x2112a2b0
mov edi, ecx
add eax, 0x78
sub edx, 1
jne 0x2112a260
fstp st(0)
mov eax, dword [esp + 0x24cc]
cdq
idiv dword [esp + 0x4c]
mov ebx, eax
cmp edi, ebx
mov dword [esp + 0x38], ebx
jge 0x2112a2d6
mov ebx, edi
mov dword [esp + 0x38], edi
xor esi, esi
cmp ebx, esi
je 0x2112a6ef
mov edx, dword [esp + 0x24d8]
cmp edx, esi
jle 0x2112a31e
mov eax, dword [esp + 0x24dc]
add eax, 0x1c
mov ecx, dword [eax]
cmp dword [eax + 8], ecx
jne 0x2112a304
mov edi, dword [eax + 4]
cmp edi, dword [eax - 0x18]
jne 0x2112a316
mov dword [eax + 8], ecx
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x50], esi
mov dword [eax + 0x54], esi
mov dword [eax + 0x58], esi
add eax, 0x78
sub edx, 1
jne 0x2112a2f5
mov eax, 0x800
cdq
idiv dword [esp + 0x3c]
mov edi, dword [esp + 0x24c8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x50], eax
jmp 0x2112a344
mov eax, dword [esp + 0x50]
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x2112a352
mov eax, ebx
mov dword [esp + 0x28], ebx
imul eax, dword [esp + 0x3c]
mov edx, dword [0x211656cc]
add eax, eax
add eax, eax
push edx
push eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x4c8]
push eax
call dword [esp + 0x68]
xor eax, eax
cmp dword [esp + 0x24d8], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
jle 0x2112a666
mov esi, dword [esp + 0x24dc]
add esi, 0xc
mov edi, dword [esi - 4]
test edi, edi
je 0x2112a601
cmp dword [esi - 0xc], 0x11
lea ebp, [esi - 8]
jne 0x2112a4dd
mov edx, dword [esi]
fild dword [esi]
test edx, edx
mov ecx, dword [ebp]
mov dword [esp + 0x30], ecx
lea ebx, [esi + 0x18]
jge 0x2112a3c4
fadd qword [0x21158410]
mov eax, dword [esp + 0x24d0]
fimul dword [esp + 0x28]
test eax, eax
fild dword [esp + 0x24d0]
jge 0x2112a3e0
fadd qword [0x21158410]
fdivp st(1)
fadd qword [0x21158518]
fistp qword [esp + 0xb0]
mov edi, dword [esp + 0xb0]
imul edi, dword [ebx - 0x10]
add edi, edi
cmp edi, dword [esp + 0x48]
jle 0x2112a48b
cmp dword [esp + 0x18], 0
je 0x2112a475
mov eax, 1
add word [0x2118b278], ax
cmp word [0x2118b270], 0
je 0x2112a461
cmp word [0x2118b278], ax
je 0x2112a436
cmp word [0x2118b274], 0
je 0x2112a461
mov ecx, dword [0x2118b1f8]
test ecx, ecx
jne 0x2112a461
call fcn.211120b0
test eax, eax
je 0x2112a461
mov edx, dword [esp + 0x18]
mov ecx, dword [0x2118eef8]
push edx
push str.AIL_mem_free_lock_0x_lX__n
call fcn.21111c20
add esp, 8
mov eax, dword [esp + 0x18]
push eax
call dword [0x21164164]
add word [0x2118b278], 0xffff
push edi
mov dword [esp + 0x4c], edi
call sym.mss32.dll__AIL_mem_alloc_lock_4
test eax, eax
mov dword [esp + 0x18], eax
je 0x2112a700
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + edx*4 + 0xc0]
push ebx
push eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi - 4]
push ecx
push edi
push ebp
lea edx, [esp + 0x68]
push edx
call dword [esp + 0x7c]
mov eax, dword [ebp]
sub eax, dword [esp + 0x30]
mov ecx, dword [esi - 4]
cmp ecx, eax
ja 0x2112a4cb
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esi - 4], ecx
mov dword [esi + 0x60], ecx
jmp 0x2112a4e0
sub ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esi - 4], ecx
mov dword [esi + 0x60], 0
jmp 0x2112a4e0
mov eax, dword [ebp]
cmp dword [0x21165710], 0
lea ecx, [esp + 0x4c0]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], ecx
je 0x2112a52e
mov eax, dword [0x2118b20c]
test eax, eax
jne 0x2112a521
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x2112a510
push 0
push 0
push 0
call ebx
test eax, eax
mov dword [0x2118b20c], eax
je 0x2112a510
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x20]
mov edx, dword [0x211656cc]
fild dword [esi]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + ecx*4 + 0xc4]
mov ecx, dword [esi]
test ecx, ecx
push edx
push 0x800
push 0x800
jge 0x2112a559
fadd qword [0x21158410]
mov edx, dword [esp + 0x24e0]
fmul qword [0x21158510]
test edx, edx
fild dword [esp + 0x24e0]
jge 0x2112a577
fadd qword [0x21158410]
fdivp st(1)
lea edx, [esi + 0x68]
add eax, edi
fistp qword [esp + 0xc8]
mov ecx, dword [esp + 0xc8]
push ecx
push edx
mov edx, dword [esp + 0x58]
lea ecx, [esi + 0x64]
push ecx
mov ecx, dword [esp + 0x60]
add ecx, edx
push ecx
lea edx, [esp + 0x64]
push edx
push eax
lea eax, [esi + 0x60]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [esp + 0x88]
cmp dword [0x21165710], 0
je 0x2112a5c9
mov edx, dword [0x2118b20c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x4c0]
sub edx, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x30]
cmp dword [esi - 0xc], 0x11
je 0x2112a5f7
mov ecx, dword [esi - 4]
add dword [ebp], eax
cmp ecx, eax
ja 0x2112a5f2
xor ecx, ecx
jmp 0x2112a5f4
sub ecx, eax
mov dword [esi - 4], ecx
cmp edx, dword [esp + 0x34]
jle 0x2112a601
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x14]
add eax, 1
add esi, 0x78
cmp eax, dword [esp + 0x24d8]
mov dword [esp + 0x14], eax
jl 0x2112a394
mov eax, dword [esp + 0x34]
test eax, eax
mov edi, dword [esp + 0x2c]
je 0x2112a666
mov ecx, dword [0x211656cc]
mov edx, dword [esp + 0x24d4]
push ecx
push edx
push edi
push eax
lea eax, [esp + 0x4d0]
push eax
call dword [esp + 0x74]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
mov ecx, eax
imul ecx, dword [esp + 0x4c]
add edi, ecx
sub ebx, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], ebx
jne 0x2112a340
mov eax, edi
sub eax, dword [esp + 0x24c8]
mov dword [esp + 0x24c8], edi
add dword [esp + 0x24], eax
sub dword [esp + 0x24cc], eax
jne 0x2112a223
mov esi, dword [esp + 0x18]
test esi, esi
je 0x2112a6ef
mov eax, 1
add word [0x2118b278], ax
cmp word [0x2118b270], 0
je 0x2112a6df
cmp word [0x2118b278], ax
je 0x2112a6b8
cmp word [0x2118b274], 0
je 0x2112a6df
mov edx, dword [0x2118b1f8]
test edx, edx
jne 0x2112a6df
call fcn.211120b0
test eax, eax
je 0x2112a6df
mov ecx, dword [0x2118eef8]
push esi
push str.AIL_mem_free_lock_0x_lX__n
call fcn.21111c20
add esp, 8
push esi
call dword [0x21164164]
add word [0x2118b278], 0xffff
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24b4
ret 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24b4
ret 0x18