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

Disassembly:
mov eax, 0x4f338d
call fcn.004eadec
push ecx
cmp dword [ebp + 0xc], 0
jne 0x49de50
mov eax, 0x80004003
jmp 0x49e18b
push esi
push edi
mov edi, dword [ebp + 8]
push 0x28
lea esi, [edi + 0x88]
pop eax
call fcn.0049d878
test eax, eax
jne 0x49de71
mov eax, 0x8007000e
jmp 0x49e189
mov eax, dword [esi]
mov cx, word [ebp + 0x18]
push ebx
push dword [ebp + 0x20]
mov word [eax], 3
push dword [ebp + 0x1c]
mov eax, dword [esi]
mov word [eax + 2], cx
mov eax, dword [esi]
push eax
lea eax, [edi + 0x14]
push eax
lea ecx, [edi + 8]
push ecx
lea ebx, [edi + 4]
push ebx
push 3
push dword [ebp + 0xc]
call fcn.0049dac1
test eax, eax
jl 0x49e188
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
mov dword [ebp + 0x18], eax
jge 0x49dedb
cmp dword [ebp - 0x10], 0
je 0x49ded3
push dword [ebp - 0x10]
call sub.ole32.dll_CoTaskMemFree
mov eax, dword [ebp + 0x18]
jmp 0x49e188
mov eax, dword [ebx]
mov edx, dword [eax]
lea ecx, [edi + 0x78]
push ecx
push eax
mov dword [ebp + 0x1c], ecx
call dword [edx + 0x1c]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0x18], eax
jge 0x49def8
cmp dword [ebp - 0x10], ebx
jmp 0x49dec9
push dword [ebp - 0x10]
call fcn.0049d8b7
test eax, eax
pop ecx
je 0x49df24
mov ebx, dword [ebp - 0x10]
mov edi, esi
call fcn.0040480c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov edi, dword [ebp + 8]
add ebx, 0x7c
mov dword [ebp + 0xc], ebx
mov dword [ebx], eax
jmp 0x49df9d
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x49e176
mov dword [ebp + 0x20], ebx
mov ecx, dword [eax]
lea ebx, [edi + 0x7c]
push ebx
lea edx, [ebp + 0x20]
push edx
push eax
mov dword [ebp + 0xc], ebx
call dword [ecx + 0x10]
test eax, eax
mov dword [ebp + 0x18], eax
jl 0x49dec5
mov eax, dword [esi]
mov ax, word [eax + 0xc]
cmp ax, 1
jbe 0x49df76
mov ecx, dword [ebx]
movzx eax, ax
mov dword [ebp + 0x18], eax
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
test edx, edx
je 0x49df76
sub ecx, edx
add ecx, dword [ebp + 0x18]
mov eax, ebx
mov dword [eax], ecx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x20]
ja 0x49df83
mov eax, dword [ebp + 0x20]
push eax
mov dword [ecx], eax
lea eax, [edi + 0xc]
push eax
call sym.TTPlayer.exe_CreateSoundBuffer
test eax, eax
mov dword [ebp + 0x18], eax
jl 0x49dec5
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x49dfb4
mov ecx, dword [esi]
cmp eax, dword [ecx + 4]
je 0x49dfb4
mov dword [ebp + 0x20], 1
jmp 0x49dfb8
and dword [ebp + 0x20], 0
mov eax, dword [esi]
call fcn.0049d909
test eax, eax
je 0x49dfd0
mov eax, dword [esi]
cmp word [eax + 0xe], 0x40
jne 0x49dfd0
xor ecx, ecx
jmp 0x49dfd3
xor ecx, ecx
inc ecx
test ecx, ecx
lea eax, [edi + 0x90]
mov dword [eax], ecx
jne 0x49dfea
cmp dword [ebp + 0x20], ecx
je 0x49dfea
mov dword [eax], 1
cmp dword [eax], 0
je 0x49e16a
push dword [ebx]
lea eax, [edi + 0x10]
push eax
call sym.TTPlayer.exe_CreateSoundBuffer
test eax, eax
mov dword [ebp + 0x18], eax
jl 0x49dec5
mov eax, dword [esi]
call fcn.0049d8d6
test eax, eax
je 0x49e01c
mov dword [edi], 0x49d4d0
jmp 0x49e034
mov eax, dword [esi]
mov ax, word [eax + 0xe]
sub ax, 0x20
neg ax
sbb eax, eax
not eax
and eax, 0x49d810
mov dword [edi], eax
mov ebx, dword [esi]
add edi, 0x8c
mov dword [ebp + 0x1c], edi
call fcn.0040480c
cmp dword [ebp + 0x20], 0
mov ebx, edi
mov eax, dword [ebx]
mov word [eax], 3
mov eax, dword [ebx]
mov word [eax + 0xe], 0x40
je 0x49e0ae
push dword [ebp + 0x14]
call sub.ttpcomm.dll_Ordinal_102
mov edi, eax
test edi, edi
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax + 0x3c], edi
je 0x49e0ae
cmp dword [ebp + 0x14], 1
mov edx, dword [ebx]
mov eax, dword [edi]
sete cl
push ecx
movzx ecx, word [edx + 2]
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [edx + 4]
call dword [eax + 4]
test al, al
je 0x49e09a
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
jmp 0x49e0ae
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x49e0aa
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [edi + 0x3c], 0
mov ecx, dword [ebx]
movzx edx, word [ecx + 2]
movzx eax, word [ecx + 0xe]
imul eax, edx
cdq
push 8
pop edi
idiv edi
xor edx, edx
mov word [ecx + 0xc], ax
mov eax, dword [ebx]
movzx ecx, word [eax + 0xc]
imul ecx, dword [eax + 4]
mov dword [eax + 8], ecx
mov eax, dword [esi]
movzx ecx, word [eax + 0xe]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
shl eax, 3
shr ecx, 3
div ecx
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
mov dword [eax + 0x80], edi
je 0x49e167
add eax, 0x28
call fcn.00499322
test eax, eax
jne 0x49e118
cmp dword [ebp - 0x10], eax
je 0x49e111
push dword [ebp - 0x10]
call sub.ole32.dll_CoTaskMemFree
mov eax, 0x8007000e
jmp 0x49e188
mov eax, dword [ebx]
fild dword [ebp + 0x10]
movzx edi, word [eax + 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
jge 0x49e136
fadd qword [0x504338]
mov esi, dword [ebp + 8]
fdivp st(1)
mov eax, dword [esi + 0x80]
xor edx, edx
div edi
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
fadd qword [0x504220]
fadd qword [0x504240]
fmulp st(1)
call fcn.004ec888
imul eax, edi
mov dword [esi + 0x80], eax
mov edi, dword [ebp + 8]
and dword [edi + 0x84], 0
jmp 0x49dec5
cmp dword [ebp - 0x10], ebx
je 0x49e183
push dword [ebp - 0x10]
call sub.ole32.dll_CoTaskMemFree
mov eax, 0x80004005
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x1c