Function at 0x14001f030
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 [0x140061028]
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 0x14001f4d4
mov qword [rbp - 1], rdi
cmp qword [rdi + 0x18], 8
jb 0x14001f09b
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 0x14001f144
mov rbx, r12
or rbx, r15
cmp rbx, rcx
jbe 0x14001f0e2
mov rbx, rcx
lea rcx, [rax + rax]
jmp 0x14001f102
cmp rbx, rdx
cmovb rbx, rdx
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x14001f4e0
add rcx, rcx
cmp rcx, 0x1000
jb 0x14001f12e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001f4e0
mov rcx, rax
call fcn.1400228d8
test rax, rax
je 0x14001f4da
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14001f140
test rcx, rcx
je 0x14001f13d
call fcn.1400228d8
mov r14, rax
jmp 0x14001f140
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.1400247d0
movsd xmm0, qword [str.__new]
movsd qword [rbx + r14], xmm0
movzx eax, word [0x14004b718]
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 0x14001f1fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f1f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f4da
call fcn.140022914
movdqa xmm0, xmmword [0x140058320]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], si
cmp rbx, 0xffffffffffffffff
jne 0x14001f23b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140062910]
mov r10, qword [rcx]
mov r9d, eax
lea r8d, [rbx + 3]
lea rdx, str.SwapMethod___MoveFileEx:_CreateFileW_failed__d
call qword [r10 + 0x10]
jmp 0x14001f43a
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 0x14001f28c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140062910]
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 0x14001f43a
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 0x14001f4e6
mov r13, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001f2c0
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 0x14001f371
mov r15, r12
or r15, 7
cmp r15, rcx
jbe 0x14001f2ff
mov r15, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14001f32f
cmp r15, 0xa
mov eax, 0xa
cmovb r15, rax
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14001f4f2
add rcx, rcx
cmp rcx, 0x1000
jb 0x14001f35b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001f4f2
mov rcx, rax
call fcn.1400228d8
test rax, rax
je 0x14001f4ec
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14001f36d
test rcx, rcx
je 0x14001f36a
call fcn.1400228d8
mov r14, rax
jmp 0x14001f36d
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.1400247d0
movsd xmm0, qword [str.__new]
movsd qword [rbx + r14], xmm0
movzx eax, word [0x14004b718]
mov word [rbx + r14 + 8], ax
mov word [r14 + r12*2], si
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001f3b7
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 0x14001f413
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f40e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f4ec
call fcn.140022914
test ebx, ebx
jne 0x14001f43a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140062910]
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.140005570
cmp qword [rax + 0x18], 8
jb 0x14001f457
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x14001f49d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f497
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f4ce
call fcn.140022914
nop
mov rcx, rdi
call fcn.140003b70
mov eax, esi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140022c80
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.140029444
nop
call fcn.1400034f0
int3
call fcn.140029444
int3
call fcn.140003450
int3
call fcn.1400034f0
int3
call fcn.140029444
int3
call fcn.140003450
int3