Function at 0x1400177a0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13d, edx
mov r15, rcx
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x18]
lea r14d, [r13 - 1]
xor edi, edi
cmp r14, 1
jb 0x14001799a
nop
mov rdx, r14
lea rcx, [rbp - 0x69]
call fcn.1400173a0
mov rsi, rax
lea rcx, [0x1401423ac]
call fcn.1406a99b2
nop
mov r8, rax
lea rdx, [r15 + 0x20]
lea rcx, [rbp - 0x29]
call fcn.140017d00
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140017df0
nop
cmp qword [rbp - 0x11], 8
jb 0x14001785f
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rdi
mov word [rbp - 0x29], di
cmp qword [rbp - 0x51], 8
jb 0x140017880
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x51], 7
mov qword [rbp - 0x59], rdi
mov word [rbp - 0x69], di
lea rcx, [rsp + 0x50]
cmp qword [rbp - 0x71], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001797b
test al, 0x10
jne 0x14001797b
lea rdx, [r14 + 1]
lea rcx, [rbp - 9]
call fcn.1400173a0
mov rsi, rax
lea rcx, [0x1401423ac]
call fcn.1406a99b2
nop
mov r8, rax
lea rdx, [r15 + 0x20]
lea rcx, [rbp - 0x49]
call fcn.140017d00
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140017df0
nop
cmp qword [rbp - 0x31], 8
jb 0x140017907
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
cmp qword [rbp + 0xf], 8
jb 0x140017928
mov rcx, qword [rbp - 9]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
cmp qword [rbp - 0x71], 8
cmovae rcx, qword [rsp + 0x50]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp qword [rsp + 0x48], 8
jb 0x140017968
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp qword [rbp - 0x71], 8
jb 0x14001798d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
dec r14
cmp r14, 1
jae 0x140017810
cmp r13d, 1
jb 0x1400179f7
lea rsi, [r15 + 0x20]
lea rcx, [0x1401423b0]
call fcn.1406a99b2
nop
mov r8, rax
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.140017d00
cmp qword [rax + 0x18], 8
jb 0x1400179ca
mov rax, qword [rax]
cmp qword [rsi + 0x18], 8
jb 0x1400179d4
mov rsi, qword [rsi]
mov r8d, 1
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp qword [rbp + 0xf], 8
jb 0x1400179f7
mov rcx, qword [rbp - 9]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
lea rdx, [r15 + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x140017a05
mov rdx, qword [rdx]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp word [rdx], 0
je 0x140017a2c
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x140017a22
mov r8, rdi
lea rcx, [rsp + 0x30]
call fcn.140007670
nop
mov rax, qword [r15]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [rax + 0x10]
nop
cmp qword [rsp + 0x48], 8
jb 0x140017a60
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14010a480
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret