Function at 0x4e7000
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x608340
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00409dd0
xor esi, esi
mov dword [esp + 0x60], esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, esi
je 0x4e746a
jl 0x4e746a
push str.SkinConvert
push ecx
call fcn.005d2e73
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, esi
je 0x4e746a
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4e746a
lea edi, [esp + 0x28]
call fcn.0047ac70
mov byte [esp + 0x60], 1
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], esi
jne 0x4e70ec
mov byte [esp + 0x60], 0
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e70ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e70d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
lea eax, [esp + 0x28]
call fcn.00576f50
call fcn.00448810
mov dword [esp + 0x50], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x50]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x50]
mov dword [eax], eax
mov eax, dword [esp + 0x50]
mov dword [eax + 8], eax
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x64], 2
call fcn.0047b070
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x60], 3
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x60], 4
mov ecx, dword [esp + 0x50]
mov esi, dword [ecx]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [esp + 0x4c]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
lea esp, [esp]
test ebx, ebx
mov edi, dword [esp + 0x50]
je 0x4e7190
lea edx, [esp + 0x4c]
cmp ebx, edx
je 0x4e7195
call fcn.005d29f1
cmp esi, edi
je 0x4e7404
test ebx, ebx
jne 0x4e71a6
call fcn.005d29f1
cmp esi, dword [ebx + 4]
jne 0x4e71b0
call fcn.005d29f1
lea eax, [esi + 0x10]
lea edi, [esp + 0x18]
call fcn.0040ab90
cmp esi, dword [ebx + 4]
jne 0x4e71c6
call fcn.005d29f1
lea eax, [esi + 0xc]
lea edi, [esp + 0x24]
call fcn.0040ab90
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e73ee
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
mov ebx, str.SkinAppSkin.xml
call fcn.0040aab0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, str.SkinProgramSkin.xml
mov byte [esp + 0x70], 5
call fcn.0040aab0
mov edx, dword [esp + 0x40]
add esp, 0x10
push edx
call ebp
mov eax, dword [esp + 0x2c]
push eax
call ebp
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, 0x63118c
mov byte [esp + 0x68], 6
call fcn.0040aab0
add esp, 8
lea edi, [esp + 0x34]
mov byte [esp + 0x60], 7
call fcn.0040ab90
mov byte [esp + 0x60], 6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e72ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x34]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e72ef
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call ebp
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x60], 8
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
lea ebx, [esp + 0x3c]
mov dword [esp + 0x44], esp
mov esi, esp
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
call fcn.004e74b0
mov esi, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x4e73ac
cmp dword [esi - 0xc], 0
je 0x4e73ac
push str.10000000_0000_0000_0000_000000000001
push esi
call fcn.005d2da6
add esp, 8
test eax, eax
je 0x4e73ac
lea ecx, [esp + 0x20]
call fcn.00403890
mov byte [esp + 0x60], 9
call fcn.004991b0
lea ecx, [esp + 0x20]
push ecx
call fcn.00499370
test eax, eax
je 0x4e73a3
mov ebx, dword [esp + 0x20]
cmp dword [ebx - 0xc], 0
je 0x4e73a3
call fcn.004062c0
mov edx, dword [0x678ec4]
push edx
mov dword [0x678ec0], 1
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x20]
call fcn.00403870
lea eax, [esi - 0x10]
mov byte [esp + 0x60], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e73cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e73ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x44]
call fcn.00433c40
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x4e7180
mov byte [esp + 0x60], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e7429
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e744e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x60], 1
call fcn.0041d480
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x28]
jmp 0x4e708f
lea eax, [ecx - 0x10]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e748e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret