Function at 0x4996e3
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5025d0]
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.004a7b08
push edi
push 1
mov esi, eax
call fcn.004a7b08
add esp, 0x10
cmp esi, ebx
mov edi, eax
mov dword [ebp - 0x114], edi
je 0x49983b
cmp edi, ebx
je 0x49983b
push ebx
call fcn.00442baf
mov ecx, edi
mov dword [esp], str.SA12_Archive
call fcn.00477ebb
pop ecx
push edi
call fcn.00419eca
test eax, eax
pop ecx
jne 0x499774
push ebx
mov ecx, edi
call fcn.0041a1a7
pop ecx
push ebx
push ebx
call fcn.0045ba18
push eax
push str._sSA12_Archive2004_
mov edi, 0x104
push edi
push esi
call fcn.00478fcf
add esp, 0x18
cmp dword [ebp - 0x110], ebx
je 0x49985d
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.0041f54f
add esp, 0x10
test eax, eax
jne 0x49985d
push 0xff
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.004a8c80
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.004a8bfe
add esp, 0x14
push ebx
lea eax, [ebp - 0x10c]
push eax
push str.2004_
push edi
push esi
call fcn.0047909b
add esp, 0x14
push dword [ebp - 0x114]
push esi
call fcn.004192b5
pop ecx
test eax, eax
pop ecx
push ebx
jne 0x49984c
push str.TillEntryRestoreArchiveFail.wav
call fcn.00475aab
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
push str.TillEntryRestoreArchiveSuccess.wav
call fcn.00475aab
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x49983d
push esi
call fcn.004a7f30
pop ecx
push dword [ebp - 0x114]
mov byte [eax + esi + 1], bl
call fcn.004a7f30
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 0x4998d4
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.00475aab
push ebx
push str.2005_
push str.2004_
push edi
push esi
call fcn.0047909b
add esp, 0x1c
push esi
call fcn.004a7f30
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 0x499920
mov dword [ebp - 0x110], ebx
push ebx
push str.Click2.wav
call fcn.00475aab
push ebx
push str.2006_
push str.2005_
push edi
push esi
call fcn.0047909b
add esp, 0x1c
push esi
call fcn.004a7f30
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 0x49996c
mov dword [ebp - 0x110], ebx
push 1
push str.Click2.wav
call fcn.00475aab
push esi
call fcn.004a795c
add esp, 0xc
push dword [ebp - 0x114]
call fcn.004a795c
cmp dword [ebp - 0x110], ebx
jmp 0x49982b