Function at 0x57e9b0
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
push 0x354b
push 0x6e474c
push 1
push 0x10e
push 1
call fcn.005b0ce0
add esp, 0x14
mov dword [ebp - 0x28], eax
push 0x354c
push str..TillSheetEntry.c
push 1
push 0x10e
push 1
call fcn.005b0ce0
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 0x28], 0
je 0x57ea3f
cmp dword [ebp - 4], 0
jne 0x57ea46
xor eax, eax
jmp 0x57ed0f
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040311b
add esp, 8
push str.SA12_Archive
mov edx, dword [ebp - 4]
push edx
call fcn.004029eb
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.00401b77
add esp, 4
test eax, eax
jne 0x57ea83
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.004023ec
add esp, 8
push 0
push 0
call fcn.004022b6
add esp, 8
push eax
push str._sSA12_Archive2004_
push 0x104
mov edx, dword [ebp - 0x28]
push edx
call fcn.00402dc9
add esp, 0x10
cmp dword [ebp + 8], 0
je 0x57eb8b
push str.Would_you_like_to_restore_ALL_archives___Y_N__n_nYES___NO
push str.__Restore_SA12_Invoice_Archive__
push 0
push 0
call fcn.0040137f
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x57eb8b
mov byte [ebp - 0x130], 0
push 0xff
push 0
lea eax, [ebp - 0x12f]
push eax
call fcn.005b02a0
add esp, 0xc
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x2513]
push edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x2512]
push ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x2510]
push eax
push str._04d__02d__02d_
lea ecx, [ebp - 0x130]
push ecx
call fcn.005b6660
add esp, 0x14
push 0
lea edx, [ebp - 0x130]
push edx
push 0x6e480c
push 0x104
mov eax, dword [ebp - 0x28]
push eax
call fcn.00402004
add esp, 0x14
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00402df6
add esp, 0xc
test eax, eax
jne 0x57eb72
push 0
push 0x6e4814
call fcn.00401613
add esp, 8
xor eax, eax
jmp 0x57ed0f
push 0
push 0x6e4838
call fcn.00401613
add esp, 8
mov eax, 1
jmp 0x57ed0f
mov eax, dword [ebp - 0x28]
push eax
call fcn.005b4690
add esp, 4
mov ecx, dword [ebp - 0x28]
mov byte [ecx + eax + 1], 0
mov edx, dword [ebp - 4]
push edx
call fcn.005b4690
add esp, 4
mov ecx, dword [ebp - 4]
mov byte [ecx + eax + 1], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 2
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], 0x710
mov dword [ebp - 0xe], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0xa], str.Restoring_the_invoice_archive_for_2004...
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x57ebfd
mov dword [ebp - 0x2c], 0
push 0
push 0x6e4888
call fcn.00401613
add esp, 8
push 0
push 0x6e4894
push str.2004_
push 0x104
mov edx, dword [ebp - 0x28]
push edx
call fcn.00402004
add esp, 0x14
mov eax, dword [ebp - 0x28]
push eax
call fcn.005b4690
add esp, 4
mov ecx, dword [ebp - 0x28]
mov byte [ecx + eax + 1], 0
mov dword [ebp - 0xa], str.Restoring_the_invoice_archive_for_2005...
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x57ec59
mov dword [ebp - 0x2c], 0
push 0
push 0x6e48d0
call fcn.00401613
add esp, 8
push 0
push str.2006_
push str.2005_
push 0x104
mov eax, dword [ebp - 0x28]
push eax
call fcn.00402004
add esp, 0x14
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005b4690
add esp, 4
mov edx, dword [ebp - 0x28]
mov byte [edx + eax + 1], 0
mov dword [ebp - 0xa], str.Restoring_the_invoice_archive_for_2006...
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x57ecb5
mov dword [ebp - 0x2c], 0
push 1
push str.Click2.wav
call fcn.00401613
add esp, 8
push 1
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005b16b0
add esp, 8
push 1
mov edx, dword [ebp - 4]
push edx
call fcn.005b16b0
add esp, 8
cmp dword [ebp - 0x2c], 0
jne 0x57ecfb
push 0
push str.TillEntryRestoreArchiveFail.wav
call fcn.00401613
add esp, 8
xor eax, eax
jmp 0x57ed0f
push 0
push str.TillEntryRestoreArchiveSuccess.wav
call fcn.00401613
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret