Function at 0x1400075e0
Capabilities:
Delete file
Get file size
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140021228]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
call sub.MSVCP140.dll__Xtime_get_ticks
mov rdi, rax
sub rax, qword [0x140021698]
cmp rax, 0x23c34600
je 0x140007626
jl 0x140007826
mov rcx, rbx
call fcn.140016970
cmp eax, 1
je 0x140007826
mov qword [0x140021698], rdi
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000764b
mov rcx, qword [rbx]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007826
mov qword [rbp - 0x18], r14
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x18], 0x100000
jb 0x140007826
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.140003a00
nop
mov r8, qword [rbp - 0x28]
lea rcx, [r8 - 4]
cmp rcx, r8
ja 0x1400076db
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rax, qword [rbp - 0x38]
mov qword [rbp - 0x28], rcx
mov word [rax + rcx*2], r14w
jmp 0x140007736
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x20]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000771f
mov qword [rbp - 0x28], rcx
lea r9, [rbp - 0x38]
cmp rdi, 8
cmovae r9, qword [rbp - 0x38]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140007714
movzx eax, r14w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r14w
jmp 0x140007736
mov word [rsp + 0x20], r14w
mov r9, rdx
movzx r8d, byte [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.140007420
mov rsi, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
sub rax, rsi
cmp rax, 8
jb 0x14000777d
lea rax, [rsi + 8]
mov qword [rbp - 0x28], rax
lea rdi, [rbp - 0x38]
cmp rcx, 8
cmovae rdi, qword [rbp - 0x38]
lea rcx, [rdi + rsi*2]
mov r8d, 0x10
lea rdx, str..old.txt
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2 + 0x10], r14w
jmp 0x1400077a0
mov qword [rsp + 0x20], 8
lea r9, str..old.txt
movzx r8d, byte [rbp - 0x40]
mov edx, 8
lea rcx, [rbp - 0x38]
call fcn.1400034c0
lea rcx, [rbp - 0x38]
call fcn.1400054b0
test eax, eax
je 0x1400077c1
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
cmp qword [rbx + 0x18], 8
jb 0x1400077d9
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140007826
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007821
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007821
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001726c
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140017310
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret