Function at 0x411fc800
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x6d8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
mov rbx, r9
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
test rcx, rcx
je 0x411fcb41
test rdx, rdx
je 0x411fcb41
mov word [rsp + 0x4b0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x4b2]
call fcn.412121c0
lea rdx, [rsp + 0x4b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov word [rsp + 0x2a0], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2a2]
call fcn.412121c0
mov r9, rdi
mov r8, rsi
lea rdx, [0x4129a250]
lea rcx, [rsp + 0x2a0]
call fcn.412122b0
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411fcb43
mov word [rsp + 0x90], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x92]
call fcn.412121c0
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebp
lea r9, str.SmartCloudInput
lea r8, [rsp + 0x4b0]
lea rdx, str._s_s_d__s
lea rcx, [rsp + 0x90]
call fcn.412122b0
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411fc931
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x90]
call fcn.410522e0
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x411fcb43
mov qword [rsp + 0x88], 7
xor ebp, ebp
mov qword [rsp + 0x80], rbp
mov word [rsp + 0x70], bp
mov dword [rsp + 0x30], ebp
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x68]
mov rdx, rdi
mov rcx, rsi
call fcn.411fc140
test eax, eax
jne 0x411fc9b3
cmp qword [rsp + 0x88], 8
jb 0x411fc9ac
mov rcx, qword [rsp + 0x70]
call fcn.41210d60
xor eax, eax
jmp 0x411fcb43
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbp
mov word [rsp + 0x40], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.41022de0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x90]
call fcn.411fc3b0
test eax, eax
jne 0x411fca10
cmp qword [rsp + 0x88], 8
jb 0x411fca09
mov rcx, qword [rsp + 0x70]
call fcn.41210d60
xor eax, eax
jmp 0x411fcb43
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea rsi, [rcx - 1]
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x411fca3b
lea rdi, [rbx + 8]
mov rax, qword [rdi]
jmp 0x411fca42
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x90]
cmp rcx, rax
jb 0x411fca9c
cmp rdx, 8
jb 0x411fca5a
mov rcx, qword [rdi]
jmp 0x411fca5d
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x90]
cmp rcx, rax
jbe 0x411fca9c
cmp rdx, 8
jb 0x411fca7b
mov rdi, qword [rdi]
lea r8, [rsp + 0x90]
sub r8, rdi
sar r8, 1
mov r9, rsi
mov rdx, rbx
mov rcx, rbx
call fcn.41022de0
jmp 0x411fcb25
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x411fcab0
call fcn.4120fbc0
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x411fcaca
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.41022ab0
jmp 0x411fcae3
test rsi, rsi
jne 0x411fcae3
mov qword [rbx + 0x18], rbp
cmp rax, 8
jb 0x411fcadc
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x411fcb25
test rsi, rsi
je 0x411fcb25
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x411fcaf7
mov rcx, qword [rdi]
jmp 0x411fcafa
mov rcx, rdi
lea rbp, [rsi + rsi]
add rdx, rdx
mov r9, rbp
lea r8, [rsp + 0x90]
call fcn.412118b0
mov qword [rbx + 0x18], rsi
cmp qword [rbx + 0x20], 8
jb 0x411fcb1f
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
cmp qword [rsp + 0x88], 8
jb 0x411fcb3a
mov rcx, qword [rsp + 0x70]
call fcn.41210d60
mov eax, 1
jmp 0x411fcb43
xor eax, eax
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x6d8
pop rdi
pop rsi
pop rbp
pop rbx
ret