Function at 0x1800484c4
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 [0x1800a1658]
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 0x180048518
lea eax, [r12 + 1]
jmp 0x180048a9b
lea rdx, str.AppData
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x180048a96
lea rdx, str.Application_Data
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x180048a96
lea rdx, str.Temp
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x180048a96
lea rdx, [0x18007ae90]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x180048a96
mov rcx, rbx
call fcn.180001fec
mov rsi, rax
lea rcx, [rsp + 0x20]
call fcn.1800477e4
movsxd r11, dword [rsp + 0x24]
cmp rsi, r11
jbe 0x1800485a5
mov eax, 2
jmp 0x180048a9b
movsxd rax, dword [rsp + 0x20]
cmp eax, r12d
je 0x1800485be
cmp rsi, rax
jae 0x1800485be
mov eax, 2
jmp 0x180048a9b
cmp dil, r12b
je 0x1800485da
mov rcx, rbx
call fcn.1800482b0
cmp al, r12b
jne 0x1800485da
mov eax, 3
jmp 0x180048a9b
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.180041f48
nop
cmp qword [rsp + 0xf0], r12
jne 0x180048673
cmp qword [rsp + 0xf8], 8
jb 0x180048633
mov rcx, qword [rsp + 0xe0]
call fcn.180058ed8
mov edi, 7
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x180048669
mov rcx, qword [rsp + 0x108]
call fcn.180058ed8
mov eax, 5
jmp 0x180048a9b
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 0x1800486ed
cmp qword [rsp + 0xf8], 8
jb 0x1800486b0
mov rcx, qword [rsp + 0xe0]
call fcn.180058ed8
mov edi, 7
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x1800486e6
mov rcx, qword [rsp + 0x108]
call fcn.180058ed8
mov eax, edi
jmp 0x180048a9b
lea rcx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rcx, qword [rsp + 0xe0]
xor edx, edx
call fcn.180001e50
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 0x1800487b2
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 0x180048772
mov rcx, qword [rsp + 0xe0]
call fcn.180058ed8
mov edi, 7
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x1800487a8
mov rcx, qword [rsp + 0x108]
call fcn.180058ed8
mov eax, 4
jmp 0x180048a9b
mov rcx, rbx
call fcn.180047f88
movsxd r11, dword [rsp + 0x28]
cmp rsi, r11
jae 0x1800487e6
lea rdx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rdx, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.1800452ac
xor r9d, r9d
lea r8, str.RecordBackupLog
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smprule_
mov rcx, 0xffffffff80000002
call fcn.180005684
mov edi, 7
cmp eax, r12d
je 0x180048a49
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.180016640
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.180058fdc
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.180007618
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.18000e8d0
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180016804
mov rbx, rax
lea rdx, str.file_path
lea rcx, [rsp + 0xa8]
call fcn.180017d70
mov rcx, rax
mov rdx, rbx
call fcn.180016a90
nop
cmp qword [rsp + 0x50], 0x10
jb 0x1800488ac
mov rcx, qword [rsp + 0x38]
call fcn.180058ed8
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x38], r12b
cmp qword [rsp + 0x78], 8
jb 0x1800488cd
mov rcx, qword [rsp + 0x60]
call fcn.180058ed8
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.18000346c
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180016804
mov rbx, rax
lea rdx, str.file_size
lea rcx, [rsp + 0xa8]
call fcn.180017d70
mov rcx, rax
mov rdx, rbx
call fcn.180016a90
nop
cmp qword [rsp + 0x50], 0x10
jb 0x18004892d
mov rcx, qword [rsp + 0x38]
call fcn.180058ed8
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x80]
call fcn.180016804
mov rbx, rax
lea rdx, str.data_time
lea rcx, [rsp + 0xa8]
call fcn.180017d70
mov rcx, rax
mov rdx, rbx
call fcn.180016a90
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.180058fdc
mov r8, rax
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.180007618
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.18000e8d0
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180016804
mov rbx, rax
lea rdx, str.reason
lea rcx, [rsp + 0xa8]
call fcn.180017d70
mov rcx, rax
mov rdx, rbx
call fcn.180016a90
nop
cmp qword [rsp + 0x50], 0x10
jb 0x1800489fc
mov rcx, qword [rsp + 0x38]
call fcn.180058ed8
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x38], r12b
cmp qword [rsp + 0x78], 8
jb 0x180048a1d
mov rcx, qword [rsp + 0x60]
call fcn.180058ed8
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, str.t_backup_log
call fcn.180026400
nop
lea rcx, [rsp + 0xa8]
call fcn.1800169f8
nop
cmp qword [rsp + 0xf8], 8
jb 0x180048a61
mov rcx, qword [rsp + 0xe0]
call fcn.180058ed8
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x180048a92
mov rcx, qword [rsp + 0x108]
call fcn.180058ed8
xor eax, eax
jmp 0x180048a9b
mov eax, 6
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.180059b00
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret