Function at 0x417e83
Capabilities:
Check if file exists
Copy file
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0x1c]
push str.Skin
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00418da8
push dword [eax]
call fcn.0041d105
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00404c0d
mov esi, str.SkinIE6Default.zip
lea eax, [ebp - 0x18]
push esi
push edi
push eax
call fcn.00418da8
mov eax, dword [eax]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00418da8
mov eax, dword [eax]
push 0
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x14]
call fcn.00404c0d
lea ecx, [ebp - 0x18]
call fcn.00404c0d
push str.SkinFourSeriesDefault.zip
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00418da8
mov eax, dword [ebx + 0x10]
cmp dword [eax - 0xc], 0
jl 0x417f1b
mov dword [ebp - 4], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x417f2d
mov ecx, dword [0x42e50c]
push eax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
call fcn.0040b399
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov esi, 0x434ee4
je 0x417fe0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 4]
push 0
push str.UseSkin
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x417fe0
and word [ebp - 0x244], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x242]
push dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x244]
push 0x104
push eax
push esi
push 0x432aec
push str.Path
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x244]
push str.FourSeriesDefault
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x417fe0
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x433578
push str.UseSkin
push str.Main
call edi
push dword [ebp - 4]
push esi
push 0x432aec
push str.Path
call edi
mov ecx, ebx
call fcn.0041499c
lea edi, [ebx + 0x1c]
push str.PACOMP.EXE
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00418da8
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41824a
mov al, byte [ebp - 0x29]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
xor eax, eax
push eax
push eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call fcn.00418df4
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.00418267
cmp dword [ebp - 0x38], 0
jne 0x41803c
and dword [ebp - 0x14], 0
jmp 0x418048
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
sar eax, 2
mov dword [ebp - 0x14], eax
push str.Skin
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00418da8
xor eax, eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
jle 0x4181c5
mov ecx, dword [ebp - 0x38]
xor edi, edi
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jl 0x418083
mov dword [ebp - 8], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x418096
mov ecx, dword [0x42e50c]
mov dword [ebp - 8], ecx
push dword [eax]
lea ecx, [ebp - 8]
call fcn.0040b399
mov eax, dword [ebp - 8]
cmp dword [eax - 8], edi
je 0x4181ad
mov ecx, dword [0x42e50c]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push 0x42f9cc
push eax
call fcn.0040959f
mov eax, dword [0x42e50c]
add esp, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0x20]
push str._s_s.
push eax
call fcn.0040959f
mov eax, dword [0x42e50c]
add esp, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push dword [ebp - 8]
push dword [ebp - 0x20]
push str._s_s.zip
push eax
call fcn.0040959f
mov word [ebp - 0x244], di
add esp, 0x10
mov ecx, 0x81
xor eax, eax
push dword [ebp - 0x28]
lea edi, [ebp - 0x242]
rep stosd dword es:[edi], eax
push dword [ebp - 0x24]
stosw word es:[edi], ax
push str._q__p__a__c2__r
push str._s___s____s_
lea eax, [ebp - 0x244]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
and word [ebp - 0x44c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x44a]
rep stosd dword es:[edi], eax
add esp, 0x18
stosw word es:[edi], ax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push dword [ebp - 0xc]
push str.__s___s
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0
push 0x2710
lea eax, [ebp - 0x44c]
push 0
push eax
call fcn.0041cacf
push dword [ebp - 0x18]
call fcn.0041d21e
add esp, 0x28
lea ecx, [ebp - 0x24]
call fcn.00404c0d
lea ecx, [ebp - 0x28]
call fcn.00404c0d
lea ecx, [ebp - 0x18]
call fcn.00404c0d
lea ecx, [ebp - 8]
call fcn.00404c0d
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jl 0x418065
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4181db
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0x436a74
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x418200
push edi
push 0x43686c
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x41823a
mov ebx, dword [ebx + 8]
push str.4.0.0.0
push ebx
call fcn.0041cf95
pop ecx
test eax, eax
pop ecx
jge 0x41823a
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push str.UseSkin
push str.Main
call edi
push dword [ebp - 4]
push esi
push 0x432aec
push str.Path
call edi
lea ecx, [ebp - 0x20]
call fcn.00404c0d
lea ecx, [ebp - 0x3c]
call fcn.00418c41
lea ecx, [ebp - 0xc]
call fcn.00404c0d
lea ecx, [ebp - 4]
call fcn.00404c0d
lea ecx, [ebp - 0x1c]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret