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

Disassembly:
sub esp, 0x5c
mov eax, ecx
push ebx
imul eax, edx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov dword [esp + 0x1c], edx
test edx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x34], eax
lea esi, [ecx*4]
lea edi, [ecx + ecx]
jle 0x4e4f3f
shl esi, 2
mov dword [esp + 0x60], esi
lea esi, [ebx + eax*4]
mov dword [esp + 0x24], esi
lea esi, [ebp + edi*4]
lea edi, [ebx + eax*8]
lea edx, [ecx*4]
mov dword [esp + 0x2c], edi
lea edi, [eax + eax*2]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebp
lea edi, [ebx + edi*4]
mov dword [esp + 0x30], edi
lea edi, [ecx + ecx]
lea edi, [ebp + edi*8 - 4]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
jmp 0x4e4e8d
mov esi, dword [esp + 0x58]
fld dword [esi - 4]
fadd st(0), st(0)
fld dword [esi]
mov edi, dword [esp + 0x20]
fadd st(0), st(0)
fstp dword [esp + 0x14]
fld dword [edi]
mov edi, dword [esp + 0x18]
fsub dword [edi]
mov edi, dword [esp + 0x20]
fstp dword [esp + 0x10]
fld dword [edi]
mov edi, dword [esp + 0x18]
fadd dword [edi]
mov edi, dword [esp + 0x28]
fld st(0)
fadd st(2)
fstp dword [edi]
fld dword [esp + 0x10]
fsub dword [esp + 0x14]
mov edi, dword [esp + 0x24]
fstp dword [edi]
mov edi, dword [esp + 0x2c]
fsub st(1)
fstp dword [edi]
mov edi, dword [esp + 0x30]
fstp st(0)
fld dword [esp + 0x10]
fadd dword [esp + 0x14]
fstp dword [edi]
mov edi, dword [esp + 0x28]
add edi, edx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x24]
add edi, edx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x2c]
add edi, edx
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x30]
add edi, edx
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x60]
add esi, edi
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x18]
add esi, edi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x20]
add esi, edi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x38]
dec esi
mov dword [esp + 0x38], esi
jne 0x4e4e89
mov edx, dword [esp + 0x1c]
cmp ecx, 2
jl 0x4e52e7
je 0x4e5228
xor esi, esi
cmp edx, esi
mov dword [esp + 0x18], esi
jle 0x4e5210
lea edx, [ecx + ecx*2]
mov dword [esp + 0x28], esi
mov dword [esp + 0x64], edx
lea edx, [ecx*4]
sub edx, ecx
neg edx
mov dword [esp + 0x68], edx
lea edx, [eax + eax*2]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x18]
shl edx, 2
cmp ecx, 2
lea esi, [edx + ecx*2]
lea edi, [esi + ecx*2]
mov dword [esp + 0x58], edi
jle 0x4e51d7
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x4c], ecx
lea edi, [ebp + edx*4]
mov ecx, edx
mov edx, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x58], ecx
lea esi, [ebp + esi*4]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [esp + 0x74]
lea ebp, [ebp + eax*4]
mov eax, dword [esp + 0x78]
lea edx, [ecx + edx*4]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], edx
add eax, 4
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x28]
sub edx, ecx
mov ecx, dword [esp + 0x18]
shl ecx, 2
add edx, ecx
mov ecx, dword [esp + 0x74]
mov ebx, esi
lea edx, [ecx + edx*4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x38]
shl ecx, 2
add edx, ecx
mov ecx, dword [esp + 0x74]
lea edx, [ecx + edx*4]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x78]
sub ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x80]
sub ecx, edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x7c]
sub ecx, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x5c]
dec ecx
shr ecx, 1
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
add edi, 8
add edx, 8
add esi, 8
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
add edx, 8
sub ebx, 8
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
fld dword [edi]
add edx, 8
fadd dword [ebp - 8]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
fld dword [edi]
fsub dword [ebp - 8]
add edx, 8
sub ebp, 8
fld dword [esi]
fsub dword [ebx]
fld dword [esi]
fadd dword [ebx]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x30]
fstp dword [esp + 0x14]
fld dword [edi - 4]
fsub dword [ebp - 4]
fstp dword [esp + 0x10]
fld dword [edi - 4]
fadd dword [ebp - 4]
fld dword [esi - 4]
fsub dword [ebx - 4]
fstp dword [esp + 0x3c]
fld dword [esi - 4]
fadd dword [ebx - 4]
fld st(1)
fadd st(1)
fstp dword [edx - 4]
fxch st(1)
fsub st(1)
fstp dword [esp + 0x4c]
fstp st(0)
fld st(0)
fadd st(2)
fstp dword [edx]
fxch st(1)
fsub st(1)
mov edx, dword [esp + 0x2c]
fstp dword [esp + 0x44]
fstp st(0)
fld dword [esp + 0x10]
fsub dword [esp + 0x14]
fstp dword [esp + 0x40]
fld dword [esp + 0x10]
fadd dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [esp + 0x3c]
fadd st(1)
fstp dword [esp + 0x14]
fsub dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul dword [eax - 4]
fld dword [esp + 0x14]
fmul dword [eax]
fsubp st(1)
fstp dword [edx - 4]
fld dword [esp + 0x40]
fmul dword [eax]
fld dword [esp + 0x14]
fmul dword [eax - 4]
faddp st(1)
fstp dword [edx]
mov edx, dword [esp + 0x48]
fld dword [esp + 0x4c]
fmul dword [edx + ecx]
mov edx, dword [esp + 0x50]
fld dword [esp + 0x44]
fmul dword [edx + eax]
mov edx, dword [esp + 0x20]
fsubp st(1)
fstp dword [edx - 4]
mov edx, dword [esp + 0x48]
add eax, 8
fld dword [esp + 0x44]
fmul dword [edx + ecx]
mov edx, dword [esp + 0x50]
add ecx, 8
fld dword [esp + 0x4c]
fmul dword [edx + eax - 8]
mov edx, dword [esp + 0x20]
faddp st(1)
fstp dword [edx]
fld dword [esp + 0x10]
fmul dword [ecx - 8]
mov edx, dword [esp + 0x54]
fld st(1)
fmul dword [edx + eax - 8]
mov edx, dword [esp + 0x24]
fsubp st(1)
fstp dword [edx - 4]
mov edx, dword [esp + 0x54]
fmul dword [ecx - 8]
fld dword [esp + 0x10]
fmul dword [edx + eax - 8]
mov edx, dword [esp + 0x24]
faddp st(1)
fstp dword [edx]
mov edx, dword [esp + 0x58]
dec edx
mov dword [esp + 0x58], edx
jne 0x4e5063
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
add edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x64]
add edi, edx
mov edx, dword [esp + 0x68]
add esi, edx
mov edx, dword [esp + 0x60]
dec edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x60], edx
jne 0x4e4f85
mov edx, dword [esp + 0x1c]
mov esi, ecx
and esi, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4e521f
dec esi
or esi, 0xfffffffe
inc esi
cmp esi, 1
je 0x4e52e7
test edx, edx
lea esi, [ecx + ecx*2]
jle 0x4e52e7
lea edx, [ecx*4]
lea edi, [ecx*4]
shl edx, 2
mov dword [esp + 0x7c], edx
lea edx, [ebx + ecx*4 - 4]
mov dword [esp + 0x78], edx
lea edx, [edi + ebp]
lea esi, [ebp + esi*4]
lea ebp, [ecx + eax - 1]
lea ebp, [ebx + ebp*4]
mov dword [esp + 0x74], ebp
lea ebp, [ecx + eax*2 - 1]
lea ecx, [ecx + eax*2 - 1]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x78]
lea ebp, [ebx + ebp*4]
lea eax, [ebx + eax*4]
fld dword [esi]
fadd dword [edx]
fld dword [esi]
fsub dword [edx]
fld dword [edx - 4]
fsub dword [esi - 4]
mov ebx, dword [esp + 0x74]
fstp dword [esp + 0x10]
fld dword [esi - 4]
fadd dword [edx - 4]
fadd st(0), st(0)
fstp dword [ecx]
fld dword [esp + 0x10]
fsub st(2)
add ecx, edi
fmul dword [0x53b8b4]
fstp dword [ebx]
add ebx, edi
fadd st(0), st(0)
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x7c]
add edx, ebx
add esi, ebx
mov ebx, dword [esp + 0x80]
fstp dword [ebp]
add ebp, edi
fadd dword [esp + 0x10]
fmul dword [0x53b8b4]
fchs
fstp dword [eax]
add eax, edi
dec ebx
mov dword [esp + 0x80], ebx
jne 0x4e5281
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14