Function at 0x4ae5ca
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 6
mov dword [ebp - 0x110], eax
pop ecx
xor ebx, ebx
mov dword [ebp - 0x134], ebx
xor eax, eax
lea edi, [ebp - 0x130]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x10e
push edi
push 1
call fcn.004bf452
push edi
push 1
mov esi, eax
call fcn.004bf452
add esp, 0x10
cmp esi, ebx
mov edi, eax
mov dword [ebp - 0x114], edi
je 0x4ae722
cmp edi, ebx
je 0x4ae722
push ebx
call fcn.004457b7
mov ecx, edi
mov dword [esp], str.SA12_Archive
call fcn.00485bfe
pop ecx
push edi
call fcn.0041a61c
test eax, eax
pop ecx
jne 0x4ae65b
push ebx
mov ecx, edi
call fcn.0041a8fa
pop ecx
push ebx
push ebx
call fcn.0045f646
push eax
push str._sSA12_Archive2004_
mov edi, 0x104
push edi
push esi
call fcn.00486e10
add esp, 0x18
cmp dword [ebp - 0x110], ebx
je 0x4ae744
push str.Would_you_like_to_restore_ALL_archives___Y_N__n_nYES___NO
push str.__Restore_SA12_Invoice_Archive__
push ebx
push ebx
call fcn.0041ff3e
add esp, 0x10
test eax, eax
jne 0x4ae744
push 0xff
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.004c05d0
mov eax, dword [ebp - 0x110]
movzx ecx, byte [eax + 0x2513]
add esp, 0xc
push ecx
movzx ecx, byte [eax + 0x2512]
movzx eax, word [eax + 0x2510]
push ecx
push eax
lea eax, [ebp - 0x10c]
push str._04d__02d__02d_
push eax
call fcn.004c054e
add esp, 0x14
push ebx
lea eax, [ebp - 0x10c]
push eax
push str.2004_
push edi
push esi
call fcn.00486f45
add esp, 0x14
push dword [ebp - 0x114]
push esi
call fcn.00419a07
pop ecx
test eax, eax
pop ecx
push ebx
jne 0x4ae733
push str.TillEntryRestoreArchiveFail.wav
call fcn.004837c0
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
push str.TillEntryRestoreArchiveSuccess.wav
call fcn.004837c0
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ae724
push esi
call fcn.004bf880
pop ecx
push dword [ebp - 0x114]
mov byte [eax + esi + 1], bl
call fcn.004bf880
pop ecx
mov ecx, dword [ebp - 0x114]
mov byte [eax + ecx + 1], bl
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], 2
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], ecx
mov word [ebp - 0x124], 0x710
mov dword [ebp - 0x11e], ebx
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x11a], str.Restoring_the_invoice_archive_for_2004...
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x4ae7bb
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.004837c0
push ebx
push str.2005_
push str.2004_
push edi
push esi
call fcn.00486f45
add esp, 0x1c
push esi
call fcn.004bf880
mov byte [eax + esi + 1], bl
pop ecx
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x11a], str.Restoring_the_invoice_archive_for_2005...
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x4ae807
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.004837c0
push ebx
push str.2006_
push str.2005_
push edi
push esi
call fcn.00486f45
add esp, 0x1c
push esi
call fcn.004bf880
mov byte [eax + esi + 1], bl
pop ecx
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x11a], str.Restoring_the_invoice_archive_for_2006...
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x4ae853
mov dword [ebp - 0x110], ebx
push 1
push str.Click2.wav
call fcn.004837c0
push esi
call fcn.004bf2a6
add esp, 0xc
push dword [ebp - 0x114]
call fcn.004bf2a6
cmp dword [ebp - 0x110], ebx
jmp 0x4ae712