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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push esi
xor esi, esi
cmp byte [0x9c2188], 0
mov dword [ebp - 0x14], esi
jne 0x81dbcd
push 0xfffffffffffffff6
pop eax
jmp 0x81deeb
push ebx
push edi
push dword [ebp + 0x14]
call fcn.008225bd
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx + 2]
mov byte [ebp - 0xed], al
pop ecx
movzx ecx, al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
mov edi, dword [ecx*4 + 0x9c1f44]
mov cx, word [eax + 8]
mov word [ebp - 0xd8], cx
mov ecx, dword [ebx]
mov dword [ebp - 0x14], esi
mov dword [edi + 4], esi
mov dword [edi + 0x48], esi
mov dword [edi + 0x4c], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x60], ecx
cmp byte [edi + 0x62], 0
mov dword [edi + 8], esi
mov word [edi + 0x46], si
mov word [edi + 0x44], si
mov dword [ebp - 8], esi
jbe 0x81dc64
add eax, 0x18
mov dword [ebp - 4], eax
lea ecx, [edi + 0x64]
lea eax, [edi + 0x28]
jmp 0x81dc3b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
inc dword [ebp - 8]
add dword [ebp - 4], 4
mov dword [ecx - 0x54], esi
mov word [eax + 0xc], si
mov word [eax], si
mov edx, dword [edx]
mov dword [ecx], edx
add ecx, 4
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edi + 0x62]
inc eax
inc eax
cmp dword [ebp - 8], ecx
jl 0x81dc38
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00822548
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x81dee7
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0081ec32
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x18]
push eax
push 0x65
push dword [ebp - 0x10]
call fcn.0081f413
add esp, 0x20
cmp eax, esi
mov dword [ebp - 4], eax
jge 0x81dcb5
mov dword [edi], 0xfffffff7
jmp 0x81dc64
mov ecx, dword [ebp - 0x1c]
mov dword [edi], ecx
movzx ecx, byte [ebx + 2]
push ecx
push eax
call fcn.0081dab6
mov esi, dword [ebp - 4]
mov byte [edi + 0x42], al
mov eax, dword [0x9c21f4]
lea esi, [esi + esi*8]
shl esi, 4
mov dword [ebp - 0x20], esi
add esi, eax
or dword [esi + 0x18], 0xffffffff
and dword [esi + 0x14], 0
mov ax, word [ebx]
mov word [esi + 0x20], ax
mov al, byte [ebx + 3]
mov byte [esi + 0x22], al
mov al, byte [ebx + 2]
pop ecx
mov byte [esi + 0x23], al
cmp byte [ebx + 2], 1
pop ecx
jne 0x81dd0b
mov edx, dword [ebp + 0x14]
mov ax, word [edx + 8]
mov word [esi + 0x1c], ax
jmp 0x81dd15
push esi
call fcn.00821b41
mov edx, dword [ebp + 0x14]
pop ecx
and word [esi + 0x4c], 0
fld dword [0x890bf0]
or word [esi + 0x12], 0xffff
mov eax, dword [ebp + 0x10]
mov cx, word [eax]
mov word [esi + 0x88], cx
mov cx, word [edx + 0xc]
mov word [esi + 0x8c], cx
mov cl, byte [edx + 1]
mov byte [esi + 0x68], cl
mov cl, byte [edx + 5]
mov byte [esi + 0x60], cl
movsx ecx, byte [edx + 5]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x64]
fild dword [ebp - 0xc]
fmul st(1)
fstp dword [ecx]
movsx ax, byte [eax + 6]
xor ecx, ecx
mov byte [esi + 0x26], 0
mov byte [esi + 0x27], 0
mov dword [esi + 0x78], ecx
mov dword [esi + 0x80], ecx
imul eax, eax, 0x64
mov word [esi + 0x86], ax
movsx eax, byte [edx]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul st(1)
fstp dword [esi + 0x38]
movzx eax, byte [ebx + 2]
test eax, eax
fstp st(0)
jle 0x81de39
mov edx, dword [ebp + 0x10]
fldz
mov dx, word [edx + ecx*2 + 0xc]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
sub dx, word [eax*2 + 0x9c21f4]
movsx eax, word [esi + ecx*2 + 4]
mov word [esi + ecx*2 + 0x50], dx
mov dx, word [ebp - 8]
lea eax, [eax + eax*8]
shl eax, 4
add eax, dword [0x9c21f4]
mov word [eax + 0x24], dx
mov edx, dword [ebp + 0x14]
mov dl, byte [edx + 4]
mov byte [eax + 0x5f], dl
mov edx, dword [ebp + 0x10]
mov dl, byte [edx + 3]
mov byte [eax + 0x2b], dl
mov edx, dword [esi + 0x38]
fstp dword [eax + 0x30]
mov dword [eax + 0x38], edx
xor edx, edx
mov dword [eax + 0x74], edx
mov byte [eax + 0x5e], dl
mov byte [eax + 0x5d], dl
mov dword [eax + 0x3c], edx
mov dword [eax + 0x70], edx
mov dword [eax + 0x7c], edx
mov byte [eax + 0x5c], 1
mov dword [eax + 0x40], 0x7f0000
mov dword [eax + 0x44], DirectSoundCreate
fld dword [0x90bd14]
fmul dword [eax + 0x38]
cmp ecx, 5
sete dl
and word [eax + 0x1e], 0
fstp dword [eax + 0x48]
mov byte [eax + 0x4e], dl
movzx eax, byte [ebx + 2]
inc ecx
cmp ecx, eax
jl 0x81dd98
mov edx, dword [ebp + 0x14]
cmp byte [ebx + 2], 1
jne 0x81de47
mov ax, word [edx + 0xa]
mov word [esi + 0x1e], ax
and dword [ebp - 8], 0
cmp byte [ebx + 2], 0
jbe 0x81de79
lea ecx, [esi + 0x50]
movsx eax, word [ecx - 0x4c]
mov dx, word [ecx]
lea eax, [eax + eax*8]
shl eax, 4
add eax, dword [0x9c21f4]
add word [eax + 0x1c], dx
inc dword [ebp - 8]
movzx eax, byte [ebx + 2]
inc ecx
inc ecx
cmp dword [ebp - 8], eax
jl 0x81de54
push dword [ebp - 4]
and word [esi + 0x8a], 0
call fcn.008219bb
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
movzx ecx, word [eax + 0x16]
push ebx
push ecx
movzx ecx, word [eax + 0x14]
movzx eax, word [eax + 0xe]
push ecx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.008224de
add esp, 0x20
test eax, eax
mov dword [ebp - 0xc], eax
jge 0x81dee7
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x81dedb
mov esi, dword [ebp - 0x20]
add esi, 4
mov dword [ebp - 4], eax
mov eax, dword [0x9c21f4]
movsx eax, word [esi + eax]
push eax
call fcn.0081f6c3
inc esi
inc esi
dec dword [ebp - 4]
pop ecx
jne 0x81dec4
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
xor esi, esi
jmp 0x81dc64
mov eax, dword [edi]
pop edi
pop ebx
pop esi
leave
ret