Function at 0x4f028a
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5c4e68]
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.00511988
push edi
push 1
mov esi, eax
call fcn.00511988
add esp, 0x10
cmp esi, ebx
mov edi, eax
mov dword [ebp - 0x114], edi
je 0x4f03e4
cmp edi, ebx
je 0x4f03e4
push ebx
call fcn.004682da
mov ecx, edi
mov dword [esp], str.SA12_Archive
call fcn.004c3fde
pop ecx
push edi
call fcn.0042adad
test eax, eax
pop ecx
jne 0x4f031b
push ebx
mov ecx, edi
call fcn.0042b0ca
pop ecx
push ebx
push ebx
call fcn.00489f49
push eax
push str._sSA12_Archive2004_
mov edi, 0x104
push edi
push esi
call fcn.004c53b7
add esp, 0x18
cmp dword [ebp - 0x110], ebx
je 0x4f0406
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.00435aa1
add esp, 0x10
test eax, eax
jne 0x4f0406
push 0xff
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.005117f0
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.00511173
add esp, 0x14
push ebx
lea eax, [ebp - 0x10c]
push eax
push str.2004_
push edi
push esi
call fcn.004c5572
add esp, 0x14
push ebx
push dword [ebp - 0x114]
push esi
call fcn.00429fe5
add esp, 0xc
test eax, eax
push ebx
jne 0x4f03f5
push str.TillEntryRestoreArchiveFail.wav
call fcn.004c0b87
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
push str.TillEntryRestoreArchiveSuccess.wav
call fcn.004c0b87
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4f03e6
push esi
call fcn.005120b0
pop ecx
push dword [ebp - 0x114]
mov byte [eax + esi + 1], bl
call fcn.005120b0
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 0x4f047d
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.004c0b87
push ebx
push str.2005_
push str.2004_
push edi
push esi
call fcn.004c5572
add esp, 0x1c
push esi
call fcn.005120b0
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 0x4f04c9
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.004c0b87
push ebx
push str.2006_
push str.2005_
push edi
push esi
call fcn.004c5572
add esp, 0x1c
push esi
call fcn.005120b0
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 0x4f0515
mov dword [ebp - 0x110], ebx
push 1
push str.Click2.wav
call fcn.004c0b87
push esi
call fcn.00511758
add esp, 0xc
push dword [ebp - 0x114]
call fcn.00511758
cmp dword [ebp - 0x110], ebx
pop ecx
jmp 0x4f03d5