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

Disassembly:
mov eax, 0x4ee988
call fcn.004eadec
sub esp, 0x21c
mov eax, dword [0x516ad4]
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x1c]
push str._Sound_Folder_
call fcn.00403266
lea eax, [ebx + 0x20]
push str._Lyrics_Download_Folder_
call fcn.00403266
xor edi, edi
inc edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
jne 0x401e27
lea eax, [ebx + 0x50]
push eax
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x2c], 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], edi
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 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x11
mov dword [ebp - 0x21c], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push dword [ebp - 0x21c]
lea ecx, [ebx + 0xa0]
push esi
push esi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebx + 0xac]
add dword [eax], 0xffffffce
mov eax, dword [eax]
add eax, 0xffffffbe
mov dword [ebx + 0xa4], eax
mov eax, 0x26c
sub eax, dword [ebp - 0x21c]
push esi
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebx + 0xa0]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x14
push 0xc8
push esi
push 0x64
lea eax, [ebx + 0xbc]
push eax
mov dword [ebx + 0xb0], edi
mov dword [ebx + 0xb4], esi
mov dword [ebx + 0xb8], edi
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebx + 0xcc]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [ebx + 0xdc], esi
mov dword [ebx + 0xe0], esi
mov dword [ebx + 0xe4], esi
mov dword [ebx + 0xe8], 2
mov dword [ebx + 0xec], esi
mov dword [ebx + 0xf0], esi
mov dword [ebx + 0xf4], esi
mov dword [ebx + 0xf8], esi
mov dword [ebx + 0x108], esi
mov dword [ebx + 0x10c], 0x64
mov dword [ebx + 0x110], esi
mov dword [ebx + 0x114], edi
mov dword [ebx + 0x118], esi
mov dword [ebx + 0x11c], esi
mov dword [ebx + 0x120], esi
mov dword [ebx + 0x124], edi
mov dword [ebx + 0x128], esi
mov dword [ebx + 0x12c], edi
test byte [ebp + 8], 2
je 0x401ef8
xor eax, eax
cmp dword [0x522470], esi
mov dword [ebx + 0x13c], esi
setne al
mov dword [ebx + 0x140], edi
mov dword [ebx + 0x148], edi
mov dword [ebx + 0x14c], esi
mov dword [ebx + 0x150], edi
mov dword [ebx + 0x154], esi
mov dword [ebx + 0x158], edi
mov dword [ebx + 0x144], eax
xor eax, eax
mov dword [ebx + 0x15c], edi
mov dword [ebx + 0x160], 0x1000a
mov dword [ebx + 0x164], 0x10005
mov dword [ebx + 0x168], 7
mov dword [ebx + 0x16c], 0x7d40801
call fcn.004b3602
push 0x18
pop ecx
xor edx, edx
div ecx
push 0x813a
push dword [0x521618]
mov dword [ebx + 0x174], esi
mov word [ebx + 0x17c], si
mov word [ebx + 0x17a], si
mov word [ebx + 0x178], si
mov dword [ebx + 0x180], esi
mov dword [ebx + 0x184], edi
dec eax
mov dword [ebx + 0x170], eax
lea eax, [ebx + 0x188]
push eax
call fcn.00403988
lea eax, [ebx + 0x18c]
call fcn.004031f5
test byte [ebp + 8], 4
je 0x401f70
push 0xf
pop eax
mov dword [ebx + 0x1a0], eax
mov dword [ebx + 0x1a8], eax
mov eax, 0x320
mov dword [ebx + 0x190], edi
mov dword [ebx + 0x194], esi
mov dword [ebx + 0x19c], esi
mov dword [ebx + 0x198], esi
mov dword [ebx + 0x1a4], 0x4000
mov dword [ebx + 0x1ac], 0x12c
mov dword [ebx + 0x1b0], 0x1f4
mov dword [ebx + 0x1b4], eax
mov dword [ebx + 0x1b8], eax
mov dword [ebx + 0x1bc], 0x1388
mov dword [ebx + 0x1c0], esi
mov dword [ebx + 0x1c4], esi
mov dword [ebx + 0x1c8], esi
test byte [ebp + 8], 8
je 0x401fb8
mov dword [ebx + 0x1cc], esi
lea esi, [ebx + 0x1d0]
call fcn.004c259d
mov dword [ebp - 0x21c], 0x516b68
mov dword [ebp - 0x220], 0x36
push dword [ebp - 0x21c]
push esi
call fcn.004039e1
add dword [ebp - 0x21c], 0xc
dec dword [ebp - 0x220]
jne 0x401f9b
xor esi, esi
test byte [ebp + 9], 4
je 0x402009
lea edi, [ebx + 0x1e0]
mov esi, 0x5010c0
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 + 0x1f0], 0x10
mov dword [ebx + 0x1f4], 0x3e8
mov dword [ebx + 0x1f8], eax
mov dword [ebx + 0x1fc], ecx
mov dword [ebx + 0x200], ecx
mov dword [ebx + 0x204], eax
mov dword [ebx + 0x208], ecx
xor esi, esi
test byte [ebp + 8], 1
je 0x4020a4
mov eax, 0x5c4d19
push esi
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x218], eax
mov dword [ebx + 0x220], eax
mov dword [ebx + 0x230], eax
lea eax, [ebp - 0x204]
push eax
push esi
push 0x29
mov dword [ebx + 0x20c], 2
mov dword [ebx + 0x210], 0x19
mov dword [ebx + 0x224], edi
mov dword [ebx + 0x22c], edi
mov dword [ebx + 0x228], 3
mov dword [ebx + 0x234], 0xffffff
mov dword [ebp - 0x204], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x5c
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebx + 0x238]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebx + 0x252], 4
test byte [ebp + 9], 0x20
je 0x4020ee
xor eax, eax
cmp dword [0x522470], esi
push 2
setne al
pop ecx
mov dword [ebx + 0x73c], edi
mov dword [ebx + 0x740], esi
mov dword [ebx + 0x750], ecx
mov dword [ebx + 0x754], ecx
mov dword [ebx + 0x748], esi
mov dword [ebx + 0x744], eax
mov dword [ebx + 0x758], ecx
mov dword [ebx + 0x74c], eax
mov dword [ebx + 0x75c], ecx
test byte [ebp + 8], 0x30
je 0x40235f
mov dword [ebx + 0x3dc], esi
mov dword [ebx + 0x324], esi
mov dword [ebx + 0x328], edi
push 4
pop ecx
mov dword [ebx + 0x32c], ecx
push 0xa
pop eax
mov dword [ebx + 0x330], eax
mov dword [ebx + 0x334], edi
mov dword [ebx + 0x338], esi
mov dword [ebx + 0x33c], esi
mov dword [ebx + 0x340], edi
mov dword [ebx + 0x3a0], 0xc08000
mov dword [ebx + 0x3a4], 0xff00
mov dword [ebx + 0x3a8], esi
mov dword [ebx + 0x294], esi
mov dword [ebx + 0x298], edi
mov dword [ebx + 0x29c], esi
mov dword [ebx + 0x2a0], edi
mov dword [ebx + 0x2a4], ecx
mov dword [ebx + 0x2a8], eax
mov dword [ebx + 0x2ac], edi
mov dword [ebx + 0x2b0], esi
mov dword [ebx + 0x2b4], esi
mov dword [ebx + 0x2b8], edi
mov dword [ebx + 0x318], 0xa58e54
mov dword [ebx + 0x31c], 0xfff5d4
mov dword [ebx + 0x320], 0x3c3318
mov dword [ebx + 0x3ac], edi
mov dword [ebx + 0x3b0], esi
mov dword [ebx + 0x3b4], esi
mov dword [ebx + 0x3b8], esi
mov dword [ebx + 0x3bc], edi
mov dword [ebx + 0x3c0], edi
mov dword [ebx + 0x3c4], edi
mov dword [ebx + 0x3c8], esi
mov dword [ebx + 0x3cc], esi
mov dword [ebx + 0x3d0], edi
mov dword [ebx + 0x3d4], edi
mov dword [ebx + 0x3d8], esi
mov dword [ebx + 0x3e0], edi
mov dword [ebx + 0x3e4], esi
mov dword [ebx + 0x3e8], esi
mov dword [ebx + 0x3ec], esi
mov dword [ebx + 0x3f0], esi
mov dword [ebx + 0x3f4], esi
push 0x522254
lea edi, [ebp - 0x21c]
mov dword [ebx + 0x3f8], esi
call fcn.004031b3
push str.Lyrics_
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004033e6
mov edi, eax
lea eax, [ebx + 0x3fc]
call fcn.00403223
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x402260
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x402277
push eax
call fcn.004013aa
lea ecx, [ebx + 0x404]
or eax, 0xffffffff
xor edi, edi
mov dword [ebx + 0x400], 1
call fcn.00403c2b
lea ecx, [ebx + 0x1c]
lea esi, [ebp - 0x228]
call fcn.0040318a
and dword [ebp - 0x224], edi
and dword [ebp - 4], edi
mov eax, esi
push eax
lea edi, [ebx + 0x404]
call fcn.0042563e
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4022cd
push eax
call fcn.004013aa
lea edx, [ebx + 0x20]
lea esi, [ebp - 0x228]
call fcn.00401bd4
push eax
lea edi, [ebx + 0x404]
mov dword [ebp - 4], 1
call fcn.0042563e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x402309
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 + 0x2bc]
push edi
call sub.MSVCRT.dll_memcpy
push 0x5c
lea esi, [ebx + 0x344]
push edi
push esi
mov byte [ebx + 0x2d6], 4
call sub.MSVCRT.dll_memcpy
xor edi, edi
add esp, 0x18
mov dword [esi], 0x3c
inc edi
xor esi, esi
test byte [ebp + 9], 0x40
je 0x402450
push 0x5c
lea eax, [ebx + 0x45c]
push esi
push eax
call sub.MSVCRT.dll_memset
mov dword [ebx + 0x45c], 0xffffffd8
mov dword [ebx + 0x46c], 0x2bc
lea eax, [ebx + 0x478]
push 0x4f73e8
mov byte [ebx + 0x476], 4
push eax
mov byte [ebx + 0x473], 1
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov dword [ebx + 0x418], edi
mov dword [ebx + 0x41c], esi
mov dword [ebx + 0x420], 0x32
mov dword [ebx + 0x424], 0xff
mov dword [ebx + 0x434], esi
mov dword [ebx + 0x438], edi
mov dword [ebx + 0x43c], esi
mov dword [ebx + 0x428], edi
mov dword [ebx + 0x42c], edi
mov dword [ebx + 0x430], esi
mov dword [ebx + 0x440], edi
mov dword [ebx + 0x444], esi
mov dword [ebx + 0x448], edi
mov dword [ebx + 0x44c], esi
mov eax, 0xffffff
mov dword [ebx + 0x450], eax
mov dword [ebx + 0x454], 0x141414
mov dword [ebx + 0x458], eax
add esp, 0x14
mov dword [ebx + 0x414], esi
mov dword [ebp - 0x21c], esi
mov eax, dword [ebp - 0x21c]
mov esi, ebx
call fcn.004028bb
inc dword [ebp - 0x21c]
cmp dword [ebp - 0x21c], 3
jl 0x402432
xor esi, esi
test byte [ebp + 8], 0x40
je 0x402517
mov dword [ebx + 0x548], esi
mov dword [ebx + 0x54c], edi
mov dword [ebx + 0x550], edi
mov dword [ebx + 0x554], edi
mov dword [ebx + 0x558], esi
mov dword [ebx + 0x55c], edi
mov dword [ebx + 0x560], esi
mov dword [ebx + 0x564], edi
mov dword [ebx + 0x568], esi
mov dword [ebx + 0x56c], edi
push str._A____T
lea eax, [ebx + 0x574]
mov dword [ebx + 0x570], esi
call fcn.00403266
push 0x4f73d0
lea eax, [ebx + 0x578]
call fcn.00403266
mov dword [ebx + 0x5d8], 0xa58e54
mov dword [ebx + 0x5dc], 0xfff5d4
mov eax, 0x9e8545
mov dword [ebx + 0x5e0], eax
mov dword [ebx + 0x5e4], eax
push 0x5c
lea eax, [ebx + 0x2bc]
push eax
mov dword [ebx + 0x5e8], 0xf9ce84
lea eax, [ebx + 0x57c]
mov dword [ebx + 0x5ec], 0x40381d
push eax
mov dword [ebx + 0x5f0], 0x3c3318
call sub.MSVCRT.dll_memcpy
add esp, 0xc
test byte [ebp + 8], 0x80
je 0x402548
mov dword [ebx + 0x5f4], esi
mov dword [ebx + 0x5f8], esi
lea ecx, [ebx + 0x604]
or eax, 0xffffffff
xor edi, edi
mov dword [ebx + 0x600], esi
call fcn.00403c2b
and dword [ebx + 0x614], edi
inc edi
xor esi, esi
test byte [ebp + 9], 1
je 0x40261b
mov esi, 0x522510
call fcn.0040191a
mov dword [ebx + 0x618], edi
mov dword [ebx + 0x61c], edi
mov dword [ebx + 0x620], edi
mov dword [ebx + 0x624], edi
push 0x522254
lea edi, [ebp - 0x21c]
call fcn.004031b3
push str.Cache_
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004033e6
mov edi, eax
lea eax, [ebx + 0x63c]
call fcn.00403223
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4025ba
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4025d1
push eax
call fcn.004013aa
push str.http:__freedb.freedb.org_cddb_cddb.cgi
lea eax, [ebx + 0x628]
call fcn.00403266
lea ecx, [ebx + 0x62c]
or eax, 0xffffffff
xor edi, edi
call fcn.00403b9d
or dword [ebx + 0x640], 0xffffffff
mov dword [ebx + 0x644], 7
and dword [ebx + 0x64c], edi
mov dword [ebx + 0x648], 0x12c
and dword [ebx + 0x650], edi
inc edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
jne 0x4026a9
push 0x28
mov dword [ebx + 0x680], 0xfffffffe
or dword [ebx + 0x684], 0xffffffff
lea eax, [ebx + 0x6b8]
push esi
push eax
mov dword [ebx + 0x688], esi
call sub.MSVCRT.dll_memset
push 0x28
lea eax, [ebx + 0x68c]
push esi
push eax
call sub.MSVCRT.dll_memset
mov dword [ebx + 0x654], esi
mov dword [ebx + 0x658], esi
mov dword [ebx + 0x65c], esi
add esp, 0x18
mov dword [ebx + 0x660], esi
mov dword [ebx + 0x664], esi
push 0x4f7364
lea eax, [ebx + 0x66c]
mov dword [ebx + 0x668], esi
call fcn.00403266
mov dword [ebx + 0x670], edi
mov dword [ebx + 0x674], esi
mov dword [ebx + 0x678], esi
mov dword [ebx + 0x67c], esi
test byte [ebp + 9], 2
je 0x40285b
lea eax, [ebx + 0x6e8]
call fcn.004031f5
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 0x402752
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4f7548
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 0x40274d
mov eax, dword [ebp - 0x220]
and word [ebp + eax*2 - 0x218], 0
mov eax, edi
push eax
lea esi, [ebx + 0x6e8]
mov eax, esi
call fcn.00403266
push str.Plugins
push esi
call fcn.0040328b
xor edi, edi
inc edi
xor esi, esi
mov eax, dword [ebx + 0x6e8]
cmp dword [eax - 8], esi
jne 0x4027da
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 0x4027a0
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.0043bf54
test eax, eax
je 0x4027d5
lea eax, [ebp - 0x218]
push eax
lea eax, [ebx + 0x6e8]
call fcn.00403266
xor edi, edi
inc edi
xor esi, esi
mov eax, dword [ebx + 0x6e8]
cmp dword [eax - 8], esi
jne 0x402847
push 0x522254
lea edi, [ebp - 0x224]
call fcn.004031b3
push str.Plugins_
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004033e6
mov edi, eax
lea eax, [ebx + 0x6e8]
call fcn.00403223
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x40282b
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x402842
push eax
call fcn.004013aa
xor edi, edi
inc edi
xor esi, esi
cmp dword [ebp - 0x21c], esi
je 0x40285b
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebp + 9], 8
je 0x402872
push dword [0x516b60]
lea eax, [ebx + 0x6e4]
call fcn.00403266
or eax, 0xffffffff
cmp dword [ebp + 8], eax
jne 0x4028a3
mov dword [ebx + 0x6fc], esi
mov dword [ebx + 0x700], 0x37
mov dword [ebx + 0x714], edi
lea ecx, [ebx + 0x72c]
xor edi, edi
mov dword [ebx + 0x718], esi
call fcn.00403b9d
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.004eae3c
leave
ret 4