Function at 0x5dcd30
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xb58
push ebx
push ebp
mov ebp, dword [esp + 0xb68]
mov eax, dword [ebp]
mov edx, dword [eax + 0x20]
push esi
push edi
push 0
push str.Decoding_DSS_File
mov ecx, ebp
call edx
mov ecx, dword [esp + 0xb74]
mov eax, dword [ebp]
mov edx, dword [eax + 0x20]
push 1
push ecx
mov ecx, ebp
call edx
fldz
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
sub esp, 8
mov ecx, ebp
fstp qword [esp]
call edx
lea eax, [esp + 0x448]
push eax
mov eax, str.dss322
call fcn.004a6a60
test al, al
jne 0x5dcdc1
lea ecx, [esp + 0x448]
push ecx
push 0
push str.dss322
push ebp
call fcn.004a6bc0
test al, al
jne 0x5dcdc1
mov eax, dword [esp + 0xb6c]
mov dword [eax], 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb58
ret 0xc
push 8
push 0
lea edx, [esp + 0x450]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x5dcda7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DSSInitDecoder
push ebx
mov dword [esp + 0x18], 2
call esi
push str.DSSStartDecoding
push ebx
mov edi, eax
call esi
push str.DSSDecodeToPCM
push ebx
mov dword [esp + 0x1c], eax
call esi
push str.DSSActiveFolder
push ebx
mov dword [esp + 0x30], eax
call esi
push str.DSSActiveFile
push ebx
mov dword [esp + 0x28], eax
call esi
test edi, edi
mov dword [esp + 0x18], eax
je 0x5dd0d6
cmp dword [esp + 0x14], 0
je 0x5dd0d6
cmp dword [esp + 0x28], 0
je 0x5dd0d6
cmp dword [esp + 0x20], 0
je 0x5dd0d6
test eax, eax
je 0x5dd0d6
lea eax, [esp + 0x24]
push eax
push 0
mov dword [esp + 0x2c], 0xa0065
call edi
add esp, 8
test eax, eax
jne 0x5dd0d6
mov esi, dword [esp + 0xb74]
mov eax, esi
lea edi, [esp + 0x960]
call fcn.004ad090
mov ecx, edi
push 0
push ecx
call dword [esp + 0x28]
add esp, 8
push 0x104
lea edx, [esp + 0x75c]
push edx
push esi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x760]
lea esi, [esp + 0x65c]
call fcn.00496cb0
push eax
call dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x5dcee8
mov edx, dword [ebp]
mov eax, dword [edx + 0x1c]
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, ebp
call eax
jmp 0x5dd0d6
mov eax, dword [esp + 0xb74]
add eax, 0x208
lea esi, [esp + 0x18]
call fcn.005d47c0
xor eax, eax
cmp byte [esp + 0x1c], 2
mov edi, 1
mov word [esp + 0x40], di
mov word [esp + 0x42], di
mov dword [esp + 0x44], 0x2b11
mov word [esp + 0x4e], 0x10
mov word [esp + 0x4c], 2
mov dword [esp + 0x48], 0x5622
mov word [esp + 0x50], ax
mov word [esp + 0x440], ax
mov word [esp + 0x442], ax
jne 0x5dcf5d
and dword [esp + 0x24], 0xffffffbf
mov dword [esp + 0x44], 0x1f40
mov dword [esp + 0x48], 0x3e80
lea ecx, [esp + 0x18]
push ecx
mov esi, 0xffffffd9
lea ecx, [esp + 0x44]
call fcn.005f73f0
cmp byte [esp + 0x1c], 3
jne 0x5dcf7c
or dword [esp + 0x24], 0x40
xor esi, esi
push esi
mov dword [esp + 0x24], esi
call dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x5dcfa2
mov edx, dword [ebp]
mov eax, dword [edx + 0x1c]
push str.Unable_to_start_decoding_DSS_file.
mov ecx, ebp
call eax
jmp 0x5dd0c6
fldz
mov eax, dword [esp + 0x2c]
cmp eax, esi
fstp qword [esp + 0x30]
jne 0x5dcfb2
mov eax, edi
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x5dcfc4
fadd qword [0x7235b8]
lea ecx, [esp + 0x10]
fstp qword [esp + 0x38]
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x2c]
push edx
call esi
add esp, 8
cmp eax, 0xffffffff
jle 0x5dd0a1
mov edx, dword [esp + 0x14]
test edx, edx
je 0x5dd0a1
cmp dword [esp + 0x10], 0
fld qword [esp + 0x30]
je 0x5dd020
cmp byte [esp + 0x1c], 3
fadd qword [0x7237b8]
mov edi, 0x1e0
fstp qword [esp + 0x30]
jne 0x5dd02f
mov edi, 0x294
jmp 0x5dd02f
fadd qword [0x723848]
mov edi, 0x210
fstp qword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00402180
mov edx, dword [ebp]
mov eax, dword [edx]
add dword [esp + 0x20], edi
mov ecx, ebp
call eax
test al, al
jne 0x5dd093
fld qword [esp + 0x38]
fld qword [esp + 0x30]
fcom st(1)
fnstsw ax
test ah, 1
je 0x5dd09d
fdivrp st(1)
mov edx, dword [ebp]
mov eax, dword [edx + 0x24]
sub esp, 8
mov ecx, ebp
fstp qword [esp]
call eax
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call esi
add esp, 8
cmp eax, 0xffffffff
jg 0x5dcfec
jmp 0x5dd0a1
mov dword [esp + 0x10], 1
jmp 0x5dd0a9
fstp st(0)
fstp st(0)
mov dword [esp + 0x10], 0
push 0
lea ecx, [esp + 0x1c]
call fcn.00496f90
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
call fcn.005f73f0
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x5dd0d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xb6c]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0xb58
ret 0xc