Function at 0x401b54
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x4c3e3f
call fcn.004c2540
sub esp, 0x21c
mov eax, dword [0x4e7384]
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x1c]
push str._Sound_Folder_
call fcn.00402ec3
lea eax, [ebx + 0x20]
push str._Lyrics_Download_Folder_
call fcn.00402ec3
xor edi, edi
inc edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
jne 0x401c7c
lea eax, [ebx + 0x50]
push eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x4c], esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [ebx + 0x60]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [ebx + 0x70]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [ebx + 0x80]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [ebx + 0x90]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x14
push 0xc8
push esi
push 0x64
lea eax, [ebx + 0xac]
push eax
mov dword [ebx + 0xa0], edi
mov dword [ebx + 0xa4], esi
mov dword [ebx + 0xa8], edi
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebx + 0xbc]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [ebx + 0xcc], esi
mov dword [ebx + 0xd0], esi
mov dword [ebx + 0xd4], esi
mov dword [ebx + 0xd8], 2
mov dword [ebx + 0xdc], esi
mov dword [ebx + 0xe0], esi
mov dword [ebx + 0xe4], esi
mov dword [ebx + 0xe8], esi
mov dword [ebx + 0xf8], esi
mov dword [ebx + 0xfc], 0x64
mov dword [ebx + 0x100], esi
mov dword [ebx + 0x104], edi
mov dword [ebx + 0x108], edi
mov dword [ebx + 0x10c], edi
test byte [ebp + 8], 2
je 0x401d44
xor eax, eax
cmp dword [0x4ebc2c], esi
mov dword [ebx + 0x11c], esi
setne al
mov dword [ebx + 0x120], edi
mov dword [ebx + 0x128], edi
mov dword [ebx + 0x12c], esi
mov dword [ebx + 0x130], edi
mov dword [ebx + 0x134], esi
mov dword [ebx + 0x138], edi
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x13c], edi
mov dword [ebx + 0x140], 0x1000a
mov dword [ebx + 0x144], 0x10005
mov dword [ebx + 0x148], 7
mov dword [ebx + 0x14c], 0x7d40801
call fcn.0049bc0c
dec eax
push 0x813a
push dword [0x4eaf68]
mov dword [ebx + 0x150], eax
lea eax, [ebx + 0x168]
push eax
mov dword [ebx + 0x154], esi
mov word [ebx + 0x15c], si
mov word [ebx + 0x15a], si
mov word [ebx + 0x158], si
mov dword [ebx + 0x160], esi
mov dword [ebx + 0x164], edi
call fcn.004035cf
lea eax, [ebx + 0x16c]
call fcn.00402e52
test byte [ebp + 8], 4
je 0x401dbc
push 0xf
pop eax
mov dword [ebx + 0x180], eax
mov dword [ebx + 0x188], eax
mov eax, 0x320
mov dword [ebx + 0x170], edi
mov dword [ebx + 0x174], esi
mov dword [ebx + 0x17c], esi
mov dword [ebx + 0x178], esi
mov dword [ebx + 0x184], 0x4000
mov dword [ebx + 0x18c], 0x12c
mov dword [ebx + 0x190], 0x1f4
mov dword [ebx + 0x194], eax
mov dword [ebx + 0x198], eax
mov dword [ebx + 0x19c], 0x1388
mov dword [ebx + 0x1a0], esi
mov dword [ebx + 0x1a4], esi
mov dword [ebx + 0x1a8], esi
test byte [ebp + 8], 8
je 0x401e04
mov dword [ebx + 0x1ac], esi
lea esi, [ebx + 0x1b0]
call fcn.00407c87
mov dword [ebp - 0x21c], 0x4e7398
mov dword [ebp - 0x220], 0x34
push dword [ebp - 0x21c]
push esi
call fcn.0040361b
add dword [ebp - 0x21c], 0xc
dec dword [ebp - 0x220]
jne 0x401de7
xor esi, esi
test byte [ebp + 9], 4
je 0x401e55
lea edi, [ebx + 0x1c0]
mov esi, 0x4d4ab4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
xor ecx, ecx
inc eax
xor edi, edi
inc edi
mov dword [ebx + 0x1d0], 0x10
mov dword [ebx + 0x1d4], 0x3e8
mov dword [ebx + 0x1d8], eax
mov dword [ebx + 0x1dc], ecx
mov dword [ebx + 0x1e0], ecx
mov dword [ebx + 0x1e4], eax
mov dword [ebx + 0x1e8], ecx
xor esi, esi
test byte [ebp + 8], 1
je 0x401ef5
mov eax, 0xffffff
push esi
mov dword [ebx + 0x1f4], eax
mov dword [ebx + 0x200], eax
mov dword [ebx + 0x214], eax
lea eax, [ebp - 0x204]
push eax
mov ecx, 0xfff707
push esi
push 0x29
mov dword [ebx + 0x1ec], 2
mov dword [ebx + 0x1f0], 0x19
mov dword [ebx + 0x1fc], 0xffdc8c
mov dword [ebx + 0x1f8], ecx
mov dword [ebx + 0x204], edi
mov dword [ebx + 0x20c], edi
mov dword [ebx + 0x208], 3
mov dword [ebx + 0x210], ecx
mov dword [ebp - 0x204], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x5c
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebx + 0x218]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebx + 0x232], 4
test byte [ebp + 9], 0x20
je 0x401f3f
xor eax, eax
cmp dword [0x4ebc2c], esi
push 2
setne al
pop ecx
mov dword [ebx + 0x5e0], edi
mov dword [ebx + 0x5e4], esi
mov dword [ebx + 0x5f4], ecx
mov dword [ebx + 0x5f8], ecx
mov dword [ebx + 0x5ec], esi
mov dword [ebx + 0x5e8], eax
mov dword [ebx + 0x5fc], ecx
mov dword [ebx + 0x5f0], eax
mov dword [ebx + 0x600], ecx
test byte [ebp + 8], 0x30
je 0x4021aa
mov dword [ebx + 0x308], edi
mov dword [ebx + 0x314], edi
mov dword [ebx + 0x304], esi
push 4
pop ecx
mov dword [ebx + 0x30c], ecx
push 0xa
pop eax
mov dword [ebx + 0x310], eax
mov dword [ebx + 0x318], esi
mov dword [ebx + 0x31c], esi
mov dword [ebx + 0x320], edi
mov dword [ebx + 0x380], 0xc08000
mov dword [ebx + 0x384], 0xff00
mov dword [ebx + 0x388], esi
mov dword [ebx + 0x274], esi
mov dword [ebx + 0x278], edi
mov dword [ebx + 0x27c], esi
mov dword [ebx + 0x280], edi
mov dword [ebx + 0x284], ecx
mov dword [ebx + 0x288], eax
mov dword [ebx + 0x28c], edi
mov dword [ebx + 0x290], esi
mov dword [ebx + 0x294], esi
mov dword [ebx + 0x298], edi
mov dword [ebx + 0x2f8], 0xc18c00
mov dword [ebx + 0x2fc], 0x895400
mov dword [ebx + 0x300], 0xfefbf4
mov dword [ebx + 0x38c], edi
mov dword [ebx + 0x390], esi
mov dword [ebx + 0x394], esi
mov dword [ebx + 0x398], esi
mov dword [ebx + 0x39c], edi
mov dword [ebx + 0x3a0], edi
mov dword [ebx + 0x3a4], edi
mov dword [ebx + 0x3a8], esi
mov dword [ebx + 0x3ac], esi
mov dword [ebx + 0x3b0], edi
mov dword [ebx + 0x3b4], edi
mov dword [ebx + 0x3b8], esi
mov dword [ebx + 0x3bc], edi
mov dword [ebx + 0x3c0], esi
mov dword [ebx + 0x3c4], esi
mov dword [ebx + 0x3c8], esi
mov dword [ebx + 0x3cc], esi
mov dword [ebx + 0x3d0], esi
push 0x4eb3e4
lea edi, [ebp - 0x21c]
mov dword [ebx + 0x3d4], esi
call fcn.00402e10
push str.Lyrics_
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040302d
mov edi, eax
lea eax, [ebx + 0x3d8]
call fcn.00402e80
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4020ab
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x4020c2
push eax
call fcn.004013aa
lea ecx, [ebx + 0x3e0]
or eax, 0xffffffff
xor edi, edi
mov dword [ebx + 0x3dc], 1
call fcn.004037f3
lea ecx, [ebx + 0x1c]
lea esi, [ebp - 0x228]
call fcn.00402de7
and dword [ebp - 0x224], edi
and dword [ebp - 4], edi
mov eax, esi
push eax
lea edi, [ebx + 0x3e0]
call fcn.00408e3d
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x402118
push eax
call fcn.004013aa
lea edx, [ebx + 0x20]
lea esi, [ebp - 0x228]
call fcn.00401ad3
push eax
lea edi, [ebx + 0x3e0]
mov dword [ebp - 4], 1
call fcn.00408e3d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x402154
push eax
call fcn.004013aa
push 0
lea eax, [ebp - 0x204]
push eax
push 0
push 0x29
mov dword [ebp - 0x204], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x5c
lea eax, [ebp - 0xc8]
push eax
lea edi, [ebx + 0x29c]
push edi
call sub.MSVCRT.dll_memcpy
push 0x5c
lea esi, [ebx + 0x324]
push edi
push esi
mov byte [ebx + 0x2b6], 4
call sub.MSVCRT.dll_memcpy
xor edi, edi
add esp, 0x18
mov dword [esi], 0x3c
inc edi
xor esi, esi
test byte [ebp + 8], 0x40
je 0x40226a
mov dword [ebx + 0x3f0], esi
mov dword [ebx + 0x3f4], edi
mov dword [ebx + 0x3f8], edi
mov dword [ebx + 0x3fc], edi
mov dword [ebx + 0x400], esi
mov dword [ebx + 0x404], edi
mov dword [ebx + 0x408], esi
mov dword [ebx + 0x40c], edi
mov dword [ebx + 0x410], esi
mov dword [ebx + 0x414], edi
push str._A____T
lea eax, [ebx + 0x41c]
mov dword [ebx + 0x418], esi
call fcn.00402ec3
push 0x4cc1d0
lea eax, [ebx + 0x420]
call fcn.00402ec3
mov dword [ebx + 0x480], 0xc18c00
mov eax, 0x895400
mov dword [ebx + 0x484], eax
mov dword [ebx + 0x488], eax
mov dword [ebx + 0x48c], eax
mov eax, 0xfaf5ea
mov dword [ebx + 0x490], 0xf9ce84
mov dword [ebx + 0x494], eax
mov dword [ebx + 0x498], eax
push 0x5c
lea eax, [ebx + 0x29c]
push eax
lea eax, [ebx + 0x424]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
test byte [ebp + 8], 0x80
je 0x40229b
mov dword [ebx + 0x49c], esi
mov dword [ebx + 0x4a0], esi
lea ecx, [ebx + 0x4ac]
or eax, 0xffffffff
xor edi, edi
mov dword [ebx + 0x4a8], esi
call fcn.004037f3
and dword [ebx + 0x4bc], edi
inc edi
xor esi, esi
test byte [ebp + 9], 1
je 0x402368
mov esi, 0x4ebc68
call fcn.00401819
mov dword [ebx + 0x4c0], edi
mov dword [ebx + 0x4c4], edi
mov dword [ebx + 0x4c8], edi
mov dword [ebx + 0x4cc], edi
push 0x4eb3e4
lea edi, [ebp - 0x21c]
call fcn.00402e10
push str.Cache_
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040302d
mov edi, eax
lea eax, [ebx + 0x4e4]
call fcn.00402e80
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x40230d
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x402324
push eax
call fcn.004013aa
push str.http:__freedb.freedb.org_cddb_cddb.cgi
lea eax, [ebx + 0x4d0]
call fcn.00402ec3
lea ecx, [ebx + 0x4d4]
or eax, 0xffffffff
xor edi, edi
call fcn.0041a64f
or dword [ebx + 0x4e8], 0xffffffff
mov dword [ebx + 0x4ec], 7
and dword [ebx + 0x4f4], edi
inc edi
mov dword [ebx + 0x4f0], 0x12c
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
jne 0x4023f6
push 0x28
mov dword [ebx + 0x524], 0xfffffffe
or dword [ebx + 0x528], 0xffffffff
lea eax, [ebx + 0x55c]
push esi
push eax
mov dword [ebx + 0x52c], esi
call sub.MSVCRT.dll_memset
push 0x28
lea eax, [ebx + 0x530]
push esi
push eax
call sub.MSVCRT.dll_memset
mov dword [ebx + 0x4f8], esi
mov dword [ebx + 0x4fc], esi
mov dword [ebx + 0x500], esi
add esp, 0x18
mov dword [ebx + 0x504], esi
mov dword [ebx + 0x508], esi
push 0x4cc164
lea eax, [ebx + 0x510]
mov dword [ebx + 0x50c], esi
call fcn.00402ec3
mov dword [ebx + 0x514], edi
mov dword [ebx + 0x518], esi
mov dword [ebx + 0x51c], esi
mov dword [ebx + 0x520], esi
test byte [ebp + 9], 2
je 0x4025a8
lea eax, [ebx + 0x58c]
call fcn.00402e52
push 0x20019
push str.SoftwareWinamp
push reloc.ttpcomm.dll_Ordinal_1
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
call fcn.00401247
test eax, eax
jne 0x40249f
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4cc340
lea eax, [ebp - 0x21c]
push eax
lea esi, [ebp - 0x220]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], 0x104
call fcn.0040127a
test eax, eax
jne 0x40249a
mov eax, dword [ebp - 0x220]
and word [ebp + eax*2 - 0x218], 0
mov eax, edi
push eax
lea esi, [ebx + 0x58c]
mov eax, esi
call fcn.00402ec3
push str.Plugins
push esi
call fcn.00402ee8
xor edi, edi
inc edi
xor esi, esi
mov eax, dword [ebx + 0x58c]
cmp dword [eax - 8], esi
jne 0x402527
xor eax, eax
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4024ed
lea eax, [ebp - 0x218]
push str.C:Program_Files
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push str.WinampPlugins
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x218]
call fcn.004b1306
test eax, eax
je 0x402522
lea eax, [ebp - 0x218]
push eax
lea eax, [ebx + 0x58c]
call fcn.00402ec3
xor edi, edi
inc edi
xor esi, esi
mov eax, dword [ebx + 0x58c]
cmp dword [eax - 8], esi
jne 0x402594
push 0x4eb3e4
lea edi, [ebp - 0x224]
call fcn.00402e10
push str.Plugins_
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040302d
mov edi, eax
lea eax, [ebx + 0x58c]
call fcn.00402e80
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x402578
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x40258f
push eax
call fcn.004013aa
xor edi, edi
inc edi
xor esi, esi
cmp dword [ebp - 0x21c], esi
je 0x4025a8
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebp + 9], 8
je 0x4025bf
push dword [0x4e7394]
lea eax, [ebx + 0x588]
call fcn.00402ec3
or eax, 0xffffffff
cmp dword [ebp + 8], eax
jne 0x4025f0
mov dword [ebx + 0x5a0], esi
mov dword [ebx + 0x5a4], 0x37
mov dword [ebx + 0x5b8], edi
lea ecx, [ebx + 0x5d0]
xor edi, edi
mov dword [ebx + 0x5bc], esi
call fcn.0041a64f
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.004c2215
leave
ret 4