Function at 0x4f93b9
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5f2e68]
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.00530848
push edi
push 1
mov esi, eax
call fcn.00530848
add esp, 0x10
cmp esi, ebx
mov edi, eax
mov dword [ebp - 0x114], edi
je 0x4f9513
cmp edi, ebx
je 0x4f9513
push ebx
call fcn.00470e3d
mov ecx, edi
mov dword [esp], str.SA12_Archive
call fcn.004cd0b7
pop ecx
push edi
call fcn.00432310
test eax, eax
pop ecx
jne 0x4f944a
push ebx
mov ecx, edi
call fcn.0043262d
pop ecx
push ebx
push ebx
call fcn.00493030
push eax
push str._sSA12_Archive2004_
mov edi, 0x104
push edi
push esi
call fcn.004ce4e5
add esp, 0x18
cmp dword [ebp - 0x110], ebx
je 0x4f9535
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.0043d5cf
add esp, 0x10
test eax, eax
jne 0x4f9535
push 0xff
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.005306b0
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.00531b2f
add esp, 0x14
push ebx
lea eax, [ebp - 0x10c]
push eax
push str.2004_
push edi
push esi
call fcn.004ce6a0
add esp, 0x14
push ebx
push dword [ebp - 0x114]
push esi
call fcn.00430801
add esp, 0xc
test eax, eax
push ebx
jne 0x4f9524
push str.TillEntryRestoreArchiveFail.wav
call fcn.004c9c3f
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
push str.TillEntryRestoreArchiveSuccess.wav
call fcn.004c9c3f
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4f9515
push esi
call fcn.00530f70
pop ecx
push dword [ebp - 0x114]
mov byte [eax + esi + 1], bl
call fcn.00530f70
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 0x4f95ac
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.004c9c3f
push ebx
push str.2005_
push str.2004_
push edi
push esi
call fcn.004ce6a0
add esp, 0x1c
push esi
call fcn.00530f70
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 0x4f95f8
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.004c9c3f
push ebx
push str.2006_
push str.2005_
push edi
push esi
call fcn.004ce6a0
add esp, 0x1c
push esi
call fcn.00530f70
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 0x4f9644
mov dword [ebp - 0x110], ebx
push 1
push str.Click2.wav
call fcn.004c9c3f
push esi
call fcn.0053061e
add esp, 0xc
push dword [ebp - 0x114]
call fcn.0053061e
cmp dword [ebp - 0x110], ebx
pop ecx
jmp 0x4f9504