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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x130
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov dil, r8b
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor r12d, r12d
cmp eax, r12d
jne 0x180048068
lea eax, [r12 + 1]
jmp 0x1800485eb
lea rdx, str.AppData
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x1800485e6
lea rdx, str.Application_Data
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x1800485e6
lea rdx, str.Temp
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x1800485e6
lea rdx, [0x18007ae98]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x1800485e6
mov rcx, rbx
call fcn.180001f80
mov rsi, rax
lea rcx, [rsp + 0x20]
call fcn.180047334
movsxd r11, dword [rsp + 0x24]
cmp rsi, r11
jbe 0x1800480f5
mov eax, 2
jmp 0x1800485eb
movsxd rax, dword [rsp + 0x20]
cmp eax, r12d
je 0x18004810e
cmp rsi, rax
jae 0x18004810e
mov eax, 2
jmp 0x1800485eb
cmp dil, r12b
je 0x18004812a
mov rcx, rbx
call fcn.180047e00
cmp al, r12b
jne 0x18004812a
mov eax, 3
jmp 0x1800485eb
mov r13d, sendto
mov qword [rsp + 0x120], r13
mov qword [rsp + 0x118], r12
mov byte [rsp + 0x108], r12b
lea r8, [rsp + 0x100]
mov rdx, rbx
lea rcx, [rsp + 0xd8]
call fcn.180041c1c
nop
cmp qword [rsp + 0xf0], r12
jne 0x1800481c3
cmp qword [rsp + 0xf8], 8
jb 0x180048183
mov rcx, qword [rsp + 0xe0]
call fcn.180058b34
mov edi, 7
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x1800481b9
mov rcx, qword [rsp + 0x108]
call fcn.180058b34
mov eax, 5
jmp 0x1800485eb
lea rcx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rcx, qword [rsp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r12d
je 0x18004823d
cmp qword [rsp + 0xf8], 8
jb 0x180048200
mov rcx, qword [rsp + 0xe0]
call fcn.180058b34
mov edi, 7
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x180048236
mov rcx, qword [rsp + 0x108]
call fcn.180058b34
mov eax, edi
jmp 0x1800485eb
lea rcx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rcx, qword [rsp + 0xe0]
xor edx, edx
call fcn.180001de4
lea rdx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rdx, qword [rsp + 0xe0]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, r12d
jne 0x180048302
lea rcx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rsp + 0xf8], 8
jb 0x1800482c2
mov rcx, qword [rsp + 0xe0]
call fcn.180058b34
mov edi, 7
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x1800482f8
mov rcx, qword [rsp + 0x108]
call fcn.180058b34
mov eax, 4
jmp 0x1800485eb
mov rcx, rbx
call fcn.180047ad8
movsxd r11, dword [rsp + 0x28]
cmp rsi, r11
jae 0x180048336
lea rdx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rdx, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.180044dfc
xor r9d, r9d
lea r8, str.RecordBackupLog
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smprule_
mov rcx, 0xffffffff80000002
call fcn.180005694
mov edi, 7
cmp eax, r12d
je 0x180048599
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.180016754
nop
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
mov rcx, rbx
call fcn.180058c38
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1800076f0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.18000e98c
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180016918
mov rbx, rax
lea rdx, str.file_path
lea rcx, [rsp + 0xa8]
call fcn.180017e84
mov rcx, rax
mov rdx, rbx
call fcn.180016ba4
nop
cmp qword [rsp + 0x50], 0x10
jb 0x1800483fc
mov rcx, qword [rsp + 0x38]
call fcn.180058b34
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x38], r12b
cmp qword [rsp + 0x78], 8
jb 0x18004841d
mov rcx, qword [rsp + 0x60]
call fcn.180058b34
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.180003400
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180016918
mov rbx, rax
lea rdx, str.file_size
lea rcx, [rsp + 0xa8]
call fcn.180017e84
mov rcx, rax
mov rdx, rbx
call fcn.180016ba4
nop
cmp qword [rsp + 0x50], 0x10
jb 0x18004847d
mov rcx, qword [rsp + 0x38]
call fcn.180058b34
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x80]
call fcn.180016918
mov rbx, rax
lea rdx, str.data_time
lea rcx, [rsp + 0xa8]
call fcn.180017e84
mov rcx, rax
mov rdx, rbx
call fcn.180016ba4
lea r11, [rsp + 0x80]
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
mov rcx, rbp
call fcn.180058c38
mov r8, rax
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.1800076f0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.18000e98c
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180016918
mov rbx, rax
lea rdx, str.reason
lea rcx, [rsp + 0xa8]
call fcn.180017e84
mov rcx, rax
mov rdx, rbx
call fcn.180016ba4
nop
cmp qword [rsp + 0x50], 0x10
jb 0x18004854c
mov rcx, qword [rsp + 0x38]
call fcn.180058b34
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x38], r12b
cmp qword [rsp + 0x78], 8
jb 0x18004856d
mov rcx, qword [rsp + 0x60]
call fcn.180058b34
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, str.t_backup_log
call fcn.1800264dc
nop
lea rcx, [rsp + 0xa8]
call fcn.180016b0c
nop
cmp qword [rsp + 0xf8], 8
jb 0x1800485b1
mov rcx, qword [rsp + 0xe0]
call fcn.180058b34
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x1800485e2
mov rcx, qword [rsp + 0x108]
call fcn.180058b34
xor eax, eax
jmp 0x1800485eb
mov eax, 6
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.180059760
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret