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

Disassembly:
mov eax, 0x4c97ac
call fcn.004c7e20
sub esp, 0x21c
mov eax, dword [0x4ed384]
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x1c]
push str._Sound_Folder_
call fcn.00402fb6
lea eax, [ebx + 0x20]
push str._Lyrics_Download_Folder_
call fcn.00402fb6
xor edi, edi
inc edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
jne 0x401d36
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], esi
mov dword [ebx + 0x110], edi
mov dword [ebx + 0x114], edi
test byte [ebp + 8], 2
je 0x401e07
xor eax, eax
cmp dword [0x4f34cc], esi
mov dword [ebx + 0x124], esi
setne al
mov dword [ebx + 0x128], edi
mov dword [ebx + 0x130], edi
mov dword [ebx + 0x134], esi
mov dword [ebx + 0x138], edi
mov dword [ebx + 0x13c], esi
mov dword [ebx + 0x140], edi
mov dword [ebx + 0x12c], eax
xor eax, eax
mov dword [ebx + 0x144], edi
mov dword [ebx + 0x148], 0x1000a
mov dword [ebx + 0x14c], 0x10005
mov dword [ebx + 0x150], 7
mov dword [ebx + 0x154], 0x7d40801
call fcn.004a2e12
push 0x18
pop ecx
xor edx, edx
div ecx
push 0x813a
push dword [0x4f2800]
mov dword [ebx + 0x15c], esi
mov word [ebx + 0x164], si
mov word [ebx + 0x162], si
mov word [ebx + 0x160], si
mov dword [ebx + 0x168], esi
mov dword [ebx + 0x16c], edi
dec eax
mov dword [ebx + 0x158], eax
lea eax, [ebx + 0x170]
push eax
call fcn.00403692
lea eax, [ebx + 0x174]
call fcn.00402f45
test byte [ebp + 8], 4
je 0x401e7f
push 0xf
pop eax
mov dword [ebx + 0x188], eax
mov dword [ebx + 0x190], eax
mov eax, 0x320
mov dword [ebx + 0x178], edi
mov dword [ebx + 0x17c], esi
mov dword [ebx + 0x184], esi
mov dword [ebx + 0x180], esi
mov dword [ebx + 0x18c], 0x4000
mov dword [ebx + 0x194], 0x12c
mov dword [ebx + 0x198], 0x1f4
mov dword [ebx + 0x19c], eax
mov dword [ebx + 0x1a0], eax
mov dword [ebx + 0x1a4], 0x1388
mov dword [ebx + 0x1a8], esi
mov dword [ebx + 0x1ac], esi
mov dword [ebx + 0x1b0], esi
test byte [ebp + 8], 8
je 0x401ec7
mov dword [ebx + 0x1b4], esi
lea esi, [ebx + 0x1b8]
call fcn.004553e0
mov dword [ebp - 0x21c], 0x4ed3f8
mov dword [ebp - 0x220], 0x34
push dword [ebp - 0x21c]
push esi
call fcn.004036eb
add dword [ebp - 0x21c], 0xc
dec dword [ebp - 0x220]
jne 0x401eaa
xor esi, esi
test byte [ebp + 9], 4
je 0x401f18
lea edi, [ebx + 0x1c8]
mov esi, 0x4da344
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 + 0x1d8], 0x10
mov dword [ebx + 0x1dc], 0x3e8
mov dword [ebx + 0x1e0], eax
mov dword [ebx + 0x1e4], ecx
mov dword [ebx + 0x1e8], ecx
mov dword [ebx + 0x1ec], eax
mov dword [ebx + 0x1f0], ecx
xor esi, esi
test byte [ebp + 8], 1
je 0x401fb8
mov eax, 0xffffff
push esi
mov dword [ebx + 0x1fc], eax
mov dword [ebx + 0x208], eax
mov dword [ebx + 0x21c], eax
lea eax, [ebp - 0x204]
push eax
mov ecx, 0xfff707
push esi
push 0x29
mov dword [ebx + 0x1f4], 2
mov dword [ebx + 0x1f8], 0x19
mov dword [ebx + 0x204], 0xffdc8c
mov dword [ebx + 0x200], ecx
mov dword [ebx + 0x20c], edi
mov dword [ebx + 0x214], edi
mov dword [ebx + 0x210], 3
mov dword [ebx + 0x218], ecx
mov dword [ebp - 0x204], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x5c
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebx + 0x220]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebx + 0x23a], 4
test byte [ebp + 9], 0x20
je 0x402002
xor eax, eax
cmp dword [0x4f34cc], esi
push 2
setne al
pop ecx
mov dword [ebx + 0x5e8], edi
mov dword [ebx + 0x5ec], esi
mov dword [ebx + 0x5fc], ecx
mov dword [ebx + 0x600], ecx
mov dword [ebx + 0x5f4], esi
mov dword [ebx + 0x5f0], eax
mov dword [ebx + 0x604], ecx
mov dword [ebx + 0x5f8], eax
mov dword [ebx + 0x608], ecx
test byte [ebp + 8], 0x30
je 0x40226d
mov dword [ebx + 0x310], edi
mov dword [ebx + 0x30c], esi
push 4
pop ecx
mov dword [ebx + 0x314], ecx
push 0xa
pop eax
mov dword [ebx + 0x318], eax
mov dword [ebx + 0x31c], edi
mov dword [ebx + 0x320], esi
mov dword [ebx + 0x324], esi
mov dword [ebx + 0x328], edi
mov dword [ebx + 0x388], 0xc08000
mov dword [ebx + 0x38c], 0xff00
mov dword [ebx + 0x390], esi
mov dword [ebx + 0x27c], esi
mov dword [ebx + 0x280], edi
mov dword [ebx + 0x284], esi
mov dword [ebx + 0x288], edi
mov dword [ebx + 0x28c], ecx
mov dword [ebx + 0x290], eax
mov dword [ebx + 0x294], edi
mov dword [ebx + 0x298], esi
mov dword [ebx + 0x29c], esi
mov dword [ebx + 0x2a0], edi
mov dword [ebx + 0x300], 0xc18c00
mov dword [ebx + 0x304], 0x895400
mov dword [ebx + 0x308], 0xfefbf4
mov dword [ebx + 0x394], edi
mov dword [ebx + 0x398], esi
mov dword [ebx + 0x39c], esi
mov dword [ebx + 0x3a0], esi
mov dword [ebx + 0x3a4], edi
mov dword [ebx + 0x3a8], edi
mov dword [ebx + 0x3ac], edi
mov dword [ebx + 0x3b0], esi
mov dword [ebx + 0x3b4], esi
mov dword [ebx + 0x3b8], edi
mov dword [ebx + 0x3bc], edi
mov dword [ebx + 0x3c0], esi
mov dword [ebx + 0x3c4], edi
mov dword [ebx + 0x3c8], esi
mov dword [ebx + 0x3cc], esi
mov dword [ebx + 0x3d0], esi
mov dword [ebx + 0x3d4], esi
mov dword [ebx + 0x3d8], esi
push 0x4f2c7c
lea edi, [ebp - 0x21c]
mov dword [ebx + 0x3dc], esi
call fcn.00402f03
push str.Lyrics_
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00403120
mov edi, eax
lea eax, [ebx + 0x3e0]
call fcn.00402f73
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x40216e
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x402185
push eax
call fcn.004013aa
lea ecx, [ebx + 0x3e8]
or eax, 0xffffffff
xor edi, edi
mov dword [ebx + 0x3e4], 1
call fcn.00403995
lea ecx, [ebx + 0x1c]
lea esi, [ebp - 0x228]
call fcn.00402eaa
and dword [ebp - 0x224], edi
and dword [ebp - 4], edi
mov eax, esi
push eax
lea edi, [ebx + 0x3e8]
call fcn.00403757
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4021db
push eax
call fcn.004013aa
lea edx, [ebx + 0x20]
lea esi, [ebp - 0x228]
call fcn.00401b81
push eax
lea edi, [ebx + 0x3e8]
mov dword [ebp - 4], 1
call fcn.00403757
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x402217
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 + 0x2a4]
push edi
call sub.MSVCRT.dll_memcpy
push 0x5c
lea esi, [ebx + 0x32c]
push edi
push esi
mov byte [ebx + 0x2be], 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 0x40232d
mov dword [ebx + 0x3f8], esi
mov dword [ebx + 0x3fc], edi
mov dword [ebx + 0x400], edi
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
mov dword [ebx + 0x418], esi
mov dword [ebx + 0x41c], edi
push str._A____T
lea eax, [ebx + 0x424]
mov dword [ebx + 0x420], esi
call fcn.00402fb6
push 0x4d11d0
lea eax, [ebx + 0x428]
call fcn.00402fb6
mov dword [ebx + 0x488], 0xc18c00
mov eax, 0x895400
mov dword [ebx + 0x48c], eax
mov dword [ebx + 0x490], eax
mov dword [ebx + 0x494], eax
mov eax, 0xfaf5ea
mov dword [ebx + 0x498], 0xf9ce84
mov dword [ebx + 0x49c], eax
mov dword [ebx + 0x4a0], eax
push 0x5c
lea eax, [ebx + 0x2a4]
push eax
lea eax, [ebx + 0x42c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
test byte [ebp + 8], 0x80
je 0x40235e
mov dword [ebx + 0x4a4], esi
mov dword [ebx + 0x4a8], esi
lea ecx, [ebx + 0x4b4]
or eax, 0xffffffff
xor edi, edi
mov dword [ebx + 0x4b0], esi
call fcn.00403995
and dword [ebx + 0x4c4], edi
inc edi
xor esi, esi
test byte [ebp + 9], 1
je 0x40242b
mov esi, 0x4f3568
call fcn.004018c7
mov dword [ebx + 0x4c8], edi
mov dword [ebx + 0x4cc], edi
mov dword [ebx + 0x4d0], edi
mov dword [ebx + 0x4d4], edi
push 0x4f2c7c
lea edi, [ebp - 0x21c]
call fcn.00402f03
push str.Cache_
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00403120
mov edi, eax
lea eax, [ebx + 0x4ec]
call fcn.00402f73
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4023d0
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4023e7
push eax
call fcn.004013aa
push str.http:__freedb.freedb.org_cddb_cddb.cgi
lea eax, [ebx + 0x4d8]
call fcn.00402fb6
lea ecx, [ebx + 0x4dc]
or eax, 0xffffffff
xor edi, edi
call fcn.00403907
or dword [ebx + 0x4f0], 0xffffffff
mov dword [ebx + 0x4f4], 7
and dword [ebx + 0x4fc], edi
inc edi
mov dword [ebx + 0x4f8], 0x12c
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
jne 0x4024b9
push 0x28
mov dword [ebx + 0x52c], 0xfffffffe
or dword [ebx + 0x530], 0xffffffff
lea eax, [ebx + 0x564]
push esi
push eax
mov dword [ebx + 0x534], esi
call sub.MSVCRT.dll_memset
push 0x28
lea eax, [ebx + 0x538]
push esi
push eax
call sub.MSVCRT.dll_memset
mov dword [ebx + 0x500], esi
mov dword [ebx + 0x504], esi
mov dword [ebx + 0x508], esi
add esp, 0x18
mov dword [ebx + 0x50c], esi
mov dword [ebx + 0x510], esi
push 0x4d1174
lea eax, [ebx + 0x518]
mov dword [ebx + 0x514], esi
call fcn.00402fb6
mov dword [ebx + 0x51c], edi
mov dword [ebx + 0x520], esi
mov dword [ebx + 0x524], esi
mov dword [ebx + 0x528], esi
test byte [ebp + 9], 2
je 0x40266b
lea eax, [ebx + 0x594]
call fcn.00402f45
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 0x402562
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4d1350
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 0x40255d
mov eax, dword [ebp - 0x220]
and word [ebp + eax*2 - 0x218], 0
mov eax, edi
push eax
lea esi, [ebx + 0x594]
mov eax, esi
call fcn.00402fb6
push str.Plugins
push esi
call fcn.00402fdb
xor edi, edi
inc edi
xor esi, esi
mov eax, dword [ebx + 0x594]
cmp dword [eax - 8], esi
jne 0x4025ea
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 0x4025b0
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.004b2844
test eax, eax
je 0x4025e5
lea eax, [ebp - 0x218]
push eax
lea eax, [ebx + 0x594]
call fcn.00402fb6
xor edi, edi
inc edi
xor esi, esi
mov eax, dword [ebx + 0x594]
cmp dword [eax - 8], esi
jne 0x402657
push 0x4f2c7c
lea edi, [ebp - 0x224]
call fcn.00402f03
push str.Plugins_
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00403120
mov edi, eax
lea eax, [ebx + 0x594]
call fcn.00402f73
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x40263b
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x402652
push eax
call fcn.004013aa
xor edi, edi
inc edi
xor esi, esi
cmp dword [ebp - 0x21c], esi
je 0x40266b
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebp + 9], 8
je 0x402682
push dword [0x4ed3f0]
lea eax, [ebx + 0x590]
call fcn.00402fb6
or eax, 0xffffffff
cmp dword [ebp + 8], eax
jne 0x4026b3
mov dword [ebx + 0x5a8], esi
mov dword [ebx + 0x5ac], 0x37
mov dword [ebx + 0x5c0], edi
lea ecx, [ebx + 0x5d8]
xor edi, edi
mov dword [ebx + 0x5c4], esi
call fcn.00403907
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.004c7b01
leave
ret 4