Function at 0x494ed8
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x494ee0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4953cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
call fcn.00461fb8
mov edx, 0x4953e8
call fcn.00462024
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040ec8c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040ec8c
mov dl, 1
mov eax, dword [0x417a64]
call fcn.00403d64
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49536b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4952fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
xor edx, edx
call fcn.004055f4
je 0x494f97
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.00404dc0
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0045dde4
mov eax, dword [ebp - 0x24]
call fcn.0040a114
test al, al
je 0x495098
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x44]
mov edx, 0x495410
call fcn.004055f4
jne 0x495098
xor eax, eax
push ebp
push 0x495061
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040ece0
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
mov ecx, 0x495428
call fcn.00404e44
mov eax, dword [ebp - 0x28]
call fcn.0045ed1c
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.004927a4
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0040ec8c
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
call fcn.00404bc0
mov eax, dword [ebp - 0x28]
call fcn.0040a148
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00494b10
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004045e0
jmp 0x495372
push 0xffffffffffffffff
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, 0x495470
mov edx, dword [ebp - 0xc]
call fcn.0045efe8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4952ef
inc esi
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov al, byte [0x495474]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040f50c
mov eax, dword [ebp - 0x20]
call fcn.0040a114
test al, al
je 0x49510f
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004957ec
test al, al
je 0x4952e5
mov eax, dword [ebp - 0x20]
call fcn.0040a114
test al, al
jne 0x495208
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x20]
call fcn.0040a4dc
mov eax, dword [ebp - 0x58]
call fcn.0040a124
test al, al
jne 0x495196
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
call fcn.0040a4dc
mov eax, dword [ebp - 0x5c]
call fcn.0040a148
test al, al
jne 0x495196
push 1
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x20]
call fcn.0040a4dc
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00461fb8
mov edx, 0x495480
pop ecx
call fcn.00462308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004045e0
jmp 0x495372
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404ff8
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404ff8
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4952e5
push 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0xb
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0
lea eax, [ebp - 0x88]
push eax
call fcn.00461fb8
mov edx, 0x4954ac
pop ecx
call fcn.00462308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004045e0
jmp 0x495372
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x20]
call fcn.0040a5dc
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.0040940c
mov eax, dword [ebp - 0x8c]
mov edx, 0x4954ec
call fcn.00404f44
jne 0x495251
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
call fcn.0045fb2c
call fcn.00461fb8
mov edx, dword [ebp - 0x2c]
call fcn.00462024
push 0x80
mov eax, dword [ebp - 0x20]
call fcn.00404ff8
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push 0
push ebx
mov eax, dword [ebp - 0x1c]
call fcn.00404ff8
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4952e5
mov dword [ebp - 0x30], 4
jmp 0x4952d9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
jne 0x4952ab
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404ff8
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404ff8
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4952e5
cmp ebx, 5
je 0x4952b5
cmp ebx, 0x20
jne 0x4952d9
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x31]
push eax
lea eax, [ebp - 0x32]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00495550
cmp byte [ebp - 0x31], 0
jne 0x4952e5
cmp byte [ebp - 0x32], 0
mov eax, dword [ebp - 0x20]
call fcn.0040a384
test al, al
je 0x495284
inc dword [ebp - 0x10]
dec esi
jne 0x4950ca
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495346
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495372
lea eax, [ebp - 0xc]
call fcn.0040fc50
call fcn.00461fb8
mov edx, 0x49552c
call fcn.00462024
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4953d6
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.00404b4c
lea eax, [ebp - 0x70]
call fcn.00404b28
lea eax, [ebp - 0x5c]
mov edx, 6
call fcn.00404b4c
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040529c
lea eax, [ebp - 0x3c]
call fcn.00404b28
lea eax, [ebp - 0x38]
call fcn.00405284
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.00404b4c
ret