Function at 0x40fea8
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov ebx, eax
mov eax, 0x48fecc
call fcn.004696b8
mov word [ebp - 0x3c], 0x14
xor edx, edx
lea ecx, [ebp - 4]
mov dword [ebp - 4], edx
push ecx
inc dword [ebp - 0x30]
call fcn.0040f698
pop ecx
xor eax, eax
mov word [ebp - 0x3c], 8
mov word [ebp - 0x3c], 0x20
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push edx
inc dword [ebp - 0x30]
call fcn.0040f7cc
pop ecx
mov word [ebp - 0x3c], 8
push 0x80
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40ff08
mov eax, dword [ebp - 4]
jmp 0x40ff0d
mov eax, 0x48c54b
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
mov edx, dword [ebp - 4]
test edx, edx
je 0x40ff21
mov ecx, dword [ebp - 4]
jmp 0x40ff26
mov ecx, 0x48c54d
push ecx
xor eax, eax
mov word [ebp - 0x3c], 0x2c
mov dword [ebp - 0xc], eax
mov eax, dword [0x49a444]
inc dword [ebp - 0x30]
lea edx, [ebp - 0xc]
mov eax, dword [eax]
call fcn.004417d0
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x40ff50
mov ecx, dword [ebp - 0xc]
jmp 0x40ff55
mov ecx, 0x48c54c
push ecx
call sub.KERNEL32.DLL_CopyFileA
dec dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00474d44
push 5
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ff79
mov edx, dword [ebp - 4]
jmp 0x40ff7e
mov edx, 0x48c54e
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
push 0x80
mov eax, dword [ebp - 8]
test eax, eax
je 0x40ff95
mov ecx, dword [ebp - 8]
jmp 0x40ff9a
mov ecx, 0x48c54f
push ecx
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x40ffae
mov edx, dword [ebp - 8]
jmp 0x40ffb3
mov edx, 0x48c551
push edx
xor eax, eax
mov word [ebp - 0x3c], 0x38
mov dword [ebp - 0x10], eax
mov eax, dword [0x49a444]
inc dword [ebp - 0x30]
lea edx, [ebp - 0x10]
mov eax, dword [eax]
call fcn.004417d0
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x40ffdd
mov ecx, dword [ebp - 0x10]
jmp 0x40ffe2
mov ecx, 0x48c550
push ecx
call sub.KERNEL32.DLL_CopyFileA
dec dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00474d44
push 5
mov eax, dword [ebp - 8]
test eax, eax
je 0x410006
mov edx, dword [ebp - 8]
jmp 0x41000b
mov edx, 0x48c552
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, 0x48c554
lea eax, [ebp - 0x18]
call fcn.00474b48
inc dword [ebp - 0x30]
mov edx, 0x48c553
mov ecx, dword [eax]
lea eax, [ebp - 0x14]
push ecx
mov word [ebp - 0x3c], 0x44
call fcn.00474b48
inc dword [ebp - 0x30]
mov edx, dword [eax]
mov eax, ebx
pop ecx
call fcn.00410174
dec dword [ebp - 0x30]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x30]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00474d44
mov word [ebp - 0x3c], 0x50
mov edx, 0x48c555
lea eax, [ebp - 0x1c]
call fcn.00474b48
inc dword [ebp - 0x30]
lea edx, [ebp - 0x1c]
mov eax, 0x49b138
call fcn.00474e40
push eax
dec dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x4100ad
mov ecx, dword [ebp - 4]
mov edx, dword [0x49b138]
mov eax, ebx
call fcn.00410174
mov word [ebp - 0x3c], 0x5c
mov edx, 0x48c55c
lea eax, [ebp - 0x20]
call fcn.00474b48
inc dword [ebp - 0x30]
lea edx, [ebp - 0x20]
mov eax, 0x49b140
call fcn.00474e40
push eax
dec dword [ebp - 0x30]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00474d44
pop ecx
test cl, cl
je 0x410144
mov word [ebp - 0x3c], 0x68
mov edx, 0x48c563
lea eax, [ebp - 0x24]
call fcn.00474b48
inc dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
inc dword [ebp - 0x30]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.00474d9c
lea ecx, [ebp - 0x28]
mov ecx, dword [ecx]
mov edx, dword [0x49b13c]
mov eax, ebx
call fcn.004102c8
dec dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x30]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00474d44
dec dword [ebp - 0x30]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00474d44
mov ecx, dword [ebp - 0x4c]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret