Function at 0x140018420
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x140054028]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov dword [rbp - 9], r8d
mov qword [rbp + 7], rdx
mov rdi, rcx
mov qword [rbp + 0xf], rcx
xor esi, esi
mov r13, qword [rcx + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r13
cmp rax, 5
jb 0x1400188c4
mov qword [rbp - 1], rdi
cmp qword [rdi + 0x18], 8
jb 0x14001848b
mov rax, qword [rdi]
mov qword [rbp - 1], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea r12, [r13 + 5]
mov r15d, 7
mov ebx, r15d
lea r14, [rbp - 0x29]
movabs rax, 0x7fffffffffffffff
lea edx, [r15 + 3]
cmp r12, r15
jbe 0x140018534
mov rbx, r12
or rbx, r15
cmp rbx, rcx
jbe 0x1400184d2
mov rbx, rcx
lea rcx, [rax + rax]
jmp 0x1400184f2
cmp rbx, rdx
cmovb rbx, rdx
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x1400188d0
add rcx, rcx
cmp rcx, 0x1000
jb 0x14001851e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400188d0
mov rcx, rax
call fcn.14001bc28
test rax, rax
je 0x1400188ca
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140018530
test rcx, rcx
je 0x14001852d
call fcn.14001bc28
mov r14, rax
jmp 0x140018530
mov r14, rsi
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], rbx
lea rbx, [r13*2]
mov r8, rbx
mov rdx, qword [rbp - 1]
mov rcx, r14
call fcn.14001d930
movsd xmm0, qword [str.__new]
movsd qword [rbx + r14], xmm0
movzx eax, word [0x1400405c0]
mov word [rbx + r14 + 8], ax
mov word [r14 + r12*2], si
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1400185eb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400185e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400188ca
call fcn.14001bc64
movdqa xmm0, xmmword [0x14004c6f0]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], si
cmp rbx, 0xffffffffffffffff
jne 0x14001862b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140055160]
mov r10, qword [rcx]
mov r9d, eax
lea r8d, [rbx + 3]
lea rdx, str.SwapMethod___MoveFileEx:_CreateFileW_failed__d
call qword [r10 + 0x10]
jmp 0x14001882a
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x17]
mov r8d, dword [rbp - 9]
mov rdx, qword [rbp + 7]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001867c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140055160]
mov rax, qword [rcx]
mov r9d, esi
mov r8d, 2
lea rdx, str.SwapMethod___MoveFileEx:_WriteFile_failed__d
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001882a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rdi + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rbx
cmp rax, 5
jb 0x1400188d6
mov r13, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400186b0
mov r13, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
lea r12, [rbx + 5]
lea r14, [rbp - 0x29]
cmp r12, r15
jbe 0x140018761
mov r15, r12
or r15, 7
cmp r15, rcx
jbe 0x1400186ef
mov r15, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14001871f
cmp r15, 0xa
mov eax, 0xa
cmovb r15, rax
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400188e2
add rcx, rcx
cmp rcx, 0x1000
jb 0x14001874b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400188e2
mov rcx, rax
call fcn.14001bc28
test rax, rax
je 0x1400188dc
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14001875d
test rcx, rcx
je 0x14001875a
call fcn.14001bc28
mov r14, rax
jmp 0x14001875d
mov r14, rsi
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], r15
add rbx, rbx
mov r8, rbx
mov rdx, r13
mov rcx, r14
call fcn.14001d930
movsd xmm0, qword [str.__new]
movsd qword [rbx + r14], xmm0
movzx eax, word [0x1400405c0]
mov word [rbx + r14 + 8], ax
mov word [r14 + r12*2], si
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400187a7
mov rdx, qword [rdi]
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140018803
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400187fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400188dc
call fcn.14001bc64
test ebx, ebx
jne 0x14001882a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140055160]
mov rax, qword [rcx]
mov r9d, esi
lea r8d, [rbx + 2]
lea rdx, str.SwapMethod___MoveFileEx:_MoveFileExW_failed__d
call qword [rax + 0x10]
lea r8, str.__new
mov rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.1400055a0
cmp qword [rax + 0x18], 8
jb 0x140018847
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x14001888d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018887
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400188be
call fcn.14001bc64
nop
mov rcx, rdi
call fcn.140003b70
mov eax, esi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14001bfd0
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140022684
nop
call fcn.1400034f0
int3
call fcn.140022684
int3
call fcn.140003450
int3
call fcn.1400034f0
int3
call fcn.140022684
int3
call fcn.140003450
int3