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

Disassembly:
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push esi
push edi
lea ebx, [ebp + 0xc0]
lea edi, [ebp + 4]
mov ecx, 0x2f
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov byte [esp + 0x60], 0
mov word [ebp + 0x17e], di
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edi
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], edi
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x20]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
mov ecx, dword [ebp]
mov dword [esp + 0x38], edx
mov dword [esp + 0x38], DirectSoundCreate
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call fcn.00670279
mov esi, eax
cmp esi, 1
jne 0x66eee3
cmp dword [esp + 0x68], edi
je 0x66ee73
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x10]
push edx
push eax
lea eax, [ebp + 4]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [ebp]
call fcn.006702b2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp edx, eax
jne 0x66ee8b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x66eeb6
mov al, byte [esp + 0x60]
test al, al
je 0x66eea8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x58]
call fcn.005fa851
jmp 0x66eeac
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x54]
call fcn.0066ea40
mov ecx, dword [esp + 0x18]
inc word [ebp + 0x17e]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp]
push ebx
push eax
call fcn.00670279
mov esi, eax
cmp esi, 1
je 0x66ee52
cmp esi, 3
jne 0x66ef2c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x66ef00
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp edx, eax
je 0x66ef2c
mov al, byte [esp + 0x60]
test al, al
je 0x66ef1e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.005fa851
push eax
jmp 0x66ef23
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x54]
call fcn.0066ea40
cmp esi, 2
jne 0x66efc3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x6c]
sub eax, ecx
mov ecx, dword [edi + 8]
mov ebx, dword [edi]
sub ecx, ebx
cmp eax, ecx
jle 0x66efc7
mov eax, dword [esp + 0x78]
mov ecx, dword [ebp + 0x120]
push eax
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
lea eax, [ebp + 0x14c]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x78]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x66ef8c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp edx, eax
je 0x66efc7
mov al, byte [esp + 0x60]
test al, al
je 0x66efb3
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.005fa851
push eax
lea ecx, [esp + 0x54]
call fcn.0066ea40
jmp 0x66efc7
lea edx, [esp + 0x10]
lea ecx, [esp + 0x50]
push edx
call fcn.0066ea40
jmp 0x66efc7
mov edi, dword [esp + 0x6c]
cmp esi, 4
jne 0x66f02f
mov ecx, dword [ebp + 0x15c]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, dword [edi + 4]
mov ecx, dword [edi]
and eax, 0xffff
mov dword [esp + 0x30], ecx
add eax, edx
mov dword [esp + 0x34], edx
cmp edx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
je 0x66f02f
mov bl, byte [esp + 0x60]
test bl, bl
je 0x66f02b
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x58]
call fcn.005fa851
mov edi, dword [eax]
mov dword [esp + 0x50], edi
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov eax, dword [eax + 0xc]
jmp 0x66f03f
mov edi, ecx
jmp 0x66f03f
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x74]
cmp esi, 3
mov dword [ebx], edi
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
jne 0x66f05e
inc word [ebp + 0x17e]
cmp esi, esi
je 0x66f067
test esi, esi
mov eax, 1
jne 0x66f069
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x14