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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c992
mov eax, dword fs:[0]
push eax
mov eax, 0x1834
call fcn.0040a660
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.00415ce0
push 0x208
lea eax, [ebp - 0xa38]
push ebx
push eax
call fcn.00415ce0
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00415ce0
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.00415ce0
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.00415ce0
add esp, 0x3c
cmp dword [esi + 0x14], 8
jb 0x404fc7
mov esi, dword [esi]
push 0x55ea78
call fcn.00419261
inc eax
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x1208]
push eax
call fcn.00421862
lea eax, [ebp - 0x1208]
push eax
lea eax, [ebp - 0x1838]
push eax
call fcn.0040fd1a
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.0041c316
mov esi, 0x1f4
lea eax, [ebp - 0xc2c]
push esi
push ebx
push eax
call fcn.00415ce0
push esi
lea eax, [ebp - 0xe20]
push ebx
push eax
call fcn.00415ce0
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00410adf
lea eax, [ebp - 0xe20]
push eax
lea eax, [ebp - 0xc2c]
push eax
call fcn.00412ef8
add esp, 0x44
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xe20]
push eax
call fcn.00410988
pop ecx
pop ecx
call fcn.00401650
mov ecx, eax
call fcn.0040b505
push eax
lea eax, [ebp - 0x628]
push str._sAllSkin_
push eax
call fcn.00401e62
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4050b8
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.00415ce0
push str..wnpf
lea eax, [ebp - 0x1410]
push str._1__s
push eax
call fcn.00401e62
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00415614
add esp, 0x20
test eax, eax
je 0x405113
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push str..wnpf
push eax
call fcn.00421862
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.0041c316
lea eax, [ebp - 0xa38]
push str..wnpf
push eax
call fcn.00415614
add esp, 0x10
test eax, eax
je 0x405143
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.00401e62
push esi
lea eax, [ebp - 0x1618]
push ebx
push eax
call fcn.00415ce0
push esi
lea eax, [ebp - 0x1820]
push ebx
push eax
call fcn.00415ce0
lea eax, [ebp - 0x1208]
push eax
lea eax, [ebp - 0x1618]
push eax
call fcn.0041c316
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x1820]
push eax
call fcn.0041c316
lea eax, [ebp - 0x1618]
push eax
call fcn.00421a3c
mov esi, eax
lea eax, [ebp - 0x1820]
push eax
call fcn.00421a3c
add esp, 0x40
mov dword [ebp - 0x1840], eax
lea ecx, [ebp - 0x1839]
call fcn.00403c83
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.00408c86
test al, al
jne 0x40520d
cmp byte [ebp - 0x183a], al
je 0x405357
mov ecx, edi
call fcn.004046f7
jmp 0x405369
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.004192ff
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.00407846
call fcn.00401650
mov ecx, eax
call fcn.004131cd
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.00415ce0
add esp, 0xc
call fcn.00401650
mov ecx, eax
call fcn.0040b505
push eax
lea eax, [ebp - 0x420]
push str._sConfig_
push eax
call fcn.00401e62
lea eax, [ebp - 0x420]
push str.Config.ini
push eax
call fcn.00421862
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 0x40534d
xor ebx, ebx
push ebx
push 0x56025c
push 0x560390
jmp 0x405362
xor ebx, ebx
cmp dword [ebp - 0x1840], ebx
jne 0x405340
push ebx
push 0x56025c
push 0x560268
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x1839]
call fcn.00418cf0
xor eax, eax
lea ecx, [ebp - 0x1838]
push ebx
inc eax
push eax
call fcn.004019dd
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.0040a1c7
mov esp, ebp
pop ebp
ret 4