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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, eax
push ebx
imul ecx, edx
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x2c], ecx
test edx, edx
lea esi, [eax*4]
lea ebx, [eax + eax]
jle 0x4ad9e1
shl esi, 2
mov dword [esp + 0x50], esi
lea esi, [ebp + ecx*4]
mov dword [esp + 0x1c], esi
lea esi, [edi + ebx*4]
lea ebx, [ebp + ecx*8]
lea edx, [eax*4]
mov dword [esp + 0x18], ebx
lea ebx, [ecx + ecx*2]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edi
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x24], ebx
lea ebx, [eax + eax]
lea ebx, [edi + ebx*8 - 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x30], ebx
jmp 0x4ad93f
mov esi, dword [esp + 0x4c]
fld dword [esi - 4]
mov ebx, dword [esp + 0x10]
fadd st(0), st(0)
fld dword [esi]
fadd st(0), st(0)
fld dword [ebx]
mov ebx, dword [esp + 0x14]
fsub dword [ebx]
mov ebx, dword [esp + 0x10]
fld dword [ebx]
mov ebx, dword [esp + 0x14]
fadd dword [ebx]
mov ebx, dword [esp + 0x20]
fld st(0)
fadd st(4)
fstp dword [ebx]
mov ebx, dword [esp + 0x1c]
fld st(1)
fsub st(3)
fstp dword [ebx]
mov ebx, dword [esp + 0x18]
fsub st(3)
fstp dword [ebx]
mov ebx, dword [esp + 0x24]
fadd st(1)
fstp dword [ebx]
mov ebx, dword [esp + 0x20]
add ebx, edx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1c]
add ebx, edx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x18]
add ebx, edx
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
add ebx, edx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x50]
add esi, ebx
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x14]
add esi, ebx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x10]
add esi, ebx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x30]
fstp st(0)
dec esi
fstp st(0)
mov dword [esp + 0x30], esi
jne 0x4ad93b
mov edx, dword [esp + 0x64]
cmp eax, 2
jl 0x4add70
je 0x4adcb8
xor esi, esi
cmp edx, esi
mov dword [esp + 0x10], esi
jle 0x4adca0
lea edx, [eax + eax*2]
mov dword [esp + 0x20], esi
mov dword [esp + 0x54], edx
lea edx, [eax*4]
sub edx, eax
neg edx
mov dword [esp + 0x58], edx
lea edx, [ecx + ecx*2]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x10]
cmp eax, 2
lea ebx, [edx*4]
lea edx, [ebx + eax*2]
lea esi, [edx + eax*2]
mov dword [esp + 0x4c], esi
jle 0x4adc67
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
lea ecx, [edi + edx*4]
lea edx, [edi + ebx*4]
sub ebx, ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x4c], ebx
lea edi, [edi + eax*4]
lea ebx, [ebp + ebx*4]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x4c]
add ebx, ebp
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x78]
mov esi, ecx
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x2c]
add ebx, ebx
mov eax, dword [esp + 0x70]
mov ebp, ebx
mov ebx, dword [esp + 0x20]
sub ebp, ebx
mov ebx, dword [esp + 0x10]
shl ebx, 2
add ebp, ebx
mov ebx, dword [esp + 0x6c]
add eax, 4
lea ebx, [ebx + ebp*4]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
shl ebx, 2
add ebp, ebx
mov ebx, dword [esp + 0x6c]
lea ebx, [ebx + ebp*4]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x74]
sub ebx, ebp
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x78]
sub ebx, ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x74]
sub ebx, ebp
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x60]
add ebx, 0xfffffffd
shr ebx, 1
inc ebx
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x24]
add edx, 8
add ebp, 8
add ecx, 8
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x28]
add ebp, 8
sub esi, 8
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x18]
fld dword [edx]
add ebp, 8
fadd dword [edi - 8]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x1c]
fld dword [edx]
fsub dword [edi - 8]
add ebp, 8
sub edi, 8
fld dword [ecx]
fsub dword [esi]
fld dword [ecx]
fadd dword [esi]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x24]
fstp dword [esp + 0x34]
fld dword [edx - 4]
fsub dword [edi - 4]
fstp dword [esp + 0x14]
fld dword [edx - 4]
fadd dword [edi - 4]
fld dword [ecx - 4]
fsub dword [esi - 4]
fstp dword [esp + 0x38]
fld dword [ecx - 4]
fadd dword [esi - 4]
fld st(1)
fadd st(1)
fstp dword [ebp - 4]
fxch st(1)
fsub st(1)
fstp dword [esp + 0x40]
fstp st(0)
fld st(0)
fadd st(2)
fstp dword [ebp]
mov ebp, dword [esp + 0x28]
fsubp st(1)
fld dword [esp + 0x14]
fsub dword [esp + 0x34]
fld dword [esp + 0x14]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fadd st(3)
fxch st(3)
fsub dword [esp + 0x38]
fstp dword [esp + 0x38]
fld st(0)
fmul dword [eax - 4]
fld st(3)
fmul dword [eax]
fsubp st(1)
fstp dword [ebp - 4]
fmul dword [eax]
fxch st(2)
fmul dword [eax - 4]
faddp st(2)
fxch st(1)
fstp dword [ebp]
mov ebp, dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul dword [ebx + ebp]
mov ebp, dword [esp + 0x44]
fld st(1)
fmul dword [eax + ebp]
mov ebp, dword [esp + 0x18]
fsubp st(1)
fstp dword [ebp - 4]
mov ebp, dword [esp + 0x3c]
fmul dword [ebx + ebp]
mov ebp, dword [esp + 0x44]
add eax, 8
fld dword [esp + 0x40]
fmul dword [eax + ebp - 8]
mov ebp, dword [esp + 0x18]
add ebx, 8
faddp st(1)
fstp dword [ebp]
fld dword [esp + 0x34]
fmul dword [ebx - 8]
mov ebp, dword [esp + 0x48]
fld dword [esp + 0x38]
fmul dword [eax + ebp - 8]
mov ebp, dword [esp + 0x1c]
fsubp st(1)
fstp dword [ebp - 4]
fld dword [esp + 0x38]
fmul dword [ebx - 8]
mov ebp, dword [esp + 0x48]
fld dword [esp + 0x34]
fmul dword [eax + ebp - 8]
mov ebp, dword [esp + 0x1c]
faddp st(1)
fstp dword [ebp]
mov ebp, dword [esp + 0x4c]
dec ebp
mov dword [esp + 0x4c], ebp
jne 0x4adb01
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x54]
add ebx, edx
mov edx, dword [esp + 0x58]
add esi, edx
mov edx, dword [esp + 0x50]
dec edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], edx
jne 0x4ada27
mov edx, dword [esp + 0x64]
mov esi, eax
and esi, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4adcaf
dec esi
or esi, 0xfffffffe
inc esi
cmp esi, 1
je 0x4add70
test edx, edx
lea esi, [eax + eax*2]
jle 0x4add70
lea edx, [eax*4]
lea ebx, [eax*4]
shl edx, 2
mov dword [esp + 0x60], edx
lea edx, [ebp + eax*4 - 4]
mov dword [esp + 0x78], edx
lea edx, [ebx + edi]
lea esi, [edi + esi*4]
lea edi, [eax + ecx - 1]
lea edi, [ebp + edi*4]
mov dword [esp + 0x6c], edi
lea edi, [eax + ecx*2 - 1]
lea eax, [eax + ecx*2 - 1]
add ecx, eax
lea edi, [ebp + edi*4]
lea eax, [ebp + ecx*4]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x78]
fld dword [esi]
fadd dword [edx]
fld dword [esi]
fsub dword [edx]
fld dword [edx - 4]
fsub dword [esi - 4]
mov ebp, dword [esp + 0x6c]
fstp dword [esp + 0x14]
fld dword [esi - 4]
fadd dword [edx - 4]
fadd st(0), st(0)
fstp dword [ecx]
fld dword [esp + 0x14]
fsub st(2)
add ecx, ebx
fmul dword [0x4c9e44]
fstp dword [ebp]
add ebp, ebx
fadd st(0), st(0)
mov dword [esp + 0x6c], ebp
mov ebp, dword [esp + 0x60]
add edx, ebp
add esi, ebp
mov ebp, dword [esp + 0x64]
fstp dword [edi]
add edi, ebx
fadd dword [esp + 0x14]
fmul dword [0x4c9e44]
fchs
fstp dword [eax]
add eax, ebx
dec ebp
mov dword [esp + 0x64], ebp
jne 0x4add10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret