Function at 0x4aa014
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
mov eax, 0x4e47cc
call fcn.00479eb8
mov word [ebp - 0x44], 8
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 4]
sete dl
and edx, 1
test dl, dl
je 0x4aa06f
push 0x4e2014
push 0x4e200f
push str.ExistsFileName:
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x4aa2d8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 4]
sete cl
and ecx, 1
test cl, cl
je 0x4aa0ae
push 0x4e202f
push 0x4e202a
push str.NewFileName:
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x4aa2d8
push dword [ebp + 8]
call fcn.004a959c
pop ecx
test al, al
jne 0x4aa0e5
mov ecx, dword [ebp + 8]
push dword [ecx]
push str.__s__Not_Exists_n
push str.File:
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x4aa2d8
push dword [ebp + 0xc]
call fcn.004a959c
pop ecx
test al, al
je 0x4aa12a
mov ecx, dword [ebp + 0xc]
push dword [ecx]
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
jne 0x4aa12a
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.__s__Error_n
push str.DeleteFile:
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x4aa2d8
mov word [ebp - 0x44], 0x14
lea ecx, [ebp - 0x18]
push ecx
call fcn.004058c0
pop ecx
add dword [ebp - 0x38], 4
mov word [ebp - 0x44], 0x20
mov word [ebp - 0x44], 0x2c
lea eax, [ebp - 0x30]
push eax
call fcn.004058c0
pop ecx
add dword [ebp - 0x38], 4
mov word [ebp - 0x44], 0x20
mov edx, dword [ebp + 8]
mov ebx, dword [edx]
push ebx
call fcn.00479a2c
pop ecx
add eax, ebx
lea edx, [ebp - 0x5c]
push edx
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.0040f7c0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx]
push ebx
call fcn.00479a2c
pop ecx
add eax, ebx
lea edx, [ebp - 0x64]
push edx
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
call fcn.0040f7c0
add esp, 0x10
push 0
push 2
lea ecx, [ebp - 0x18]
push ecx
call fcn.0048a54c
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0x30]
push eax
call fcn.0048a54c
add esp, 0xc
mov esi, 0x4e12a8
lea edi, [ebp - 0x8c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x84], edx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x80], ecx
mov word [ebp - 0x7c], 0x44
xor eax, eax
mov dword [ebp - 0x78], eax
xor edx, edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], str.rename_file
lea ecx, [ebp - 0x8c]
push ecx
call sub.SHELL32.DLL_SHFileOperationA
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
sete al
and eax, 1
push eax
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4aa250
cmp edi, 0x80
jbe 0x4aa246
push ebx
call fcn.00477a54
pop ecx
jmp 0x4aa250
push edi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x6c], eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4aa28a
cmp dword [ebp - 0x6c], 0x80
jbe 0x4aa27e
push esi
call fcn.00477a54
pop ecx
jmp 0x4aa28a
push dword [ebp - 0x6c]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x38]
dec dword [ebp - 0x38]
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x4aa2d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret