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

Disassembly:
push ebp
sub esp, 0x54
lea ebp, [esp - 4]
mov eax, dword [0x1006d144]
xor eax, ebp
mov dword [ebp + 0x54], eax
push 0x50
mov eax, 0x10051360
call fcn.1003b833
mov edi, dword [ebp + 0x60]
mov eax, dword [ebp + 0x64]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002f81d
inc eax
jmp 0x1002fb28
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.AppData
push edi
call esi
test eax, eax
jne 0x1002fb25
push str.Application_Data
push edi
call esi
test eax, eax
jne 0x1002fb25
push 0x10058060
push edi
call esi
test eax, eax
jne 0x1002fb25
push 0x1005805c
push edi
call esi
test eax, eax
jne 0x1002fb25
push edi
call fcn.10001bd2
lea esi, [ebp]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], edx
call fcn.1002f1a8
mov eax, dword [ebp + 4]
cdq
cmp dword [ebp + 0x18], edx
jb 0x1002f88e
ja 0x1002f887
cmp dword [ebp + 0x14], eax
jbe 0x1002f88e
push 2
jmp 0x1002fb27
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
je 0x1002f8a4
cdq
cmp dword [ebp + 0x18], edx
ja 0x1002f8a4
jb 0x1002f887
cmp dword [ebp + 0x14], eax
jb 0x1002f887
cmp byte [ebp + 0x68], bl
je 0x1002f8bb
push edi
call fcn.1002f707
pop ecx
test al, al
jne 0x1002f8bb
push 3
jmp 0x1002fb27
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 0xf
call fcn.10006683
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x38]
push edi
push eax
mov dword [ebp - 4], ebx
call fcn.1002b56c
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp + 0x4c], ebx
jne 0x1002f908
push 5
pop esi
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.10005a26
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.10005814
mov eax, esi
jmp 0x1002fb28
mov eax, dword [ebp + 0x3c]
push 8
pop esi
cmp dword [ebp + 0x50], esi
jae 0x1002f916
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002f925
push 7
jmp 0x1002f8ea
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x1002f930
lea eax, [ebp + 0x3c]
push ebx
push ebx
push eax
call fcn.10001a7e
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x1002f943
lea eax, [ebp + 0x3c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1002f966
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x1002f95b
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
jmp 0x1002f8ea
push edi
call fcn.1002f54b
mov eax, dword [ebp + 8]
cdq
pop ecx
cmp dword [ebp + 0x18], edx
ja 0x1002f98f
jb 0x1002f97d
cmp dword [ebp + 0x14], eax
jae 0x1002f98f
mov edx, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x1002f988
lea edx, [ebp + 0x3c]
mov ecx, edi
call fcn.1002db26
push str.RecordBackupLog
call fcn.1001e176
pop ecx
test eax, eax
je 0x1002fb0a
push ebx
lea ecx, [ebp - 0x24]
call fcn.1000f564
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10004aec
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 3
call fcn.1000abb8
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
mov byte [ebp - 4], 4
call fcn.1000f714
push str.file_path
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.100109ab
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1000f977
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x5c]
call fcn.10005814
push ebx
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10005a26
push dword [ebp + 0x18]
lea eax, [ebp - 0x5c]
push dword [ebp + 0x14]
push eax
call fcn.10002af8
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
mov byte [ebp - 4], 6
call fcn.1000f714
push str.file_size
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.100109ab
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.1000f977
push ebx
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.10005814
sub esp, 0x18
lea eax, [ebp + 0x1c]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.1000f714
push str.data_time
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.100109ab
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1000f977
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
call fcn.10004aec
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 9
call fcn.1000abb8
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
mov byte [ebp - 4], 0xa
call fcn.1000f714
push str.reason
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.100109ab
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.1000f977
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.10005814
push ebx
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10005a26
push esi
push ebx
lea eax, [ebp - 0x24]
push eax
push str.t_backup_log
call fcn.1001987b
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1000f8f2
jmp 0x1002fb0d
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.10005a26
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.10005814
xor eax, eax
jmp 0x1002fb28
push 6
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x54]
xor ecx, ebp
call fcn.1003b824
add ebp, 0x58
leave
ret