Function at 0x40457e
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1814]
mov eax, 0x1814
call fcn.0040e290
push 0xffffffffffffffff
push 0x4593e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x1810], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x181c]
xor esi, esi
push 0x3e6
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.0040cc40
mov edi, 0x206
push edi
lea eax, [ebp + 0xdea]
push esi
push eax
mov word [ebp + 0xde8], si
call fcn.0040cc40
push edi
lea eax, [ebp + 0x160a]
push esi
push eax
mov word [ebp + 0x1608], si
call fcn.0040cc40
push edi
lea eax, [ebp + 0xff2]
push esi
push eax
mov word [ebp + 0xff0], si
call fcn.0040cc40
push edi
lea eax, [ebp + 0x11fa]
push esi
push eax
mov word [ebp + 0x11f8], si
call fcn.0040cc40
add esp, 0x3c
cmp dword [ebx + 0x18], 8
jb 0x40463d
mov ebx, dword [ebx + 4]
jmp 0x404640
add ebx, 4
push str._install
call fcn.0040bfc4
lea eax, [ebx + eax*2 + 2]
push eax
lea eax, [ebp]
push eax
call fcn.0040c6c7
mov ecx, dword [0x46b21c]
add esp, 0xc
lea eax, [ebp + 0x1608]
push eax
lea eax, [ebp]
push eax
call fcn.0040192b
mov ecx, eax
call fcn.00401820
mov ebx, 0x1f3
push ebx
lea eax, [ebp + 0xbf5]
push esi
push eax
mov byte [ebp + 0xbf4], 0
call fcn.0040cc40
push ebx
lea eax, [ebp + 0xa01]
push esi
push eax
mov byte [ebp + 0xa00], 0
call fcn.0040cc40
lea eax, [ebp + 0xbf4]
push eax
lea eax, [ebp + 0x1608]
push eax
call fcn.004073a2
lea eax, [ebp + 0xa00]
push eax
lea eax, [ebp + 0xbf4]
push eax
call fcn.004074a1
lea eax, [ebp + 0x1608]
push eax
lea eax, [ebp + 0xa00]
push eax
call fcn.00407379
mov ecx, dword [0x46b21c]
add esp, 0x30
call fcn.00401927
mov ecx, eax
call fcn.00405a5d
push eax
lea eax, [ebp + 0x11f8]
push str._sAllSkin_
push eax
call fcn.0040c70d
add esp, 0xc
lea eax, [ebp + 0x11f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404729
push esi
lea eax, [ebp + 0x11f8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea eax, [ebp + 0x3ea]
push esi
push eax
mov word [ebp + 0x3e8], si
call fcn.0040cc40
mov ebx, str..dfpf
push ebx
lea eax, [ebp + 0x3e8]
push 0x45aa48
push eax
call fcn.0040c70d
lea eax, [ebp + 0x3e8]
push eax
lea eax, [ebp + 0x1608]
push eax
call fcn.0040e8dc
add esp, 0x20
cmp eax, esi
je 0x404781
mov word [eax], si
lea eax, [ebp + 0x1608]
push ebx
push eax
call fcn.0040c6c7
pop ecx
pop ecx
lea eax, [ebp + 0x1608]
push eax
lea eax, [ebp + 0xde8]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0xde8]
push ebx
push eax
call fcn.0040e8dc
add esp, 0x10
cmp eax, esi
je 0x4047ab
mov word [eax], si
lea eax, [ebp + 0x1608]
push eax
lea eax, [ebp + 0x11f8]
push eax
lea eax, [ebp + 0xff0]
push 0x45a7f4
push eax
call fcn.0040c70d
push edi
lea eax, [ebp + 0x5f2]
push esi
push eax
mov word [ebp + 0x5f0], si
call fcn.0040cc40
push edi
lea eax, [ebp + 0x7fa]
push esi
push eax
mov word [ebp + 0x7f8], si
call fcn.0040cc40
lea eax, [ebp]
push eax
lea eax, [ebp + 0x5f0]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0xff0]
push eax
lea eax, [ebp + 0x7f8]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x5f0]
push eax
call fcn.0040ebc3
mov edi, eax
lea eax, [ebp + 0x7f8]
push eax
call fcn.0040ebc3
add esp, 0x40
push esi
lea eax, [ebp + 0xff0]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call fcn.0040e93a
test eax, eax
pop ecx
pop ecx
jne 0x404860
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0xd]
call fcn.004031a6
push esi
lea eax, [ebp + 0xff0]
push eax
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], esi
call fcn.00404342
mov ecx, dword [0x46b21c]
call fcn.00401927
mov ecx, eax
call fcn.00405a7c
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
mov edi, 0x45aa44
push edi
push str.IsModifyUIStyle
mov ebx, str.SetModify
push ebx
mov dword [ebp - 0x14], eax
call esi
push dword [ebp - 0x14]
push edi
push str.IsModifyUIStyle64
push ebx
call esi
push dword [ebp - 0x14]
push edi
push str.IsTempModifyUIStyle
push ebx
call esi
push dword [ebp - 0x14]
push edi
push str.IsTempModifyUIStyle64
push ebx
call esi
and word [ebp + 0x1400], 0
push 0x206
lea eax, [ebp + 0x1402]
push 0
push eax
call fcn.0040cc40
mov ecx, dword [0x46b21c]
add esp, 0xc
call fcn.00401927
mov ecx, eax
call fcn.00405a5d
push eax
lea eax, [ebp + 0x1400]
push str._sConfig_
push eax
call fcn.0040c70d
lea eax, [ebp + 0x1400]
push str.Config.ini
push eax
call fcn.0040c6c7
add esp, 0x14
lea eax, [ebp + 0x1400]
push eax
push edi
push str.IsUseSkin
mov ebx, str.Setting
push ebx
call esi
lea eax, [ebp + 0x1400]
push eax
lea eax, [ebp + 0xde8]
push eax
push str.SkinName
push ebx
call esi
lea eax, [ebp + 0x1400]
push eax
push edi
push str.InstallSkin
push ebx
call esi
xor eax, eax
push eax
push 0x45a910
cmp dword [ebp - 0x1c], eax
je 0x404973
push 0x45a900
jmp 0x40497d
cmp dword [ebp - 0x18], eax
jne 0x40496c
push 0x45a8f0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.0041ec9b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1810]
xor ecx, ebp
call fcn.0040c5c6
add ebp, 0x1814
leave
ret