Function at 0x415cbe
Capabilities:
Enumerate files on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe70
lea eax, [ebp - 0x25c]
push ebx
push esi
push edi
push 0x250
xor esi, esi
push esi
push eax
call fcn.0049a3b0
push 0x412
lea eax, [ebp - 0xa70]
push esi
push eax
call fcn.0049a3b0
add esp, 0x18
lea eax, [ebp - 0xa70]
push dword [ebp + 8]
push dword [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x415d0f
mov dword [ebx], esi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0xa70]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
je 0x415f3f
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0xa70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xa70]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x415f22
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetWinampHWND
push esi
call edi
test eax, eax
je 0x415d7d
push dword [0x531f70]
call eax
pop ecx
cmp dword [ebp + 0x2c], 0
je 0x415e0c
push str.GetAudioTypes3
push esi
call edi
mov edi, eax
test edi, edi
je 0x415f18
push 0x400
lea eax, [ebp - 0x65c]
push 0
push eax
call fcn.0049a3b0
lea eax, [ebp - 0x65c]
push eax
push 0
call edi
add esp, 0x14
mov dword [ebp - 4], 1
test eax, eax
je 0x415f18
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 0x2c]
push eax
lea eax, [ebp - 0x65c]
push eax
push dword [esi + 4]
call dword [esi]
push 0x400
lea eax, [ebp - 0x65c]
push 0
push eax
call fcn.0049a3b0
lea eax, [ebp - 0x65c]
push eax
push ebx
call edi
add esp, 0x20
inc ebx
test eax, eax
jne 0x415dcf
mov esi, dword [ebp - 8]
mov ebx, dword [ebp + 0x24]
jmp 0x415f18
push str.ExtAudio3
push esi
call edi
test eax, eax
je 0x415e27
push 0
push 0
push dword [0x531f70]
call eax
add esp, 0xc
push str.CreateAudio3
push esi
call edi
cmp dword [ebp + 0x20], 0
mov edi, eax
jne 0x415e6d
push str.ConfigAudio3
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415f18
cmp dword [ebp + 0x30], 0
mov ecx, 0x501c00
cmovne ecx, dword [ebp + 0x30]
push ecx
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x28]
call eax
add esp, 0x10
test eax, eax
jne 0x415f48
cmp dword [ebp + 0x20], 1
jne 0x415ea8
test edi, edi
je 0x415f18
cmp dword [ebp + 0x30], 0
mov eax, 0x501c00
cmovne eax, dword [ebp + 0x30]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x204d4350
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
add esp, 0x18
test eax, eax
jne 0x415f48
cmp dword [ebp + 0x20], 2
jne 0x415f18
push str.GetAudioTypes3
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x415f18
push 0x400
lea eax, [ebp - 0xe70]
push 0
push eax
call fcn.0049a3b0
lea eax, [ebp - 0xe70]
push eax
push 0
call edi
add esp, 0x14
mov dword [ebp - 4], 1
jmp 0x415f14
cmp eax, dword [ebp + 0x18]
je 0x415f46
push 0x400
lea eax, [ebp - 0xe70]
push 0
push eax
call fcn.0049a3b0
lea eax, [ebp - 0xe70]
push eax
push dword [ebp - 4]
call edi
add esp, 0x14
inc dword [ebp - 4]
test eax, eax
jne 0x415eea
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415d31
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov dword [ebx], esi
jmp 0x415f41