Function at 0x10024d00
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007ee28
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x10099060]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x10099060]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10024d57
mov eax, 1
jmp 0x10025144
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.AppData
push esi
call ebx
test eax, eax
jne 0x1002513f
push str.Application_Data
push esi
call ebx
test eax, eax
jne 0x1002513f
push 0x10085e50
push esi
call ebx
test eax, eax
jne 0x1002513f
push 0x10085dc0
push esi
call ebx
test eax, eax
jne 0x1002513f
push esi
call fcn.10039f7d
mov edi, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x30], edi
mov ebx, edx
call fcn.100235f0
mov eax, dword [esp + 0x1c]
cdq
add esp, 4
cmp ebx, edx
jb 0x10024dd1
ja 0x10024dc7
cmp edi, eax
jbe 0x10024dd1
mov eax, 2
jmp 0x10025144
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10024de4
cdq
cmp ebx, edx
ja 0x10024de4
jb 0x10024dc7
cmp edi, eax
jb 0x10024dc7
push esi
call fcn.100240b0
add esp, 4
test al, al
jne 0x10024dfb
mov eax, 3
jmp 0x10025144
xor edi, edi
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], edi
mov byte [esp + 0x90], 0
lea ecx, [esp + 0x8c]
push ecx
mov edx, esi
lea ecx, [esp + 0x74]
mov dword [esp + 0xbc], edi
call fcn.10024210
add esp, 4
mov byte [esp + 0xb8], 1
cmp dword [esp + 0x84], edi
jne 0x10024e62
lea esi, [esp + 0x70]
call fcn.1002fe50
lea ecx, [esp + 0x8c]
call fcn.100077c0
lea eax, [edi + 5]
jmp 0x10025144
mov eax, dword [esp + 0x74]
mov edi, 8
cmp dword [esp + 0x88], edi
jae 0x10024e78
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10024ea2
lea esi, [esp + 0x70]
call fcn.1002fe50
lea ecx, [esp + 0x8c]
call fcn.100077c0
mov eax, 7
jmp 0x10025144
cmp dword [esp + 0x88], edi
mov edi, dword [esp + 0x74]
jae 0x10024eb3
lea edi, [esp + 0x74]
call fcn.10039e5b
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x10024eca
lea eax, [esp + 0x74]
xor edi, edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10024f11
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x10024eeb
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x70]
call fcn.1002fe50
lea ecx, [esp + 0x8c]
call fcn.100077c0
mov eax, 4
jmp 0x10025144
mov ecx, esi
call fcn.10024b80
mov eax, dword [esp + 0x1c]
cdq
cmp ebx, edx
ja 0x10024f42
jb 0x10024f29
cmp dword [esp + 0x2c], eax
jae 0x10024f42
cmp dword [esp + 0x88], 8
mov edx, dword [esp + 0x74]
jae 0x10024f3b
lea edx, [esp + 0x74]
mov ecx, esi
call fcn.10025170
push str.RecordBackupLog
call fcn.100029f0
add esp, 4
test al, al
je 0x10025126
and dword [esp + 0x1c], 0xfffffe00
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov eax, esi
lea ecx, [esp + 0x54]
mov byte [esp + 0xb8], 3
call fcn.10007820
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0xc0], 4
call fcn.100013e0
sub esp, 0x10
mov byte [esp + 0xd0], 5
mov edx, eax
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.100444c6
lea ecx, [esp + 0x2c]
push ecx
mov edx, str.file_path
mov byte [esp + 0xd4], 6
call fcn.10045627
mov edi, eax
mov byte [esp + 0xd0], 5
call fcn.10044719
lea ecx, [esp + 0x38]
call fcn.100077c0
lea esi, [esp + 0x54]
mov byte [esp + 0xb8], 3
call fcn.1002fe50
mov edx, dword [esp + 0x2c]
push ebx
push edx
lea ebx, [esp + 0x40]
call fcn.1003ae7d
sub esp, 0x10
mov bl, 7
mov byte [esp + 0xd0], bl
mov edx, eax
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.100444c6
lea eax, [esp + 0x2c]
push eax
mov edx, str.file_size
mov byte [esp + 0xd4], 8
call fcn.10045627
mov edi, eax
mov byte [esp + 0xd0], bl
call fcn.10044719
mov bl, 3
lea ecx, [esp + 0x38]
mov byte [esp + 0xb8], bl
call fcn.100077c0
sub esp, 0x18
lea edx, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.100444c6
lea ecx, [esp + 0x2c]
push ecx
mov edx, str.data_time
mov byte [esp + 0xd4], 9
call fcn.10045627
mov edi, eax
mov byte [esp + 0xd0], bl
call fcn.10044719
mov eax, 0x10086b70
lea ecx, [esp + 0x54]
call fcn.10007820
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0xc0], 0xa
call fcn.100013e0
sub esp, 0x10
mov byte [esp + 0xd0], 0xb
mov edx, eax
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.100444c6
lea ecx, [esp + 0x2c]
push ecx
mov edx, str.reason
mov byte [esp + 0xd4], 0xc
call fcn.10045627
mov edi, eax
mov byte [esp + 0xd0], 0xb
call fcn.10044719
lea ecx, [esp + 0x38]
call fcn.100077c0
lea esi, [esp + 0x54]
mov byte [esp + 0xb8], bl
call fcn.1002fe50
push 1
push 0
lea edx, [esp + 0x1c]
push edx
push str.t_backup_log
call fcn.1004017b
lea esi, [esp + 0x14]
mov byte [esp + 0xb8], 1
call fcn.10044696
lea esi, [esp + 0x70]
call fcn.1002fe50
lea ecx, [esp + 0x8c]
call fcn.100077c0
xor eax, eax
jmp 0x10025144
mov eax, 6
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.1005ebcb
mov esp, ebp
pop ebp
ret