Function at 0x4cf430
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Get file version info
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x214
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4cf73e
mov ebp, dword [esp + 0x230]
test ebp, ebp
je 0x4cf73e
cmp word [eax], 0
je 0x4cf73e
cmp word [ebp], 0
je 0x4cf73e
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cf486
test al, 0x10
je 0x4cf486
push 0x29c
push 6
jmp 0x4cf745
push ebp
call fcn.004cf760
mov eax, dword [esp + 0x238]
mov ebx, dword [esp + 0x22c]
add esp, 4
cmp eax, 2
mov dword [esp + 0x14], 1
jne 0x4cf586
test ebx, ebx
je 0x4cf586
cmp word [ebx], 0
je 0x4cf586
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.005fc3ce
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4cf586
lea edi, [esi + 1]
push edi
call fcn.008325b4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4cf576
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
lea eax, [esp + 0x24]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4cf576
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
xor eax, eax
push str.StringFileInfo040904b0Comments
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4cf576
mov eax, dword [esp + 0x10]
push 2
push 0x94d8f0
push eax
call fcn.005fd511
add esp, 0xc
test eax, eax
jne 0x4cf576
mov dword [esp + 0x14], eax
push ebx
call fcn.008325dd
mov ebx, dword [esp + 0x22c]
add esp, 4
mov eax, dword [0x9dce80]
xor edi, edi
cmp eax, edi
je 0x4cf5af
mov ecx, dword [esp + 0x14]
push ecx
push str.CPackFileMgr::PackFile_bZipPackFiles__d_
push str.SDAPI
push 4
push 0x9dc5ec
call fcn.006600d0
add esp, 0x14
cmp ebx, edi
mov dword [esp + 0x10], edi
je 0x4cf650
cmp word [ebx], di
je 0x4cf650
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4cf5dd
push 0x2d3
push 4
jmp 0x4cf745
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cf5f7
test al, 1
je 0x4cf5f7
and al, 0xfe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call ebx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
inc edi
cmp esi, 0xffffffff
jne 0x4cf6f2
cmp edi, 0xa
jl 0x4cf5fd
push 0x2ee
push 4
call fcn.004ce450
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push ebp
mov ebx, eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cf6d0
cmp ebx, eax
je 0x4cf68f
test bl, 1
je 0x4cf68f
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebp
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cf6d0
push 0x311
push 4
call fcn.004ce450
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
push 0
push 0
push esi
call fcn.004cf3f0
add esp, 0xc
test eax, eax
jne 0x4cf6f2
push 0x316
push 0xe
call fcn.004ce450
add esp, 8
jmp 0x4cf714
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x234]
mov ecx, dword [esp + 0x22c]
push edx
push eax
push ecx
push esi
call fcn.004ce5c0
add esp, 0x10
mov dword [esp + 0x10], eax
cmp esi, 0xffffffff
je 0x4cf720
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4cf72f
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
push 0x295
push 1
call fcn.004ce450
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret