Function at 0x462eb5
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
cmp edi, ecx
je 0x463331
cmp dword [edi], 0x198
jne 0x463331
test byte [edi + 4], 1
mov dword [edi + 8], ecx
je 0x462f00
mov eax, dword [edi + 0x18c]
cmp eax, ecx
je 0x463331
cmp dword [edi + 0x190], ecx
je 0x463331
mov word [eax], cx
test byte [edi + 4], 2
je 0x462f0c
mov dword [edi + 0x194], ecx
mov eax, dword [ebp + 8]
cmp eax, ecx
mov esi, 0x494d88
mov ebx, 0x174
je 0x46329f
cmp word [eax], cx
je 0x46329f
cmp word [0x494d88], cx
jne 0x462f41
push 0x40
push esi
push ebx
call fcn.0045ede1
add esp, 0xc
jmp 0x462f43
mov eax, esi
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x46329d
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
lea eax, [ebp - 0x82c]
je 0x462fe7
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.skin.xml
push dword [ebp + 8]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
lea eax, [ebp - 0x82c]
je 0x462fb2
push 0
push 0
mov dword [edi + 8], 2
push edi
push eax
call fcn.00462b39
add esp, 0x10
jmp 0x46332c
push 0x479b40
push dword [ebp + 8]
push eax
call esi
push eax
call ebx
test eax, eax
je 0x46332c
push 0
push 0
push edi
push str.skininfo.xml
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
mov dword [edi + 8], 1
call esi
jmp 0x462fa4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x463331
lea eax, [ebp - 0x41c]
push eax
xor esi, esi
push esi
push 0x473cb4
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x463331
push esi
push esi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00402b8d
push dword [eax]
call fcn.0041a8c5
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.NSCRT.dll_free]
cmp dword [ebp + 0xc], esi
pop ecx
pop ecx
je 0x463331
mov ebx, dword [sym.imp.KERNEL32.dll_CompareStringA]
mov byte [ebp - 0x214], 1
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
or dword [ebp - 0xc], 0xffffffff
call fcn.0041a1e0
jmp 0x463261
cmp byte [ebp - 0x214], 0
je 0x463282
mov eax, dword [ebp - 4]
inc dword [ebp - 0xc]
xor ecx, ecx
cmp eax, ecx
je 0x463090
cmp dword [ebp - 0xc], eax
je 0x46326c
push ecx
push ecx
push ecx
push ecx
push 0x104
lea eax, [ebp - 0x110]
push eax
push ecx
push dword [ebp + 0xc]
call fcn.0041a1b9
add esp, 0x20
test eax, eax
jne 0x463259
cmp byte [ebp - 0x110], al
je 0x463259
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x463259
cmp byte [ebp + esi - 0x111], 0x2f
je 0x463259
cmp dword [edi + 8], 0
jne 0x46319e
cmp esi, 8
je 0x463100
jle 0x463157
cmp byte [ebp + esi - 0x119], 0x2f
jne 0x463157
push 0xffffffffffffffff
lea eax, [ebp + esi - 0x118]
push eax
push 0xffffffffffffffff
push str.main.bmp
push 1
push 0x409
call ebx
cmp eax, 2
jne 0x463157
push 0x47c624
push 0x104
lea eax, [ebp - 0x214]
push eax
mov dword [edi + 8], 1
call fcn.00402e02
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x463259
cmp esi, 8
je 0x463170
jle 0x463259
cmp byte [ebp + esi - 0x119], 0x2f
jne 0x463259
push 0xffffffffffffffff
lea eax, [ebp + esi - 0x118]
push eax
push 0xffffffffffffffff
push 0x475ed8
push 1
push 0x409
call ebx
cmp eax, 2
jne 0x463259
mov dword [edi + 8], eax
lea eax, [ebp - 0x41c]
jmp 0x463204
cmp esi, dword [ebp - 8]
je 0x4631bc
jle 0x463259
mov eax, esi
sub eax, dword [ebp - 8]
cmp byte [ebp + eax - 0x111], 0x2f
jne 0x463259
sub esi, dword [ebp - 8]
push 0xffffffffffffffff
lea eax, [ebp + esi - 0x110]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push eax
push 1
push 0x409
call ebx
cmp eax, 2
jne 0x463259
push 0xffffffffffffffff
push 0x47c624
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push eax
push 1
push 0x409
call ebx
cmp eax, 2
lea eax, [ebp - 0x41c]
jne 0x463229
push 0x104
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 0x214]
mov eax, edi
call fcn.00462e1a
add esp, 0xc
test eax, eax
mov dword [ebp - 8], eax
je 0x463259
jmp 0x46314c
push eax
push dword [ebp + 0xc]
call fcn.00462840
test eax, eax
pop ecx
pop ecx
je 0x463252
xor eax, eax
push eax
lea ecx, [ebp - 0x41c]
push ecx
push eax
push eax
call fcn.00460465
add esp, 0x10
mov dword [edi + 0x194], eax
mov byte [ebp - 0x214], 0
push dword [ebp + 0xc]
call fcn.0041a222
test eax, eax
pop ecx
je 0x46306e
jmp 0x46326f
mov dword [ebp - 4], ecx
cmp byte [ebp - 0x214], 0
je 0x463282
cmp dword [ebp - 4], 0
jne 0x46305d
push dword [ebp + 0xc]
call fcn.0041a8d3
pop ecx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46332c
xor ecx, ecx
mov dword [edi + 8], 1
cmp word [0x494d88], cx
jne 0x4632bd
push 0x40
push esi
push ebx
call fcn.0045ede1
add esp, 0xc
jmp 0x4632bf
mov eax, esi
push eax
push 0x20
lea eax, [edi + 0xc]
push eax
call fcn.00467521
test byte [edi + 4], 1
je 0x4632ef
mov eax, dword [edi + 0x190]
cmp eax, 0x7fffffff
ja 0x4632ef
push str.Winamp_base_skin_v5.5
push eax
push dword [edi + 0x18c]
call fcn.00467521
test byte [edi + 4], 2
je 0x46330c
push 0
push 0x70
push 0x47c2c4
call fcn.00460004
add esp, 0xc
mov dword [edi + 0x194], eax
push str.Steve_Gedikian
push 0x20
lea eax, [edi + 0x6c]
push eax
call fcn.00467521
push 0x47c5d0
push 0x10
add edi, 0x4c
push edi
call fcn.00467521
xor eax, eax
inc eax
jmp 0x463333
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret