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

Disassembly:
endbr64
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
mov r12, qword [0x14013cc10]
xor r10d, r10d
lea r14, [rsp + 0x60]
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov r13, r8
mov rax, qword [r12]
mov qword [rsp + 0x88], rax
xor eax, eax
mov rcx, r14
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], 0
mov word [rsp + 0x30], r10w
call method.epee::string_tools.utf8_to_utf16_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rax, qword [rsp + 0x60]
lea rbx, [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x68]
cmp rax, rbx
je 0x1400068d0
movq xmm0, r8
movhps xmm0, qword [rsp + 0x70]
cmp rcx, rdi
je 0x140006870
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
test rcx, rcx
je 0x14000687a
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], 0
xor r8d, r8d
mov word [rcx], r8w
mov rcx, qword [rsp + 0x60]
cmp rcx, rbx
je 0x140006704
mov rax, qword [rsp + 0x70]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
xor ecx, ecx
lea rbp, [rsp + 0x50]
mov rdx, r13
mov qword [rsp + 0x48], 0
mov word [rsp + 0x50], cx
mov rcx, r14
mov qword [rsp + 0x40], rbp
call method.epee::string_tools.utf8_to_utf16_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x68]
cmp rax, rbx
je 0x140006890
movq xmm0, r8
movhps xmm0, qword [rsp + 0x70]
cmp rcx, rbp
je 0x140006850
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x48], xmm0
test rcx, rcx
je 0x14000685a
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], 0
xor eax, eax
mov word [rcx], ax
mov rcx, qword [rsp + 0x60]
cmp rcx, rbx
je 0x14000679d
mov rax, qword [rsp + 0x70]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x40]
cmp eax, 0xffffffff
je 0x1400067c2
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
mov r8d, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebx, ebx
test eax, eax
je 0x140006840
call sym.std::_V2::system_category__
mov dword [rsi], ebx
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x40]
cmp rcx, rbp
je 0x140006800
mov rax, qword [rsp + 0x50]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x140006819
mov rax, qword [rsp + 0x30]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov rax, qword [rsp + 0x88]
sub rax, qword [r12]
jne 0x140006965
mov rax, rsi
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400067dc
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x60], rbx
lea rbx, [rsp + 0x70]
mov rcx, rbx
jmp 0x140006776
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x60], rbx
lea rbx, [rsp + 0x70]
mov rcx, rbx
jmp 0x1400066db
test r8, r8
je 0x1400068b0
cmp r8, 1
je 0x140006910
add r8, r8
mov rdx, rbx
call sym.memcpy
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x48], r8
mov word [rcx + r8*2], dx
mov rcx, qword [rsp + 0x60]
jmp 0x140006776
test r8, r8
je 0x1400068f0
cmp r8, 1
je 0x140006928
add r8, r8
mov rdx, rbx
call sym.memcpy
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x28], r8
mov word [rcx + r8*2], r9w
mov rcx, qword [rsp + 0x60]
jmp 0x1400066db
movzx eax, word [rsp + 0x70]
mov word [rcx], ax
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
jmp 0x1400068b0
movzx eax, word [rsp + 0x70]
mov word [rcx], ax
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
jmp 0x1400068f0
call dbg.__stack_chk_fail
endbr64
mov rcx, rax
call sym.__cxa_begin_catch
call sym.std::_V2::system_category__
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov qword [rsi + 8], rbx
call sym.__cxa_end_catch
jmp 0x140006800