Function at 0x180047a7c
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 0x180047ad0
lea eax, [r12 + 1]
jmp 0x180048053
lea rdx, str.AppData
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x18004804e
lea rdx, str.Application_Data
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x18004804e
lea rdx, str.Temp
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x18004804e
lea rdx, [0x18007ae48]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r12
jne 0x18004804e
mov rcx, rbx
call fcn.180001f74
mov rsi, rax
lea rcx, [rsp + 0x20]
call fcn.180046d9c
movsxd r11, dword [rsp + 0x24]
cmp rsi, r11
jbe 0x180047b5d
mov eax, 2
jmp 0x180048053
movsxd rax, dword [rsp + 0x20]
cmp eax, r12d
je 0x180047b76
cmp rsi, rax
jae 0x180047b76
mov eax, 2
jmp 0x180048053
cmp dil, r12b
je 0x180047b92
mov rcx, rbx
call fcn.180047868
cmp al, r12b
jne 0x180047b92
mov eax, 3
jmp 0x180048053
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.180041ecc
nop
cmp qword [rsp + 0xf0], r12
jne 0x180047c2b
cmp qword [rsp + 0xf8], 8
jb 0x180047beb
mov rcx, qword [rsp + 0xe0]
call fcn.1800018ec
mov edi, 7
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x180047c21
mov rcx, qword [rsp + 0x108]
call fcn.1800018ec
mov eax, 5
jmp 0x180048053
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 0x180047ca5
cmp qword [rsp + 0xf8], 8
jb 0x180047c68
mov rcx, qword [rsp + 0xe0]
call fcn.1800018ec
mov edi, 7
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x180047c9e
mov rcx, qword [rsp + 0x108]
call fcn.1800018ec
mov eax, edi
jmp 0x180048053
lea rcx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rcx, qword [rsp + 0xe0]
xor edx, edx
call fcn.180001dd8
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 0x180047d6a
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 0x180047d2a
mov rcx, qword [rsp + 0xe0]
call fcn.1800018ec
mov edi, 7
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x180047d60
mov rcx, qword [rsp + 0x108]
call fcn.1800018ec
mov eax, 4
jmp 0x180048053
mov rcx, rbx
call fcn.180047540
movsxd r11, dword [rsp + 0x28]
cmp rsi, r11
jae 0x180047d9e
lea rdx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rdx, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.180044864
xor r9d, r9d
lea r8, str.RecordBackupLog
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smprule_
mov rcx, 0xffffffff80000002
call fcn.18000568c
mov edi, 7
cmp eax, r12d
je 0x180048001
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.1800167d4
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.180058e14
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1800076b4
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.18000e9a0
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180016998
mov rbx, rax
lea rdx, str.file_path
lea rcx, [rsp + 0xa8]
call fcn.180017f04
mov rcx, rax
mov rdx, rbx
call fcn.180016c24
nop
cmp qword [rsp + 0x50], 0x10
jb 0x180047e64
mov rcx, qword [rsp + 0x38]
call fcn.1800018ec
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x38], r12b
cmp qword [rsp + 0x78], 8
jb 0x180047e85
mov rcx, qword [rsp + 0x60]
call fcn.1800018ec
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1800033f8
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180016998
mov rbx, rax
lea rdx, str.file_size
lea rcx, [rsp + 0xa8]
call fcn.180017f04
mov rcx, rax
mov rdx, rbx
call fcn.180016c24
nop
cmp qword [rsp + 0x50], 0x10
jb 0x180047ee5
mov rcx, qword [rsp + 0x38]
call fcn.1800018ec
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x80]
call fcn.180016998
mov rbx, rax
lea rdx, str.data_time
lea rcx, [rsp + 0xa8]
call fcn.180017f04
mov rcx, rax
mov rdx, rbx
call fcn.180016c24
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.180058e14
mov r8, rax
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.1800076b4
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.18000e9a0
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180016998
mov rbx, rax
lea rdx, str.reason
lea rcx, [rsp + 0xa8]
call fcn.180017f04
mov rcx, rax
mov rdx, rbx
call fcn.180016c24
nop
cmp qword [rsp + 0x50], 0x10
jb 0x180047fb4
mov rcx, qword [rsp + 0x38]
call fcn.1800018ec
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r12
mov byte [rsp + 0x38], r12b
cmp qword [rsp + 0x78], 8
jb 0x180047fd5
mov rcx, qword [rsp + 0x60]
call fcn.1800018ec
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, str.t_backup_log
call fcn.180026788
nop
lea rcx, [rsp + 0xa8]
call fcn.180016b8c
nop
cmp qword [rsp + 0xf8], 8
jb 0x180048019
mov rcx, qword [rsp + 0xe0]
call fcn.1800018ec
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 0x10
jb 0x18004804a
mov rcx, qword [rsp + 0x108]
call fcn.1800018ec
xor eax, eax
jmp 0x180048053
mov eax, 6
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.180059930
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret