Function at 0x180014e80
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
movzx edi, dl
mov rbx, rcx
xor r12d, r12d
mov dword [rbp - 0x29], r12d
test dl, dl
je 0x180014ede
mov rcx, qword [rcx + 0xe8]
test rcx, rcx
je 0x180014ede
mov rax, qword [rcx]
mov rdx, qword [rbx + 0xf0]
call qword [rax + 8]
lea rcx, [rbp + 7]
call fcn.1800079f0
lea rdx, [rbx + 8]
lea rcx, [rbp + 7]
call fcn.180007990
nop
test dil, dil
je 0x180015142
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r8d, r8d
xor edx, edx
call fcn.180015a20
mov rcx, rax
mov qword [rbp - 0x39], rax
lea rdx, [rbx + 0x20]
lea rax, [rbp - 0x39]
cmp rdx, rax
je 0x180014f3e
mov rax, qword [rdx]
mov qword [rdx], rcx
mov qword [rbp - 0x39], rax
mov rcx, qword [rdx + 8]
mov rax, qword [rbp - 0x31]
mov qword [rdx + 8], rax
mov qword [rbp - 0x31], rcx
lea rcx, [rbp - 0x39]
call fcn.1800158e0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x39]
call fcn.1800862a4
nop
lea rdx, [rbx + 0x40]
lea rcx, [rbp + 0xf]
call fcn.180006d90
mov r15d, 1
mov dword [rbp - 0x29], r15d
cmp dword [rbx + 0x38], 0
jbe 0x18001512f
lea rcx, [rbp + 0xf]
call fcn.180005e24
test al, al
jne 0x18001512f
lea rcx, [rbp + 0xf]
call fcn.180005be4
mov rcx, rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18001512f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov edx, dword [rbx + 0x38]
cmp eax, edx
sete r14b
jbe 0x1800150f0
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esi, dword [rbx + 0x38]
mov dword [rbp - 0x19], r12d
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r12
mov byte [rbp - 0x49], al
lea rax, [rbp - 0x11]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x31], rax
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
mov edx, esi
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x11]
call fcn.180015b40
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x19]
mov r8d, esi
mov rdx, qword [rbp - 0x11]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800150a7
cmp dword [rbp - 0x19], esi
jne 0x1800150a7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x15], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x15]
mov r8d, esi
mov rdx, qword [rbp - 0x11]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800150a7
cmp dword [rbp - 0x15], esi
jne 0x1800150aa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1800150aa
mov r14b, 1
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1800150f0
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800150df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180015224
call fcn.1800862a4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r12
test r14b, r14b
je 0x18001510f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
je 0x18001512f
lea rcx, [rbp + 0xf]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and r15d, 0xfffffffe
mov dword [rbp - 0x29], r15d
lea rcx, [rbp + 0xf]
call fcn.180005bf4
jmp 0x1800151b3
cmp qword [rbx + 0x28], 0
je 0x1800151b3
lea rcx, [rbx + 0x10]
mov rdx, qword [rcx]
lea rdi, [rbx + 0x20]
mov r9, qword [rdi]
mov r8, qword [r9]
call fcn.180015d70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r8d, r8d
xor edx, edx
call fcn.180015a20
mov rcx, rax
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x39]
cmp rdi, rax
je 0x18001519b
mov rax, qword [rdi]
mov qword [rdi], rcx
mov qword [rbp - 0x39], rax
mov rcx, qword [rdi + 8]
mov rax, qword [rbp - 0x31]
mov qword [rdi + 8], rax
mov qword [rbp - 0x31], rcx
lea rcx, [rbp - 0x39]
call fcn.1800158e0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x39]
call fcn.1800862a4
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1800151ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], r12
lea rdx, [rbp + 0xf]
mov rcx, rbx
call fcn.180015550
nop
lea rcx, [rbp + 0xf]
call fcn.180005be4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rbp + 0xf]
call fcn.180005bf4
mov dword [rbx + 0x38], r12d
lea rcx, [rbp + 7]
call fcn.1800079c0
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180086280
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.18008ccdc
nop
int3