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

Disassembly:
push ebp
lea ebp, [esp - 0x1868]
mov eax, 0x1868
call fcn.0040e290
push 0xffffffffffffffff
push 0x4594cc
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x1864], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x1878]
mov ebx, dword [ebp + 0x1870]
push edi
push str.cmd__s
mov dword [ebp - 0x18], ebx
call fcn.00407e36
push 0xc
call fcn.0040c14b
add esp, 0xc
mov dword [ebp - 0x14], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x405068
mov ecx, eax
call fcn.0040189d
jmp 0x40506a
xor eax, eax
or dword [ebp - 4], 0xffffffff
push ebx
mov ecx, eax
mov dword [0x46b21c], eax
call fcn.004018a4
push 0x3e6
lea eax, [ebp + 0xc5e]
push esi
push eax
mov word [ebp + 0xc5c], si
call fcn.0040cc40
add esp, 0xc
push edi
lea ecx, [ebp + 0x38]
call fcn.00401615
push esi
mov edi, str._untie
push edi
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], 1
call fcn.004049b3
cmp eax, 0xffffffff
jle 0x405199
cmp dword [ebp + 0x50], 8
mov ebx, dword [ebp + 0x3c]
jae 0x4050cb
lea ebx, [ebp + 0x3c]
push edi
call fcn.0040bfc4
lea eax, [ebx + eax*2 + 2]
push eax
lea eax, [ebp + 0xc5c]
push eax
call fcn.0040c6c7
add esp, 0xc
lea ecx, [ebp - 0xd]
call fcn.004031a6
push esi
lea eax, [ebp + 0xc5c]
push eax
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 2
call fcn.00404342
push 0x206
lea eax, [ebp + 0x165e]
push esi
push eax
mov word [ebp + 0x165c], si
call fcn.0040cc40
mov ecx, dword [0x46b21c]
add esp, 0xc
call fcn.00401927
mov ecx, eax
call fcn.00405a5d
push eax
lea eax, [ebp + 0x165c]
push str._sConfig_
push eax
call fcn.0040c70d
lea eax, [ebp + 0x165c]
push str.Config.ini
push eax
call fcn.0040c6c7
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x14
lea eax, [ebp + 0x165c]
push eax
push 0x45aa44
push str.IsUseSkin
mov edi, str.Setting
push edi
call ebx
lea eax, [ebp + 0x165c]
push eax
push 0x45ab00
push str.SkinName
push edi
call ebx
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 1
call fcn.0041ec9b
jmp 0x4056f2
push esi
push str._temp
lea ecx, [ebp + 0x38]
call fcn.004049b3
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, 0x45aa44
mov ebx, str.SetModify
jle 0x40525c
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x4051cc
lea eax, [ebp + 0x3c]
push str._temp
mov dword [ebp - 0x14], eax
call fcn.0040bfc4
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax*2 + 2]
push eax
lea eax, [ebp + 0xc5c]
push eax
call fcn.0040c6c7
add esp, 0xc
lea ecx, [ebp - 0xd]
call fcn.004031a6
push 1
lea eax, [ebp + 0xc5c]
push eax
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 3
call fcn.00404342
mov ecx, dword [0x46b21c]
call fcn.00401927
mov ecx, eax
call fcn.00405a7c
push eax
push edi
push str.IsModifyUIStyle
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
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 1
call fcn.0041ec9b
push 0
push str._install
lea ecx, [ebp + 0x38]
call fcn.004049b3
cmp eax, 0xffffffff
jle 0x405293
sub esp, 0x1c
lea eax, [ebp + 0x38]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004019f1
push dword [ebp - 0x18]
call fcn.00404dcd
add esp, 0x20
push 0
jmp 0x4056f3
push 0
push str._bindinst
lea ecx, [ebp + 0x38]
call fcn.004049b3
cmp eax, 0xffffffff
jle 0x405654
and word [ebp + 0xa54], 0
push 0x206
lea eax, [ebp + 0xa56]
push 0
push eax
call fcn.0040cc40
and word [ebp + 0x165c], 0
push 0x206
lea eax, [ebp + 0x165e]
push 0
push eax
call fcn.0040cc40
and word [ebp + 0x1044], 0
push 0x206
lea eax, [ebp + 0x1046]
push 0
push eax
call fcn.0040cc40
and word [ebp + 0x1454], 0
push 0x206
lea eax, [ebp + 0x1456]
push 0
push eax
call fcn.0040cc40
mov eax, dword [ebp + 0x3c]
add esp, 0x30
cmp dword [ebp + 0x50], 8
jae 0x405326
lea eax, [ebp + 0x3c]
push str._bindinst
mov dword [ebp - 0x14], eax
call fcn.0040bfc4
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax*2 + 2]
push eax
lea eax, [ebp + 0xc5c]
push eax
call fcn.0040c6c7
mov ecx, dword [0x46b21c]
add esp, 0xc
lea eax, [ebp + 0x165c]
push eax
lea eax, [ebp + 0xc5c]
push eax
call fcn.0040192b
mov ecx, eax
call fcn.00401820
push 0x1f3
lea eax, [ebp + 0x861]
push 0
push eax
mov byte [ebp + 0x860], 0
call fcn.0040cc40
push 0x1f3
lea eax, [ebp + 0x66d]
push 0
push eax
mov byte [ebp + 0x66c], 0
call fcn.0040cc40
lea eax, [ebp + 0x860]
push eax
lea eax, [ebp + 0x165c]
push eax
call fcn.004073a2
lea eax, [ebp + 0x66c]
push eax
lea eax, [ebp + 0x860]
push eax
call fcn.004074a1
lea eax, [ebp + 0x165c]
push eax
lea eax, [ebp + 0x66c]
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 + 0x1454]
push str._sAllSkin_
push eax
call fcn.0040c70d
add esp, 0xc
lea eax, [ebp + 0x1454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405420
push eax
lea eax, [ebp + 0x1454]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
and word [ebp + 0x54], 0
push 0x206
lea eax, [ebp + 0x56]
push 0
push eax
call fcn.0040cc40
push str..dfpf
lea eax, [ebp + 0x54]
push 0x45aa48
push eax
call fcn.0040c70d
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x165c]
push eax
call fcn.0040e8dc
add esp, 0x20
test eax, eax
je 0x405476
and word [eax], 0
lea eax, [ebp + 0x165c]
push str..dfpf
push eax
call fcn.0040c6c7
pop ecx
pop ecx
lea eax, [ebp + 0x165c]
push eax
lea eax, [ebp + 0xa54]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0xa54]
push str..dfpf
push eax
call fcn.0040e8dc
add esp, 0x10
test eax, eax
je 0x4054a5
and word [eax], 0
lea eax, [ebp + 0x165c]
push eax
lea eax, [ebp + 0x1454]
push eax
lea eax, [ebp + 0x1044]
push 0x45a7f4
push eax
call fcn.0040c70d
and word [ebp + 0x25c], 0
push 0x206
lea eax, [ebp + 0x25e]
push 0
push eax
call fcn.0040cc40
and word [ebp + 0x464], 0
push 0x206
lea eax, [ebp + 0x466]
push 0
push eax
call fcn.0040cc40
lea eax, [ebp + 0xc5c]
push eax
lea eax, [ebp + 0x25c]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x1044]
push eax
lea eax, [ebp + 0x464]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x25c]
push eax
call fcn.0040ebc3
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x464]
push eax
call fcn.0040ebc3
add esp, 0x40
push 0
lea eax, [ebp + 0x1044]
push eax
lea eax, [ebp + 0xc5c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp - 0x14]
push dword [ebp - 0x14]
call fcn.0040e93a
pop ecx
pop ecx
lea ecx, [ebp - 0xd]
call fcn.004031a6
push 0
lea eax, [ebp + 0x1044]
push eax
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 4
call fcn.00404342
mov ecx, dword [0x46b21c]
call fcn.00401927
mov ecx, eax
call fcn.00405a7c
push eax
push edi
push str.IsModifyUIStyle
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
xor ebx, ebx
push 0x206
lea eax, [ebp + 0x124e]
push ebx
push eax
mov word [ebp + 0x124c], bx
call fcn.0040cc40
mov ecx, dword [0x46b21c]
add esp, 0xc
call fcn.00401927
mov ecx, eax
call fcn.00405a5d
push eax
lea eax, [ebp + 0x124c]
push str._sConfig_
push eax
call fcn.0040c70d
lea eax, [ebp + 0x124c]
push str.Config.ini
push eax
call fcn.0040c6c7
add esp, 0x14
lea eax, [ebp + 0x124c]
push eax
push edi
push str.IsUseSkin
mov edi, str.Setting
push edi
call esi
lea eax, [ebp + 0x124c]
push eax
lea eax, [ebp + 0xa54]
push eax
push str.SkinName
push edi
call esi
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 1
call fcn.0041ec9b
push ebx
jmp 0x4056f3
xor esi, esi
push esi
push str.RunDHang
lea ecx, [ebp + 0x38]
call fcn.004049b3
cmp eax, 0xffffffff
jle 0x4056f2
push esi
push 0x45aac0
lea ecx, [ebp + 0x38]
call fcn.004049b3
cmp eax, 0xffffffff
je 0x4056f2
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x38]
call fcn.00401a41
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 5
call fcn.00407a21
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.004031a6
push 0x45a510
sub esp, 0x1c
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 7
call fcn.00404c6a
lea ecx, [ebp - 0x14]
call fcn.0040a986
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0041ec9b
push esi
push 1
lea ecx, [ebp]
call fcn.004049d4
push esi
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040115a
push esi
push 1
lea ecx, [ebp + 0x38]
call fcn.0040115a
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1864]
xor ecx, ebp
call fcn.0040c5c6
add ebp, 0x1868
leave
ret 0x10