Function at 0x418f5e
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 + 0x38]
push str.Skin
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0041a27c
push dword [eax]
call fcn.004216ea
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.0041a27c
mov eax, dword [eax]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041a27c
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.0041a27c
mov eax, dword [ebx + 0x28]
cmp dword [eax - 0xc], 0
jl 0x418ff6
mov dword [ebp - 4], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x419008
mov ecx, dword [0x43b50c]
push eax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
call fcn.0040b61a
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov esi, 0x444224
je 0x4190bb
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 0x4190bb
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 0x43ff38
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 0x4190bb
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x440b38
push str.UseSkin
push str.Main
call edi
push dword [ebp - 4]
push esi
push 0x43ff38
push str.Path
call edi
mov ecx, ebx
call fcn.0041586c
lea edi, [ebx + 0x38]
push str.PACOMP.EXE
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0041a27c
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419325
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.0041a314
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.00419342
cmp dword [ebp - 0x38], 0
jne 0x419117
and dword [ebp - 0x14], 0
jmp 0x419123
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.0041a27c
xor eax, eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
jle 0x4192a0
mov ecx, dword [ebp - 0x38]
xor edi, edi
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jl 0x41915e
mov dword [ebp - 8], ecx
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x419171
mov ecx, dword [0x43b50c]
mov dword [ebp - 8], ecx
push dword [eax]
lea ecx, [ebp - 8]
call fcn.0040b61a
mov eax, dword [ebp - 8]
cmp dword [eax - 8], edi
je 0x419288
mov ecx, dword [0x43b50c]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push 0x43cb6c
push eax
call fcn.00409818
mov eax, dword [0x43b50c]
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.00409818
mov eax, dword [0x43b50c]
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.00409818
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.004210b4
push dword [ebp - 0x18]
call fcn.00421803
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 0x419140
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4192b6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0x445db4
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x4192db
push edi
push 0x445bac
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x419315
mov ebx, dword [ebx + 0x20]
push str.4.0.0.0
push ebx
call fcn.0042157a
pop ecx
test eax, eax
pop ecx
jge 0x419315
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 0x43ff38
push str.Path
call edi
lea ecx, [ebp - 0x20]
call fcn.00404c0d
lea ecx, [ebp - 0x3c]
call fcn.0041a0fd
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