Function at 0x497f7c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb60
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
push edi
xor edi, edi
push edi
push 0x583dc4
mov ecx, ebx
call dword [eax + 0x20]
mov eax, dword [ebx]
push 1
push dword [ebp + 0x10]
mov ecx, ebx
call dword [eax + 0x20]
fldz
mov eax, dword [ebx]
push ecx
push ecx
mov ecx, ebx
fstp qword [esp]
call dword [eax + 0x24]
lea eax, [ebp - 0x74c]
push eax
push str.dss322
push ebx
call fcn.00405ae3
test al, al
jne 0x497fd8
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x498267
push 8
push edi
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x497fca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DSSInitDecoder
push eax
mov dword [ebp - 8], 2
call esi
push str.DSSStartDecoding
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
call esi
push str.DSSDecodeToPCM
push dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
call esi
push str.DSSActiveFolder
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call esi
push str.DSSActiveFile
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x30], eax
je 0x498256
cmp dword [ebp - 0xc], edi
je 0x498256
cmp dword [ebp - 0x1c], edi
je 0x498256
cmp dword [ebp - 0x10], edi
je 0x498256
cmp eax, edi
je 0x498256
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x18], 0xa0065
call dword [ebp + 0xc]
test eax, eax
pop ecx
pop ecx
jne 0x498256
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xb5c]
call fcn.00401963
lea eax, [ebp - 0xb5c]
push edi
push eax
call dword [ebp - 0x10]
pop ecx
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x954]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x954]
push eax
lea edi, [ebp - 0x138]
call fcn.0040141f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, edi
push eax
call dword [ebp - 0x30]
add esp, 0xc
test eax, eax
je 0x4980ec
mov eax, dword [ebx]
push str.Unable_to_open_DSS_file._r_nThis_means_the_file_might_not_be_a_true_DSS_file_or_the_file_is_corrupt.
mov ecx, ebx
call dword [eax + 0x1c]
jmp 0x498256
mov eax, dword [ebp + 0x10]
add eax, 0x208
push eax
lea esi, [ebp + 0x10]
call fcn.00424315
push 1
mov dx, 0x10
mov esi, 0x2b11
lea eax, [ebp - 0x544]
call fcn.00426fb7
cmp byte [ebp + 0xc], 2
jne 0x498131
and dword [ebp - 0x18], 0xffffffbf
mov dword [ebp - 0x540], 0x1f40
mov dword [ebp - 0x53c], 0x3e80
lea eax, [ebp + 0x10]
push eax
push 0xffffffffffffffd9
pop esi
lea ecx, [ebp - 0x544]
call fcn.004e3585
cmp byte [ebp + 0xc], 3
jne 0x49814d
or dword [ebp - 0x18], 0x40
xor esi, esi
push esi
mov dword [ebp - 0x10], esi
call dword [ebp - 0xc]
test eax, eax
pop ecx
je 0x49816c
mov eax, dword [ebx]
push str.Unable_to_start_decoding_DSS_file.
mov ecx, ebx
call dword [eax + 0x1c]
jmp 0x498247
fldz
mov eax, dword [ebp - 0x28]
cmp eax, esi
fstp qword [ebp - 0x24]
jne 0x49817b
xor eax, eax
inc eax
test eax, eax
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
jge 0x49818b
fadd qword [0x5997e0]
fstp qword [ebp - 0x34]
jmp 0x498207
cmp dword [ebp - 8], esi
je 0x498223
cmp dword [ebp - 0xc], esi
fld qword [ebp - 0x24]
je 0x4981bc
cmp byte [ebp + 0xc], 3
fadd qword [0x5998c0]
mov edi, 0x1e0
fstp qword [ebp - 0x24]
jne 0x4981ca
mov edi, 0x294
jmp 0x4981ca
fadd qword [0x599998]
mov edi, 0x210
fstp qword [ebp - 0x24]
push edi
push dword [ebp - 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00401eb7
mov eax, dword [ebx]
add dword [ebp - 0x10], edi
mov ecx, ebx
call dword [eax]
test al, al
jne 0x49826e
fld qword [ebp - 0x34]
fcomp qword [ebp - 0x24]
fnstsw ax
test ah, 0x41
jnp 0x498223
fld qword [ebp - 0x24]
mov eax, dword [ebx]
fdiv qword [ebp - 0x34]
push ecx
push ecx
mov ecx, ebx
fstp qword [esp]
call dword [eax + 0x24]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [ebp - 0x1c]
cmp eax, 0xffffffff
pop ecx
pop ecx
jg 0x498190
mov dword [ebp - 8], esi
push esi
push esi
push esi
xor eax, eax
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x544]
call fcn.004e3585
cmp dword [ebp + 0x10], 0xffffffff
je 0x498256
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
mov dword [ebp - 8], 1
jmp 0x498226