Function at 0x4157cf
Capabilities:
Check if file exists
Copy file
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
push ebx
mov ebx, 0x444ce4
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ebx
mov dword [ebp - 8], ecx
push 0x443154
call esi
pop ecx
test eax, eax
pop ecx
je 0x415aad
push ebx
push 0x444adc
call esi
pop ecx
test eax, eax
pop ecx
jne 0x415aad
and word [ebp - 0x220], ax
push edi
mov ecx, 0x81
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push str.Software360360se3
push eax
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x10], 1
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x220]
push 0x43af64
push eax
call esi
lea eax, [ebp - 0x220]
push ebx
push eax
call esi
and word [ebp - 0x838], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x836]
rep stosd dword es:[edi], eax
add esp, 0x18
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
stosw word es:[edi], ax
lea eax, [ebp - 4]
mov esi, SysReAllocStringLen
push eax
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push str.ShowPage
push eax
push esi
call ebx
lea eax, [ebp - 0x838]
push eax
push 0x43a628
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
mov eax, dword [ebp - 8]
pop ecx
push dword [eax + 0x28]
jne 0x4158cb
push 0x443154
jmp 0x4158d0
push str.4.1.3.6
push str.FileVersion
push str.Main
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and word [ebp - 0x428], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x426]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push str.SkinName
push eax
push esi
call ebx
and word [ebp - 0x630], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x62e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push str.SkinPath
push eax
push esi
call ebx
lea eax, [ebp - 0x428]
push eax
push 0x443154
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x4159cc
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4159cc
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 8]
add eax, 0x34
push str.Skin_
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041a0ea
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041a0ea
push 0
push dword [eax]
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x18]
call fcn.00404c0d
lea ecx, [ebp - 0x14]
call fcn.00404c0d
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0xc]
push eax
call fcn.00404729
push 0
push str..zip
lea ecx, [ebp - 0xc]
call fcn.00404a64
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
call fcn.004047da
push eax
lea ecx, [ebp - 0xc]
call fcn.0040478a
lea ecx, [ebp - 0x14]
call fcn.00404c0d
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [eax + 0x28]
push 0x43a628
push str.UseSkin
push str.Main
call edi
mov eax, dword [ebp - 8]
push dword [eax + 0x28]
push dword [ebp - 0xc]
push 0x43ee70
push str.Path
call edi
and word [ebp - 0xa40], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xa3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0xa40]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push str.strRun
push eax
push esi
call ebx
lea eax, [ebp - 0xa40]
push eax
push 0x43a628
call dword [sym.imp.MSVCRT.dll_wcscmp]
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [0x445300], eax
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [ebp - 0xc]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret