Function at 0x497c7a
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5005d0]
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.004a5f90
push edi
push 1
mov esi, eax
call fcn.004a5f90
add esp, 0x10
cmp esi, ebx
mov edi, eax
mov dword [ebp - 0x114], edi
je 0x497dd2
cmp edi, ebx
je 0x497dd2
push ebx
call fcn.004411be
mov ecx, edi
mov dword [esp], str.SA12_Archive
call fcn.00475cf6
pop ecx
push edi
call fcn.00418f1c
test eax, eax
pop ecx
jne 0x497d0b
push ebx
mov ecx, edi
call fcn.004191f9
pop ecx
push ebx
push ebx
call fcn.00459cf0
push eax
push str._sSA12_Archive2004_
mov edi, 0x104
push edi
push esi
call fcn.00476e0a
add esp, 0x18
cmp dword [ebp - 0x110], ebx
je 0x497df4
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.0041e261
add esp, 0x10
test eax, eax
jne 0x497df4
push 0xff
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.004a7110
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.004a708e
add esp, 0x14
push ebx
lea eax, [ebp - 0x10c]
push eax
push str.2004_
push edi
push esi
call fcn.00476ed6
add esp, 0x14
push dword [ebp - 0x114]
push esi
call fcn.00418307
pop ecx
test eax, eax
pop ecx
push ebx
jne 0x497de3
push str.TillEntryRestoreArchiveFail.wav
call fcn.004738e6
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret
push str.TillEntryRestoreArchiveSuccess.wav
call fcn.004738e6
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x497dd4
push esi
call fcn.004a63c0
pop ecx
push dword [ebp - 0x114]
mov byte [eax + esi + 1], bl
call fcn.004a63c0
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 0x497e6b
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.004738e6
push ebx
push str.2005_
push str.2004_
push edi
push esi
call fcn.00476ed6
add esp, 0x1c
push esi
call fcn.004a63c0
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 0x497eb7
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.004738e6
push ebx
push str.2006_
push str.2005_
push edi
push esi
call fcn.00476ed6
add esp, 0x1c
push esi
call fcn.004a63c0
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 0x497f03
mov dword [ebp - 0x110], ebx
push 1
push str.Click2.wav
call fcn.004738e6
push esi
call fcn.004a5de4
add esp, 0xc
push dword [ebp - 0x114]
call fcn.004a5de4
cmp dword [ebp - 0x110], ebx
jmp 0x497dc2