Function at 0x46ca2a
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 str.DSS
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.00402374
test al, al
jne 0x46ca86
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x46cd15
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 0x46ca78
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 0x46cd04
cmp dword [ebp - 0xc], edi
je 0x46cd04
cmp dword [ebp - 0x1c], edi
je 0x46cd04
cmp dword [ebp - 0x10], edi
je 0x46cd04
cmp eax, edi
je 0x46cd04
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 0x46cd04
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xb5c]
call fcn.0040162b
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.00401584
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 0x46cb9a
mov eax, dword [ebx]
push str.DSS____._r_n____DSS_________.
mov ecx, ebx
call dword [eax + 0x1c]
jmp 0x46cd04
mov eax, dword [ebp + 0x10]
add eax, 0x208
push eax
lea esi, [ebp + 0x10]
call fcn.00447609
push 1
mov dx, 0x10
mov esi, 0x2b11
lea eax, [ebp - 0x544]
call fcn.00406372
cmp byte [ebp + 0xc], 2
jne 0x46cbdf
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.0055ac00
cmp byte [ebp + 0xc], 3
jne 0x46cbfb
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 0x46cc1a
mov eax, dword [ebx]
push str.DSS_____.
mov ecx, ebx
call dword [eax + 0x1c]
jmp 0x46ccf5
fldz
mov eax, dword [ebp - 0x28]
cmp eax, esi
fstp qword [ebp - 0x24]
jne 0x46cc29
xor eax, eax
inc eax
test eax, eax
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
jge 0x46cc39
fadd qword [0x60d1e8]
fstp qword [ebp - 0x34]
jmp 0x46ccb5
cmp dword [ebp - 8], esi
je 0x46ccd1
cmp dword [ebp - 0xc], esi
fld qword [ebp - 0x24]
je 0x46cc6a
cmp byte [ebp + 0xc], 3
fadd qword [0x60d490]
mov edi, 0x1e0
fstp qword [ebp - 0x24]
jne 0x46cc78
mov edi, 0x294
jmp 0x46cc78
fadd qword [0x60d5f8]
mov edi, 0x210
fstp qword [ebp - 0x24]
push edi
push dword [ebp - 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00402005
mov eax, dword [ebx]
add dword [ebp - 0x10], edi
mov ecx, ebx
call dword [eax]
test al, al
jne 0x46cd1c
fld qword [ebp - 0x34]
fcomp qword [ebp - 0x24]
fnstsw ax
test ah, 0x41
jnp 0x46ccd1
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 0x46cc3e
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.0055ac00
cmp dword [ebp + 0x10], 0xffffffff
je 0x46cd04
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 0x46ccd4