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

Disassembly:
mov eax, 0x4c1133
call fcn.004bf97c
sub esp, 0x164
push esi
push edi
lea eax, [ebx + 0x1c]
push str._Sound_Folder_
call fcn.0040305d
lea eax, [ebx + 0x20]
push str._Lyrics_Download_Folder_
call fcn.0040305d
xor edi, edi
inc edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
jne 0x401eae
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 0x401f76
xor eax, eax
cmp dword [0x4e62cc], 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.00499a1d
dec eax
push 0x813a
push dword [0x4e5994]
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.00403664
lea eax, [ebx + 0x16c]
call fcn.00402fed
test byte [ebp + 8], 4
je 0x401fee
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 0x402027
mov dword [ebx + 0x1ac], esi
lea esi, [ebx + 0x1b0]
call fcn.004bc839
mov dword [ebp - 0x10], 0x4e2398
mov dword [ebp - 0x14], 0x34
push dword [ebp - 0x10]
push esi
call fcn.004036af
add dword [ebp - 0x10], 0xc
dec dword [ebp - 0x14]
jne 0x402013
xor esi, esi
test byte [ebp + 9], 4
je 0x402078
lea edi, [ebx + 0x1c0]
mov esi, 0x4d01a8
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 0x402118
mov eax, 0xffffff
push esi
mov dword [ebx + 0x1f4], eax
mov dword [ebx + 0x200], eax
mov dword [ebx + 0x214], eax
lea eax, [ebp - 0x170]
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 - 0x170], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0x3c
lea eax, [ebp - 0x94]
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 0x402162
xor eax, eax
cmp dword [0x4e62cc], esi
push 2
setne al
pop ecx
mov dword [ebx + 0x560], edi
mov dword [ebx + 0x564], esi
mov dword [ebx + 0x574], ecx
mov dword [ebx + 0x578], ecx
mov dword [ebx + 0x56c], esi
mov dword [ebx + 0x568], eax
mov dword [ebx + 0x57c], ecx
mov dword [ebx + 0x570], eax
mov dword [ebx + 0x580], ecx
test byte [ebp + 8], 0x30
je 0x4023b5
mov dword [ebx + 0x2c8], edi
mov dword [ebx + 0x2d4], edi
mov dword [ebx + 0x2c4], esi
push 4
pop ecx
mov dword [ebx + 0x2cc], ecx
push 0xa
pop eax
mov dword [ebx + 0x2d0], eax
mov dword [ebx + 0x2d8], esi
mov dword [ebx + 0x2dc], esi
mov dword [ebx + 0x2e0], edi
mov dword [ebx + 0x320], 0xc08000
mov dword [ebx + 0x324], 0xff00
mov dword [ebx + 0x328], esi
mov dword [ebx + 0x254], esi
mov dword [ebx + 0x258], edi
mov dword [ebx + 0x25c], esi
mov dword [ebx + 0x260], edi
mov dword [ebx + 0x264], ecx
mov dword [ebx + 0x268], eax
mov dword [ebx + 0x26c], edi
mov dword [ebx + 0x270], esi
mov dword [ebx + 0x274], esi
mov dword [ebx + 0x278], edi
mov dword [ebx + 0x2b8], 0xc18c00
mov dword [ebx + 0x2bc], 0x895400
mov dword [ebx + 0x2c0], 0xfefbf4
mov dword [ebx + 0x32c], edi
mov dword [ebx + 0x330], esi
mov dword [ebx + 0x334], esi
mov dword [ebx + 0x338], esi
mov dword [ebx + 0x33c], edi
mov dword [ebx + 0x340], edi
mov dword [ebx + 0x344], edi
mov dword [ebx + 0x348], esi
mov dword [ebx + 0x34c], esi
mov dword [ebx + 0x350], edi
mov dword [ebx + 0x354], edi
mov dword [ebx + 0x358], esi
mov dword [ebx + 0x35c], edi
mov dword [ebx + 0x360], esi
mov dword [ebx + 0x364], esi
mov dword [ebx + 0x368], esi
mov dword [ebx + 0x36c], esi
mov dword [ebx + 0x370], esi
push 0x4e5c24
lea edi, [ebp - 0x10]
mov dword [ebx + 0x374], esi
call fcn.00402faf
push str.Lyrics_
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004031be
mov edi, eax
lea eax, [ebx + 0x378]
call fcn.0040301a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4022c5
push eax
call fcn.00401377
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4022d9
push eax
call fcn.00401377
lea ecx, [ebx + 0x380]
or eax, 0xffffffff
xor edi, edi
mov dword [ebx + 0x37c], 1
call fcn.00403908
lea ecx, [ebx + 0x1c]
lea esi, [ebp - 0x1c]
call fcn.00402f86
and dword [ebp - 0x18], edi
and dword [ebp - 4], edi
mov eax, esi
push eax
lea edi, [ebx + 0x380]
call fcn.0040371b
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x402326
push eax
call fcn.00401377
lea edx, [ebx + 0x20]
lea esi, [ebp - 0x1c]
call fcn.00401d10
push eax
lea edi, [ebx + 0x380]
mov dword [ebp - 4], 1
call fcn.0040371b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x40235c
push eax
call fcn.00401377
push 0
lea eax, [ebp - 0x170]
push eax
push 0
push 0x29
mov dword [ebp - 0x170], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0x3c
pop edi
push edi
lea ecx, [ebp - 0x94]
lea eax, [ebx + 0x27c]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
push edi
lea eax, [ebx + 0x27c]
push eax
lea esi, [ebx + 0x2e4]
push esi
mov byte [ebx + 0x296], 4
call sub.MSVCRT.dll_memcpy
mov dword [esi], edi
xor edi, edi
add esp, 0x18
inc edi
xor esi, esi
test byte [ebp + 8], 0x40
je 0x402475
mov dword [ebx + 0x390], esi
mov dword [ebx + 0x394], edi
mov dword [ebx + 0x398], edi
mov dword [ebx + 0x39c], edi
mov dword [ebx + 0x3a0], esi
mov dword [ebx + 0x3a4], edi
mov dword [ebx + 0x3a8], esi
mov dword [ebx + 0x3ac], edi
mov dword [ebx + 0x3b0], esi
mov dword [ebx + 0x3b4], edi
push str._A____T
lea eax, [ebx + 0x3bc]
mov dword [ebx + 0x3b8], esi
call fcn.0040305d
push 0x4c90d8
lea eax, [ebx + 0x3c0]
call fcn.0040305d
mov dword [ebx + 0x400], 0xc18c00
mov eax, 0x895400
mov dword [ebx + 0x404], eax
mov dword [ebx + 0x408], eax
mov dword [ebx + 0x40c], eax
mov eax, 0xfaf5ea
mov dword [ebx + 0x410], 0xf9ce84
mov dword [ebx + 0x414], eax
mov dword [ebx + 0x418], eax
push 0x3c
lea eax, [ebx + 0x27c]
push eax
lea eax, [ebx + 0x3c4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
test byte [ebp + 8], 0x80
je 0x4024a6
mov dword [ebx + 0x41c], esi
mov dword [ebx + 0x420], esi
lea ecx, [ebx + 0x42c]
or eax, 0xffffffff
xor edi, edi
mov dword [ebx + 0x428], esi
call fcn.00403908
and dword [ebx + 0x43c], edi
inc edi
xor esi, esi
test byte [ebp + 9], 1
je 0x402567
mov esi, 0x4e6308
call fcn.00401aac
mov dword [ebx + 0x440], edi
mov dword [ebx + 0x444], edi
mov dword [ebx + 0x448], edi
mov dword [ebx + 0x44c], edi
push 0x4e5c24
lea edi, [ebp - 0x10]
call fcn.00402faf
push str.Cache_
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004031be
mov edi, eax
lea eax, [ebx + 0x464]
call fcn.0040301a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x40250f
push eax
call fcn.00401377
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x402523
push eax
call fcn.00401377
push str.http:__freedb.freedb.org_cddb_cddb.cgi
lea eax, [ebx + 0x450]
call fcn.0040305d
lea ecx, [ebx + 0x454]
or eax, 0xffffffff
xor edi, edi
call fcn.004a4c31
or dword [ebx + 0x468], 0xffffffff
mov dword [ebx + 0x46c], 7
and dword [ebx + 0x474], edi
inc edi
mov dword [ebx + 0x470], 0x12c
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
jne 0x4025f5
push 0x28
mov dword [ebx + 0x4a4], 0xfffffffe
or dword [ebx + 0x4a8], 0xffffffff
lea eax, [ebx + 0x4dc]
push esi
push eax
mov dword [ebx + 0x4ac], esi
call sub.MSVCRT.dll_memset
push 0x28
lea eax, [ebx + 0x4b0]
push esi
push eax
call sub.MSVCRT.dll_memset
mov dword [ebx + 0x478], esi
mov dword [ebx + 0x47c], esi
mov dword [ebx + 0x480], esi
add esp, 0x18
mov dword [ebx + 0x484], esi
mov dword [ebx + 0x488], esi
push 0x4c90a4
lea eax, [ebx + 0x490]
mov dword [ebx + 0x48c], esi
call fcn.0040305d
mov dword [ebx + 0x494], edi
mov dword [ebx + 0x498], esi
mov dword [ebx + 0x49c], esi
mov dword [ebx + 0x4a0], esi
test byte [ebp + 9], 2
je 0x40277d
lea eax, [ebx + 0x50c]
call fcn.00402fed
push 0x20019
push str.SoftwareWinamp
push reloc.ttpcomm.dll_Ordinal_1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00401221
test eax, eax
jne 0x402689
push 0x40
mov byte [ebp - 0x120], al
pop ecx
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x4c91aa
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x120]
mov dword [ebp - 0x14], 0x104
call fcn.00401254
test eax, eax
jne 0x402684
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x120], 0
mov eax, edi
push eax
lea esi, [ebx + 0x50c]
mov eax, esi
call fcn.0040305d
push str.Plugins
push esi
call fcn.00403081
xor edi, edi
inc edi
xor esi, esi
mov eax, dword [ebx + 0x50c]
cmp dword [eax - 8], esi
jne 0x40270e
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x120], 0
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x26
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4026d5
lea eax, [ebp - 0x120]
push str.C:Program_Files
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x120]
push str.WinampPlugins
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x120]
call fcn.0048c48b
test eax, eax
je 0x402709
lea eax, [ebp - 0x120]
push eax
lea eax, [ebx + 0x50c]
call fcn.0040305d
xor edi, edi
inc edi
xor esi, esi
mov eax, dword [ebx + 0x50c]
cmp dword [eax - 8], esi
jne 0x40276f
push 0x4e5c24
lea edi, [ebp - 0x18]
call fcn.00402faf
push str.Plugins_
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004031be
mov edi, eax
lea eax, [ebx + 0x50c]
call fcn.0040301a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x402756
push eax
call fcn.00401377
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x40276a
push eax
call fcn.00401377
xor edi, edi
inc edi
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x40277d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebp + 9], 8
je 0x402794
push dword [0x4e2394]
lea eax, [ebx + 0x508]
call fcn.0040305d
or eax, 0xffffffff
cmp dword [ebp + 8], eax
jne 0x4027c5
mov dword [ebx + 0x520], esi
mov dword [ebx + 0x524], 0x37
mov dword [ebx + 0x538], edi
lea ecx, [ebx + 0x550]
xor edi, edi
mov dword [ebx + 0x53c], esi
call fcn.004a4c31
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4