Function at 0x418e91
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 + 0x34]
push str.Skin
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0041a0ea
push dword [eax]
call fcn.00421506
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.0041a0ea
mov eax, dword [eax]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041a0ea
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.0041a0ea
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
jl 0x418f29
mov dword [ebp - 4], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x418f3b
mov ecx, dword [0x43a50c]
push eax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
call fcn.0040b723
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov esi, 0x443154
je 0x418fee
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 0x418fee
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 0x43ee70
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 0x418fee
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x43fa88
push str.UseSkin
push str.Main
call edi
push dword [ebp - 4]
push esi
push 0x43ee70
push str.Path
call edi
mov ecx, ebx
call fcn.004157cf
lea edi, [ebx + 0x34]
push str.PACOMP.EXE
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0041a0ea
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419258
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.0041a136
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.00419275
cmp dword [ebp - 0x38], 0
jne 0x41904a
and dword [ebp - 0x14], 0
jmp 0x419056
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.0041a0ea
xor eax, eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
jle 0x4191d3
mov ecx, dword [ebp - 0x38]
xor edi, edi
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jl 0x419091
mov dword [ebp - 8], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4190a4
mov ecx, dword [0x43a50c]
mov dword [ebp - 8], ecx
push dword [eax]
lea ecx, [ebp - 8]
call fcn.0040b723
mov eax, dword [ebp - 8]
cmp dword [eax - 8], edi
je 0x4191bb
mov ecx, dword [0x43a50c]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push 0x43bb44
push eax
call fcn.00409921
mov eax, dword [0x43a50c]
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.00409921
mov eax, dword [0x43a50c]
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.00409921
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.00420ed0
push dword [ebp - 0x18]
call fcn.0042161f
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 0x419073
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4191e9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0x444ce4
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x41920e
push edi
push 0x444adc
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x419248
mov ebx, dword [ebx + 0x20]
push str.4.0.0.0
push ebx
call fcn.00421396
pop ecx
test eax, eax
pop ecx
jge 0x419248
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 0x43ee70
push str.Path
call edi
lea ecx, [ebp - 0x20]
call fcn.00404c0d
lea ecx, [ebp - 0x3c]
call fcn.0041a030
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