Function at 0x494280
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x494288
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404fe8
xor eax, eax
push ebp
push 0x494662
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
call fcn.00461fb8
mov edx, 0x49467c
call fcn.00462024
lea edx, [ebp - 0x14]
mov eax, dword [esi + 0xc]
call fcn.0040ec8c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
call fcn.0040ece0
mov edx, dword [ebp - 0x28]
lea eax, [esi + 0x14]
mov ecx, 0x4946a8
call fcn.00404e44
lea edx, [esi + 0x14]
mov eax, esi
call fcn.00494ab0
mov dl, 1
mov eax, dword [0x417a64]
call fcn.00403d64
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x494623
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4945bb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
push 1
mov ecx, 0x4946bc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0045efe8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4945b1
inc ebx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x2c]
mov ecx, 0x4946c8
mov edx, dword [ebp - 4]
call fcn.00404e44
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
call fcn.00404f44
je 0x4945a7
mov al, byte [0x4946e0]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.0040f50c
mov eax, dword [ebp - 0x1c]
call fcn.0040a114
test al, al
je 0x4944a6
mov al, byte [0x4946e0]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.0040f50c
push 0x80
mov eax, dword [ebp - 0x1c]
call fcn.00404ff8
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesA
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
call fcn.0040a4dc
mov eax, dword [ebp - 0x30]
call fcn.0040a124
test al, al
jne 0x494445
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x20]
call fcn.0040a4dc
mov eax, dword [ebp - 0x34]
call fcn.0040a148
test al, al
jne 0x494445
push 1
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x20]
call fcn.0040a4dc
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x44]
push eax
call fcn.00461fb8
mov edx, 0x4946ec
pop ecx
call fcn.00462308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004045e0
jmp 0x49462a
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404ff8
push eax
push edi
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4945a7
push 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x60]
push eax
call fcn.00461fb8
mov edx, 0x494718
pop ecx
call fcn.00462308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004045e0
jmp 0x49462a
mov al, byte [0x4946e0]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.0040f50c
lea eax, [ebp - 0x24]
mov edx, 0x494758
call fcn.00404e00
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x24]
call fcn.0040a4dc
mov eax, dword [ebp - 0x64]
call fcn.0040a124
test al, al
jne 0x494542
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x24]
call fcn.0040a4dc
mov eax, dword [ebp - 0x68]
call fcn.0040a148
test al, al
jne 0x494542
push 1
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x24]
call fcn.0040a4dc
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x44]
push eax
call fcn.00461fb8
mov edx, 0x4946ec
pop ecx
call fcn.00462308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004045e0
jmp 0x49462a
push 0
mov eax, dword [ebp - 0x24]
call fcn.00404ff8
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404ff8
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4945a7
push 2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x60]
push eax
call fcn.00461fb8
mov edx, 0x494718
pop ecx
call fcn.00462308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004045e0
jmp 0x49462a
inc dword [ebp - 0x10]
dec ebx
jne 0x49434a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4945fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49462a
lea eax, [ebp - 0xc]
call fcn.0040fc50
call fcn.00461fb8
mov edx, 0x494794
call fcn.00462024
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494669
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.00404b4c
lea eax, [ebp - 0x48]
call fcn.00404b28
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.00404b4c
lea eax, [ebp - 4]
call fcn.00404b28
ret