Function at 0x1002f742
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, 0x100513b3
call fcn.1003b883
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 0x1002f77a
inc eax
jmp 0x1002fa85
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.AppData
push edi
call esi
test eax, eax
jne 0x1002fa82
push str.Application_Data
push edi
call esi
test eax, eax
jne 0x1002fa82
push 0x10058060
push edi
call esi
test eax, eax
jne 0x1002fa82
push 0x1005805c
push edi
call esi
test eax, eax
jne 0x1002fa82
push edi
call fcn.10001bd2
lea esi, [ebp]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], edx
call fcn.1002f105
mov eax, dword [ebp + 4]
cdq
cmp dword [ebp + 0x18], edx
jb 0x1002f7eb
ja 0x1002f7e4
cmp dword [ebp + 0x14], eax
jbe 0x1002f7eb
push 2
jmp 0x1002fa84
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
je 0x1002f801
cdq
cmp dword [ebp + 0x18], edx
ja 0x1002f801
jb 0x1002f7e4
cmp dword [ebp + 0x14], eax
jb 0x1002f7e4
cmp byte [ebp + 0x68], bl
je 0x1002f818
push edi
call fcn.1002f664
pop ecx
test al, al
jne 0x1002f818
push 3
jmp 0x1002fa84
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 0xf
call fcn.10006629
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x38]
push edi
push eax
mov dword [ebp - 4], ebx
call fcn.1002b581
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp + 0x4c], ebx
jne 0x1002f865
push 5
pop esi
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.10005a6e
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.1000585c
mov eax, esi
jmp 0x1002fa85
mov eax, dword [ebp + 0x3c]
push 8
pop esi
cmp dword [ebp + 0x50], esi
jae 0x1002f873
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002f882
push 7
jmp 0x1002f847
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x1002f88d
lea eax, [ebp + 0x3c]
push ebx
push ebx
push eax
call fcn.10001a7e
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x1002f8a0
lea eax, [ebp + 0x3c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1002f8c3
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x1002f8b8
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
jmp 0x1002f847
push edi
call fcn.1002f4a8
mov eax, dword [ebp + 8]
cdq
pop ecx
cmp dword [ebp + 0x18], edx
ja 0x1002f8ec
jb 0x1002f8da
cmp dword [ebp + 0x14], eax
jae 0x1002f8ec
mov edx, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x1002f8e5
lea edx, [ebp + 0x3c]
mov ecx, edi
call fcn.1002dac6
push str.RecordBackupLog
call fcn.1001e134
pop ecx
test eax, eax
je 0x1002fa67
push ebx
lea ecx, [ebp - 0x24]
call fcn.1000f4c2
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10004b06
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 3
call fcn.1000ab51
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
mov byte [ebp - 4], 4
call fcn.1000f672
push str.file_path
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.10010909
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1000f8d5
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x5c]
call fcn.1000585c
push ebx
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10005a6e
push dword [ebp + 0x18]
lea eax, [ebp - 0x5c]
push dword [ebp + 0x14]
push eax
call fcn.10002b1c
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
mov byte [ebp - 4], 6
call fcn.1000f672
push str.file_size
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.10010909
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.1000f8d5
push ebx
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.1000585c
sub esp, 0x18
lea eax, [ebp + 0x1c]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.1000f672
push str.data_time
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.10010909
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1000f8d5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
call fcn.10004b06
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 9
call fcn.1000ab51
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
mov byte [ebp - 4], 0xa
call fcn.1000f672
push str.reason
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.10010909
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.1000f8d5
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.1000585c
push ebx
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10005a6e
push esi
push ebx
lea eax, [ebp - 0x24]
push eax
push str.t_backup_log
call fcn.10019818
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1000f850
jmp 0x1002fa6a
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.10005a6e
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.1000585c
xor eax, eax
jmp 0x1002fa85
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.1003b874
add ebp, 0x58
leave
ret