Function at 0x180044228
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 + 0xc8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x18009a658]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov dil, r8b
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor r12d, r12d
cmp eax, r12d
jne 0x18004427c
lea eax, [r12 + 1]
jmp 0x1800447cc
lea rdx, str.AppData
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x1800447c7
lea rdx, str.Application_Data
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x1800447c7
lea rdx, str.Temp
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x1800447c7
lea rdx, [0x180075bd8]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x1800447c7
mov rcx, rbx
call fcn.180001f84
mov rsi, rax
call fcn.180043314
mov qword [rsp + 0x20], rax
movsxd rcx, eax
cmp rsi, rcx
jbe 0x180044307
mov eax, 2
jmp 0x1800447cc
cmp dil, r12b
je 0x180044323
mov rcx, rbx
call fcn.180044014
cmp al, r12b
jne 0x180044323
mov eax, 3
jmp 0x1800447cc
mov r13d, sendto
mov qword [rsp + 0x118], r13
mov qword [rsp + 0x110], r12
mov byte [rsp + 0x100], r12b
lea r8, [rsp + 0xf8]
mov rdx, rbx
lea rcx, [rsp + 0xd0]
call fcn.18003f3f4
nop
cmp qword [rsp + 0xe8], r12
jne 0x1800443bc
cmp qword [rsp + 0xf0], 8
jb 0x18004437c
mov rcx, qword [rsp + 0xd8]
call fcn.180054958
mov edi, 7
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xe8], r12
mov word [rsp + 0xd8], r12w
cmp qword [rsp + 0x118], 0x10
jb 0x1800443b2
mov rcx, qword [rsp + 0x100]
call fcn.180054958
mov eax, 5
jmp 0x1800447cc
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, qword [rsp + 0xd8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, r12d
je 0x180044436
cmp qword [rsp + 0xf0], 8
jb 0x1800443f9
mov rcx, qword [rsp + 0xd8]
call fcn.180054958
mov edi, 7
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xe8], r12
mov word [rsp + 0xd8], r12w
cmp qword [rsp + 0x118], 0x10
jb 0x18004442f
mov rcx, qword [rsp + 0x100]
call fcn.180054958
mov eax, edi
jmp 0x1800447cc
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, qword [rsp + 0xd8]
xor edx, edx
call fcn.180001de8
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, r12d
jne 0x1800444fb
lea rcx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rsp + 0xf0], 8
jb 0x1800444bb
mov rcx, qword [rsp + 0xd8]
call fcn.180054958
mov edi, 7
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xe8], r12
mov word [rsp + 0xd8], r12w
cmp qword [rsp + 0x118], 0x10
jb 0x1800444f1
mov rcx, qword [rsp + 0x100]
call fcn.180054958
mov eax, 4
jmp 0x1800447cc
mov rcx, rbx
call fcn.180043cec
movsxd r11, dword [rsp + 0x24]
cmp rsi, r11
jae 0x18004452f
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
mov rcx, rbx
call fcn.180042830
xor r9d, r9d
lea r8, str.RecordBackupLog
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smprule_
mov rcx, 0xffffffff80000002
call fcn.180005444
mov edi, 7
cmp eax, r12d
je 0x18004477a
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.180015738
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov rcx, rbx
call fcn.180054a5c
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.180007250
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.18000d990
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1800158fc
mov rbx, rax
lea rdx, str.file_path
lea rcx, [rsp + 0xa0]
call fcn.180016e68
mov rcx, rax
mov rdx, rbx
call fcn.180015b88
nop
cmp qword [rsp + 0x48], 0x10
jb 0x1800445ef
mov rcx, qword [rsp + 0x30]
call fcn.180054958
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x30], r12b
cmp qword [rsp + 0x70], 8
jb 0x180044610
mov rcx, qword [rsp + 0x58]
call fcn.180054958
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.1800033bc
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1800158fc
mov rbx, rax
lea rdx, str.file_size
lea rcx, [rsp + 0xa0]
call fcn.180016e68
mov rcx, rax
mov rdx, rbx
call fcn.180015b88
nop
cmp qword [rsp + 0x48], 0x10
jb 0x18004466a
mov rcx, qword [rsp + 0x30]
call fcn.180054958
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x78]
call fcn.1800158fc
mov rbx, rax
lea rdx, str.data_time
lea rcx, [rsp + 0xa0]
call fcn.180016e68
mov rcx, rax
mov rdx, rbx
call fcn.180015b88
lea r11, [rsp + 0x78]
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov rcx, rbp
call fcn.180054a5c
mov r8, rax
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.180007250
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.18000d990
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1800158fc
mov rbx, rax
lea rdx, str.reason
lea rcx, [rsp + 0xa0]
call fcn.180016e68
mov rcx, rax
mov rdx, rbx
call fcn.180015b88
nop
cmp qword [rsp + 0x48], 0x10
jb 0x18004472d
mov rcx, qword [rsp + 0x30]
call fcn.180054958
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x30], r12b
cmp qword [rsp + 0x70], 8
jb 0x18004474e
mov rcx, qword [rsp + 0x58]
call fcn.180054958
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0xa0]
lea rcx, str.t_backup_log
call fcn.180025614
nop
lea rcx, [rsp + 0xa0]
call fcn.180015af0
nop
cmp qword [rsp + 0xf0], 8
jb 0x180044792
mov rcx, qword [rsp + 0xd8]
call fcn.180054958
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xe8], r12
mov word [rsp + 0xd8], r12w
cmp qword [rsp + 0x118], 0x10
jb 0x1800447c3
mov rcx, qword [rsp + 0x100]
call fcn.180054958
xor eax, eax
jmp 0x1800447cc
mov eax, 6
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180055580
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret