Function at 0x100c326a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
mov dword [0x101337d8], ebx
jl 0x100c38a6
mov esi, dword [esp + 0x14]
cmp esi, 0xfa0
jl 0x100c38a6
cmp esi, 0xffff
jg 0x100c38a6
cmp edi, 0x400
jg 0x100c38a6
call fcn.100c38b9
mov eax, dword [0x1011b8c4]
mov byte [eax + 0x20], bl
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [0x1011b8c4]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x1011b8c4]
mov ecx, dword [esp + 0x1c]
mov dword [0x101337d8], ebx
mov dword [eax + 0xaf8], 0x100
mov eax, dword [0x1011b8c4]
mov dword [eax + 0xad8], edi
mov eax, dword [0x1011b8c4]
mov dword [eax + 0x38], esi
mov eax, dword [0x1011b8c4]
mov dword [eax + 8], ecx
mov eax, dword [0x1011b8c4]
mov dword [eax + 0xaec], 0x10
mov eax, dword [0x1011b8c4]
mov ebp, 0xff
mov dword [eax + 0x10], ebp
call fcn.100c3b8d
call fcn.100d279b
mov eax, dword [0x1011b8c4]
push dword [eax + 4]
call fcn.100c31b2
mov eax, dword [0x1011b8c4]
mov eax, dword [eax]
push 1
pop edi
mov dword [eax], edi
mov eax, dword [0x1011b8c4]
mov eax, dword [eax]
mov dword [eax + 4], edi
mov eax, dword [0x1011b8c4]
mov byte [eax + 0xc], bl
mov eax, dword [0x1011b8c4]
mov eax, dword [eax]
push esi
call dword [eax + 0x10]
test al, al
pop ecx
je 0x100c38b0
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax]
cmp dword [ecx], ebx
je 0x100c3386
call dword [ecx + 0x30]
cmp al, bl
mov eax, dword [0x1011b8c4]
je 0x100c3386
cmp dword [eax + 4], 2
jne 0x100c3386
dec dword [eax + 0xadc]
mov eax, dword [0x1011b8c4]
mov edx, dword [eax + 0xae8]
cmp dword [eax + 0xadc], edx
lea ecx, [eax + 0xadc]
jle 0x100c33a1
mov dword [ecx], edx
mov eax, dword [0x1011b8c4]
mov edx, dword [eax + 0xadc]
cmp edx, dword [eax + 0xae4]
lea ecx, [eax + 0xadc]
jge 0x100c33bc
mov dword [ecx], ebx
mov eax, dword [0x1011b8c4]
mov edx, dword [eax + 0xae8]
cmp dword [eax + 0xae0], edx
lea ecx, [eax + 0xae0]
jle 0x100c33d7
mov dword [ecx], edx
mov eax, dword [0x1011b8c4]
mov edx, dword [eax + 0xae0]
cmp edx, dword [eax + 0xae4]
lea ecx, [eax + 0xae0]
jge 0x100c33f2
mov dword [ecx], ebx
mov eax, dword [0x1011b8c4]
cmp dword [eax + 0xadc], edi
jge 0x100c3403
mov eax, dword [eax]
mov dword [eax], ebx
mov eax, dword [0x1011b8c4]
cmp dword [eax + 0xae0], edi
jge 0x100c3415
mov eax, dword [eax]
mov dword [eax + 4], ebx
mov eax, dword [0x1011b8c4]
cmp dword [eax + 0x3c], 0xffffffff
jne 0x100c343a
cmp dword [eax + 4], edi
je 0x100c342e
cmp byte [eax + 0xc], bl
jne 0x100c342e
mov dword [eax + 0x3c], 0x32
jmp 0x100c3435
mov dword [eax + 0x3c], 0x64
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x4c], ecx
mov eax, dword [0x1011b8c4]
shl dword [eax + 0x3c], 1
call fcn.100cf321
test al, al
je 0x100c38b0
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0xae0]
add ecx, dword [eax + 0xadc]
push 0x3de
add ecx, dword [eax + 0xad8]
mov esi, str.F:dev_fmodsrc372win_src_fsound.c
mov dword [eax + 0xad4], ecx
mov eax, dword [0x1011b8c4]
mov eax, dword [eax + 0xaf8]
push esi
shl eax, 2
push eax
push ebx
call fcn.100d25e1
mov ecx, dword [0x1011b8c4]
mov dword [ecx + 0xaf0], eax
mov eax, dword [0x1011b8c4]
add esp, 0x10
cmp dword [eax + 0xaf0], ebx
je 0x100c34e9
mov ecx, dword [eax + 0xaec]
add ecx, dword [eax + 0xad4]
push 0x3ea
imul ecx, ecx, 0x1dc
push esi
push ecx
push ebx
call fcn.100d25e1
mov ecx, dword [0x1011b8c4]
mov dword [ecx + 0xaa8], eax
mov eax, dword [0x1011b8c4]
add esp, 0x10
cmp dword [eax + 0xaa8], ebx
jne 0x100c34f8
mov dword [0x101337d8], 0xc
jmp 0x100c38b0
mov dword [eax + 0xac8], ebx
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0xad8]
dec ecx
mov dword [eax + 0xacc], ecx
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0xacc]
inc ecx
mov dword [eax + 0xab0], ecx
mov eax, dword [0x1011b8c4]
mov edx, dword [eax + 0xab0]
mov ecx, dword [eax + 0xadc]
lea ecx, [ecx + edx - 1]
mov dword [eax + 0xab4], ecx
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0xab4]
inc ecx
mov dword [eax + 0xabc], ecx
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0xae0]
mov edx, dword [eax + 0xabc]
lea ecx, [ecx + edx - 1]
mov dword [eax + 0xac0], ecx
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0xabc]
mov dword [eax + 0xac4], ecx
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0xab0]
mov dword [eax + 0xab8], ecx
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0xac8]
mov dword [eax + 0xad0], ecx
mov eax, dword [0x1011b8c4]
xor edi, edi
cmp dword [eax + 0xad4], ebx
jle 0x100c3685
mov dword [esp + 0x18], ebx
mov esi, dword [eax + 0xaa8]
add esi, dword [esp + 0x18]
push esi
mov dword [esi + 0x10], edi
call fcn.100ce68b
mov eax, dword [0x1011b8c4]
cmp edi, dword [eax + 0xad8]
pop ecx
jge 0x100c35dd
push esi
call fcn.100cf81a
jmp 0x100c35e3
mov eax, dword [eax]
push esi
call dword [eax + 0x1c]
pop ecx
fld1
fstp dword [esi + 0x7c]
push 1
pop eax
fld1
push esi
fstp dword [esi + 0xbc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x20], 0xac44
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x24], 0x80
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], eax
mov dword [esi + 0xc0], 0x49742400
call dword [esi + 0x180]
push esi
call dword [esi + 0x190]
push ebp
push esi
call dword [esi + 0x19c]
push 0xac44
push esi
call dword [esi + 0x194]
push ebx
push 0x80
push esi
call dword [esi + 0x1a0]
mov eax, dword [0x1011b8c4]
add dword [esp + 0x3c], 0x1dc
add esp, 0x24
inc edi
cmp edi, dword [eax + 0xad4]
jl 0x100c35b4
mov edi, dword [eax + 0xad4]
mov ecx, dword [eax + 0xaec]
add ecx, edi
cmp edi, ecx
jge 0x100c36ec
mov ecx, edi
imul ecx, ecx, 0x1dc
mov dword [esp + 0x18], ecx
jmp 0x100c36a9
mov ecx, dword [esp + 0x18]
mov esi, dword [eax + 0xaa8]
add esi, ecx
push esi
call fcn.100ce68b
push esi
call fcn.100d1e78
and dword [esi + 0x3c], 0xffffffbf
push esi
mov dword [esi + 0x10], edi
call dword [esi + 0x180]
mov eax, dword [0x1011b8c4]
mov ecx, dword [eax + 0xaec]
add ecx, dword [eax + 0xad4]
add dword [esp + 0x24], 0x1dc
add esp, 0xc
inc edi
cmp edi, ecx
jl 0x100c36a5
cmp dword [eax + 0xad8], ebx
je 0x100c380c
push 0x472
push str.F:dev_fmodsrc372win_src_fsound.c
push 0x1dc
push ebx
call fcn.100d25e1
mov ecx, dword [0x1011b8c4]
mov dword [ecx + 0xaac], eax
mov eax, dword [0x1011b8c4]
mov esi, dword [eax + 0xaac]
mov edi, 0xfffffc18
push esi
mov dword [esi + 0x10], edi
call fcn.100ce68b
mov eax, dword [0x1011b8c4]
push dword [eax + 0xaac]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push esi
call dword [esi + 0x180]
push esi
call dword [esi + 0x190]
push ebp
push esi
call dword [esi + 0x19c]
push dword [esp + 0x3c]
push esi
call dword [esi + 0x194]
push ebx
push 0xffffffffffffffff
push esi
call dword [esi + 0x1a0]
fld1
mov eax, dword [esp + 0x58]
fstp dword [esi + 0xbc]
and eax, 4
shl eax, 0x12
or eax, 0x80084012
mov dword [esi + 0xc0], 0x49742400
add esp, 0x3c
mov esi, eax
call fcn.100c3afe
cmp eax, 9
je 0x100c37ac
call fcn.100c3afe
cmp eax, 8
je 0x100c37ac
or esi, 0x40
jmp 0x100c37af
or esi, 0x20
mov eax, dword [0x1011b8c4]
push ebp
push 0xffffffffffffffff
push ebp
push dword [esp + 0x20]
push esi
push dword [eax + 0x40]
push 0xfffffffffffffffe
call fcn.100c5f98
mov esi, eax
cmp esi, ebx
jne 0x100c37da
mov eax, dword [0x1011b8c4]
mov byte [eax + 0x20], bl
jmp 0x100c38b0
push str.FSOUND_Primary_MixBuffer
push esi
call fcn.100d1c44
mov eax, dword [0x1011b8c4]
mov dword [eax + 0xaf4], esi
mov eax, dword [0x1011b8c4]
pop ecx
pop ecx
mov byte [eax + 0x20], 1
push esi
push edi
call fcn.100c4e35
push 1
push edi
call fcn.100c558b
jmp 0x100c3826
mov dword [eax + 0xaf4], ebx
mov eax, dword [0x1011b8c4]
mov dword [eax + 0xaac], ebx
mov eax, dword [0x1011b8c4]
mov byte [eax + 0x20], 1
call fcn.100d11f0
call fcn.100d0cde
call fcn.100d0b6c
mov eax, dword [0x1011b8c4]
mov esi, dword [eax + 0x157c]
lea ecx, [eax + 0x157c]
cmp esi, ecx
je 0x100c3867
push dword [esi + 0x5d8]
push esi
call fcn.100ca5b2
mov eax, dword [0x1011b8c4]
mov esi, dword [esi]
pop ecx
pop ecx
lea ecx, [eax + 0x157c]
jmp 0x100c3846
cmp dword [eax + 0xaac], ebx
je 0x100c3874
call fcn.100cf66f
call fcn.100cea9b
mov eax, dword [0x1011b8c4]
cmp dword [eax + 4], 0xc
jne 0x100c3888
or byte [eax + 9], 2
call fcn.100c7409
test al, al
jne 0x100c389d
mov dword [0x101337d8], 3
jmp 0x100c38b0
call fcn.100c3a67
mov al, 1
jmp 0x100c38b2
mov dword [0x101337d8], 0xe
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0xc