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

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x68
mov rbx, rcx
call fcn.1400ecd3c
mov rcx, rax
sub rcx, qword [0x1401b9448]
cmp rcx, 0x23c34600
jl 0x1400dc0ac
mov qword [0x1401b9448], rax
mov rcx, rbx
cmp qword [rbx + 0x18], 8
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x60], r15
jb 0x1400dbe2a
mov rcx, qword [rbx]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea edx, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400dc09f
lea rdx, [rbp + 0x20]
mov qword [rbp + 0x20], r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x20], 0xa00000
jb 0x1400dc09f
cmp qword [rbx + 0x18], 8
xorps xmm0, xmm0
mov qword [rsp + 0x80], rsi
mov rsi, qword [rbx + 0x10]
mov qword [rsp + 0x98], r14
mov r14, rbx
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r15
jb 0x1400dbeb3
mov r14, qword [rbx]
movabs rdi, 0x7ffffffffffffffe
cmp rsi, rdi
ja 0x1400dc0b9
mov qword [rbp - 0x10], 7
cmp rsi, 8
jae 0x1400dbeec
mov r8d, 0x10
mov qword [rbp - 0x18], rsi
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.1400f01c0
jmp 0x1400dbf33
mov rax, rsi
or rax, 7
cmp rax, rdi
ja 0x1400dbf07
mov ecx, 0xa
mov rdi, rax
cmp rax, rcx
cmovb rdi, rcx
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x28]
call fcn.1400038c0
lea r8, [rsi*2 + 2]
mov qword [rbp - 0x28], rax
mov rdx, r14
mov qword [rbp - 0x18], rsi
mov rcx, rax
mov qword [rbp - 0x10], rdi
call fcn.1400f01c0
mov r8, qword [rbp - 0x18]
lea rcx, [r8 - 4]
cmp rcx, r8
ja 0x1400dbf59
cmp qword [rbp - 0x10], 8
lea rax, [rbp - 0x28]
mov qword [rbp - 0x18], rcx
cmovae rax, qword [rbp - 0x28]
mov word [rax + rcx*2], r15w
jmp 0x1400dbfb4
mov rdi, qword [rbp - 0x10]
mov rdx, rcx
mov rax, rdi
sub rdx, r8
sub rax, r8
cmp rdx, rax
ja 0x1400dbf9d
cmp rdi, 8
mov qword [rbp - 0x18], rcx
lea r9, [rbp - 0x28]
cmovae r9, qword [rbp - 0x28]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x1400dbf92
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r15w
jmp 0x1400dbfb4
movzx r8d, byte [rbp + 0x20]
lea rcx, [rbp - 0x28]
mov r9, rdx
mov word [rsp + 0x20], r15w
call fcn.1400da3c0
mov rcx, qword [rbp - 0x10]
mov rsi, qword [rbp - 0x18]
mov rax, rcx
sub rax, rsi
cmp rax, 8
jb 0x1400dbffb
cmp rcx, 8
lea rax, [rsi + 8]
lea rdi, [rbp - 0x28]
mov qword [rbp - 0x18], rax
cmovae rdi, qword [rbp - 0x28]
lea rdx, str..old.txt
mov r8d, 0x10
lea rcx, [rdi + rsi*2]
call fcn.1400f01c0
mov word [rdi + rsi*2 + 0x10], r15w
jmp 0x1400dc01e
movzx r8d, byte [rbp + 0x20]
lea r9, str..old.txt
mov edx, 8
mov qword [rsp + 0x20], 8
lea rcx, [rbp - 0x28]
call fcn.140066e80
cmp qword [rbp - 0x10], 8
lea rcx, [rbp - 0x28]
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rbp - 0x10], 8
lea rdx, [rbp - 0x28]
cmovae rdx, qword [rbp - 0x28]
cmp qword [rbx + 0x18], 8
jb 0x1400dc04a
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400dc08f
mov rcx, qword [rbp - 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400dc08a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400dc0b3
call fcn.1400eef0c
mov r14, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x60]
add rsp, 0x68
pop rbx
pop rbp
ret
call fcn.1400f5e30
int3
call fcn.140002910
int3