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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c97f
mov eax, dword fs:[0]
push eax
mov eax, 0x1834
call fcn.0040a610
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1208]
push 0x3e8
xor ebx, ebx
push ebx
push eax
call fcn.00415c80
push 0x208
lea eax, [ebp - 0xa38]
push ebx
push eax
call fcn.00415c80
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00415c80
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.00415c80
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.00415c80
add esp, 0x3c
cmp dword [esi + 0x14], 8
jb 0x404f6f
mov esi, dword [esi]
push 0x55ea78
call fcn.004191f1
inc eax
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x1208]
push eax
call fcn.004217f2
lea eax, [ebp - 0x1208]
push eax
lea eax, [ebp - 0x1838]
push eax
call fcn.0040f9d0
cmp dword [ebp - 0x1824], 8
lea eax, [ebp - 0x1838]
mov dword [ebp - 4], ebx
cmovae eax, dword [ebp - 0x1838]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041c2a6
mov esi, 0x1f4
lea eax, [ebp - 0xc2c]
push esi
push ebx
push eax
call fcn.00415c80
push esi
lea eax, [ebp - 0xe20]
push ebx
push eax
call fcn.00415c80
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004107cf
lea eax, [ebp - 0xe20]
push eax
lea eax, [ebp - 0xc2c]
push eax
call fcn.00412e92
add esp, 0x44
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xe20]
push eax
call fcn.00410678
pop ecx
pop ecx
call fcn.00401650
mov ecx, eax
call fcn.0040b492
push eax
lea eax, [ebp - 0x628]
push str._sAllSkin_
push eax
call fcn.00401e48
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405060
push ebx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, 0x208
lea eax, [ebp - 0x1410]
push esi
push ebx
push eax
call fcn.00415c80
push str..wnpf
lea eax, [ebp - 0x1410]
push str._1__s
push eax
call fcn.00401e48
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004155b4
add esp, 0x20
test eax, eax
je 0x4050bb
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push str..wnpf
push eax
call fcn.004217f2
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.0041c2a6
lea eax, [ebp - 0xa38]
push str..wnpf
push eax
call fcn.004155b4
add esp, 0x10
test eax, eax
je 0x4050eb
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push 0x55e5d4
push eax
call fcn.00401e48
push esi
lea eax, [ebp - 0x1618]
push ebx
push eax
call fcn.00415c80
push esi
lea eax, [ebp - 0x1820]
push ebx
push eax
call fcn.00415c80
lea eax, [ebp - 0x1208]
push eax
lea eax, [ebp - 0x1618]
push eax
call fcn.0041c2a6
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x1820]
push eax
call fcn.0041c2a6
lea eax, [ebp - 0x1618]
push eax
call fcn.004219cc
mov esi, eax
lea eax, [ebp - 0x1820]
push eax
call fcn.004219cc
add esp, 0x40
mov dword [ebp - 0x1840], eax
lea ecx, [ebp - 0x1839]
call fcn.00403c2b
xor eax, eax
lea ecx, [ebp - 0x1839]
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x183a]
push eax
lea eax, [ebp - 0x1208]
push eax
call fcn.00408c2c
test al, al
jne 0x4051b5
cmp byte [ebp - 0x183a], al
je 0x4052ff
mov ecx, edi
call fcn.0040469f
jmp 0x405311
push ebx
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x1208]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp - 0x1840]
mov ebx, eax
push esi
call fcn.0041928f
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
push 1
pop eax
cmove ecx, eax
lea eax, [ebp - 0x830]
push 0
mov dword [ebp - 0x1840], ecx
lea ecx, [ebp - 0x1839]
push eax
call fcn.004077ee
call fcn.00401650
mov ecx, eax
call fcn.00413167
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
push esi
push 0x55e674
push str.IsModifyUIStyle
push str.SetModify
call edi
push esi
push 0x55e674
push str.IsModifyUIStyle64
push str.SetModify
call edi
push esi
push 0x55e674
push str.IsTempModifyUIStyle
push str.SetModify
call edi
push esi
mov esi, 0x55e674
push esi
push str.IsTempModifyUIStyle64
push str.SetModify
call edi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00415c80
add esp, 0xc
call fcn.00401650
mov ecx, eax
call fcn.0040b492
push eax
lea eax, [ebp - 0x420]
push str._sConfig_
push eax
call fcn.00401e48
lea eax, [ebp - 0x420]
push str.Config.ini
push eax
call fcn.004217f2
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
push esi
push str.IsUseSkin
mov esi, str.Setting
push esi
call edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa38]
push eax
push str.UseSkin
push esi
call edi
lea eax, [ebp - 0x420]
push eax
push 0x55e674
push str.InstallSkin
push esi
call edi
test ebx, ebx
je 0x4052f5
xor ebx, ebx
push ebx
push 0x560260
push 0x560394
jmp 0x40530a
xor ebx, ebx
cmp dword [ebp - 0x1840], ebx
jne 0x4052e8
push ebx
push 0x560260
push 0x56026c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x1839]
call fcn.0048d3b0
xor eax, eax
lea ecx, [ebp - 0x1838]
push ebx
inc eax
push eax
call fcn.004019c3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a159
mov esp, ebp
pop ebp
ret 4