Function at 0x4e69a4
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4e69ac
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040685c
xor eax, eax
push ebp
push 0x4e6c02
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4e6b98
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [esi + 0x6b8]
call fcn.00412920
push 7
mov eax, dword [esi + 0x6b8]
call fcn.00406900
push eax
call sub.kernel32.dll_SetFileAttributesW
lea edx, [ebp - 0xc]
mov ebx, dword [esi + 0x408]
mov eax, ebx
call fcn.004a6474
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0041126c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004a64ac
mov eax, dword [esi + 0x410]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4e6a4a
push 0
mov eax, dword [ebp - 4]
push eax
xor ecx, ecx
mov dl, 1
mov eax, esi
call fcn.004e19cc
mov ebx, eax
jmp 0x4e6a5d
push 0
mov eax, dword [ebp - 4]
push eax
mov cl, 1
mov dl, 1
mov eax, esi
call fcn.004e19cc
mov ebx, eax
test bl, bl
je 0x4e6b8e
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x408]
call fcn.004a6474
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.004214dc
lea eax, [ebp - 0x1c]
push eax
push 2
mov eax, dword [0x4fa1a4]
mov eax, dword [eax]
mov ecx, 0x4e6c20
mov edx, 0x4e6c40
call fcn.004dabcc
lea edx, [ebp - 0x34]
mov eax, dword [esi + 0x40c]
call fcn.004a6474
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.004214dc
lea eax, [ebp - 0x30]
push eax
push 2
mov eax, dword [0x4fa1a4]
mov eax, dword [eax]
mov ecx, 0x4e6c60
mov edx, 0x4e6c40
call fcn.004dabcc
mov eax, dword [esi + 0x410]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4e6b0e
lea eax, [ebp - 0x44]
mov edx, 1
mov cl, 1
call fcn.00421218
lea eax, [ebp - 0x44]
push eax
push 0
mov eax, dword [0x4fa1a4]
mov eax, dword [eax]
mov ecx, 0x4e6c80
mov edx, 0x4e6c40
call fcn.004dabcc
jmp 0x4e6b39
lea eax, [ebp - 0x54]
mov edx, 2
mov cl, 1
call fcn.00421218
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [0x4fa1a4]
mov eax, dword [eax]
mov ecx, 0x4e6c80
mov edx, 0x4e6c40
call fcn.004dabcc
push 0
mov edx, dword [esi + 0x6b8]
lea eax, [ebp - 0x58]
mov ecx, 0x4e6c98
call fcn.00406d58
mov eax, dword [ebp - 0x58]
call fcn.00406900
push eax
mov eax, dword [0x4fa1a4]
mov eax, dword [eax]
call fcn.00406900
push eax
call sub.kernel32.dll_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
mov esi, dword [0x4fa1a4]
mov esi, dword [esi]
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x5c]
call fcn.00406900
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e6ba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6c09
lea eax, [ebp - 0x58]
call fcn.00406864
lea eax, [ebp - 0x54]
mov edx, dword [0x401278]
mov ecx, 2
call fcn.0040763c
lea eax, [ebp - 0x34]
call fcn.00406864
lea eax, [ebp - 0x30]
call fcn.0041c258
lea eax, [ebp - 0x20]
call fcn.00406864
lea eax, [ebp - 0x1c]
call fcn.0041c258
lea eax, [ebp - 0xc]
call fcn.00406864
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040686c
ret